/*
Theme Name:   Vonbruckenfock
Theme URI:    https://tandarts.essentialswordpress.com/
Author:       SAM Online Marketing
Author URI:   https://essentialswordpress.com/
Description:  Blankslate theme for tandarts.essentialswordpress.com (Tandartspraktijk Von Brücken Fock). Classic PHP templates, vanilla JS only (no jQuery), Google-friendly SEO, WP Meta Boxes. Gutenberg disabled. House rule: every author-defined class is camelCase.
Version:      0.1.0
Requires at least: 6.5
Requires PHP: 8.1
License:      Proprietary
Text Domain:  vonbruckenfock
Tags:         dentist, healthcare, clinic, marketing, light
*/

/* =========================================================================
   1. Design tokens  — sourced from Figma "Von Brucken Fock" (node 10:3).
   CSS custom properties stay kebab-case (CSS convention). The camelCase
   house rule applies to *class names*, not to custom properties.
   ========================================================================= */

:root {
    /* surfaces & text */
    --bg:            #ffffff;
    --surface:       #ffffff;
    --surface-alt:   #f0f0ef;
    --border:        #e6e6e4;
    --border-strong: #cfcfcb;
    --text:          #1a1a1a;
    --text-muted:    #6b6b68;

    /* ink — the dark hero backdrop and dark cards */
    --ink:           #1a1a1a;
    --ink-soft:      #191919;
    --ink-ink:       #fefefe;

    /*
     * primary — brand gold (CTA, accents, the headline period).
     * --primary-ink is white to match the Figma. Note that white-on-gold is
     * ~2.2:1, below the WCAG AA 4.5:1 threshold; --primary-ink-safe is the
     * accessible alternative (~5.9:1) if that ever needs to change.
     */
    --primary:         #c6a567;
    --primary-hover:   #b6924e;
    --primary-ink:     #fefefe;
    --primary-ink-safe:#1a1a1a;
    --primary-soft:    #f5eedf;

    /*
     * accent — muted teal (tags / labels). --accent-deep is the more saturated
     * teal the artboard uses for highlighted words in body headings; it is a
     * genuinely different value from --accent, not a shade of it.
     */
    --accent:        #4e878c;
    --accent-hover:  #416f73;
    --accent-deep:   #278784;
    --accent-ink:    #ffffff;
    --accent-soft:   #e4eeef;

    /* utility */
    --danger:        #db3a3a;
    --danger-hover:  #c32f2f;
    --rule:          #d5d5d5;   /* hairline section dividers */

    /* radii */
    --radius-xs:     4px;
    --radius-sm:     7px;
    --radius-md:     10px;
    --radius-lg:     18px;
    --radius-card:   15px;   /* panels: service cards, testimonials */
    --radius-hero:   35px;
    --radius-pill:   100px;

    /* spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;

    /*
     * type — the two licensed families from the Figma. Drop the .woff2 files
     * into inc/fonts/ and they activate automatically (see inc/fonts.php);
     * until then the condensed / grotesque fallbacks below carry the layout.
     */
    --font-display: 'Formula Condensed', 'Archivo Narrow', 'Arial Narrow', system-ui, sans-serif;
    --font-body:    'Sofia Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --fs-h1:   clamp(2.25rem, 1.4rem + 3.5vw, 3.75rem);
    --fs-h2:   clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
    --fs-h3:   1.5rem;
    --fs-h4:   1.25rem;
    --fs-body: 1rem;
    --fs-sm:   0.875rem;
    --fs-xs:   0.75rem;

    --lh-tight: 1.15;
    --lh-snug:  1.35;
    --lh-body:  1.6;

    /*
     * layout — the Figma content column runs x321 → x1600 on a 1920 artboard,
     * i.e. 1280px of *content*. --container-max is an outer width that includes
     * the gutter, so it carries 1280 + 2x --gutter to land on those edges.
     */
    --container-max: 1328px;
    --gutter:        var(--space-5);
    --hero-inset:    17px;   /* image strip inset from the viewport edge */

    /* shadows */
    --shadow-sm: 0 1px 2px rgba(16, 36, 43, 0.05), 0 1px 1px rgba(16, 36, 43, 0.03);
    --shadow-md: 0 6px 18px rgba(16, 36, 43, 0.08), 0 2px 6px rgba(16, 36, 43, 0.05);
    --shadow-lg: 0 18px 42px rgba(16, 36, 43, 0.12), 0 6px 12px rgba(16, 36, 43, 0.06);

    /* motion */
    --ease:          cubic-bezier(.2, .6, .2, 1);
    --duration-fast: 150ms;
    --duration-base: 240ms;
    --duration-slow: 600ms;
}

/* =========================================================================
   2. Modern reset
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    line-height: var(--lh-body);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* =========================================================================
   3. Typography
   ========================================================================= */

