﻿/* =========================================================================
   EAU CLAIRE MEDICAL CLINIC  -  site-master.css
   Master page chrome : header (ech-) + footer (ecf-) + mobile drawer (ecm-)
   + back-to-top (ecb-).  Theme = "Clear Water" (see eau-essentials.css).
   ---------------------------------------------------------------------------
   - Reuses eau-essentials tokens + elements. All MASTER-ONLY colors and
     keyframes are defined HERE so the bootstrap stays untouched.
   - Fully namespaced + scoped IDs : no conflicts with page sections.
   ========================================================================= */

/* ---- Master-only tokens (NOT in eau-essentials) ---- */
:root {
    --ech-bar-h: 74px; /* main bar height */
    --ech-bar-h-sm: 62px; /* shrunk on scroll */
    --ech-strip-h: 38px; /* top utility strip */
    --ech-glass: rgba(9, 16, 18, 0.72);
    --ech-glass-solid: rgba(7, 12, 13, 0.94);
    --ech-z-header: 300;
    --ech-z-backdrop: 290;
    --ech-z-drawer: 1100;
    --ech-z-totop: 250;
    --ech-mega-bg: linear-gradient(180deg, #0F1B1E, #0B1417);
}

/* =========================================================================
   LAYOUT / SKIP LINK / SCROLL LOCK
   ========================================================================= */
.ech-skip {
    position: absolute;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0.6em 1.2em;
    border-radius: var(--r-pill);
    background: var(--grad-jade);
    color: var(--on-jade);
    font-weight: 600;
    font-size: var(--fs-sm);
    transition: top var(--t) var(--ease);
}

    .ech-skip:focus {
        top: 10px;
    }

#ech-main {
    position: relative;
    min-height: 60vh;
    transition: filter var(--t) var(--ease), opacity var(--t) var(--ease);
}

body.ech-locked {
    overflow: hidden;
}

    body.ech-locked #ech-main, body.ech-locked .ecf {
        filter: blur(5px) brightness(0.65);
        opacity: 0.7;
        pointer-events: none;
    }

/* =========================================================================
   HEADER SHELL
   ========================================================================= */
.ech {
    position: sticky;
    top: 0;
    z-index: var(--ech-z-header);
    animation: echHeaderIn 0.7s var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
    .ech {
        animation: none;
    }
}

/* ---- Top utility strip ---- */
.ech-strip {
    height: var(--ech-strip-h);
    display: flex;
    align-items: center;
    background: var(--ink-950);
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--text-muted);
    overflow: hidden;
    transition: height var(--t-slow) var(--ease), opacity var(--t) var(--ease), border-color var(--t) var(--ease);
}

.ech-strip-inner {
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}

.ech-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    white-space: nowrap;
}

    .ech-strip-item svg {
        width: 14px;
        height: 14px;
        stroke: var(--jade-400);
        stroke-width: 1.7;
    }

.ech-strip-group {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-5);
}

.ech-strip-phone {
    color: var(--text-soft);
    font-weight: 600;
    transition: color var(--t) var(--ease);
}

    .ech-strip-phone:hover {
        color: var(--gold-300);
    }

.ech-strip-sep {
    width: 1px;
    height: 14px;
    background: var(--line-2);
}

/* Strip collapses once scrolled */
.ech.is-scrolled .ech-strip {
    height: 0;
    opacity: 0;
    border-color: transparent;
}

/* ---- Main bar ---- */
.ech-bar {
    height: var(--ech-bar-h);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: height var(--t-slow) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), backdrop-filter var(--t) var(--ease);
}

.ech.is-scrolled .ech-bar {
    height: var(--ech-bar-h-sm);
    background: var(--ech-glass);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom-color: var(--line-2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.42);
}

.ech-bar-inner {
    position: relative;
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--pad-x);
    display: flex;
    align-items: center;
    gap: var(--sp-6);
}

/* ---- Brand : official Eau lettermark (theme-matched) + Claire wordmark ---- */
.ech-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    flex: none;
}

