/*
 * Developer A ownership: Home, About AEH, Services and Footer.
 * Scope new rules under .page-index, .page-about, .page-services or .site-footer.
 * Keep shared primitives such as :root, .container, .btn and headings in style.css.
 */

.page-index {
    --home-accent: var(--burgundy);
    --home-deep: var(--navy);
    --home-soft: #eef3f7;
}

.page-index .home-hero {
    padding-top: clamp(72px, 9vw, 118px);
    padding-bottom: clamp(56px, 7vw, 94px);
    position: relative;
    overflow: hidden;
    background: var(--white);
    color: var(--home-deep);
}

.page-index .home-hero::before {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 22%;
    bottom: 0;
    width: 13rem;
    background: #eef3f7;
    clip-path: polygon(62% 0, 100% 0, 38% 100%, 0 100%);
    content: "";
}

.page-index .home-hero::after {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 14%;
    bottom: 0;
    width: 8rem;
    background: var(--navy);
    clip-path: polygon(62% 0, 100% 0, 38% 100%, 0 100%);
    content: "";
}

.page-index .home-hero .hero-grid {
    position: relative;
    z-index: 1;
}

.page-index .hero-copy {
    max-width: 620px;
    padding: 2rem 1rem 2rem 0;
    border-left: 0;
}

.page-index .hero-copy h1 {
    max-width: 10ch;
    color: var(--home-deep);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(3rem, 6vw, 5.1rem);
    font-weight: 850;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.page-index .hero-copy .eyebrow,
.page-index .section-heading .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.page-index .hero-copy .eyebrow::before,
.page-index .section-heading .eyebrow::before {
    width: 28px;
    height: 2px;
    background: var(--home-accent);
    content: "";
}

.page-index .hero-media {
    position: relative;
    aspect-ratio: 1.18 / 1;
    transform: none;
    border: 0;
    border-radius: 0;
    clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
    box-shadow: 0 24px 52px rgba(23, 60, 99, 0.16);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.page-index .hero-media::before {
    position: absolute;
    z-index: 1;
    inset: 16px 16px 16px 13%;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 4px;
    content: "";
    pointer-events: none;
}

.page-index .hero-media::after {
    position: absolute;
    z-index: 1;
    right: 9%;
    bottom: -22%;
    width: 42%;
    aspect-ratio: 1;
    border: 8px solid rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(152, 34, 53, 0.88);
    content: "";
    pointer-events: none;
}

.page-index .hero-media:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 62px rgba(23, 60, 99, 0.24);
}

.page-index .hero-media img {
    object-position: 50% center;
}

.page-index .hero-media-tag {
    position: absolute;
    z-index: 3;
    top: 24px;
    left: 24px;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border: 1px solid rgba(23, 60, 99, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--burgundy);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.7rem;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(23, 60, 99, 0.12);
}

.page-index .hero-media figcaption {
    z-index: 2;
    right: 22px;
    bottom: 22px;
    left: 22px;
    border: 0;
    border-left: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--slate);
    box-shadow: 0 12px 26px rgba(16, 32, 51, 0.18);
}

.page-index .hero-media figcaption strong {
    color: var(--home-deep);
}

.page-index .hero-text {
    color: var(--slate);
}