/*
 * Display face is condensed, so headings take uppercase + neutral tracking.
 * Negative letter-spacing (the old Manrope setting) closes condensed
 * counters up until the words start to blur together.
 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { line-height: var(--lh-body); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

/* =========================================================================
   4. Layout primitives
   ========================================================================= */

.section        { background: var(--bg); }
.sectionSurface { background: var(--surface); }
.sectionAlt     { background: var(--surface-alt); }
.sectionPrimary { background: var(--primary); color: var(--primary-ink); }

.row       { padding-block: var(--space-8); }
.rowTight  { padding-block: var(--space-6); }
.rowLoose  { padding-block: var(--space-9); }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.containerNarrow { max-width: 760px; }
.containerWide   { max-width: 1400px; }

.grid     { display: grid; gap: var(--space-5); }
.grid2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gridAuto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

@media (max-width: 860px) {
    .grid2, .grid3 { grid-template-columns: 1fr; }
}

.stack   > * + * { margin-top: var(--space-4); }
.stackLg > * + * { margin-top: var(--space-6); }

/* =========================================================================
   5. Components
   ========================================================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-body);   /* Figma sets buttons in Sofia Pro, not the display face */
    font-weight: 600;
    font-size: var(--fs-body);
    line-height: 1;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: background var(--duration-fast) var(--ease),
                color var(--duration-fast) var(--ease),
                border-color var(--duration-fast) var(--ease),
                transform var(--duration-fast) var(--ease);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.btnPrimary { background: var(--primary); color: var(--primary-ink) !important; }
.btnPrimary:hover { background: var(--primary-hover); }
.btnAccent  { background: var(--accent);  color: var(--accent-ink) !important; }
.btnAccent:hover  { background: var(--accent-hover); }
.btnGhost   { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btnGhost:hover   { background: var(--surface-alt); }

/* Solid ink pill — the "Meer over ons" style CTA on light ground. */
.btnInk { background: var(--ink); color: var(--ink-ink) !important; }
.btnInk:hover { background: #2e2e2e; }

/* Urgent-care pill ("Spoed"). */
.btnDanger { background: var(--danger); color: #fff !important; }
.btnDanger:hover { background: var(--danger-hover); }

/* Outlined button for use on dark ground ("Inschrijven" in the hero card). */
.btnOutlineLight {
    background: transparent;
    color: var(--ink-ink) !important;
    border-color: currentColor;
}
.btnOutlineLight:hover { background: rgba(255, 255, 255, 0.12); }

.btnSm { font-size: var(--fs-sm); padding: 0.55rem 1rem; }
.btnLg { font-size: 1.05rem; padding: 1rem 1.7rem; }
.btnBlock { display: flex; width: 100%; }

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    transition: border-color var(--duration-base) var(--ease),
                box-shadow var(--duration-base) var(--ease),
                transform var(--duration-base) var(--ease);
}
.cardLink:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.cardTitle {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-h4);
    line-height: var(--lh-snug);
}
.cardMeta { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--space-2); }

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--surface-alt);
    color: var(--text);
}
.badgeAccent  { background: var(--accent-soft);  color: var(--accent-hover); }
.badgePrimary { background: var(--primary-soft); color: var(--primary); }

/* Prose (long-form the_content) */
.prose { max-width: 70ch; font-size: 1.05rem; line-height: var(--lh-body); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 1.4rem; list-style: revert; }
.prose li + li { margin-top: var(--space-2); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
    border-left: 3px solid var(--primary);
    padding-left: var(--space-4);
    color: var(--text-muted);
    font-style: italic;
}

/* =========================================================================
   6. Site chrome — header / nav / mega / drawer / footer
   ========================================================================= */

.skipLink {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skipLink:focus {
    position: fixed;
    left: 1.5rem;
    top: 1.5rem;
    width: auto;
    height: auto;
    /* Ink rather than the brand gold — white on gold is only ~2.2:1. */
    background: var(--ink);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 100;
}

/*
 * Header has two grounds:
 *   .siteHeader              — solid ink bar, sticky. Inner pages.
 *   .siteHeaderOverlay       — transparent, laid over the hero. Front page.
 *   .siteHeaderOverlay.isStuck — re-solidifies once the hero scrolls past
 *                                (class toggled in inc/js/app.js).
 * Both render light-on-dark, so the nav styling below is written for dark
 * ground once rather than duplicated per variant.
 */
.siteHeader {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ink);
    color: var(--ink-ink);
}
.siteHeaderOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
}
.siteHeaderOverlay.isStuck {
    position: fixed;
    background: var(--ink);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    animation: siteHeaderDrop var(--duration-base) var(--ease);
}
@keyframes siteHeaderDrop {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .siteHeaderOverlay.isStuck { animation: none; }
}

.siteHeaderInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    min-height: 69px;
    padding-block: 25px;
}
.siteHeaderOverlay.isStuck .siteHeaderInner { padding-block: 12px; min-height: 56px; }

.siteLogo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.5rem;          /* 40px in the Figma */
    line-height: 1;
    text-transform: uppercase;
    color: var(--ink-ink);
    flex-shrink: 0;
}
.siteLogo img { max-height: 48px; width: auto; }
.siteLogoMark {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--primary-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.siteNav { display: flex; align-items: center; gap: 2.5rem; }
.siteNavList { display: flex; align-items: center; gap: 2.5rem; }
.siteNavItem { position: relative; }
.siteNavLink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-ink);
    transition: color var(--duration-fast) var(--ease);
}
.siteNavLink:hover { color: var(--primary); }
.siteNavLink[aria-current="page"] { color: var(--primary); }

/* "Spoed" — urgent-care pill sitting inside the nav list. */
.siteNavUrgent {
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-pill);
    background: var(--danger);
    color: #fff;
    font-weight: 500;
}
.siteNavUrgent:hover { background: var(--danger-hover); color: #fff; }

.siteNavCta { flex-shrink: 0; padding: 0.9rem 1.9rem; font-size: 1rem; }
.siteNavCta svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Circular hamburger — visible at every breakpoint in this design. */
.navToggle {
    display: inline-flex;
    width: 69px;
    height: 69px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ink-ink);
    transition: background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}
.navToggle:hover { background: rgba(255, 255, 255, 0.12); }
.navToggleBars { display: flex; flex-direction: column; gap: 5px; }
.navToggleBar {
    display: block;
    width: 21px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--duration-base) var(--ease), opacity var(--duration-base) var(--ease);
}
.navToggle[aria-expanded="true"] .navToggleBar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navToggle[aria-expanded="true"] .navToggleBar:nth-child(2) { opacity: 0; }
.navToggle[aria-expanded="true"] .navToggleBar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1100px) {
    .siteNavList { display: none; }
    .siteNav { gap: var(--space-4); }
    .siteLogo { font-size: 2rem; }
}
@media (max-width: 640px) {
    .siteHeaderInner { padding-block: 16px; }
    .navToggle { width: 52px; height: 52px; }
    .siteNavCta { padding: 0.75rem 1.2rem; font-size: 0.9rem; }
    .siteNavCta svg { display: none; }
    .siteLogo { font-size: 1.75rem; }
    /* Logo + toggle + CTA is already the full width here; Spoed stays
       reachable from the drawer. */
    .siteNavUrgent { display: none; }
}

/* Mobile drawer (lives OUTSIDE .siteHeader — backdrop-filter would clip it) */
.navDrawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    pointer-events: none;
}
.navDrawer.isOpen { visibility: visible; pointer-events: auto; }
.navDrawerBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease);
}
.navDrawer.isOpen .navDrawerBackdrop { opacity: 1; }
.navDrawerPanel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(400px, 90vw);
    background: var(--ink);
    color: var(--ink-ink);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease);
    overflow-y: auto;
}
.navDrawer.isOpen .navDrawerPanel { transform: translateX(0); }
.navDrawerHead { display: flex; align-items: center; justify-content: space-between; }
.navDrawerClose {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-ink);
}
.navDrawerClose:hover { background: rgba(255, 255, 255, 0.12); }
.navDrawerNav { display: flex; flex-direction: column; gap: 2px; }
.navDrawerLink {
    display: block;
    padding: 0.9rem 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--ink-ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: color var(--duration-fast) var(--ease);
}
.navDrawerLink:hover { color: var(--primary); }
.navDrawerFoot { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-3); }
body.navOpen { overflow: hidden; }

/* =========================================================================
   Footer — Figma node 8:6.

   Dark panel inset 18px from the viewport, 15px radius. Four columns on the
   1280 content column (476 / 254 / 304 / 245): brand, a two-column
   treatments list spanning the middle pair, then contact. The legal row
   below sits on the same grid.
   ========================================================================= */

.siteFooter { background: var(--bg); padding-bottom: 18px; }

.siteFooterPanel {
    margin: 0 18px;
    padding-block: 142px 39px;
    border-radius: var(--radius-card);
    background: var(--ink);
    color: var(--ink-ink);
}

.footerGrid {
    display: grid;
    grid-template-columns: 476fr 254fr 304fr 245fr;
    column-gap: 0;
    row-gap: var(--space-7);
}
.footerBrand      { grid-column: 1; }
/* The artboard drops the 30px column headings 7px below the 55px brand. */
.footerTreatments { grid-column: 2 / 4; padding-top: 7px; }
.footerContact    { grid-column: 4; padding-top: 7px; }

.footerBrandName {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3.4375rem;              /* 55px */
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
}
.footerBrandName::after { content: "."; color: var(--primary); }