.ech-brand-logo {
    height: clamp(26px, 23px + 0.45vw, 31px);
    width: auto;
    flex: none;
    filter: drop-shadow(0 3px 10px rgba(79,178,147,0.22));
    transition: transform var(--t-slow) var(--ease-spring);
}

.ech-brand:hover .ech-brand-logo {
    transform: scale(1.05);
}

.ech-brand-logo .lg-mark {
    fill: url(#echLogoGrad);
}

.ech-brand-logo .lg-ink {
    fill: var(--text-strong);
}

.ech-brand-text {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    font-family: var(--font-display);
}

.ech-brand-claire {
    font-size: clamp(1.3rem, 1.08rem + 0.6vw, 1.62rem);
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.01em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ech-brand-sub {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-top: 4px;
}

/* ---- Desktop nav ---- */
.ech-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.ech-navitem {
    position: relative;
}

.ech-navlink {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    height: 40px;
    padding: 0 0.9em;
    border-radius: var(--r-sm);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-soft);
    cursor: pointer;
    background: none;
    border: none;
    white-space: nowrap;
    transition: color var(--t) var(--ease);
}

    .ech-navlink:hover, .ech-navitem.is-open .ech-navlink {
        color: var(--text-strong);
    }

.ech-navlink-ul {
    position: relative;
}
    /* animated jade->gold underline */
    .ech-navlink-ul::after {
        content: "";
        position: absolute;
        left: 0.9em;
        right: 0.9em;
        bottom: 6px;
        height: 2px;
        background: var(--grad-hairline);
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: left;
        opacity: 0;
        transition: transform var(--t) var(--ease-out), opacity var(--t) var(--ease);
    }

    .ech-navlink-ul:hover::after, .ech-navitem.is-open .ech-navlink-ul::after {
        transform: scaleX(1);
        opacity: 1;
    }

.ech-caret {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
    transition: transform var(--t) var(--ease);
}

.ech-navitem.is-open .ech-caret {
    transform: rotate(180deg);
}

/* ---- Header actions ---- */
.ech-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex: none;
    margin-left: var(--sp-4);
}

.ech-call-btn {
    display: none;
}

/* refined header CTAs (scoped overrides; bootstrap stays untouched) */
.ech-actions .eau-btn {
    height: 42px;
    padding: 0 1.15em;
    border-radius: var(--r-pill);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.005em;
}

    .ech-actions .eau-btn svg {
        width: 16px;
        height: 16px;
    }

.ech-actions .eau-btn--ghost {
    background: var(--ink-700);
    border: 1px solid var(--line-2);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

    .ech-actions .eau-btn--ghost:hover {
        background: var(--ink-600);
        border-color: var(--line-jade);
        color: var(--text-strong);
        transform: translateY(-1px);
    }

.ech-actions .eau-btn--primary {
    background: var(--grad-jade);
    color: var(--on-jade);
    border: 1px solid rgba(151,220,194,0.35);
    box-shadow: 0 6px 18px rgba(79,178,147,0.26), inset 0 1px 0 rgba(255,255,255,0.18);
}

    .ech-actions .eau-btn--primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(79,178,147,0.34), inset 0 1px 0 rgba(255,255,255,0.22);
    }

    .ech-actions .eau-btn--primary svg {
        transition: transform var(--t) var(--ease);
    }

    .ech-actions .eau-btn--primary:hover svg {
        transform: translateX(3px);
    }

/* ---- Hamburger (mobile only) ---- */
.ech-burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    background: var(--ink-700);
    border: 1px solid var(--line-2);
    cursor: pointer;
    transition: background var(--t) var(--ease);
}

    .ech-burger span {
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--text-strong);
        transition: transform var(--t) var(--ease-spring), opacity var(--t) var(--ease);
    }

    .ech-burger.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .ech-burger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .ech-burger.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* ---- Backdrop ---- */
