/* ==========================================================================
   Dr. Austin Roberts Family and Implant Dentistry — bespoke theme
   --------------------------------------------------------------------------
   Brand tokens lifted verbatim from the live site's Neve custom properties:
     --nv-primary-accent   #64753e   olive
     --nv-secondary-accent #90a06c   sage
     --nv-text-color       #272626   ink
     --nv-site-bg          #ffffff
     --nv-light-bg         #f4f5f7
     --nv-dark-bg          #121212

   Everything is prefixed `dar-` so nothing collides with the framework.
   This file is UNLAYERED, so it always beats app.css's @layer framework
   rules regardless of specificity — no !important anywhere.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — self-hosted Josefin Sans
   The live site pulled Josefin Sans from fonts.googleapis.com. We ship the
   same variable woff2 files locally instead: identical rendering, one less
   third-party origin, no layout shift from a blocked font request.
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url('../fonts/josefin-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                   U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                   U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url('../fonts/josefin-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                   U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   Type is driven by two variables so the whole site re-skins from here if we
   ever move him onto an Adobe Fonts face.
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --dar-olive:        #64753e;
    --dar-olive-dark:   #4e5c30;
    --dar-olive-darker: #3b4624;
    --dar-sage:         #90a06c;
    --dar-sage-light:   #b3c093;
    --dar-wash-olive:   #eef1e7;

    /* Blue — sampled from the navy type in the logo (#3f6a8a) and darkened
       for the footer ground. */
    --dar-navy:         #3f6a8a;
    --dar-navy-deep:    #1d3445;
    --dar-navy-line:    #2f4d61;

    /* Neutrals */
    --dar-ink:          #272626;
    --dar-ink-soft:     #55534f;
    --dar-ink-faint:    #7d7a75;
    --dar-white:        #ffffff;
    --dar-wash:         #f4f5f7;
    --dar-rule:         #e3e5e1;
    --dar-dark:         #121212;

    /* Typography */
    --dar-font-heading: 'Josefin Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --dar-font-body:    'Josefin Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Fluid type scale — clamp() so phones and desktops both read well
       without a wall of breakpoints. */
    --dar-fs-xs:   0.8125rem;
    --dar-fs-sm:   0.9375rem;
    --dar-fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --dar-fs-lg:   clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
    --dar-fs-h6:   clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --dar-fs-h5:   clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
    --dar-fs-h4:   clamp(1.3125rem, 1.24rem + 0.37vw, 1.5rem);
    --dar-fs-h3:   clamp(1.5rem, 1.38rem + 0.6vw, 1.875rem);
    --dar-fs-h2:   clamp(1.875rem, 1.66rem + 1.05vw, 2.5rem);
    --dar-fs-h1:   clamp(2.25rem, 1.9rem + 1.75vw, 3.25rem);

    /* Rhythm */
    --dar-container:   1170px;
    --dar-container-n: 900px;
    --dar-gutter:      clamp(1.25rem, 0.9rem + 1.6vw, 2rem);
    --dar-section-y:   clamp(3rem, 2.2rem + 3.6vw, 5.5rem);

    /* Surface */
    --dar-radius:    6px;
    --dar-radius-lg: 12px;
    --dar-shadow-sm: 0 1px 3px rgba(39, 38, 38, .08);
    --dar-shadow:    0 6px 20px rgba(39, 38, 38, .10);
    --dar-shadow-lg: 0 18px 44px rgba(39, 38, 38, .14);

    --dar-header-h:  84px;
    --dar-ease:      cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   3. Base
   Tailwind's preflight (in app.css) strips all heading sizing and margins.
   A bespoke theme has to put the scale back or every h1-h6 renders at 1em.
   -------------------------------------------------------------------------- */
