/* ============================================================
   HERO
============================================================ */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40vh;
    overflow: hidden;
    background: var(--blue-background);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background: rgba(10, 20, 35, 0.5);
}

.hero .wrap {
    position: relative;
    z-index: 2;
}

.hero .eyebrow {
    margin-bottom: 14px;
}

.hero-title {
    margin: 0;

    color: var(--white-text);

    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}


/* ============================================================
   SECTION HEAD
============================================================ */

.section-head {
    display: flex;
    gap: 16px;

    margin-bottom: 40px;
}

.section-head h2 {
    margin: 0;

    color: var(--navy);

    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 30px);
    font-weight: 600;
    line-height: 1.2;
}

.center-heading {
    text-align: center;
}


/* ============================================================
   MAP
============================================================ */

.map-section {
    padding: 0;
}

.map-frame {
    display: block;

    width: 100%;
    height: 420px;

    border: 0;
}


/* ============================================================
   CONTACT SECTION
============================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 60px;

    align-items: center;
}

.contact-info h2 {
    margin: 0 0 12px;

    color: var(--navy);

    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.2;
}

.contact-info p.subheading {
    max-width: 40ch;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}


/* ============================================================
   CONTACT FORM
============================================================ */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;

    padding: 28px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: var(--paper-warm);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.form-field label {
    display: block;

    margin-bottom: 6px;

    color: var(--muted);

    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-field input,
.form-field textarea {
    width: 100%;

    border: 1px solid var(--line);
    border-radius: 8px;

    padding: 11px 12px;

    color: var(--ink);
    background: #fff;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field input {
    min-height: 44px;
}

.form-field textarea {
    min-height: 110px;

    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(213, 49, 39, 0.08);
}


/* ============================================================
   FORM BUTTON
============================================================ */

.btn-submit {
    width: 100%;

    border: 0;
    border-radius: 8px;

    padding: 14px;

    color: var(--paper);
    background: var(--primary);

    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;

    letter-spacing: 0.05em;
    text-transform: uppercase;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-submit:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.form-msg {
    min-height: 1em;

    margin: 0;

    color: var(--brick);

    font-size: 0.82rem;
}


/* ============================================================
   OFFICE
============================================================ */

.office-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px, 1fr)
        );

    gap: 24px;
}