.ech-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--ech-z-backdrop);
    background: rgba(4,8,9,0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease);
}

    .ech-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }

/* =========================================================================
   DESKTOP DROPDOWN + MEGA MENU
   ========================================================================= */
.ech-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--ech-mega-bg);
    border: 1px solid var(--line-2);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.02) inset;
    padding: var(--sp-5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top left;
    transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out), visibility var(--t) var(--ease);
    pointer-events: none;
}

    .ech-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        height: 46%;
        border-radius: var(--r-xl) var(--r-xl) 0 0;
        background: var(--grad-sheen);
        opacity: 0.5;
        pointer-events: none;
    }

.ech-navitem.is-open .ech-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* simple dropdown (About) */
.ech-drop {
    width: 280px;
}

    .ech-drop .ech-link {
        display: flex;
        gap: 0.7em;
        align-items: flex-start;
        padding: 0.7em 0.8em;
        border-radius: var(--r-md);
        transition: background var(--t) var(--ease);
        position: relative;
    }

        .ech-drop .ech-link:hover {
            background: var(--jade-faint);
        }

.ech-link-ico {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--jade-soft);
    border: 1px solid var(--line-jade);
    color: var(--jade-300);
    transition: transform var(--t) var(--ease);
}

    .ech-link-ico svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        stroke-width: 1.7;
    }

.ech-link:hover .ech-link-ico {
    transform: scale(1.08) rotate(-4deg);
}

.ech-link-h {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-strong);
    line-height: 1.25;
}

.ech-link-p {
    display: block;
    font-size: 0.79rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.35;
}

/* mega menu (Services) - centered under the bar */
.ech-navitem--mega {
    position: static;
}

.ech-mega {
    width: min(1020px, 95vw);
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-10px) scale(0.985);
    transform-origin: top center;
}

.ech-navitem--mega.is-open .ech-mega {
    transform: translateX(-50%) translateY(0) scale(1);
}

.ech-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.95fr;
    gap: var(--sp-4) var(--sp-5);
}

.ech-mega-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ech-mega-cat {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-300);
    padding: 0 0.6em var(--sp-2);
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}

    .ech-mega-cat svg {
        width: 14px;
        height: 14px;
        stroke: var(--gold-400);
        stroke-width: 1.8;
    }

.ech-mega .ech-link {
    display: flex;
    gap: 0.65em;
    align-items: flex-start;
    padding: 0.5em 0.6em;
    border-radius: var(--r-md);
    transition: background var(--t) var(--ease);
}

    .ech-mega .ech-link:hover {
        background: var(--jade-faint);
    }

.ech-mega .ech-link-ico {
    width: 32px;
    height: 32px;
    margin-top: 1px;
}

    .ech-mega .ech-link-ico svg {
        width: 16px;
        height: 16px;
    }

.ech-mega .ech-link-p {
    font-size: 0.76rem;
}

/* mega CTA card */
.ech-mega-cta {
    background: linear-gradient(165deg, var(--jade-soft), rgba(199,166,104,0.06));
    border: 1px solid var(--line-jade);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ech-mega-cta-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--jade-300);
}

.ech-mega-cta-h {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-strong);
    margin: 0.3em 0 0.4em;
    line-height: 1.1;
}

.ech-mega-cta-p {
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-bottom: var(--sp-4);
    line-height: 1.45;
}

.ech-mega-cta .eau-btn {
    margin-top: var(--sp-1);
}

.ech-mega-cta-link {
    margin-top: var(--sp-3);
}

.ech-mega-cta-note {
    margin-top: var(--sp-4);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--line-jade);
    font-size: 0.73rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.45em;
}

    .ech-mega-cta-note svg {
        width: 14px;
        height: 14px;
        stroke: var(--jade-400);
        stroke-width: 1.8;
        flex: none;
    }

/* ---- Patients dropdown (Qlynic powers) ---- */
.ech-patients {
    width: 340px;
}