.dar-body {
    font-family: var(--dar-font-body);
    font-size: var(--dar-fs-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--dar-ink);
    background: var(--dar-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* These base element rules are wrapped in :where() so they carry the
   specificity of `.dar-body` alone — (0,1,0). A plain single-class component
   rule like `.dar-footer__title` therefore ties and, being later in the file,
   wins. Without :where(), `.dar-body h2` is (0,1,1) and silently beats every
   component rule that styles a heading or a link, which is exactly the bug
   that made the footer titles render huge and near-black on the dark footer. */
.dar-body :where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--dar-font-heading);
    color: var(--dar-ink);
    font-weight: 600;
    line-height: 1.18;
    /* Josefin Sans sits wide by default; a hair of negative tracking at
       display sizes matches how the live site reads. */
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

.dar-body :where(h1) { font-size: var(--dar-fs-h1); font-weight: 700; }
.dar-body :where(h2) { font-size: var(--dar-fs-h2); }
.dar-body :where(h3) { font-size: var(--dar-fs-h3); }
.dar-body :where(h4) { font-size: var(--dar-fs-h4); }
.dar-body :where(h5) { font-size: var(--dar-fs-h5); letter-spacing: 0; }
.dar-body :where(h6) { font-size: var(--dar-fs-h6); letter-spacing: 0; }

.dar-body :where(p) { margin: 0 0 1.15em; }
.dar-body :where(p):last-child { margin-bottom: 0; }

.dar-body :where(a) {
    color: var(--dar-olive);
    text-decoration: none;
    transition: color .18s var(--dar-ease);
}
.dar-body :where(a):hover { color: var(--dar-olive-dark); }

.dar-body img { max-width: 100%; height: auto; display: block; }

/* Tailwind's preflight sets `list-style: none` on ul/ol, so imported article
   lists lost their markers entirely. Put them back — but via :where() so these
   stay at (0,1,0). A bare `.dar-body ul` is (0,1,1) and beats every component's
   own `list-style: none`, which pushed bullets into the nav, the mobile menu,
   the footer columns and the contact rail. */
.dar-body :where(ul, ol) { margin: 0 0 1.15em; padding-left: 1.35em; }
.dar-body :where(ul) { list-style: disc; }
.dar-body :where(ol) { list-style: decimal; }
.dar-body :where(ul ul) { list-style: circle; }
.dar-body :where(li) { margin-bottom: 0.4em; }
.dar-body :where(li)::marker { color: var(--dar-sage); }

.dar-body blockquote {
    margin: 1.75rem 0;
    padding: 0.35rem 0 0.35rem 1.35rem;
    border-left: 3px solid var(--dar-sage);
    color: var(--dar-ink-soft);
    font-style: italic;
}

.dar-body hr {
    border: 0;
    border-top: 1px solid var(--dar-rule);
    margin: 2.5rem 0;
}

/* Visible focus for keyboard users — the Neve original had none. */
.dar-body :focus-visible {
    outline: 3px solid var(--dar-olive);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Also (0,2,0) — see the specificity note in the button section. */
.dar-body .skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: .75rem 1.25rem;
    background: var(--dar-olive);
    color: var(--dar-white);
    font-weight: 600;
}
.dar-body .skip-to-content:focus {
    left: 1rem;
    top: 1rem;
    color: var(--dar-white);
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.dar-container {
    width: 100%;
    max-width: var(--dar-container);
    margin-inline: auto;
    padding-inline: var(--dar-gutter);
}
.dar-container--narrow { max-width: var(--dar-container-n); }

.dar-section { padding-block: var(--dar-section-y); }
.dar-section--wash  { background: var(--dar-wash); }
.dar-section--olive { background: var(--dar-wash-olive); }
.dar-section--tight { padding-block: calc(var(--dar-section-y) * .6); }

.dar-eyebrow {
    display: block;
    font-size: var(--dar-fs-xs);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dar-sage);
    margin-bottom: .75rem;
}

.dar-lede {
    font-size: var(--dar-fs-lg);
    color: var(--dar-ink-soft);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   5. Buttons — the live site's pill "Call" / "Text" rails
   -------------------------------------------------------------------------- */
.dar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.6rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--dar-font-heading);
    font-size: var(--dar-fs-sm);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s var(--dar-ease),
                color .18s var(--dar-ease),
                border-color .18s var(--dar-ease),
                transform .18s var(--dar-ease),
                box-shadow .18s var(--dar-ease);
}

/* NOTE ON SPECIFICITY
   The base link rule `.dar-body a` is (0,1,1) — a class plus a type selector.
   A bare `.dar-btn--primary` is only (0,1,0), so it LOSES to it and every
   button that happens to be an <a> would inherit the olive link colour
   (invisible on an olive fill). Every button colour rule below is therefore
   scoped with `.dar-body` to reach (0,2,0) and win outright. */
.dar-body .dar-btn--primary {
    background: var(--dar-olive);
    border-color: var(--dar-olive);
    color: var(--dar-white);
}
.dar-body .dar-btn--primary:hover {
    background: var(--dar-olive-dark);
    border-color: var(--dar-olive-dark);
    color: var(--dar-white);
    transform: translateY(-1px);
    box-shadow: var(--dar-shadow-sm);
}

.dar-body .dar-btn--ghost {
    background: transparent;
    border-color: var(--dar-olive);
    color: var(--dar-olive);
}
.dar-body .dar-btn--ghost:hover {
    background: var(--dar-olive);
    color: var(--dar-white);
}

.dar-body .dar-btn--on-dark {
    background: var(--dar-white);
    border-color: var(--dar-white);
    color: var(--dar-olive-darker);
}
.dar-body .dar-btn--on-dark:hover {
    background: transparent;
    color: var(--dar-white);
    border-color: var(--dar-white);
}

.dar-btn--sm    { padding: .55rem 1.1rem; font-size: var(--dar-fs-xs); }
.dar-btn--block { width: 100%; }
.dar-btn__icon  { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

/* --------------------------------------------------------------------------
   6. Header
   Mirrors the live site: a top rail with Call (left) / centered logo /
   Text (right), and a second rail with centered primary nav.
   -------------------------------------------------------------------------- */
.dar-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--dar-white);
    border-bottom: 1px solid var(--dar-rule);
    transition: box-shadow .2s var(--dar-ease);
}
.dar-header.is-stuck { box-shadow: var(--dar-shadow); }

.dar-header__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding-block: 1rem;
}
.dar-header__rail       { display: flex; align-items: center; gap: .5rem; }
.dar-header__rail--right { justify-content: flex-end; }

/* Centre column: logo, plus the Menu toggle stacked beneath it on mobile.
   The grid's align-items:center then centres the Call/Text rails against the
   full height of this column, giving equal space above and below them. */
.dar-header__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    gap: .55rem;
    min-width: 0;
}

.dar-logo { display: inline-flex; }
.dar-logo img {
    width: auto;
    height: 84px;
    /* No max-height here — it's redundant with `height`, and it silently
       capped the larger mobile/tablet logo set in the media queries below. */
    object-fit: contain;
}

