.contact-page {
    z-index: 1;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

/* =========================================================
   HERO
========================================================= */

.contact-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 130px clamp(24px, 8vw, 120px) 90px;
    color: var(--white);
    isolation: isolate;
}

.contact-hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    filter: saturate(.88) contrast(1.05);
    transform: scale(1.02);
}

.contact-hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(105deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .38) 48%, rgba(0, 0, 0, .16)),
        linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .76));
    backdrop-filter: blur(0px);
}

.contact-hero-content {
    width: min(1180px, 100%);
    margin: 0 auto;
    animation: riseIn .8s ease both;
}

.contact-hero .eyebrow {
    color: var(--white);
}

.contact-hero h1 {
    max-width: 980px;
    margin: 0 0 24px;
    color: var(--white);
    font-size: clamp(46px, 6.8vw, 75px);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.045em;
    /* text-transform: uppercase; */
    text-shadow: 0 8px 30px rgba(0, 0, 0, .52);
}

.contact-hero-content > p:not(.eyebrow) {
    max-width: 780px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, .9);
    font-size: 22px;
    font-weight: 750;
    line-height: 1.38;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .42);
}

.btn-home:hover {
    background: linear-gradient(135deg, rgba(246, 184, 15, .94), rgba(223, 151, 0, .84));
    border-color: rgba(255, 255, 255, .28);
    transform: translateY(3px);
}

/* =========================================================
   GLOBAL
========================================================= */

.agencies-section,
.contact-form-section{
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: clamp(28px, 7vw, 120px);
    padding-right: clamp(28px, 7vw, 120px);
}

.agencies-section,
.contact-form-section {
    padding-top: clamp(76px, 8vw, 120px);
    padding-bottom: clamp(76px, 8vw, 120px);
}

.section-heading {
    max-width: 920px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading .eyebrow {
    color: var(--yellow-dark);
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(34px, 4.4vw, 62px);
    line-height: .98;
}

/* =========================================================
   AGENCIES
========================================================= */

.agencies-section {
    background: linear-gradient(90deg, rgba(20, 22, 24, .035) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(180deg, #ffffff, #f2f4f5);

}

.agency-cards {
    max-width: 1480px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
}

.agency-card {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    display: grid;
    grid-template-rows: 270px 1fr;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(20, 20, 20, .08);
    border-radius: 28px;
    box-shadow: 0 18px 52px rgba(15, 18, 20, .10);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.agency-card:hover {
    transform: translateY(-8px);
    border-color: rgba(246, 184, 15, .45);
    box-shadow: 0 30px 86px rgba(15, 18, 20, .16);
}

.agency-card-image {
    position: relative;
    overflow: hidden;
    background: #dfe4e7;
}

.agency-card-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .26));
}

.agency-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.95) contrast(1.05);
    transition: transform .62s ease, filter .25s ease;
}

.agency-card:hover .agency-card-image img {
    transform: scale(1.08);
    filter: saturate(1.1) contrast(1.08);
}

.agency-card-content {
    position: relative;
    z-index: 3;
    padding: 34px 30px 36px;
}

.agency-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 9px 13px;
    color: var(--black);
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.agency-card h3 {
    margin: 0 0 24px;
    color: var(--ink);
    font-size: clamp(25px, 2.5vw, 34px);
    font-weight: 900;
    line-height: 1;
}

.agency-card ul {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.agency-card li {
    display: grid;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(20, 20, 20, .08);
}

.agency-card li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.agency-card strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.agency-card span,
.agency-card a {
    color: var(--muted);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.45;
    text-decoration: none;
}

.agency-card a:hover {
    color: var(--yellow-dark);
}

/* =========================================================
   FORM
========================================================= */

.contact-form-section {
    display: grid;
    grid-template-columns: minmax(420px, .82fr) minmax(560px, 1.18fr);
    gap: clamp(36px, 6vw, 86px);
    align-items: start;
    color: var(--white);
    /* background:
        radial-gradient(circle at 12% 12%, rgba(246, 184, 15, .22), transparent 30%),
        linear-gradient(135deg, #17191b, #303538); */
    background:#161719;

}

.form-content {
    position: sticky;
    top: 110px;
    max-width: 780px;
}

.form-content .eyebrow {
    color: var(--white);
}

.form-content h2 {
    margin-bottom: 24px;
    color: var(--white);
    font-size: clamp(34px, 4.4vw, 62px);
    line-height: .98;
}

.form-content p {
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.78;
}

.direct-contact {
    display: grid;
    gap: 6px;
    width: fit-content;
    margin-top: 28px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, .075);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
}

.direct-contact span {
    color: var(--yellow);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.direct-contact a {
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
}

.direct-contact a:hover {
    color: var(--yellow);
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: clamp(28px, 4vw, 44px);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row {
    display: grid;
    gap: 9px;
}

.form-row label {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid rgba(20, 20, 20, .10);
    border-radius: 16px;
    font: inherit;
    font-weight: 700;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.form-row textarea {
    min-height: 180px;
    padding-top: 16px;
    resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: rgba(246, 184, 15, .72);
    box-shadow: 0 0 0 5px rgba(246, 184, 15, .16);
}

.contact-form .btn {
    width: fit-content;
    margin-top: 8px;
    border: 0;
    cursor: pointer;
}

.contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form-message {
    padding: 15px 18px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 600;
}

.contact-form-message--success {
    background: #edf8ef;
    border: 1px solid #acd7b4;
}

.contact-form-message--error {
    background: #fff0f0;
    border: 1px solid #e1aaaa;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
    .contact-form-section {
        grid-template-columns: 1fr;
    }

    .form-content {
        position: static;
    }

    .agency-cards {
        grid-template-columns: 1fr;
    }

    .agency-card {
        min-height: auto;
        grid-template-columns: minmax(340px, .85fr) minmax(420px, 1.15fr);
        grid-template-rows: 1fr;
    }
}

@keyframes mobileHeroBackground {
    from {
        background-position: 0% center;
    }

    to {
        background-position: 100% center;
    }
}

@media (max-width: 900px) {
    .contact-hero {
        min-height: 100vh;
        padding: 110px 22px 70px;
    }

    
    .contact-hero::before {
        background-position: 0% center;
        animation: mobileHeroBackground 18s ease-in-out infinite alternate;
    }

    .contact-hero h1 {
        font-size: clamp(42px, 10vw, 72px);
    }

    .agencies-section,
    .contact-form-section {
        padding-left: 22px;
        padding-right: 22px;
    }

    .agencies-section,
    .contact-form-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .section-heading h2,
    .form-content h2 {
        font-size: clamp(32px, 7vw, 46px);
    }

    .agency-card {
        grid-template-columns: 1fr;
        grid-template-rows: 260px 1fr;
        border-radius: 24px;
    }
}

@media (max-width: 560px) {
    .contact-hero {
        min-height: 100vh;
        padding: 96px 18px 58px;
    }

    .contact-hero h1 {
        font-size: 42px;
    }

    .contact-hero-content > p:not(.eyebrow) {
        font-size: 18px;
    }

    .agencies-section,
    .contact-form-section {
        padding: 58px 18px;
    }

    .form-content p {
        font-size: 16px;
        line-height: 1.68;
    }

    .agency-card {
        grid-template-rows: 220px 1fr;
        border-radius: 20px;
    }

    .agency-card-content {
        padding: 28px 22px 30px;
    }

    .agency-card h3 {
        font-size: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .direct-contact {
        width: 100%;
    }

    .direct-contact a {
        font-size: 18px;
        word-break: break-word;
    }

}

@media (max-width: 420px) {
    .contact-hero h1 {
        font-size: 36px;
    }
}