/* =========================================================
   GLOBAL-APT — HOMEPAGE LAYOUT STABILITY FIX
   Restores the formal desktop composition used by the site:
   hero copy left, profile card right, service cards in a grid.
========================================================= */

/* ---------------------------------------------------------
   HOMEPAGE HERO
--------------------------------------------------------- */
.hero > .container.hero-content {
    width: min(1340px, 90%);
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.75fr) !important;
    gap: 65px !important;
    align-items: start !important;
}

.hero-copy {
    min-width: 0;
    padding-top: 112px;
}

.hero-copy .eyebrow {
    color: #b08d57;
    margin-bottom: 18px;
}

.hero-copy h1 {
    max-width: 800px;
    font-size: clamp(48px, 5vw, 78px);
    line-height: 1.03;
    letter-spacing: -4px;
    margin-bottom: 30px;
    color: #182033;
}

.hero-copy .hero-text {
    max-width: 790px;
    font-size: 18px;
    line-height: 1.8;
    color: #626975;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 58px;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   HOMEPAGE PROFILE CARD
--------------------------------------------------------- */
.hero > .container.hero-content > .hero-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 38px !important;
    background: #182033 !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(24, 32, 51, 0.18);
}

.hero-card > img {
    width: 100% !important;
    height: 452px !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 13px !important;
    border: 1px solid rgba(176, 141, 87, 0.55);
}

.hero-card-content {
    padding-top: 24px;
}

.hero-card-content > span {
    display: block;
    color: #d8b878;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
}

.hero-card-content h2 {
    color: #ffffff;
    font-size: 31px;
    line-height: 1.12;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.hero-card-content p {
    color: #c2c7d0 !important;
    font-size: 15px !important;
    line-height: 1.6;
    margin: 0 !important;
}

/* ---------------------------------------------------------
   HOMEPAGE TRUST STATS
--------------------------------------------------------- */
.hero-copy .hero-trust {
    display: flex;
    align-items: center;
    gap: 0;
}

.hero-copy .hero-trust div {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    padding-right: 30px;
    margin-right: 30px;
    border-right: 1px solid #d8d3ca;
}

.hero-copy .hero-trust div:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.hero-copy .hero-trust strong {
    font-size: 31px;
    line-height: 1;
    color: #b08d57;
    margin-bottom: 8px;
}

.hero-copy .hero-trust span {
    font-size: 15px;
    color: #626975;
}

/* ---------------------------------------------------------
   HOMEPAGE SERVICES
--------------------------------------------------------- */
.services-preview .services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.services-preview .service-card {
    display: block;
    width: 100%;
    min-width: 0;
    background: #ffffff;
    padding: 30px;
    border: 1px solid #e4e0d8;
    border-radius: 11px;
    transition: 0.3s ease;
}

.services-preview .service-card:hover {
    transform: translateY(-5px);
    border-color: #c7ae82;
    box-shadow: 0 15px 35px rgba(24, 32, 51, 0.08);
}

.services-preview .service-card > span {
    display: block;
    color: #b08d57;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 38px;
}

.services-preview .service-card h3 {
    font-size: 20px;
    line-height: 1.3;
    color: #182033;
    margin-bottom: 13px;
}

.services-preview .service-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #69717d;
    margin: 0;
}

/* ---------------------------------------------------------
   ZOOMED-DESKTOP / TABLET WIDTHS
   Keep the formal multi-column layout down to 801px.
--------------------------------------------------------- */
@media screen and (min-width: 801px) and (max-width: 1100px) {
    .hero > .container.hero-content {
        grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr) !important;
        gap: 40px !important;
    }

    .hero-copy {
        padding-top: 70px;
    }

    .hero-copy h1 {
        font-size: 58px;
        letter-spacing: -3px;
    }

    .hero-card > img {
        height: 400px !important;
    }

    .services-preview .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ---------------------------------------------------------
   TRUE MOBILE
--------------------------------------------------------- */
@media screen and (max-width: 800px) {
    .hero > .container.hero-content {
        display: block !important;
    }

    .hero-copy {
        padding-top: 28px;
    }

    .hero-copy h1 {
        font-size: 36px;
        line-height: 1.08;
        letter-spacing: -1px;
        margin-bottom: 24px;
    }

    .hero-copy .hero-text {
        font-size: 18px;
        line-height: 1.55;
        margin-bottom: 28px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 38px;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 54px;
    }

    .hero-copy .hero-trust {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        margin-bottom: 20px;
    }

    .hero-copy .hero-trust div {
        min-width: 0;
        padding-right: 10px;
        margin-right: 0;
    }

    .hero-copy .hero-trust strong {
        font-size: 22px;
    }

    .hero-copy .hero-trust span {
        font-size: 10px;
        line-height: 1.4;
    }

    .hero > .container.hero-content > .hero-card {
        margin-top: 35px !important;
        padding: 22px !important;
        border-radius: 15px !important;
    }

    .hero-card > img {
        height: 350px !important;
        border-radius: 11px !important;
    }

    .hero-card-content h2 {
        font-size: 28px;
    }

    .services-preview .services-grid {
        grid-template-columns: 1fr !important;
    }

    .services-preview .service-card {
        padding: 24px;
        border-radius: 13px;
    }

    .services-preview .service-card > span {
        margin-bottom: 24px;
    }

    .services-preview .service-card h3 {
        font-size: 20px;
        margin-bottom: 11px;
    }
}

@media screen and (max-width: 400px) {
    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-copy .hero-trust {
        grid-template-columns: 1fr;
    }
}