.dar-burger__label {
    font-family: var(--dar-font-heading);
    font-size: var(--dar-fs-xs);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1;
}

.dar-header__bottom {
    border-top: 1px solid var(--dar-rule);
    display: flex;
    justify-content: center;
}

.dar-nav__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.dar-nav__menu > li { position: relative; margin: 0; }

/* Title Case, not ALL CAPS — the labels keep their own capitalisation, which
   reads far better in Josefin Sans at nav size than a forced uppercase run.
   Size is the previous --dar-fs-lg scale reduced 30% (20px -> 14px at the top
   of the clamp). This row is hidden below 1024px, so it is desktop-only. */
.dar-nav__menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 1.05rem 1.15rem;
    font-family: var(--dar-font-heading);
    font-size: clamp(0.7875rem, 0.756rem + 0.154vw, 0.875rem);
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    color: var(--dar-ink);
    border-bottom: 3px solid transparent;
    transition: color .18s var(--dar-ease), border-color .18s var(--dar-ease);
}
.dar-nav__menu > li > a:hover,
.dar-nav__menu > li.is-active > a {
    color: var(--dar-olive);
    border-bottom-color: var(--dar-olive);
}

.dar-caret { font-size: .7em; line-height: 1; transition: transform .18s var(--dar-ease); }
.dar-nav__menu > li:hover .dar-caret { transform: rotate(180deg); }

/* Dropdown */
.dar-nav__submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 250px;
    margin: 0;
    padding: .5rem 0;
    list-style: none;
    background: var(--dar-white);
    border: 1px solid var(--dar-rule);
    border-radius: var(--dar-radius);
    box-shadow: var(--dar-shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s var(--dar-ease), transform .18s var(--dar-ease);
}
.dar-nav__menu > li:hover > .dar-nav__submenu,
.dar-nav__menu > li:focus-within > .dar-nav__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.dar-nav__submenu li { margin: 0; }
.dar-nav__submenu a {
    display: block;
    padding: .6rem 1.1rem;
    /* Kept just under the parent item so the hierarchy still reads; at the
       old --dar-fs-sm it would now be LARGER than its own top-level link. */
    font-size: var(--dar-fs-xs);
    color: var(--dar-ink);
    line-height: 1.4;
}
.dar-nav__submenu a:hover {
    background: var(--dar-wash-olive);
    color: var(--dar-olive-dark);
}

.dar-burger {
    display: none;
    align-items: center;
    justify-content: center;
    gap: .45rem;           /* icon and "Menu" sit on one line */
    min-height: 44px;      /* stays a comfortable tap target */
    padding: .25rem .5rem;
    background: transparent;
    border: 0;
    color: var(--dar-ink);
    cursor: pointer;
}
.dar-burger svg { width: 26px; height: 26px; flex: none; }
.dar-burger:hover { color: var(--dar-olive); }

/* --------------------------------------------------------------------------
   7. Mobile drawer
   -------------------------------------------------------------------------- */
/* Full-screen menu. Covers the whole viewport rather than sliding in from the
   right, so there is no backdrop element and nothing behind it to dismiss. */
.dar-mobile {
    position: fixed;
    inset: 0;
    z-index: 120;
    width: 100%;
    background: var(--dar-white);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1.25rem);
    transition: opacity .24s var(--dar-ease),
                transform .24s var(--dar-ease),
                visibility .24s var(--dar-ease);
}
.dar-mobile.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.dar-mobile__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem var(--dar-gutter);
    border-bottom: 1px solid var(--dar-rule);
    flex: none;
}
.dar-mobile__logo img { height: 62px; width: auto; }
.dar-mobile__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    background: transparent;
    border: 0;
    color: var(--dar-ink);
    cursor: pointer;
}
.dar-mobile__close svg { width: 26px; height: 26px; }
.dar-mobile__close:hover { color: var(--dar-olive); }

.dar-mobile__list {
    list-style: none;
    /* margin-block:auto centres the list without the justify-content:center
       overflow trap, so a long menu on a short screen stays scrollable. */
    margin-block: auto;
    padding: 1.75rem var(--dar-gutter);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    text-align: center;
}
.dar-mobile__list li { margin: 0; width: 100%; }
.dar-mobile__list a {
    display: block;
    padding: .6rem 1rem;
    font-family: var(--dar-font-heading);
    font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--dar-ink);
}
.dar-mobile__list a:hover { color: var(--dar-olive); }
.dar-mobile__list .dar-mobile__sub a {
    font-size: var(--dar-fs-lg);
    font-weight: 400;
    color: var(--dar-ink-soft);
    padding-block: .35rem;
}

.dar-mobile__cta {
    display: grid;
    gap: .6rem;
    padding: 1.1rem var(--dar-gutter) 1.6rem;
    border-top: 1px solid var(--dar-rule);
    flex: none;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.dar-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(420px, 58vh, 620px);
    padding-block: var(--dar-section-y);
    background: var(--dar-wash-olive);
    background-size: cover;
    background-position: center;
    color: var(--dar-ink);
    text-align: center;
}
.dar-hero--image { color: var(--dar-white); }
.dar-hero--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18,18,18,.45) 0%, rgba(18,18,18,.6) 100%);
}
.dar-hero--image .dar-hero__inner { color: var(--dar-white); }
.dar-hero--image .dar-hero__title,
.dar-hero--image .dar-hero__text { color: var(--dar-white); }

