/* ==============================
   Base
   ============================== */

:root {
    --navy: #1E3A8A;
    --teal: #0F766E;
    --text: #1F2937;
    --muted: #5B6472;
    --background: #FFFFFF;
    --border: #E5E7EB;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

.container {
    width: min(100% - 48px, var(--container-width));
    margin-inline: auto;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ==============================
   Header
   ============================== */

.site-header {
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.wordmark-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.wordmark-logo img {
    display: block;
    height: 64px;
    width: auto;
}


/* ==============================
   Navigation
   ============================== */

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-nav a:not(.nav-current)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.site-nav a:not(.nav-current):hover,
.site-nav a:not(.nav-current):focus-visible {
    color: var(--teal);
}

.site-nav a:not(.nav-current):hover::after,
.site-nav a:not(.nav-current):focus-visible::after {
    transform: scaleX(1);
}

.nav-current {
    min-height: 40px !important;
    padding: 0 18px !important;
    border: 1px solid var(--navy);
    color: var(--navy) !important;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-current:hover,
.nav-current:focus-visible {
    background: var(--navy);
    border-color: var(--navy);
    color: #FFFFFF !important;
}


/* ==============================
   Nav Toggle (mobile hamburger)
   ============================== */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
    overflow: hidden;
}


/* ==============================
   Shared Typography
   ============================== */

.eyebrow {
    margin: 0 0 24px;
    color: var(--teal);
    font-family: "Archivo", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
}


/* ==============================
   Services Hero
   ============================== */

.services-hero-visual {
    display: block;
}

/* ==============================
   What We Do
   ============================== */

.what-we-do {
    padding: 96px 0 112px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    max-width: 760px;
    margin-bottom: 56px;
}

.section-header .eyebrow {
    margin-bottom: 20px;
}

.section-header h2,
.approach-header h2,
.process-header h2,
.process-cta-inner h2,
.about-content-inner h2,
.practice-teaser-header h2,
.process-teaser-header h2,
.faq-teaser-header h2 {
    margin: 0;
    color: var(--navy);
    font-family: "Archivo", sans-serif;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
}


/* Practice Areas */

.practice-list {
    border-top: 1px solid var(--border);
}

.practice-item {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 72px;
    padding: 34px 0;
    border-bottom: 1px solid var(--border);
}

.practice-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}

.practice-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.practice-icon circle,
.practice-icon rect,
.practice-icon line,
.practice-icon path {
    stroke: var(--teal);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.practice-heading h3 {
    margin: 0;
    color: var(--navy);
    font-family: "Archivo", sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
}

.practice-body {
    max-width: 650px;
}

.practice-body p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}


/* ==============================
   Practice Areas Teaser (Home)
   ============================== */

.practice-teaser {
    padding: 96px 0 112px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.practice-teaser-header {
    max-width: 640px;
}

.practice-teaser-header .eyebrow {
    margin-bottom: 20px;
}

.practice-teaser-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.practice-teaser-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.practice-teaser-item:hover,
.practice-teaser-item:focus-visible {
    border-color: var(--teal);
    background: #F5F8FF;
}

.practice-teaser-item .practice-icon {
    width: 32px;
    height: 32px;
}

.practice-teaser-item span {
    color: var(--navy);
    font-family: "Archivo", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.teaser-link {
    position: relative;
    display: inline-block;
    margin-top: 40px;
    padding-bottom: 2px;
    color: var(--teal);
    font-family: "Archivo", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--teal);
}


/* ==============================
   Process Teaser (Home)
   ============================== */

.process-teaser {
    padding: 96px 0 112px;
}

.process-teaser-header {
    max-width: 640px;
}

.process-teaser-header .eyebrow {
    margin-bottom: 20px;
}

.process-teaser-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 56px;
}

.process-teaser-step .process-number {
    display: block;
    margin-bottom: 16px;
}

.process-teaser-step h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-family: "Archivo", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.process-teaser-step p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}


/* ==============================
   FAQ Teaser (Home)
   ============================== */

.faq-teaser {
    padding: 96px 0 112px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.faq-teaser-header {
    max-width: 640px;
}

.faq-teaser-header .eyebrow {
    margin-bottom: 20px;
}

.faq-list.faq-teaser-list {
    margin: 56px 0 0;
    max-width: none;
}


/* ==============================
   Meridian Approach
   ============================== */

.meridian-approach {
    padding: 112px 0 120px;
}

.approach-inner {
    display: grid;
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
    gap: 96px;
    align-items: start;
}

.approach-header {
    position: sticky;
    top: 32px;
}

.approach-header .eyebrow {
    margin-bottom: 20px;
}

.approach-content > p,
.about-content-inner p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.about-content-inner p + p {
    margin-top: 24px;
}


/* Approach Values */

.approach-values {
    margin-top: 52px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 16px;
}

.approach-values span {
    position: relative;
    padding: 0 24px;
    color: var(--navy);
    font-family: "Archivo", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.approach-values span:first-child {
    padding-left: 0;
}

.approach-values span:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: var(--border);
}


/* ==============================
   Buttons
   ============================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.button-primary {
    margin-top: 36px;
    background: var(--navy);
    color: #FFFFFF;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--teal);
}


/* ==============================
   Hero (Home + Process)
   ============================== */

.hero,
.services-hero,
.about-hero {
    padding: 100px 0 64px;
}

.hero-grid,
.services-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 80px;
}

.hero-content,
.services-hero-content {
    max-width: 680px;
}

.hero h1,
.services-hero h1,
.consultation-header h1,
.about-header h1 {
    margin: 0;
    color: var(--navy);
    font-family: "Archivo", sans-serif;
    font-size: clamp(44px, 5vw, 58px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.hero-copy,
.services-hero-copy,
.consultation-copy,
.about-copy {
    max-width: 620px;
    margin: 32px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
}

/* ==============================
   About Page
   ============================== */

.about-intro {
    max-width: 760px;
}

.about-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-left: 48px;
    border-left: 3px solid var(--teal);
}

.about-quote p {
    margin: 0;
    color: var(--navy);
    font-family: "Archivo", sans-serif;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.about-quote p + p {
    margin-top: 24px;
}

.about-section {
    padding: 64px 0;
    border-top: 1px solid var(--border);
}

.about-container {
    max-width: 760px;
}

.about-section h2 {
    margin: 0 0 32px;
    color: var(--navy);
    font-family: "Archivo", sans-serif;
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.about-section p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.about-section p:last-child {
    margin-bottom: 0;
}

/* ==============================
   Process Steps
   ============================== */

.process-section {
    padding: 112px 0 120px;
}

.process-header {
    max-width: 760px;
    margin-bottom: 56px;
}

.process-header .eyebrow {
    margin-bottom: 20px;
}

.process-list {
    border-top: 1px solid var(--border);
}

.process-step {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.process-number {
    color: var(--teal);
    font-family: "Archivo", sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
}

.process-content h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-family: "Archivo", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.process-content p {
    margin: 0;
    max-width: 640px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}


/* ==============================
   Process CTA
   ============================== */

.process-cta {
    padding: 96px 0;
}

.process-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 56px 64px;
    background: var(--navy);
}

.process-cta-inner .eyebrow {
    margin: 0 0 16px;
    color: #7DD3C0;
}

.process-cta-inner h2 {
    color: #FFFFFF;
}

.process-cta-inner p:not(.eyebrow) {
    max-width: 480px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.7;
}

.process-cta-inner .hero-actions {
    flex-shrink: 0;
}

.process-cta-inner .button-primary {
    background: var(--teal);
}

.process-cta-inner .button-primary:hover,
.process-cta-inner .button-primary:focus-visible {
    background: #FFFFFF;
    color: var(--navy);
}


/* ==============================
   Consultation (Contact)
   ============================== */

.consultation {
    padding: 100px 0 120px;
}

.consultation-header,
.about-header {
    max-width: 700px;
    margin: 0 auto 64px;
    text-align: center;
}

.consultation-header .eyebrow {
    margin-bottom: 20px;
}

.consultation-copy,
.about-copy {
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: start;
}

.consultation-form {
    display: flex;
    justify-content: center;
}

.consultation-form iframe {
    width: 100%;
    max-width: 640px;
    height: 900px;
    border: none;
}


/* ==============================
   About Content
   ============================== */

.about-content {
    padding: 0 0 120px;
}

.about-content-inner {
    max-width: 760px;
    margin: 0 auto;
}

.about-content-inner h2:not(:first-child) {
    margin-top: 64px;
}

.about-content-inner h2 {
    margin-bottom: 24px;
}


/* ==============================
   FAQ
   ============================== */

.faq-section {
    padding: 100px 0 120px;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    color: var(--navy);
    font-family: "Archivo", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: "";
}

.faq-toggle {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.faq-toggle::before,
.faq-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--teal);
    transform: translate(-50%, -50%);
}

.faq-toggle::before {
    width: 14px;
    height: 2px;
}

.faq-toggle::after {
    width: 2px;
    height: 14px;
}

.faq-item[open] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    margin: 0 0 28px;
    max-width: 720px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.faq-answer a {
    color: var(--teal);
    text-decoration: underline;
}


/* ==============================
   Page Hero Image
   ============================== */

.page-hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

/* On the text+image hero layouts, stretch the image to fill the
   row exactly instead of centering a fixed-ratio box within it -
   this is what removes the whitespace above/below the image when
   the text column is taller than a 4:3 box would be. */
.hero-grid .page-hero-image,
.services-hero-grid .page-hero-image {
    aspect-ratio: unset;
    height: 100%;
}

.page-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==============================
   Site Footer
   ============================== */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.site-footer p {
    margin: 0;
    color: var(--navy);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}


/* ==============================
   Responsive
   ============================== */

@media (max-width: 900px) {

    .header-inner {
        gap: 28px;
    }

    .site-nav {
        gap: 20px;
    }

    .site-nav a {
        font-size: 14px;
    }

    .services-hero-grid,
    .hero-grid {
        gap: 56px;
    }

    .practice-item {
        gap: 48px;
    }

    .approach-inner {
        gap: 64px;
    }

    .contact-grid {
        gap: 40px;
    }

    .process-cta-inner {
        padding: 48px;
    }

}


@media (max-width: 800px) {

    .header-inner {
        min-height: 80px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 18px;
        padding: 18px 0;
        position: relative;
    }

    .wordmark-logo img {
        height: 38px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--background);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 32px -16px rgba(15, 23, 42, 0.2);
        max-height: 0;
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.2s ease;
        z-index: 40;
    }

    .site-nav.is-open {
        max-height: calc(100vh - 80px);
        opacity: 1;
        pointer-events: auto;
    }

    .site-footer {
        padding: 24px 0;
    }

    .site-footer p {
        font-size: 12px;
        padding: 0 16px;
    }

    .site-nav a {
        width: 100%;
        min-height: auto;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        font-size: 15px;
        justify-content: flex-start;
    }

    .site-nav a:last-child {
        border-bottom: none;
    }

    .site-nav a:not(.nav-current)::after {
        display: none;
    }

    .nav-current {
        min-height: auto !important;
        padding: 16px 24px !important;
        border: none !important;
        background: rgba(15, 118, 110, 0.08) !important;
        color: var(--teal) !important;
    }

    .nav-current:hover,
    .nav-current:focus-visible {
        background: rgba(15, 118, 110, 0.08) !important;
        color: var(--teal) !important;
    }


    /* What We Do */

    .what-we-do {
        padding: 72px 0 80px;
    }

    .practice-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 30px 0;
    }


    /* Practice Areas Teaser (Home) */

    .practice-teaser {
        padding: 72px 0 80px;
    }

    .practice-teaser-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-top: 40px;
    }


    /* Process Teaser (Home) */

    .process-teaser {
        padding: 72px 0 80px;
    }

    .process-teaser-steps {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 40px;
    }


    /* FAQ Teaser (Home) */

    .faq-teaser {
        padding: 72px 0 80px;
    }

    .faq-teaser-list {
        margin-top: 40px;
    }


    /* Meridian Approach */

    .meridian-approach {
        padding: 80px 0;
    }

    .approach-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .approach-header {
        position: static;
    }


    /* About Page */

    .about-section {
        padding: 48px 0;
    }


    /* Hero (Home + Process + Services) */

    .hero,
    .services-hero,
    .about-hero {
        padding: 72px 0 80px;
    }

    .hero-grid,
    .services-hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero-grid .page-hero-image,
    .services-hero-grid .page-hero-image {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    /* Process Steps */

    .process-section {
        padding: 72px 0 80px;
    }

    .process-step {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 30px 0;
    }

    .process-number {
        font-size: 26px;
    }


    /* Process CTA */

    .process-cta {
        padding: 72px 0;
    }

    .process-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 40px 32px;
    }


    /* Consultation (Contact) */

    .consultation {
        padding: 72px 0 80px;
    }
    .consultation-header {
        margin-bottom: 48px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .consultation-form iframe {
        max-width: 100%;
        height: 1150px;
    }


    /* FAQ */

    .faq-section {
        padding: 72px 0 80px;
    }

    .faq-item summary {
        padding: 22px 0;
        font-size: 16px;
        gap: 16px;
    }

    .faq-answer {
        margin-bottom: 22px;
        font-size: 15px;
    }


}


@media (max-width: 480px) {

    .container {
        width: min(100% - 32px, var(--container-width));
    }
    /* Hero (Home + Process + Services) */

    .hero h1,
    .services-hero h1,
    .consultation-header h1 {
        font-size: 38px;
    }
    .hero-copy,
    .services-hero-copy,
    .consultation-copy {
        font-size: 16px;
    }


    /* Section Headings */

    .section-header h2,
    .approach-header h2,
    .process-header h2,
    .process-cta-inner h2,
    .about-section h2 {
        font-size: 34px;
    }


    /* Practice Areas */

    .practice-heading h3 {
        font-size: 23px;
    }

    .practice-body p,
    .approach-content > p {
        font-size: 16px;
    }


    /* Process Steps */

    .process-content h3 {
        font-size: 20px;
    }

    .process-cta-inner {
        padding: 32px 24px;
    }


    /* Approach Values */

    .approach-values span {
        padding: 0 16px;
        font-size: 13px;
    }

    .approach-values span:first-child {
        padding-left: 0;
    }

}
