/* =========================================
   COMPLETE OFFICE MANAGEMENT
========================================= */


/* =========================================
   HERO
========================================= */

.office-hero {
    width: 100%;
    background: #f5f9fc;
    padding: 75px 7%;
}

.office-hero-content {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    gap: 70px;
}

.office-hero-text {
    width: 100%;
}

.office-hero-label {
    display: block;
    margin-bottom: 18px;

    color: #1267a8;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.office-hero-text h1 {
    margin: 0 0 25px;

    color: #17233b;
    font-size: 58px;
    line-height: 1.15;
    font-weight: 700;
}

.office-hero-text h1 span {
    display: block;
    color: #126eb5;
}

.office-hero-text p {
    max-width: 600px;
    margin: 0 0 35px;

    color: #54708c;
    font-size: 16px;
    line-height: 1.8;
}

.office-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    padding: 14px 25px;

    background: #126eb5;
    color: #ffffff;

    text-decoration: none;
    border-radius: 5px;

    font-size: 14px;
    font-weight: 700;

    transition: background 0.3s ease, transform 0.3s ease;
}

.office-hero-button:hover {
    background: #0d5c99;
    transform: translateY(-2px);
}

.office-hero-image-wrapper {
    width: 100%;
}

.office-hero-image {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;

    border-radius: 18px;

    box-shadow: 0 20px 45px rgba(31, 67, 96, 0.12);
}



/* =========================================
   COMMON SECTION HEADING
========================================= */

.office-section-heading {
    max-width: 800px;
    margin: 0 auto 55px;

    text-align: center;
}

.office-section-heading span {
    display: block;
    margin-bottom: 12px;

    color: #126eb5;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.office-section-heading h2 {
    margin: 0 0 18px;

    color: #17233b;

    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
}

.office-section-heading p {
    margin: 0;

    color: #66788a;

    font-size: 15px;
    line-height: 1.7;
}



/* =========================================
   FEATURES SECTION
========================================= */

.office-features {
    width: 100%;
    background: #ffffff;

    padding: 90px 7%;
}

.office-features-grid {
    width: 100%;
    max-width: 1155px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}



/* =========================================
   FLIP CARDS
========================================= */

.office-flip-card {
    width: 100%;
    height: 290px;

    perspective: 1000px;
}

.office-flip-card-inner {
    position: relative;

    width: 100%;
    height: 100%;

    transform-style: preserve-3d;

    transition: transform 0.7s ease;
}

.office-flip-card:hover .office-flip-card-inner {
    transform: rotateY(180deg);
}



/* Front */

.office-flip-card-front,
.office-flip-card-back {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.office-flip-card-front {
    background: #ffffff;
}

.office-flip-card-front img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.office-front-title {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 18px 20px;

    background: rgba(0, 0, 0, 0.65);

    color: #ffffff;

    text-align: center;

    font-size: 17px;
    font-weight: 700;
}



/* Back */

.office-flip-card-back {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 35px;

    text-align: center;

    background: #302f2f;

    transform: rotateY(180deg);
}

.office-flip-card-back h3 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 21px;
    line-height: 1.3;

    font-weight: 700;
}

.office-flip-card-back p {
    margin: 0;

    color: #ffffff;

    font-size: 14px;
    line-height: 1.65;
}



/* =========================================
   BENEFITS SECTION
   SAME IMAGE-HOVER STYLE AS STOCK
========================================= */

.office-benefits {
    width: 100%;

    background: #ffffff;

    padding: 90px 7%;
}

.office-benefits-grid {
    width: 100%;
    max-width: 1155px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.office-benefit-card {
    position: relative;

    width: 100%;
    height: 290px;

    overflow: hidden;

    cursor: pointer;
}

.office-benefit-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.office-benefit-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 30px;

    text-align: center;

    background: rgba(0, 0, 0, 0.72);

    opacity: 0;

    transition: opacity 0.35s ease;
}

.office-benefit-card:hover img {
    transform: scale(1.05);
}

.office-benefit-card:hover .office-benefit-overlay {
    opacity: 1;
}

.office-benefit-overlay h3 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 21px;
    line-height: 1.3;

    font-weight: 700;
}

.office-benefit-overlay p {
    margin: 0;

    color: #ffffff;

    font-size: 14px;
    line-height: 1.65;
}



/* =========================================
   CONTACT
========================================= */

.office-contact {
    width: 100%;

    padding: 90px 7%;

    background: #f5f9fc;

    text-align: center;
}

.office-contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.office-contact-content > span {
    display: block;
    margin-bottom: 12px;

    color: #126eb5;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.office-contact-content h2 {
    margin: 0 0 20px;

    color: #17233b;

    font-size: 38px;
    line-height: 1.2;
}

.office-contact-content p {
    margin: 0 auto 12px;

    max-width: 750px;

    color: #66788a;

    font-size: 15px;
    line-height: 1.7;
}

.office-contact-button {
    display: inline-flex;

    align-items: center;
    gap: 15px;

    margin-top: 25px;

    padding: 14px 25px;

    background: #126eb5;
    color: #ffffff;

    text-decoration: none;
    border-radius: 5px;

    font-size: 14px;
    font-weight: 700;

    transition: background 0.3s ease, transform 0.3s ease;
}

.office-contact-button:hover {
    background: #0d5c99;
    transform: translateY(-2px);
}



/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .office-hero {
        padding: 65px 5%;
    }

    .office-hero-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .office-hero-text {
        text-align: center;
    }

    .office-hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .office-features,
    .office-benefits {
        padding: 70px 5%;
    }

    .office-features-grid,
    .office-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 600px) {

    .office-hero {
        padding: 55px 5%;
    }

    .office-hero-text h1 {
        font-size: 40px;
    }

    .office-section-heading {
        margin-bottom: 35px;
    }

    .office-section-heading h2 {
        font-size: 30px;
    }

    .office-features,
    .office-benefits {
        padding: 55px 5%;
    }

    .office-features-grid,
    .office-benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .office-flip-card,
    .office-benefit-card {
        height: 280px;
    }

    .office-contact {
        padding: 60px 5%;
    }

    .office-contact-content h2 {
        font-size: 30px;
    }
}