.dar-hero__inner { position: relative; z-index: 1; width: 100%; }
.dar-hero__title { margin-bottom: .5rem; }
.dar-hero__text {
    max-width: 44ch;
    margin-inline: auto;
    font-size: var(--dar-fs-lg);
    color: var(--dar-ink-soft);
}

/* Hero carrying the appointment form: copy on the left, glass form on the
   right, matching the original where the Wufoo embed sat inside the cover. */
.dar-hero--form { text-align: left; }
.dar-hero--form .dar-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 1.4rem + 2.8vw, 4rem);
}
.dar-hero--form .dar-hero__text { margin-inline: 0; }
.dar-hero--form .dar-hero__actions { justify-content: flex-start; }
.dar-hero--form.dar-hero--image::before {
    /* Darker on the copy side so white type holds, lighter behind the glass. */
    background: linear-gradient(100deg, rgba(18,18,18,.78) 0%, rgba(18,18,18,.58) 55%, rgba(18,18,18,.45) 100%);
}
.dar-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem;
    margin-top: 1.9rem;
}

/* Olive-on-dark fails contrast, so the ghost button goes white over imagery. */
.dar-body .dar-hero--image .dar-btn--ghost {
    border-color: var(--dar-white);
    color: var(--dar-white);
}
.dar-body .dar-hero--image .dar-btn--ghost:hover {
    background: var(--dar-white);
    color: var(--dar-olive-darker);
}

/* --------------------------------------------------------------------------
   9. Content blocks
   -------------------------------------------------------------------------- */
.dar-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 1.4rem + 2.6vw, 3.75rem);
    align-items: center;
}
.dar-split__media img {
    width: 100%;
    border-radius: var(--dar-radius-lg);
    box-shadow: var(--dar-shadow);
}
/* Photo on the right: reorder visually without moving it in the DOM, so the
   heading still precedes its image for screen readers and on mobile. */
.dar-split--media-right .dar-split__media { order: 2; }
.dar-split--media-right .dar-split__body  { order: 1; }

.dar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.25rem, 1rem + 1.2vw, 2rem);
}

.dar-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
    background: var(--dar-white);
    border: 1px solid var(--dar-rule);
    border-radius: var(--dar-radius-lg);
    box-shadow: var(--dar-shadow-sm);
    transition: transform .2s var(--dar-ease), box-shadow .2s var(--dar-ease);
}
.dar-card:hover { transform: translateY(-3px); box-shadow: var(--dar-shadow); }
.dar-card__title { font-size: var(--dar-fs-h4); margin-bottom: .5rem; }
.dar-card__text  { color: var(--dar-ink-soft); }

.dar-section__head {
    max-width: 62ch;
    margin: 0 auto clamp(2rem, 1.6rem + 1.6vw, 3rem);
    text-align: center;
}

/* Testimonials */
.dar-quote {
    padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
    background: var(--dar-white);
    border-radius: var(--dar-radius-lg);
    box-shadow: var(--dar-shadow-sm);
    border-top: 3px solid var(--dar-sage);
}
.dar-quote__text { font-style: italic; color: var(--dar-ink-soft); }
.dar-quote__cite {
    display: block;
    margin-top: 1rem;
    font-family: var(--dar-font-heading);
    font-weight: 700;
    font-size: var(--dar-fs-sm);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dar-olive);
    font-style: normal;
}

/* Section-level supporting image (below a card grid) */
.dar-section__media {
    margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem);
}
.dar-section__media img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--dar-radius-lg);
    box-shadow: var(--dar-shadow);
}

/* Full-width call to action — the "We Accept Most Insurance Plans" band */
.dar-cta {
    background: var(--dar-olive);
    color: var(--dar-white);
    text-align: center;
}
.dar-cta h2, .dar-cta h3 { color: var(--dar-white); }
.dar-cta p { color: rgba(255, 255, 255, .92); }
.dar-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem;
    margin-top: 1.75rem;
}
.dar-body .dar-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: .75rem;
    font-family: var(--dar-font-heading);
    font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--dar-white);
}
.dar-body .dar-cta__phone:hover { color: var(--dar-wash-olive); }
.dar-cta__phone svg { width: .8em; height: .8em; fill: currentColor; }

/* The ghost button is olive-on-transparent, which vanishes on the olive
   band. Invert it to white here (same trap as the hero — see the specificity
   note in the button section). */
.dar-body .dar-cta .dar-btn--ghost {
    border-color: var(--dar-white);
    color: var(--dar-white);
}
.dar-body .dar-cta .dar-btn--ghost:hover {
    background: var(--dar-white);
    color: var(--dar-olive-darker);
}

/* Map band */
.dar-mapsec { padding-top: var(--dar-section-y); }
.dar-mapsec__head { text-align: center; margin-bottom: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.dar-mapsec__head .dar-lede { margin-top: .5rem; }
.dar-mapsec__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem;
    margin-top: 1.5rem;
}
.dar-mapsec__note {
    margin-top: .9rem;
    font-size: var(--dar-fs-xs);
    color: var(--dar-ink-faint);
}
.dar-mapsec__frame { line-height: 0; }
.dar-mapsec__frame iframe {
    display: block;
    width: 100%;
    height: clamp(320px, 38vw, 450px);
    border: 0;
    /* The embed renders a bright map directly above the deep-blue footer;
       a hairline keeps that transition from reading as a seam. */
    border-top: 1px solid var(--dar-rule);
}

