/* =========================================================
   EHI VISUAL QA PASS
   Loaded after page-specific CSS.
   ========================================================= */

/* Prevent grid/flex children from causing accidental horizontal overflow. */
main *,
.site-header *,
.site-footer * {
    min-width: 0;
}

html,
body {
    overflow-x: clip;
}

/* Final shared typography hierarchy. */
main h1 {
    font-size: clamp(2.55rem, 5.2vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

main h2 {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
}

main h3 {
    line-height: 1.25;
}

main p {
    line-height: 1.6;
}

/* Consistent visual treatment for informational links. */
main .text-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    color: var(--ehi-navy, var(--color-text));
}

main .text-link:hover {
    color: var(--ehi-red, var(--color-accent));
}

/* Touch target floor for interactive elements. */
.site-header a,
.site-header summary,
.site-footer a,
main .button,
main button {
    min-height: 44px;
}

/* Header: full desktop navigation is deliberately delayed until 1024px. */
@media (max-width: 1023px) {
    .site-nav--desktop,
    .site-header__cta {
        display: none !important;
    }

    .site-menu {
        display: block !important;
    }

    .site-menu .site-nav a[aria-current="page"]::after {
        display: none;
    }

    .site-menu .site-nav a[aria-current="page"] {
        color: var(--ehi-red, var(--color-accent));
        font-weight: 700;
    }
}

/* Keep the expanded mobile menu comfortably readable on small screens. */
@media (max-width: 699px) {
    .site-menu .site-nav {
        gap: 1rem;
        padding-top: 1.25rem;
        padding-bottom: 1.5rem;
    }

    main h1 {
        font-size: clamp(2.25rem, 10.5vw, 3rem);
    }

    main h2 {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    /* Long URLs/email addresses must never widen the viewport. */
    .email-link,
    main a {
        overflow-wrap: anywhere;
    }

    /* Avoid very tall decorative placeholders on phones. */
    .visual-placeholder,
    .city-placeholder,
    .map-placeholder,
    .about-hero__image {
        min-height: 190px;
    }

    /* Contact form remains comfortable without oversized vertical gaps. */
    .contact-card {
        padding: 1.35rem;
    }

    .field textarea {
        min-height: 120px;
    }
}

/* Tablet-specific compositions: richer than mobile, without forcing
   the full desktop layouts too early. */
@media (min-width: 700px) and (max-width: 1023px) {
    /* Solutions */
    .solutions-capabilities__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .solutions-project__tracks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Approach */
    .approach-hero__flow,
    .people-flow,
    .flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .data-options__grid,
    .optiongrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .next-steps,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Contact */
    .contact-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Desktop header breathing room. */
@media (min-width: 1024px) {
    .site-header__inner {
        gap: 1.25rem;
    }

    .site-nav--desktop {
        gap: 1.4rem;
        margin-right: 1.4rem;
    }

    .site-header__cta {
        flex-shrink: 0;
    }
}

/* Forms */
.field input,
.field textarea,
.field select {
    max-width: 100%;
}

/* Do not use an underline as the only active-navigation cue. */
.site-nav--desktop a[aria-current="page"] {
    color: var(--ehi-red, var(--color-accent));
    font-weight: 700;
}

/* Placeholder visuals stay subordinate to real content. */
.visual-placeholder,
.map-placeholder,
.city-placeholder,
.about-hero__image {
    color: var(--color-text-muted);
}

/* Reduce motion at OS request. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Content consistency pass */
.final-cta__action{margin-top:1.25rem}
.solutions-cta .button + .text-link{margin-left:1rem}
@media(max-width:699px){.solutions-cta .button + .text-link{display:block;margin:.9rem 0 0}}

.no-lock-slash{stroke:var(--ehi-red,#b9292f);stroke-width:3;}