.ech-feat {
    display: flex;
    gap: 0.75em;
    align-items: center;
    padding: 0.7em 0.8em;
    border-radius: var(--r-md);
    transition: background var(--t) var(--ease);
    position: relative;
}

    .ech-feat:hover {
        background: var(--jade-faint);
    }

    .ech-feat .ech-link-ico {
        width: 36px;
        height: 36px;
    }

.ech-feat-body {
    flex: 1;
    min-width: 0;
}

.ech-feat-h {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-strong);
    display: flex;
    align-items: center;
    gap: 0.45em;
}

.ech-feat-p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* coming-soon + new badges */
.ech-soon, .ech-new {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.18em 0.5em;
    border-radius: var(--r-pill);
    line-height: 1;
    white-space: nowrap;
}

.ech-soon {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border: 1px solid var(--line-2);
}

.ech-new {
    background: var(--gold-soft);
    color: var(--gold-200);
    border: 1px solid var(--line-gold);
}

.ech-feat.is-soon {
    opacity: 0.82;
}

/* QlynicID : the bold, gold flagship row */
.ech-qid {
    margin: var(--sp-2) 0;
    padding: 0.9em 0.85em;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, rgba(199,166,104,0.16), rgba(79,178,147,0.08));
    border: 1px solid var(--line-gold);
    box-shadow: 0 0 0 1px var(--gold-faint), inset 0 1px 0 rgba(240,224,187,0.12);
    display: flex;
    gap: 0.8em;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

    .ech-qid::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(115deg, transparent 35%, rgba(240,224,187,0.18) 50%, transparent 65%);
        transform: translateX(-130%);
        transition: transform var(--t-slow) var(--ease);
    }

    .ech-qid:hover {
        transform: translateY(-1px);
        box-shadow: var(--glow-gold);
    }

        .ech-qid:hover::after {
            transform: translateX(130%);
        }

.ech-qid-ico {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--grad-gold);
    color: var(--on-gold);
    box-shadow: 0 6px 16px var(--gold-glow);
}

    .ech-qid-ico svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        stroke-width: 1.7;
    }

.ech-qid-body {
    flex: 1;
    min-width: 0;
    position: relative;
}

.ech-qid-h {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--gold-200);
    display: flex;
    align-items: center;
    gap: 0.4em;
    letter-spacing: -0.01em;
}

.ech-qid-p {
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-top: 1px;
}

.ech-qid-arrow {
    width: 16px;
    height: 16px;
    stroke: var(--gold-300);
    stroke-width: 2;
    flex: none;
    transition: transform var(--t) var(--ease);
}

.ech-qid:hover .ech-qid-arrow {
    transform: translateX(3px);
}

.ech-panel-foot {
    margin-top: var(--sp-3);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.ech-panel-note {
    font-size: 0.72rem;
    color: var(--text-faint);
    text-align: center;
    letter-spacing: 0.02em;
}

    .ech-panel-note strong {
        color: var(--gold-400);
        font-weight: 700;
    }

.ech-panel-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    width: 100%;
    height: 44px;
    border-radius: var(--r-pill);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--on-jade);
    background: var(--grad-jade);
    border: 1px solid rgba(151,220,194,0.35);
    box-shadow: 0 6px 18px rgba(79,178,147,0.24), inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

    .ech-panel-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(79,178,147,0.32), inset 0 1px 0 rgba(255,255,255,0.22);
    }

    .ech-panel-cta svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        stroke-width: 2;
        transition: transform var(--t) var(--ease);
    }

    .ech-panel-cta:hover svg {
        transform: translateX(3px);
    }

/* =========================================================================
   MOBILE DRAWER (ecm-)
   ========================================================================= */