/* --------------------------------------------------------------------------
   9b. Forms — appointment request + the stock ContactForm Mendol component
   -------------------------------------------------------------------------- */
.dar-contact {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: clamp(1.75rem, 1.3rem + 2.2vw, 3.25rem);
    align-items: start;
}

/* Office info rail */
.dar-contact__info-title {
    font-size: var(--dar-fs-sm);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dar-olive);
    margin-bottom: 1rem;
}
.dar-contact__info-title + * { margin-top: 0; }
.dar-contact__list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: grid;
    gap: 1rem;
}
.dar-contact__list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin: 0;
    line-height: 1.5;
}
.dar-contact__list svg {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: .2rem;
    fill: currentColor;
    color: var(--dar-sage);
}
.dar-contact__list em {
    font-style: normal;
    font-size: var(--dar-fs-xs);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dar-ink-faint);
    margin-left: .35rem;
}
.dar-contact__hours { display: grid; gap: .4rem; margin: 0 0 1.25rem; }
.dar-contact__hours div { display: flex; justify-content: space-between; gap: 1rem; }
.dar-contact__hours dt { color: var(--dar-ink-soft); }
.dar-contact__hours dd { margin: 0; font-weight: 600; }
.dar-contact__note {
    font-size: var(--dar-fs-sm);
    color: var(--dar-ink-faint);
    line-height: 1.55;
}

/* Form card */
.dar-contact__form,
.dar-formwrap--card {
    background: var(--dar-white);
    border: 1px solid var(--dar-rule);
    border-radius: var(--dar-radius-lg);
    box-shadow: var(--dar-shadow);
    padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
}
/* The contact section supplies the card chrome itself; don't double it up. */
.dar-contact__form .dar-formwrap--card {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
}

/* ---- Glass variant (over the hero photo) ----------------------------------
   The readability complaint on the old Wufoo embed was black field labels on a
   dark photo. Here the whole form inverts: translucent dark panel, white
   labels, and inputs light enough to type into comfortably. */
.dar-formwrap--glass {
    background: rgba(18, 18, 18, .46);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--dar-radius-lg);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
    padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
}
.dar-formwrap--glass .dar-form__label {
    color: var(--dar-white);
    /* Slightly heavier than the card variant — thin white on a photo smears. */
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.dar-formwrap--glass .dar-form__label span { color: var(--dar-sage-light); }
.dar-formwrap--glass .dar-form__input {
    /* background-color, NOT the `background` shorthand — the shorthand resets
       background-image and would wipe the select chevron. */
    background-color: rgba(255, 255, 255, .94);
    border-color: rgba(255, 255, 255, .5);
    color: var(--dar-ink);
}
.dar-formwrap--glass .dar-form__input::placeholder { color: #6f6c67; }
.dar-formwrap--glass .dar-form__input:hover { border-color: var(--dar-white); }
.dar-formwrap--glass .dar-form__input:focus {
    background-color: var(--dar-white);
    border-color: var(--dar-sage-light);
    box-shadow: 0 0 0 3px rgba(179, 192, 147, .45);
}
.dar-formwrap--glass .dar-form__hint,
.dar-formwrap--glass .dar-form__privacy {
    color: rgba(255, 255, 255, .82);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.dar-formwrap--glass .dar-form__legend { color: var(--dar-sage-light); }
/* On the glass panel the olive fill goes muddy — use the white button. */
.dar-body .dar-formwrap--glass .dar-btn--primary {
    background: var(--dar-white);
    border-color: var(--dar-white);
    color: var(--dar-olive-darker);
}
.dar-body .dar-formwrap--glass .dar-btn--primary:hover {
    background: var(--dar-wash-olive);
    border-color: var(--dar-wash-olive);
    color: var(--dar-olive-darker);
}
.dar-formwrap--glass .dar-form__row { margin-bottom: .75rem; }
.dar-formwrap--glass .dar-form__actions { margin-top: 1.1rem; }

/* Browsers without backdrop-filter get a solid-enough panel instead. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .dar-formwrap--glass { background: rgba(18, 18, 18, .78); }
}

.dar-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
/* Bottom-align so a label that wraps can't knock its control out of line
   with its neighbours. */
.dar-form__row--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}
.dar-form__field { display: flex; flex-direction: column; min-width: 0; }

.dar-form__grouplabel {
    margin: 0 0 .5rem;
    font-family: var(--dar-font-heading);
    font-size: var(--dar-fs-xs);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dar-olive);
}
.dar-formwrap--glass .dar-form__grouplabel {
    color: var(--dar-sage-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.dar-form__label {
    font-family: var(--dar-font-heading);
    font-size: var(--dar-fs-xs);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dar-ink-soft);
    margin-bottom: .4rem;
}
.dar-form__label span { color: var(--dar-olive); }

.dar-form__input {
    width: 100%;
    padding: .8rem 1rem;
    font-family: var(--dar-font-body);
    font-size: var(--dar-fs-base);
    color: var(--dar-ink);
    background: var(--dar-white);
    border: 1px solid var(--dar-rule);
    border-radius: var(--dar-radius);
    transition: border-color .18s var(--dar-ease), box-shadow .18s var(--dar-ease);
    -webkit-appearance: none;
    appearance: none;
}
.dar-form__input::placeholder { color: var(--dar-ink-faint); opacity: 1; }
.dar-form__input:hover { border-color: var(--dar-sage); }
.dar-form__input:focus {
    outline: none;
    border-color: var(--dar-olive);
    box-shadow: 0 0 0 3px rgba(100, 117, 62, .16);
}
.dar-form__textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* Native select needs its own chevron once appearance is stripped. */
.dar-form__row--three .dar-form__select {
    /* Three-up columns are tight — trim the chevron gutter so the longest
       option ("Afternoon") never clips. */
    padding-left: .75rem;
    padding-right: 2rem;
    background-position: right .65rem center;
}
.dar-form__select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364753e' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 15px;
    cursor: pointer;
}

.dar-form__group {
    margin: 0 0 1rem;
    padding: 1.1rem 1.15rem .4rem;
    border: 1px dashed var(--dar-rule);
    border-radius: var(--dar-radius);
    background: var(--dar-wash);
}
.dar-form__legend {
    padding: 0 .45rem;
    font-family: var(--dar-font-heading);
    font-size: var(--dar-fs-xs);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dar-olive);
}
.dar-form__hint {
    margin: .5rem 0 0;
    font-size: var(--dar-fs-xs);
    color: var(--dar-ink-faint);
    line-height: 1.5;
}
/* Revealed by theme.js — with JS off the notes box is genuinely required. */
.dar-form__hint--js { display: none; }