.office-card {
    padding: 28px;

    border: 1px solid var(--line);
    border-radius: 10px;

    text-align: center;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.office-card:hover {
    transform: translateY(-3px);

    border-color: var(--primary-soft);

    box-shadow: var(--shadow-sm);
}

.office-card h3 {
    margin: 0 0 10px;

    color: var(--navy);

    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.office-card p {
    margin: 0 0 8px;
    color: var(--muted);

    font-size: 14px;
    line-height: 1.5;
}

.office-card a {
    color: var(--brick);

    font-family: var(--font-mono);
    font-size: 0.85rem;

    letter-spacing: 0.05em;
    text-transform: uppercase;

    border-bottom: 1px solid currentColor;

    transition: color 0.2s ease;
}

.office-card a:hover {
    color: var(--primary);
}


/* ============================================================
   CTA
============================================================ */

.cta-section {
    margin-top: 0;

    padding: 80px 0;

    background: var(--paper-warm);
}

.cta-grid {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    flex-wrap: wrap;
}

.cta-grid h2 {
    margin: 0 0 8px;

    color: var(--navy);

    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
}

.cta-grid p {
    max-width: 46ch;

    margin: 0;

    color: var(--muted);

    line-height: 1.6;
}

.cta-actions {
    display: flex;

    align-items: center;

    gap: 14px;

    flex-wrap: wrap;
}


/* ============================================================
   PHONE LINK
============================================================ */

.phone-link {
    display: inline-block;

    padding-bottom: 2px;

    color: var(--ink);

    border-bottom: 1px solid var(--brick);

    font-family: var(--font-mono);
    font-size: 1.05rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.phone-link:hover {
    color: var(--brick);
    transform: translateY(-1px);
}


/* ============================================================
   CTA BUTTON
============================================================ */

.cta-btn.solid-dark {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 12px 28px;

    border: 1px solid var(--navy-deep);
    border-radius: 8px;

    color: var(--paper);
    background: var(--navy-deep);

    font-family: var(--font-display);
    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.cta-btn.solid-dark:hover {
    background: var(--primary-dark);
    border-color: var(--primary);

    color: var(--white-text);

    transform: translateY(-2px);
}

/* ============================================================
   TABLET
   1024px and below
============================================================ */

@media (max-width: 1024px) {

    /* --------------------------------------------------------
       HERO
    -------------------------------------------------------- */

    .hero {
        min-height: 36vh;
    }

    .hero-title {
        font-size: clamp(1.9rem, 5vw, 2.8rem);
    }


    /* --------------------------------------------------------
       SECTION HEAD
    -------------------------------------------------------- */

    .section-head {
        margin-bottom: 32px;
    }

    .section-head h2 {
        font-size: 28px;
    }


    /* --------------------------------------------------------
       MAP
    -------------------------------------------------------- */

    .map-frame {
        height: 360px;
    }


    /* --------------------------------------------------------
       CONTACT
    -------------------------------------------------------- */

    .contact-grid {
        gap: 36px;
    }

    .contact-info h2 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .contact-form {
        padding: 24px;
    }

    .form-row {
        gap: 12px;
    }


    /* --------------------------------------------------------
       OFFICE
    -------------------------------------------------------- */

    .office-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .office-card {
        padding: 24px;
    }


    /* --------------------------------------------------------
       CTA
    -------------------------------------------------------- */

    .cta-section {
        padding: 64px 0;
    }

    .cta-grid {
        gap: 24px;
    }

}


/* ============================================================
   MOBILE
   768px and below
============================================================ */

@media (max-width: 768px) {

    /* --------------------------------------------------------
       HERO
    -------------------------------------------------------- */

    .hero {
        min-height: 44vh;
        display: flex;
        align-content: center;
    }

    .hero-title {
        max-width: 20ch;
        text-align: center;
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        line-height: 1.15;
    }

    .hero .eyebrow {
        margin-bottom: 10px;
        display: flex;
        justify-content: center;
    }


    /* --------------------------------------------------------
       SECTION HEAD
    -------------------------------------------------------- */
    .section-head h2 {
        font-size: 24px;
        line-height: 1.25;
        text-align: center;
    }


    /* --------------------------------------------------------
       MAP
    -------------------------------------------------------- */

    .map-frame {
        height: 300px;
    }


    /* --------------------------------------------------------
       CONTACT
    -------------------------------------------------------- */

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: stretch;
    }
    .contact-info p{
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .contact-info h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .contact-info p.subheading {
        max-width: 100%;
    }

    .contact-form {
        padding: 20px;
        gap: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-field input,
    .form-field textarea {
        font-size: 14px;
    }


    /* --------------------------------------------------------
       OFFICE
    -------------------------------------------------------- */

    .office-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .office-card {
        padding: 22px;
    }

    .office-card h3 {
        font-size: 1.15rem;
    }


    /* --------------------------------------------------------
       CTA
    -------------------------------------------------------- */

    .cta-section {
        padding: 52px 0;
    }

    .cta-grid {
        flex-direction: column;
        align-items: flex-start;

        gap: 24px;
    }

    .cta-grid h2 {
        font-size: 1.6rem;
    }

    .cta-grid p {
        max-width: 100%;
        font-size: 14px;
    }

    .cta-actions {
        width: 100%;

        flex-direction: column;
        align-items: stretch;

        gap: 12px;
    }

    .phone-link {
        width: fit-content;
        font-size: 1rem;
    }

    .cta-btn.solid-dark {
        width: 100%;
    }

}