.ecm {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: var(--ech-z-drawer);
    width: min(420px, 92vw);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0C1417, #070C0D);
    border-left: 1px solid var(--line-2);
    box-shadow: -30px 0 80px rgba(0,0,0,0.6);
    transform: translateX(105%);
    transition: transform var(--t-slow) var(--ease-out);
    overflow: hidden;
}

    .ecm.is-open {
        transform: translateX(0);
    }
    /* caustic glow inside drawer */
    .ecm::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background: radial-gradient(60% 30% at 80% 4%, rgba(79,178,147,0.12), transparent 70%), radial-gradient(50% 26% at 10% 96%, rgba(199,166,104,0.10), transparent 72%);
    }

.ecm-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-5) var(--sp-5);
    border-bottom: 1px solid var(--line);
}

.ecm-close {
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: var(--ink-700);
    border: 1px solid var(--line-2);
    color: var(--text-soft);
    transition: color var(--t) var(--ease), background var(--t) var(--ease);
}

    .ecm-close:hover {
        color: var(--text-strong);
        background: var(--ink-600);
    }

    .ecm-close svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        stroke-width: 2;
    }

.ecm-scroll {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-4) var(--sp-4) var(--sp-6);
}

/* nav items reveal (staggered) when open */
.ecm-item {
    opacity: 0;
    transform: translateX(18px);
}

.ecm.is-open .ecm-item {
    animation: ecmItemIn 0.5s var(--ease-out) forwards;
}

    .ecm.is-open .ecm-item:nth-child(1) {
        animation-delay: 0.12s;
    }

    .ecm.is-open .ecm-item:nth-child(2) {
        animation-delay: 0.17s;
    }

    .ecm.is-open .ecm-item:nth-child(3) {
        animation-delay: 0.22s;
    }

    .ecm.is-open .ecm-item:nth-child(4) {
        animation-delay: 0.27s;
    }

    .ecm.is-open .ecm-item:nth-child(5) {
        animation-delay: 0.32s;
    }

    .ecm.is-open .ecm-item:nth-child(6) {
        animation-delay: 0.37s;
    }

    .ecm.is-open .ecm-item:nth-child(7) {
        animation-delay: 0.42s;
    }

.ecm-link {
    display: flex;
    align-items: center;
    gap: 0.7em;
    width: 100%;
    padding: 0.95em 0.7em;
    border-radius: var(--r-md);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-strong);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background var(--t) var(--ease);
}

    .ecm-link:hover, .ecm-link:focus-visible {
        background: var(--jade-faint);
    }

    .ecm-link > svg.ecm-lead {
        width: 20px;
        height: 20px;
        stroke: var(--jade-400);
        stroke-width: 1.8;
        flex: none;
    }

.ecm-acc-caret {
    margin-left: auto;
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    stroke-width: 2.2;
    transition: transform var(--t) var(--ease);
}

.ecm-acc.is-open .ecm-acc-caret {
    transform: rotate(180deg);
}

/* accordion using grid 0fr->1fr (smooth, modern) */
.ecm-sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--t-slow) var(--ease);
}

.ecm-acc.is-open .ecm-sub {
    grid-template-rows: 1fr;
}

.ecm-sub-inner {
    overflow: hidden;
}

.ecm-sublink {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.7em 0.7em 0.7em 2.5em;
    border-radius: var(--r-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: color var(--t) var(--ease), background var(--t) var(--ease);
}

    .ecm-sublink:hover {
        color: var(--jade-200);
        background: var(--jade-faint);
    }

    .ecm-sublink svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        stroke-width: 1.7;
        flex: none;
    }

    .ecm-sublink .ech-soon, .ecm-sublink .ech-new {
        margin-left: auto;
    }

.ecm-divider {
    height: 1px;
    background: var(--grad-hairline);
    opacity: 0.6;
    margin: var(--sp-4) 0.7em;
}

/* QlynicID block in drawer (bold) */
.ecm-qid {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin: var(--sp-3) 0.4em;
    padding: 0.95em;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, rgba(199,166,104,0.18), rgba(79,178,147,0.08));
    border: 1px solid var(--line-gold);
    box-shadow: 0 0 0 1px var(--gold-faint);
}