.dar-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .85rem 1.25rem;
    margin-top: 1.5rem;
}
.dar-form__privacy {
    margin: 0;
    flex: 1 1 15rem;
    font-size: var(--dar-fs-xs);
    color: var(--dar-ink-faint);
    line-height: 1.5;
}

/* Honeypot — off-screen rather than display:none so bots still see it. */
.dar-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Alerts */
.dar-alert {
    padding: .95rem 1.15rem;
    border-radius: var(--dar-radius);
    margin-bottom: 1.5rem;
    font-size: var(--dar-fs-sm);
    line-height: 1.55;
}
.dar-alert ul { margin: 0; padding-left: 1.15rem; }
.dar-alert li { margin: 0; }
.dar-alert--ok {
    background: var(--dar-wash-olive);
    border: 1px solid var(--dar-sage);
    color: var(--dar-olive-darker);
    font-weight: 600;
}
.dar-alert--err {
    background: #fdf2f2;
    border: 1px solid #e5b4b4;
    color: #8a2b2b;
}

/* ---- Stock ContactForm Mendol component ------------------------------------
   `[formidable]` renders contactform::components.contact-form, which ships its
   own <style> block inline in the body. That block is unlayered and lands
   AFTER this stylesheet, so a bare `.cf-input` would win on source order.
   Scoping with `.dar-body` takes these to (0,2,0) and wins on specificity, so
   any [formidable] embed inherits the theme look without touching the Mendol. */
.dar-body .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.dar-body .cf-field { display: flex; flex-direction: column; min-width: 0; }
.dar-body .cf-label {
    font-family: var(--dar-font-heading);
    font-size: var(--dar-fs-xs);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dar-ink-soft);
    margin-bottom: .4rem;
}
.dar-body .cf-input {
    width: 100%;
    padding: .8rem 1rem;
    font-family: var(--dar-font-body);
    font-size: var(--dar-fs-base);
    color: var(--dar-ink);
    background: var(--dar-white);
    border: 1px solid var(--dar-rule);
    border-radius: var(--dar-radius);
    transition: border-color .18s var(--dar-ease), box-shadow .18s var(--dar-ease);
}
.dar-body .cf-input:hover { border-color: var(--dar-sage); }
.dar-body .cf-input:focus {
    outline: none;
    border-color: var(--dar-olive);
    box-shadow: 0 0 0 3px rgba(100, 117, 62, .16);
}
/* The stock component's submit button uses the framework's .btn .btn-primary. */
.dar-body .contact-form-wrapper .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dar-olive);
    border-radius: 999px;
    background: var(--dar-olive);
    color: var(--dar-white);
    font-family: var(--dar-font-heading);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
}
.dar-body .contact-form-wrapper .btn-primary:hover {
    background: var(--dar-olive-dark);
    border-color: var(--dar-olive-dark);
    color: var(--dar-white);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.dar-footer {
    background: var(--dar-navy-deep);
    color: rgba(255, 255, 255, .80);
    padding-top: var(--dar-section-y);
    font-size: var(--dar-fs-sm);
}
.dar-footer a { color: rgba(255, 255, 255, .78); }
.dar-footer a:hover { color: var(--dar-sage-light); }

.dar-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(2rem, 1.5rem + 2vw, 3.25rem);
    padding-bottom: var(--dar-section-y);
}
/* The logo is navy type + a full-colour illustration on transparent, so it
   disappears on the dark footer. Inverting it flattens the artwork to a white
   silhouette and loses the brand entirely — instead it sits on a white chip,
   which keeps the real logo colours intact. */
.dar-footer__logo {
    display: inline-block;
    padding: .7rem .9rem;
    background: var(--dar-white);
    border-radius: var(--dar-radius);
}
.dar-footer__logo img {
    height: 58px;
    width: auto;
}
.dar-footer__title {
    font-family: var(--dar-font-heading);
    font-size: var(--dar-fs-sm);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dar-white);
    margin-bottom: 1rem;
}
.dar-footer__list { list-style: none; margin: 0; padding: 0; }
.dar-footer__list li { margin-bottom: .55rem; }