.page-index .btn {
    min-height: 42px;
    border-radius: 6px;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 750;
    box-shadow: 0 1px 2px rgba(16, 32, 51, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.page-index .btn-primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 1px 2px rgba(23, 60, 99, 0.18);
}

.page-index .btn-primary:hover {
    background: #0f2f50;
    box-shadow: 0 4px 10px rgba(23, 60, 99, 0.2);
}

.page-index .btn-secondary {
    border-color: rgba(23, 60, 99, 0.3);
    background: var(--white);
    color: var(--home-deep);
}

.page-index .btn-secondary:hover {
    border-color: var(--navy);
    background: var(--home-soft);
    box-shadow: 0 4px 10px rgba(16, 32, 51, 0.1);
}

.page-index .btn .icon {
    width: 16px;
    height: 16px;
    transition: transform 180ms ease;
}

.page-index .btn:focus-visible {
    outline: 2px solid rgba(23, 60, 99, 0.45);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(23, 60, 99, 0.12);
}

.page-index .btn:hover .icon {
    transform: translateX(3px);
}

.page-index .home-services,
.page-index .home-programs,
.page-index .home-proposition {
    position: relative;
    border-top: 1px solid rgba(23, 60, 99, 0.1);
    background: var(--white);
}

.page-index .home-services {
    padding-top: 84px;
}

.page-index .home-services .section-heading {
    max-width: 760px;
    margin-right: auto;
    margin-left: max(20px, calc((100% - var(--container)) / 2));
}

.page-index .home-programs {
    border-bottom: 1px solid rgba(23, 60, 99, 0.1);
}

.page-index .home-programs .split-layout {
    align-items: center;
}

.page-index .home-programs .section-heading {
    margin-bottom: 0;
}

.page-index .home-programs .program-list {
    padding-left: 1rem;
    border-left: 1px solid rgba(152, 34, 53, 0.3);
}

.page-index .home-proposition {
    border-top: 0;
}

.page-index .home-proposition .proposition {
    margin-top: 0;
}

.page-index .home-hero .hero-grid::after {
    background: #f3f6f9;
}

.page-index .hero-media::after {
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 0 7px rgba(23, 60, 99, 0.28);
}

/* Banner composition inspired by the supplied reference, using AEH colors and imagery. */
.page-index .home-hero {
    padding: clamp(28px, 4vw, 54px) 0 clamp(42px, 6vw, 78px);
    background: var(--white);
}

.page-index .home-hero::before,
.page-index .home-hero::after {
    display: none;
}

.page-index .home-hero .hero-grid {
    min-height: 590px;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    overflow: hidden;
    border: 1px solid rgba(23, 60, 99, 0.12);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 18px 44px rgba(23, 60, 99, 0.1);
}

.page-index .home-hero .hero-grid::after {
    position: absolute;
    right: -6%;
    bottom: -34%;
    left: -6%;
    z-index: 0;
    height: 48%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: var(--burgundy);
    content: "";
}

.page-index .hero-copy {
    position: relative;
    z-index: 2;
    max-width: 570px;
    padding: 2.5rem 0 3.5rem clamp(2rem, 5vw, 5rem);
}

.page-index .hero-copy .eyebrow {
    width: fit-content;
    margin-bottom: 1.15rem;
    border-radius: 999px;
    background: var(--burgundy);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

.page-index .hero-copy .eyebrow::before {
    display: none;
}

.page-index .hero-copy h1 {
    max-width: 9ch;
    margin-bottom: 1rem;
    font-size: clamp(2.7rem, 5.2vw, 4.7rem);
    line-height: 0.98;
}

.page-index .hero-copy .hero-text {
    max-width: 440px;
    margin-bottom: 1.5rem;
}

.page-index .hero-media {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 430px;
    aspect-ratio: auto;
    clip-path: none;
    border-radius: 0;
    box-shadow: none;
}

.page-index .hero-media::before {
    inset: 18px 18px 18px 0;
    border-color: rgba(255, 255, 255, 0.8);
}

.page-index .hero-media img {
    object-position: 50% center;
}

.page-index .hero-media figcaption {
    right: 26px;
    bottom: 28px;
    left: 26px;
}

.page-index .hero-media::after {
    display: block;
    right: 14%;
    bottom: -17%;
    width: 38%;
    border-width: 7px;
    box-shadow: 0 0 0 7px rgba(23, 60, 99, 0.9);
}

@media (max-width: 760px) {
    .page-index .home-hero {
        padding-top: 26px;
        padding-bottom: 40px;
    }

    .page-index .home-hero .hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .page-index .home-hero .hero-grid::after {
        bottom: -20%;
        height: 30%;
    }

    .page-index .hero-copy {
        max-width: none;
        padding: 2rem 1.4rem 1.2rem;
    }

    .page-index .hero-media {
        min-height: 0;
        aspect-ratio: 1.6 / 1;
        border-radius: 14px;
        clip-path: none;
    }

    .page-index .hero-media::before {
        inset: 12px;
    }

    .page-index .hero-media::after {
        right: 10%;
        bottom: -22%;
        width: 34%;
    }
}

.page-index .stat-item {
    position: relative;
    transition: background 180ms ease, transform 180ms ease;
}

.page-index .stat-item:hover {
    background: #f8fafc;
    transform: translateY(-3px);
}

.page-index .stat-item strong {
    font-family: Georgia, "Times New Roman", serif;
}

.page-index .feature-card {
    position: relative;
    min-height: 220px;
    border: 1px solid #dce8f1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.05);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-index .card-grid.three {
    grid-template-columns: 1.15fr 1fr 1fr;
}

.page-index .feature-card:hover {
    border-color: rgba(23, 105, 170, 0.5);
    box-shadow: 0 16px 32px rgba(16, 32, 51, 0.1);
    transform: translateY(-4px);
}

.page-index .program-row {
    min-height: 72px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--home-accent);
    box-shadow: 0 8px 20px rgba(16, 32, 51, 0.04);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-index .program-row:hover {
    transform: translateX(5px);
    border-color: rgba(23, 105, 170, 0.35);
    border-left-color: var(--home-accent);
    box-shadow: 0 14px 28px rgba(16, 32, 51, 0.08);
}

.page-index .proposition {
    border: 1px solid rgba(23, 105, 170, 0.2);
    border-left: 5px solid var(--home-accent);
    background: var(--white);
    box-shadow: 0 14px 30px rgba(16, 32, 51, 0.07);
}

.page-index .proposition .btn-secondary {
    border-color: var(--home-accent);
    color: var(--home-accent);
    box-shadow: none;
}

.page-index .proposition .btn-secondary:hover {
    background: var(--home-soft);
    color: var(--home-accent);
}

@media (max-width: 760px) {
    .page-index .home-hero::before,
    .page-index .home-hero::after {
        display: none;
    }

    .page-index .home-hero {
        padding-top: 26px;
    }

    .page-index .home-services {
        padding-top: 64px;
    }

    .page-index .home-programs .program-list {
        padding-left: 0;
        border-left: 0;
    }

    .page-index .hero-copy h1 {
        max-width: 10ch;
        font-size: clamp(3rem, 13vw, 4rem);
    }

    .page-index .hero-media {
        aspect-ratio: 1.55 / 1;
        transform: none;
        clip-path: none;
        border-radius: 14px;
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    }

    .page-index .hero-media::after {
        display: none;
    }

    .page-index .hero-media figcaption {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .page-index .feature-card {
        min-height: 0;
    }

    .page-index .card-grid.three {
        grid-template-columns: 1fr;
    }

}

/* Final clean Home hero: calm white canvas, one accent, one visual focal point. */
.page-index .home-hero {
    padding: clamp(54px, 8vw, 108px) 0 clamp(64px, 8vw, 112px);
    background: var(--white);
}

.page-index .home-hero .hero-grid {
    min-height: 0;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.page-index .home-hero .hero-grid::after,
.page-index .hero-media::after {
    display: none;
}

.page-index .hero-copy {
    max-width: 560px;
    padding: 0;
}

.page-index .hero-copy .eyebrow {
    margin-bottom: 1.25rem;
    border-radius: 0;
    background: transparent;
    color: var(--burgundy);
    padding: 0;
    font-size: 0.75rem;
}

.page-index .hero-copy .eyebrow::before {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--burgundy);
}

.page-index .hero-copy h1 {
    max-width: 8.5ch;
    margin-bottom: 1.35rem;
    color: var(--navy);
    font-size: clamp(3rem, 6vw, 5.3rem);
    line-height: 0.98;
}

.page-index .hero-copy .hero-text {
    max-width: 450px;
    margin-bottom: 1.8rem;
    color: var(--slate);
}

.page-index .hero-media {
    min-height: 0;
    aspect-ratio: 1.2 / 1;
    overflow: hidden;
    border: 10px solid #f1f4f7;
    border-radius: 24px;
    clip-path: none;
    box-shadow: 0 22px 52px rgba(23, 60, 99, 0.15);
}

.page-index .hero-media::before {
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 10px;
}

.page-index .hero-media figcaption {
    right: 20px;
    bottom: 20px;
    left: 20px;
    border-left: 3px solid var(--burgundy);
    border-radius: 7px;
}

.page-index .hero-media:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 60px rgba(23, 60, 99, 0.2);
}

@media (max-width: 760px) {
    .page-index .home-hero {
        padding: 36px 0 56px;
    }

    .page-index .home-hero .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-index .hero-copy h1 {
        max-width: 10ch;
        font-size: clamp(2.8rem, 12vw, 4rem);
    }

    .page-index .hero-media {
        aspect-ratio: 1.35 / 1;
        border-radius: 18px;
    }

    .page-index .hero-media-tag {
        top: 18px;
        left: 18px;
    }
}

.page-index .home-hero {
    isolation: isolate;
}

.page-index .home-hero::after {
    position: absolute;
    display: block;
    z-index: 0;
    right: -10%;
    bottom: -1px;
    left: -10%;
    height: 112px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: #f3f6f9;
    content: "";
}

@media (max-width: 760px) {
    .page-index .home-hero::after {
        right: -28%;
        left: -28%;
        height: 76px;
    }
}

.site-footer {
    background: var(--white);
    color: var(--slate);
    padding: 0;
}

.site-footer .footer-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
    padding: 34px 0 88px;
}

.site-footer .footer-cta::before,
.site-footer .footer-cta::after {
    position: absolute;
    right: -10%;
    bottom: -96px;
    left: -12%;
    z-index: -1;
    height: 148px;
    border-radius: 56% 44% 0 0 / 100% 82% 0 0;
    content: "";
    pointer-events: none;
    transform: rotate(-1.4deg);
    transform-origin: center bottom;
}

.site-footer .footer-cta::before {
    bottom: -87px;
    background: var(--blue);
}

.site-footer .footer-cta::after {
    background: var(--white);
}

.site-footer .footer-cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2.5rem;
}