.ecm-qid-ico {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--grad-gold);
    color: var(--on-gold);
    box-shadow: 0 6px 16px var(--gold-glow);
}

    .ecm-qid-ico svg {
        width: 23px;
        height: 23px;
        stroke: currentColor;
        stroke-width: 1.7;
    }

.ecm-qid-h {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold-200);
}

.ecm-qid-p {
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-top: 1px;
}

/* drawer footer : CTAs + call + contact + socials */
.ecm-foot {
    position: relative;
    z-index: 1;
    padding: var(--sp-5);
    border-top: 1px solid var(--line);
    background: rgba(7,12,13,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

    .ecm-foot .eau-btn {
        width: 100%;
    }

.ecm-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--jade-300);
    padding: 0.4em;
}

    .ecm-call svg {
        width: 17px;
        height: 17px;
        stroke: currentColor;
        stroke-width: 1.9;
    }

.ecm-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em 1em;
    font-size: 0.76rem;
    color: var(--text-muted);
    justify-content: center;
}

.ecm-socials {
    display: flex;
    gap: var(--sp-3);
    justify-content: center;
    margin-top: var(--sp-1);
}

    .ecm-socials a {
        width: 36px;
        height: 36px;
        border-radius: var(--r-sm);
        display: grid;
        place-items: center;
        background: var(--ink-700);
        border: 1px solid var(--line-2);
        transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
    }

        .ecm-socials a:hover {
            transform: translateY(-2px);
            border-color: var(--line-jade);
        }

    .ecm-socials img {
        width: 16px;
        height: 16px;
        opacity: 0.7;
        transition: opacity var(--t) var(--ease);
    }

    .ecm-socials a:hover img {
        opacity: 1;
    }

/* =========================================================================
   FOOTER (ecf-)
   ========================================================================= */
.ecf {
    position: relative;
    overflow: hidden;
    background: var(--ink-950);
    border-top: 1px solid var(--line);
    margin-top: var(--sp-12);
}

.ecf-edge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-hairline);
    opacity: 0.8;
}

.ecf-orb {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

    .ecf-orb.o1 {
        width: 460px;
        height: 460px;
        background: rgba(79,178,147,0.10);
        top: -160px;
        right: -120px;
    }

    .ecf-orb.o2 {
        width: 380px;
        height: 380px;
        background: rgba(199,166,104,0.08);
        bottom: -160px;
        left: -120px;
    }

.ecf-wrap {
    position: relative;
    z-index: 1;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding: clamp(48px,7vw,84px) var(--pad-x) var(--sp-8);
}

/* footer closing CTA band */
.ecf-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    flex-wrap: wrap;
    padding-bottom: clamp(34px,5vw,54px);
}

.ecf-cta-copy {
    max-width: 52ch;
}

.ecf-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--jade-300);
}

    .ecf-cta-eyebrow::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: var(--jade-400);
        box-shadow: 0 0 10px var(--jade-glow);
    }