.dar-footer__hours { display: grid; gap: .4rem; }
.dar-footer__hours div { display: flex; justify-content: space-between; gap: 1rem; }
.dar-footer__hours dt { color: rgba(255, 255, 255, .78); }
.dar-footer__hours dd { margin: 0; color: var(--dar-white); }

.dar-social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.dar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--dar-navy-line);
    border-radius: 50%;
    transition: background-color .18s var(--dar-ease), border-color .18s var(--dar-ease);
}
.dar-social a:hover { background: var(--dar-olive); border-color: var(--dar-olive); }
.dar-social svg { width: 18px; height: 18px; fill: currentColor; }

.dar-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-block: 1.4rem;
    border-top: 1px solid var(--dar-navy-line);
    font-size: var(--dar-fs-xs);
    color: rgba(255, 255, 255, .62);
}

/* --------------------------------------------------------------------------
   9c. Dental Health Topics library + instant search
   -------------------------------------------------------------------------- */
.dar-search {
    max-width: 620px;
    margin: 0 auto clamp(2.5rem, 2rem + 2vw, 3.75rem);
}
.dar-search__label {
    display: block;
    text-align: center;
    font-family: var(--dar-font-heading);
    font-size: var(--dar-fs-xs);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dar-olive);
    margin-bottom: .6rem;
}
.dar-search__box {
    position: relative;
    display: flex;
    align-items: center;
}
.dar-search__icon {
    position: absolute;
    left: 1.05rem;
    width: 20px;
    height: 20px;
    color: var(--dar-ink-faint);
    pointer-events: none;
}
.dar-search__input {
    width: 100%;
    padding: .95rem 3rem .95rem 3rem;
    font-family: var(--dar-font-body);
    font-size: var(--dar-fs-lg);
    color: var(--dar-ink);
    background: var(--dar-white);
    border: 1px solid var(--dar-rule);
    border-radius: 999px;
    box-shadow: var(--dar-shadow-sm);
    transition: border-color .18s var(--dar-ease), box-shadow .18s var(--dar-ease);
    -webkit-appearance: none;
    appearance: none;
}
.dar-search__input::placeholder { color: var(--dar-ink-faint); opacity: 1; }
.dar-search__input:focus {
    outline: none;
    border-color: var(--dar-olive);
    box-shadow: 0 0 0 3px rgba(100, 117, 62, .16);
}
/* Safari draws its own clear affordance on type=search; we ship our own. */
.dar-search__input::-webkit-search-decoration,
.dar-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.dar-search__clear {
    position: absolute;
    right: .9rem;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--dar-ink-faint);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
.dar-search__clear:hover { color: var(--dar-ink); background: var(--dar-wash); }
/* An explicit display value beats the UA's [hidden]{display:none}, so the
   clear button needs its own hidden rule or it shows on an empty field. */
.dar-search__clear[hidden] { display: none; }
.dar-search__status {
    margin-top: .7rem;
    text-align: center;
    font-size: var(--dar-fs-sm);
    color: var(--dar-ink-faint);
}

.dar-library__group { margin-bottom: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem); }
.dar-library__group[hidden] { display: none; }
.dar-library__group-title {
    font-size: var(--dar-fs-h4);
    color: var(--dar-olive-dark);
    padding-bottom: .6rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--dar-wash-olive);
}

.dar-topic {
    display: flex;
    flex-direction: column;
    padding: clamp(1.35rem, 1.1rem + .9vw, 1.85rem);
    background: var(--dar-white);
    border: 1px solid var(--dar-rule);
    border-radius: var(--dar-radius-lg);
    box-shadow: var(--dar-shadow-sm);
    transition: transform .2s var(--dar-ease), box-shadow .2s var(--dar-ease), border-color .2s var(--dar-ease);
}
.dar-topic[hidden] { display: none; }
.dar-topic:hover {
    transform: translateY(-3px);
    box-shadow: var(--dar-shadow);
    border-color: var(--dar-sage);
}
.dar-body .dar-topic__title {
    font-size: var(--dar-fs-h5);
    color: var(--dar-ink);
    margin-bottom: .5rem;
}
.dar-topic__text {
    flex: 1;
    font-size: var(--dar-fs-sm);
    color: var(--dar-ink-soft);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.dar-topic__more {
    font-family: var(--dar-font-heading);
    font-size: var(--dar-fs-xs);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dar-olive);
}
.dar-topic:hover .dar-topic__more { color: var(--dar-olive-dark); }

.dar-library__empty {
    text-align: center;
    padding: 2.5rem 0;
    color: var(--dar-ink-soft);
}

/* --------------------------------------------------------------------------
   10b. Inner page header (Pages Mendol chrome)
   `pages::pages.show` renders .inner-hero / .inner-hero-banner /
   .inner-hero-overlay. The framework styles those for a dark banner image; a
   page with no banner set renders near-black type on a near-black band. These
   are framework classes rather than theme structure, so they're restyled here
   the same way the ContactForm component is — theme.css is unlayered and
   app.css is in @layer framework, so these win without !important.
   -------------------------------------------------------------------------- */
.dar-body .inner-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding-block: clamp(2.5rem, 2rem + 2.4vw, 4.25rem);
    background: var(--dar-wash-olive);
    text-align: center;
}
.dar-body .inner-hero-banner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
/* Empty banner div — nothing to show, so don't let it paint a dark block. */
.dar-body .inner-hero-banner:empty { background: none; }