.site-footer .footer-cta-copy {
    max-width: 690px;
}

.site-footer .footer-cta h2 {
    margin: 0 0 0.4rem;
    color: var(--white);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.25;
    text-transform: none;
}

.site-footer .footer-cta p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.96rem;
    line-height: 1.6;
}

.site-footer .footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.site-footer .footer-cta-actions .btn {
    min-height: 46px;
    border-radius: 6px;
    box-shadow: none;
    white-space: nowrap;
}

.site-footer .footer-cta-primary {
    gap: 0.55rem;
    background: var(--burgundy);
    color: var(--white);
}

.site-footer .footer-cta-primary:hover {
    background: #7d1b2b;
}

.site-footer .footer-cta-primary .icon {
    width: 17px;
    height: 17px;
    transition: transform 180ms ease;
}

.site-footer .footer-cta-primary:hover .icon {
    transform: translateX(2px);
}

.site-footer .footer-cta-secondary {
    border-color: rgba(255, 255, 255, 0.62);
    background: transparent;
    color: var(--white);
}

.site-footer .footer-cta-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.09);
}

.site-footer .footer-cta-actions a:focus-visible {
    outline-color: var(--white);
}

.site-footer .footer-main {
    position: relative;
    border-top: 0;
    background: var(--white);
    padding: 54px 0 50px;
}