.ecf-cta-h {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem);
    font-weight: 500;
    color: var(--text-strong);
    line-height: 1.08;
    margin: 0.4em 0 0.25em;
    letter-spacing: -0.01em;
}

    .ecf-cta-h em {
        font-style: italic;
        background: var(--grad-text);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

.ecf-cta-sub {
    font-size: 0.98rem;
    color: var(--text-soft);
    line-height: 1.5;
}

.ecf-cta-actions {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

    .ecf-cta-actions .eau-btn {
        height: 48px;
        padding: 0 1.5em;
        border-radius: var(--r-pill);
        font-size: 0.95rem;
        font-weight: 600;
    }

        .ecf-cta-actions .eau-btn svg {
            width: 17px;
            height: 17px;
            transition: transform var(--t) var(--ease);
        }

    .ecf-cta-actions .eau-btn--primary {
        background: var(--grad-jade);
        color: var(--on-jade);
        border: 1px solid rgba(151,220,194,0.35);
        box-shadow: 0 8px 22px rgba(79,178,147,0.26), inset 0 1px 0 rgba(255,255,255,0.18);
    }

        .ecf-cta-actions .eau-btn--primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 30px rgba(79,178,147,0.34), inset 0 1px 0 rgba(255,255,255,0.22);
        }

            .ecf-cta-actions .eau-btn--primary:hover svg {
                transform: translateX(3px);
            }

    .ecf-cta-actions .eau-btn--ghost {
        background: var(--ink-700);
        border: 1px solid var(--line-2);
        color: var(--text);
    }

        .ecf-cta-actions .eau-btn--ghost:hover {
            border-color: var(--line-jade);
            color: var(--text-strong);
            transform: translateY(-1px);
        }

.ecf-cta-divider {
    height: 1px;
    background: var(--grad-hairline);
    opacity: 0.5;
    margin-bottom: clamp(38px,5vw,58px);
}

/* reveal on scroll */
.ecf-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.ecf.is-in .ecf-reveal {
    opacity: 1;
    transform: none;
}

    .ecf.is-in .ecf-reveal[data-d="1"] {
        transition-delay: 0.06s;
    }

    .ecf.is-in .ecf-reveal[data-d="2"] {
        transition-delay: 0.12s;
    }

    .ecf.is-in .ecf-reveal[data-d="3"] {
        transition-delay: 0.18s;
    }

    .ecf.is-in .ecf-reveal[data-d="4"] {
        transition-delay: 0.24s;
    }

.ecf-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
    gap: var(--sp-8) var(--sp-6);
}

/* brand column */
.ecf-logo {
    display: inline-block;
}

    .ecf-logo img {
        height: 40px;
        width: auto;
    }

.ecf-tagline {
    color: var(--text-soft);
    font-size: 0.92rem;
    margin-top: var(--sp-4);
    max-width: 32ch;
    line-height: 1.6;
}

.ecf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-5);
}

.ecf-socials {
    display: flex;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
}

    .ecf-socials a {
        width: 40px;
        height: 40px;
        border-radius: var(--r-sm);
        display: grid;
        place-items: center;
        background: var(--ink-800);
        border: 1px solid var(--line-2);
        transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
    }

        .ecf-socials a:hover {
            transform: translateY(-3px);
            border-color: var(--line-jade);
            box-shadow: var(--glow-jade);
        }

    .ecf-socials img {
        width: 17px;
        height: 17px;
        opacity: 0.7;
        transition: opacity var(--t) var(--ease);
    }

    .ecf-socials a:hover img {
        opacity: 1;
    }

/* link columns */
.ecf-col-h {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin-bottom: var(--sp-4);
}

.ecf-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    color: var(--text-soft);
    font-size: 0.9rem;
    padding: 0.32em 0;
    transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}

    .ecf-link:hover {
        color: var(--gold-300);
        transform: translateX(3px);
    }

    .ecf-link .ech-soon, .ecf-link .ech-new {
        font-size: 0.56rem;
    }