.dar-body .inner-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--dar-container);
    margin-inline: auto;
    padding-inline: var(--dar-gutter);
    background: none;
}
.dar-body .inner-hero-overlay h1 {
    margin: 0;
    color: var(--dar-ink);
}
/* A page whose body is empty (content lives in page-builder sections) still
   renders `<div class="inner-content">` with whitespace inside, so :empty
   never matches and the framework's padding leaves a dead white band under
   the header. Pad only when there is an actual element child. */
.dar-body .inner-content { padding-block: 0; }
.dar-body .inner-content:has(> *) {
    padding-block: var(--dar-section-y);
    /* Narrow measure — imported article bodies run to ~140 characters a line
       at full container width, which is well past comfortable reading. */
    max-width: var(--dar-container-n);
    margin-inline: auto;
    padding-inline: var(--dar-gutter);
}

/* --------------------------------------------------------------------------
   11. Rich content (Pages / Blog bodies)
   -------------------------------------------------------------------------- */
.dar-rich > :first-child { margin-top: 0; }
.dar-rich > :last-child  { margin-bottom: 0; }
.dar-rich h2 { margin-top: 2.25em; }
.dar-rich h3 { margin-top: 1.9em; }
.dar-rich img { border-radius: var(--dar-radius); margin-block: 1.75rem; }
.dar-rich table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 1.75rem;
    font-size: var(--dar-fs-sm);
}
.dar-rich th, .dar-rich td {
    padding: .7rem .9rem;
    border: 1px solid var(--dar-rule);
    text-align: left;
}
.dar-rich th { background: var(--dar-wash); font-weight: 700; }

/* Wide content must scroll inside itself, never the page. */
.dar-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .dar-header__bottom { display: none; }
    .dar-burger { display: inline-flex; }

    /* Equal outer columns keep the logo optically centred even though Call and
       Text render at slightly different widths. */
    .dar-header__top {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: .75rem;
        padding-block: .85rem;
    }
    .dar-logo img { height: 92px; }

    /* Both rails carry a full labelled button, matched in size — the icon-only
       circle the Call button used to collapse to read as a different control.
       Stacking the icon over the label makes each rail much narrower, which is
       what buys the centre column the width for a bigger logo. */
    .dar-header__rail--left  { justify-content: flex-start; }
    .dar-header__rail--right { justify-content: flex-end; }
    .dar-header__rail .dar-btn {
        flex-direction: column;
        gap: .3rem;
        min-width: 72px;
        padding: .6rem .7rem;
        /* A stadium radius reads as an oval once the button is this tall. */
        border-radius: var(--dar-radius-lg);
        justify-content: center;
    }
    .dar-header__rail .dar-btn__icon { width: 1.3em; height: 1.3em; }
    .dar-header__rail .dar-btn__label { display: inline; }
}

@media (max-width: 400px) {
    /* Tightest phones: trim the rails rather than let the logo shrink. */
    .dar-header__top { gap: .4rem; }
    .dar-header__rail .dar-btn { min-width: 64px; padding-inline: .5rem; }
}

@media (max-width: 980px) {
    /* Hero copy stacks above the form; centre it again like the plain hero. */
    .dar-hero--form { text-align: center; }
    .dar-hero--form .dar-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .dar-hero--form .dar-hero__text { margin-inline: auto; }
    .dar-hero--form .dar-hero__actions { justify-content: center; }
    .dar-formwrap--glass { text-align: left; }
    .dar-hero--form.dar-hero--image::before {
        background: linear-gradient(180deg, rgba(18,18,18,.55) 0%, rgba(18,18,18,.68) 100%);
    }

    /* Split blocks stack. The DOM order is media-then-body, and
       .dar-split--media-right only reorders on the grid, so reset the order
       here or the photo would jump above its heading on phones. */
    .dar-split { grid-template-columns: minmax(0, 1fr); }
    .dar-split--media-right .dar-split__media,
    .dar-split--media-right .dar-split__body { order: 0; }
}

@media (max-width: 900px) {
    /* Info rail stacks above the form card. */
    .dar-contact { grid-template-columns: minmax(0, 1fr); }
    .dar-form__row--three { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .dar-form__row,
    .dar-form__row--three,
    .dar-body .cf-row { grid-template-columns: minmax(0, 1fr); }
    .dar-form__actions { flex-direction: column; align-items: stretch; }
    .dar-form__actions .dar-btn { width: 100%; }
    .dar-form__privacy { flex: 1 1 auto; text-align: center; }

    /* Full-width direction buttons are far easier to hit on a phone, which is
       where "directions from here" actually gets used. */
    .dar-mapsec__actions { flex-direction: column; align-items: stretch; }
    .dar-mapsec__actions .dar-btn { width: 100%; }
}

@media (max-width: 560px) {
    .dar-logo img { height: 82px; }
    .dar-hero { text-align: center; }
    .dar-footer__bottom { justify-content: center; text-align: center; }
}

/* --------------------------------------------------------------------------
   13. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .dar-body *,
    .dar-body *::before,
    .dar-body *::after {
        animation-duration: .01ms;
        animation-iteration-count: 1;
        transition-duration: .01ms;
        scroll-behavior: auto;
    }
}

@media print {
    .dar-header, .dar-footer, .dar-mobile, .dar-mobile-overlay,
    .dar-burger, .dar-hero__actions, .dar-cta__actions { display: none; }
    .dar-body { color: #000; background: #fff; }
}