.site-footer .footer-main::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 72px;
    height: 2px;
    background: var(--burgundy);
    content: "";
    transform: translateX(-50%);
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.65fr) minmax(110px, 0.65fr) minmax(110px, 0.65fr) minmax(250px, 1.3fr);
    align-items: start;
    gap: 2.5rem;
}

.site-footer .footer-brand-block {
    max-width: 390px;
}

.site-footer .footer-brand {
    align-items: center;
    color: var(--navy);
}

.site-footer .footer-brand .brand-logo-wrap {
    width: 52px;
    height: 66px;
    flex: 0 0 52px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.site-footer .footer-brand-copy {
    min-width: 0;
}

.site-footer .footer-brand strong {
    color: var(--navy);
    font-size: 1.12rem;
    line-height: 1.35;
}

.site-footer .footer-brand small {
    display: block;
    margin-top: 0.16rem;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.4;
}

.site-footer .footer-brand-block > p {
    max-width: 360px;
    margin: 1.15rem 0 0;
    color: var(--slate);
    font-size: 0.92rem;
    line-height: 1.7;
}

.site-footer .footer-main h2 {
    margin: 0 0 1rem;
    color: var(--navy);
    font-size: 0.79rem;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
}

.site-footer .footer-list {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .footer-list a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    color: var(--slate);
    font-size: 0.91rem;
    font-weight: 650;
    line-height: 1.4;
}

.site-footer .footer-list a:hover,
.site-footer .footer-bottom a:hover,
.site-footer .footer-contact-content a:hover {
    color: var(--navy);
}

.site-footer .footer-reach address {
    display: grid;
    gap: 1rem;
    margin: 0;
    font-style: normal;
}

.site-footer .footer-contact-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: 0.7rem;
}