.ecf-link--qid {
    color: var(--gold-200);
    font-weight: 700;
}

    .ecf-link--qid:hover {
        color: var(--gold-100, #F6EAC8);
    }

.ecf-col-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* visit / contact card */
.ecf-contact {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.ecf-contact-row {
    display: flex;
    gap: 0.6em;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--text-soft);
}

    .ecf-contact-row svg {
        flex: none;
        width: 18px;
        height: 18px;
        stroke: var(--jade-400);
        stroke-width: 1.7;
        margin-top: 2px;
    }

    .ecf-contact-row a {
        color: var(--text-soft);
        transition: color var(--t) var(--ease);
    }

        .ecf-contact-row a:hover {
            color: var(--gold-300);
        }

.ecf-contact-strong {
    color: var(--text-strong);
    font-weight: 600;
}

.ecf-directions {
    margin-top: 2px;
}

/* newsletter */
.ecf-news {
    margin-top: var(--sp-5);
}

.ecf-news-h {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: var(--sp-2);
}

.ecf-news-form {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

    .ecf-news-form .eau-inputgroup {
        flex: 1;
        min-width: 200px;
    }

.ecf-news-ok {
    display: none;
    align-items: center;
    gap: 0.4em;
    font-size: 0.82rem;
    color: var(--jade-300);
    font-weight: 500;
}

    .ecf-news-ok svg {
        width: 15px;
        height: 15px;
        stroke: currentColor;
        stroke-width: 2;
    }

.ecf-news.is-done .ecf-news-form {
    display: none;
}

.ecf-news.is-done .ecf-news-ok {
    display: inline-flex;
}

/* legal bar */
.ecf-legal {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    margin-top: var(--sp-8);
    padding: var(--sp-6) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.ecf-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

    .ecf-copy strong {
        color: var(--text-soft);
        font-weight: 600;
    }

.ecf-legal-links {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.ecf-legal-link {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: color var(--t) var(--ease);
}

    .ecf-legal-link:hover {
        color: var(--gold-300);
    }

.ecf-qcredit {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.8rem;
    color: var(--text-muted);
}

    .ecf-qcredit strong {
        color: var(--gold-300);
        font-weight: 700;
    }

.ecf-qcredit-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--gold-400);
    box-shadow: 0 0 8px var(--gold-glow);
}

/* giant faded wordmark flourish */
.ecf-wordmark {
    position: absolute;
    left: 50%;
    bottom: -0.22em;
    transform: translateX(-50%);
    z-index: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(5rem, 22vw, 20rem);
    line-height: 0.8;
    letter-spacing: -0.03em;
    color: rgba(189,235,217,0.022);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* =========================================================================
   BACK TO TOP (ecb-)
   ========================================================================= */
.ecb {
    position: fixed;
    right: clamp(16px,3vw,28px);
    bottom: clamp(16px,3vw,28px);
    z-index: var(--ech-z-totop);
    width: 48px;
    height: 48px;
    border-radius: var(--r-pill);
    display: grid;
    place-items: center;
    background: var(--ech-glass-solid);
    border: 1px solid var(--line-2);
    color: var(--jade-300);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.85);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-spring), visibility var(--t) var(--ease), border-color var(--t) var(--ease);
}

    .ecb.is-visible {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .ecb:hover {
        border-color: var(--line-jade);
        color: var(--jade-200);
        box-shadow: var(--glow-jade);
        transform: translateY(-2px);
    }

    .ecb svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        stroke-width: 2;
    }

/* =========================================================================
   KEYFRAMES (master-scoped names)
   ========================================================================= */
@keyframes echHeaderIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ecmItemIn {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
/* show desktop nav at >=1024, hamburger below */
@media (max-width: 1023px) {
    .ech-nav, .ech-actions {
        display: none;
    }

    .ech-burger {
        display: flex;
    }

    .ech-strip-item--addr {
        display: none;
    }
}

@media (min-width: 1024px) {
    .ecm, .ech-backdrop {
        display: none;
    }
}

/* tablet : tighten strip + bar gaps */
@media (max-width: 1180px) and (min-width: 1024px) {
    .ech-navlink {
        padding: 0 0.7em;
        font-size: 0.88rem;
    }

    .ech-bar-inner {
        gap: var(--sp-4);
    }
}

/* footer responsive */
@media (max-width: 900px) {
    .ecf-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ecf-col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .ecf-grid {
        grid-template-columns: 1fr;
    }

    .ecf-legal {
        flex-direction: column;
        align-items: flex-start;
    }

    .ecf-cta-actions {
        width: 100%;
    }

        .ecf-cta-actions .eau-btn {
            flex: 1 1 auto;
            justify-content: center;
        }
}

/* keep tap targets comfy + remove hover lift on touch */
@media (hover: none) {
    .ecf-link:hover {
        transform: none;
    }

    .ecf-socials a:hover {
        transform: none;
    }
}

/* =========================================================================
   END  -  site-master.css
   ========================================================================= */