.footerHeading {
    margin: 0;
    font-size: 1.875rem;               /* 30px */
    line-height: 1;
    color: #fff;
}
/*
 * Gold, matching every other heading period on the site. The artboard gives
 * the "Contact & Spoed" one #6b4d57, which against #1a1a1a reads as a smudge
 * rather than an accent — treated as a slip rather than intent.
 */
.footerHeading::after { content: "."; color: var(--primary); }

.footerIntro,
.footerAddress,
.footerList,
.footerCredit,
.footerLegalLink {
    font-size: 1rem;
    font-weight: 300;                  /* Sofia Pro Light */
    line-height: 1.875;                /* 30px */
    color: #fff;
}

/* Clipped to two lines on the artboard, with the sentence trailing off. */
.footerIntro {
    margin: 42px 0 0;
    max-width: 356px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.footerAddress { margin: 60px 0 0; font-style: normal; max-width: 245px; }
.footerAddressLine { display: block; }

.footerTreatmentCols {
    display: grid;
    grid-template-columns: 254fr 304fr;
    margin-top: 60px;
}
.footerList { margin: 0; padding: 0; list-style: none; max-width: 198px; }

.footerLink {
    color: inherit;
    transition: color var(--duration-fast) var(--ease);
}
.footerLink:hover { color: var(--primary); }

.footerCta { margin-top: 16px; height: 39px; padding: 0 21px; font-size: 1rem; font-weight: 500; }

/* Legal row, on the same four columns as the block above. */
.footerBottom {
    display: grid;
    grid-template-columns: 476fr 254fr 304fr 245fr;
    align-items: start;
    margin-top: 134px;
}
.footerCredit { margin: 0; }
.footerLegalLink { align-self: end; }

@media (max-width: 1023px) {
    .siteFooterPanel { padding-block: 4.5rem 3rem; }
    .footerGrid,
    .footerBottom { grid-template-columns: 1fr 1fr; row-gap: var(--space-6); }
    .footerBrand      { grid-column: 1 / -1; }
    .footerTreatments { grid-column: 1 / -1; }
    .footerContact    { grid-column: 1 / -1; }
    .footerBottom { margin-top: var(--space-7); gap: var(--space-3) var(--space-5); }
    .footerLegalLink { align-self: start; }
}

@media (max-width: 560px) {
    .siteFooterPanel { margin: 0 10px; padding-block: 3rem 2rem; }
    .footerGrid,
    .footerBottom { grid-template-columns: 1fr; }
    .footerTreatmentCols { grid-template-columns: 1fr; }
    /* 198px is an artboard column width; stacked it would wrap for no reason. */
    .footerList { max-width: none; }
    .footerBrandName { font-size: 2.25rem; }
}

/* =========================================================================
   7. Sections — ctaBand
   The hero banner is front-page only and lives in inc/css/front-page.css,
   which the enqueue auto-router loads just for that template.
   ========================================================================= */

.ctaBand { background: var(--primary); color: var(--primary-ink); }
.ctaBandInner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-5); }
.ctaBandTitle { color: var(--primary-ink); }
.ctaBandText { color: rgba(255, 255, 255, 0.85); margin-top: var(--space-2); max-width: 46ch; }

/* Search form */
.searchForm { display: flex; gap: var(--space-2); width: 100%; }
.searchFormInput {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: var(--fs-body);
    transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
.searchFormInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* =========================================================================
   8. Responsive footer
   The header's own breakpoints sit with the header rules in section 6 —
   this design keeps the CTA and the hamburger visible at every width, so
   there is no "collapse the nav" step to define here.
   ========================================================================= */

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

/* =========================================================================
   9. Motion baseline
   Targets carry data-motion (matching dev's semantic hooks). CSS hides them
   only while JS is present AND booting; app.js sets window.vbfMotionBooted and
   reveals via .isVisible. The html.js / :not(.motionFallback) guards in
   header.php keep content visible if JS never boots. Keep in sync with app.js.
   ========================================================================= */

html.js:not(.motionFallback) [data-motion] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
    will-change: opacity, transform;
}
html.js:not(.motionFallback) [data-motion].isVisible {
    opacity: 1;
    transform: none;
}

/* Per-page speed presets (set on <main> by the Page behavior meta box). */
.motionFast [data-motion] { transition-duration: var(--duration-base); }
.motionSlow [data-motion] { transition-duration: 900ms; }
.motionOff  [data-motion] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Per-page layout presets. */
.narrowContent .container { max-width: 720px; }
.wideContent   .container { max-width: 1400px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    [data-motion] { opacity: 1 !important; transform: none !important; }
}

/* =========================================================================
   10. Utilities
   ========================================================================= */

.srOnly,
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.textMuted  { color: var(--text-muted); }
.textCenter { text-align: center; }