.site-footer .footer-contact-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(45, 88, 131, 0.16);
    border-radius: 6px;
    background: #f3f6f9;
    color: var(--blue);
}

.site-footer .footer-contact-icon .icon {
    width: 16px;
    height: 16px;
}

.site-footer .footer-contact-content {
    display: grid;
    min-width: 0;
    color: var(--slate);
    font-size: 0.87rem;
    line-height: 1.55;
}

.site-footer .footer-contact-label {
    margin-bottom: 0.1rem;
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.site-footer .footer-contact-content a,
.site-footer .footer-contact-content span {
    overflow-wrap: anywhere;
}

.site-footer .footer-contact-content a {
    width: fit-content;
    max-width: 100%;
    color: var(--blue);
    font-weight: 700;
}

.site-footer .footer-legal {
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.site-footer .footer-bottom {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
    color: #5c6f82;
    font-size: 0.82rem;
    line-height: 1.5;
}

.site-footer .footer-bottom a {
    color: var(--blue);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.site-footer a {
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-footer .footer-main a:focus-visible,
.site-footer .footer-legal a:focus-visible {
    outline-color: var(--navy);
}

@media (max-width: 980px) {
    .site-footer .footer-cta-inner {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .site-footer .footer-cta-actions {
        justify-content: flex-start;
    }

    .site-footer .footer-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
        gap: 2.5rem 3.5rem;
    }

    .site-footer .footer-brand-block {
        max-width: 430px;
    }
}

@media (max-width: 760px) {
    .site-footer .footer-cta {
        padding: 30px 0 76px;
    }

    .site-footer .footer-cta::before,
    .site-footer .footer-cta::after {
        right: -28%;
        bottom: -63px;
        left: -34%;
        height: 98px;
        border-radius: 60% 40% 0 0 / 100% 78% 0 0;
        transform: rotate(-2.4deg);
    }

    .site-footer .footer-cta::before {
        bottom: -56px;
    }

    .site-footer .footer-cta h2 {
        font-size: 1.45rem;
    }

    .site-footer .footer-cta-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .site-footer .footer-cta-actions .btn {
        width: 100%;
        min-height: 48px;
        white-space: normal;
    }

    .site-footer .footer-main {
        padding: 40px 0 36px;
    }

    .site-footer .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .site-footer .footer-brand-block {
        max-width: none;
        padding-bottom: 2rem;
    }

    .site-footer .footer-brand {
        align-items: flex-start;
    }

    .site-footer .footer-brand .brand-logo-wrap {
        width: 48px;
        height: 62px;
        flex-basis: 48px;
    }

    .site-footer .footer-brand-block > p {
        max-width: 520px;
    }

    .site-footer .footer-nav,
    .site-footer .footer-reach {
        border-top: 1px solid var(--line);
        padding: 1.5rem 0;
    }

    .site-footer .footer-reach {
        padding-bottom: 0;
    }

    .site-footer .footer-main h2 {
        margin-bottom: 0.65rem;
    }

    .site-footer .footer-list {
        gap: 0;
    }

    .site-footer .footer-list a,
    .site-footer .footer-contact-content a {
        min-height: 44px;
        align-items: center;
    }

    .site-footer .footer-reach address {
        gap: 0.85rem;
    }

    .site-footer .footer-contact-item {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .site-footer .footer-contact-icon {
        width: 36px;
        height: 36px;
    }

    .site-footer .footer-bottom {
        display: grid;
        min-height: 0;
        justify-content: stretch;
        gap: 0.15rem;
        padding: 16px 0;
    }

    .site-footer .footer-bottom a {
        display: flex;
        min-height: 44px;
        align-items: center;
        width: fit-content;
        max-width: 100%;
    }
}

/* Final Home banner: a full-viewport composition with one localized curved field. */
.page-index .home-hero {
    box-sizing: border-box;
    min-height: calc(100vh - 78px);
    min-height: calc(100svh - 78px);
    min-height: calc(100dvh - 78px);
    display: grid;
    align-items: stretch;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(34px, 4.4vh, 54px) 0 clamp(58px, 7.5vh, 92px);
    background: var(--white);
}

.page-index .home-hero::before,
.page-index .home-hero::after {
    display: none;
    content: none;
}

.page-index .home-hero .hero-grid {
    position: relative;
    z-index: 1;
    min-height: 0;
    grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
    align-self: stretch;
    align-items: center;
    gap: clamp(2.5rem, 5.5vw, 5.75rem);
}

.page-index .home-hero .hero-grid::after,
.page-index .hero-media::after {
    display: none;
}

.page-index .hero-copy {
    z-index: 2;
    align-self: start;
    max-width: 570px;
    padding: clamp(20px, 3.5vh, 38px) 0 clamp(30px, 5vh, 58px);
}

.page-index .hero-copy .eyebrow {
    margin-bottom: clamp(0.9rem, 2vh, 1.25rem);
}

.page-index .hero-copy h1 {
    max-width: 8.8ch;
    margin-bottom: clamp(1rem, 2.2vh, 1.35rem);
    font-size: clamp(3.35rem, 5.25vw, 5.15rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.page-index .hero-copy .hero-text {
    max-width: 460px;
    margin-bottom: 0;
    line-height: 1.58;
}

.page-index .home-hero .hero-actions {
    position: relative;
    z-index: 2;
    margin-top: clamp(1.35rem, 2.8vh, 1.8rem);
}

.page-index .hero-visual {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    align-self: start;
    justify-self: end;
    isolation: isolate;
    margin: clamp(84px, 13vh, 140px) -10px 0 0;
}

.page-index .hero-visual::before {
    position: absolute;
    z-index: 0;
    right: -4vw;
    bottom: clamp(-130px, -11vh, -88px);
    width: clamp(500px, 40vw, 640px);
    aspect-ratio: 1.52 / 1;
    border-radius: 72% 0 0 24% / 82% 0 0 34%;
    background: #eaf3f8;
    content: "";
    pointer-events: none;
}

.page-index .hero-media {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1.24 / 1;
    margin: 0;
    overflow: hidden;
    border: 6px solid #f2f6f9;
    border-radius: 14px;
    background: #dfe8ef;
    box-shadow: 0 18px 38px rgba(23, 60, 99, 0.11);
}

.page-index .hero-media::before {
    inset: 13px;
    border-color: rgba(255, 255, 255, 0.82);
    border-radius: 7px;
}

.page-index .hero-media img {
    object-position: 64% center;
}

.page-index .hero-media figcaption {
    right: 18px;
    bottom: 18px;
    left: 18px;
}

.page-index .hero-media:hover {
    transform: translateY(-4px);
    box-shadow: 0 29px 62px rgba(23, 60, 99, 0.21);
}

.site-footer .footer-cta {
    padding: 34px 0;
}

.site-footer .footer-cta::before,
.site-footer .footer-cta::after {
    display: none;
}

@media (max-width: 960px) {
    .page-index .home-hero {
        padding-top: 38px;
    }

    .page-index .home-hero .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-index .hero-copy {
        max-width: 700px;
        padding-bottom: 0;
    }

    .page-index .hero-visual {
        width: min(100%, 720px);
        justify-self: center;
        margin: 0;
    }

    .page-index .hero-visual::before {
        right: -5vw;
        bottom: -70px;
        width: 62%;
    }

    .page-index .hero-media {
        aspect-ratio: 1.58 / 1;
    }
}

@media (max-width: 760px) {
    .page-index .home-hero {
        min-height: calc(100vh - 68px);
        min-height: calc(100svh - 68px);
        min-height: calc(100dvh - 68px);
        padding: clamp(26px, 4.5vh, 38px) 0 clamp(24px, 4vh, 38px);
    }

    .page-index .home-hero .hero-grid {
        gap: clamp(1.5rem, 4.5vh, 2rem);
    }

    .page-index .hero-copy h1 {
        max-width: 9.6ch;
        font-size: clamp(2.55rem, 11.5vw, 3.25rem);
        line-height: 0.99;
    }

    .page-index .hero-copy .hero-text {
        font-size: 1rem;
        line-height: 1.55;
    }

    .page-index .home-hero .hero-actions {
        margin-top: 1.35rem;
    }

    .page-index .hero-media {
        width: 100%;
        aspect-ratio: 1.38 / 1;
        border-width: 8px;
        border-radius: 13px;
    }

    .page-index .hero-visual::before {
        right: -10%;
        bottom: -42px;
        width: 54%;
    }

    .page-index .hero-media img {
        object-position: 64% center;
    }

    .page-index .hero-media::before {
        inset: 11px;
    }

    .page-index .hero-media figcaption {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .site-footer .footer-cta {
        padding: 30px 0;
    }
}

/* Mobile first-view fit: keep the complete banner composition within 390 x 844. */
@media (max-width: 760px) {
    .page-index .home-hero {
        padding: 18px 0 20px;
    }

    .page-index .home-hero .hero-grid {
        align-self: start;
        align-content: start;
        align-items: start;
        gap: 14px;
    }

    .page-index .hero-copy {
        padding: 0;
    }

    .page-index .hero-copy .eyebrow {
        margin-bottom: 0.65rem;
        font-size: 0.7rem;
        line-height: 1.35;
    }

    .page-index .hero-copy h1 {
        margin-bottom: 0.75rem;
        font-size: clamp(2.35rem, 10.25vw, 2.7rem);
        line-height: 1;
    }

    .page-index .hero-copy .hero-text {
        font-size: 0.95rem;
        line-height: 1.46;
    }

    .page-index .home-hero .hero-actions {
        gap: 0.5rem;
        margin-top: 0.9rem;
    }

    .page-index .home-hero .btn {
        min-height: 44px;
    }

    .page-index .hero-media {
        aspect-ratio: 1.55 / 1;
        border-width: 5px;
    }
}

/* Homepage services color pass. */
.page-index .home-services {
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fafc 54%, #ffffff 100%);
}

.page-index .home-services .section-heading .eyebrow {
    color: var(--burgundy);
}

.page-index .home-services .feature-card {
    overflow: hidden;
    border-color: rgba(152, 34, 53, 0.16);
    border-radius: 8px;
    background:
        radial-gradient(circle at 100% 0, rgba(152, 34, 53, 0.1), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #fff7f9 100%);
    box-shadow:
        0 18px 42px rgba(23, 60, 99, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.page-index .home-services .feature-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, #982235, #c26778);
    content: "";
}

.page-index .home-services .feature-card:nth-child(2) {
    border-color: rgba(181, 125, 37, 0.22);
    background:
        radial-gradient(circle at 100% 0, rgba(181, 125, 37, 0.13), transparent 35%),
        linear-gradient(145deg, #ffffff 0%, #fffaf0 100%);
}

.page-index .home-services .feature-card:nth-child(2)::before {
    background: linear-gradient(90deg, #b57d25, #d7a94f);
}

.page-index .home-services .feature-card:nth-child(3) {
    border-color: rgba(23, 60, 99, 0.2);
    background:
        radial-gradient(circle at 100% 0, rgba(23, 60, 99, 0.1), transparent 35%),
        linear-gradient(145deg, #ffffff 0%, #f4f8fc 100%);
}

.page-index .home-services .feature-card:nth-child(3)::before {
    background: linear-gradient(90deg, #173c63, #5f7fa0);
}

.page-index .home-services .service-icon {
    border-color: rgba(152, 34, 53, 0.22);
    background: #fff2f5;
    color: var(--burgundy);
    box-shadow: 0 10px 24px rgba(152, 34, 53, 0.1);
}

.page-index .home-services .feature-card:nth-child(2) .service-icon {
    border-color: rgba(181, 125, 37, 0.28);
    background: #fff4dc;
    color: #9a6418;
    box-shadow: 0 10px 24px rgba(181, 125, 37, 0.1);
}

.page-index .home-services .feature-card:nth-child(3) .service-icon {
    border-color: rgba(23, 60, 99, 0.24);
    background: #eef4fa;
    color: var(--navy);
    box-shadow: 0 10px 24px rgba(23, 60, 99, 0.1);
}

.page-index .home-services .feature-card h3 {
    color: var(--navy);
}

.page-index .home-services .feature-card:hover {
    border-color: rgba(152, 34, 53, 0.32);
    box-shadow:
        0 24px 54px rgba(23, 60, 99, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.page-index .home-services .feature-card:nth-child(2):hover {
    border-color: rgba(181, 125, 37, 0.38);
}

.page-index .home-services .feature-card:nth-child(3):hover {
    border-color: rgba(23, 60, 99, 0.34);
}

.page-index .home-services .text-link {
    color: var(--burgundy);
}

.page-index .home-services .text-link::after {
    background: var(--burgundy);
}
