/* ============================================================
   WULING UK — REUSABLE SECTION TEMPLATES: SHARED BASE
   ============================================================
   Loaded once, globally, before every other css/sections-*.css file.
   Defines the conventions every section partial in partials/sections/
   is built against, so all ~35 templates in the Section Library read
   as one consistent system rather than 35 one-off designs.

   CONTAINER / SPACING CONVENTION
   -------------------------------
   Every section: full-bleed background (colour alternates per section
   for rhythm — see .sec-alt below), inner content capped at 1400px
   (matches nav.css's own max-width), same horizontal gutter/breakpoint
   scale as the pillar sub-nav (56 / 40 / 32 / 24px) so a section never
   feels narrower or wider than the nav strip above it.

   Vertical rhythm uses a single scale: --sec-pad-y (96px desktop, tapering
   down at each breakpoint). Sections butt up against each other with a
   1px --border rule, exactly like the spacer blocks in the original
   bingo/index.php nav-preview page — so replacing a spacer with a real
   section changes only what's inside it, not the page's overall rhythm.

   IMAGE PLACEHOLDER CONVENTION
   -------------------------------
   No real photography/video exists yet for any vehicle. Every section
   that needs one uses .img-placeholder instead of a broken <img> tag —
   a fixed-ratio box with a visible caption naming exactly what asset
   belongs there, so Jon can see the intended layout AND know exactly
   what to shoot/source, without a missing-image icon reading as a bug.
   Usage:
     <div class="img-placeholder" style="--ratio: 16/10;">
         <span>Hero — Bingo, 3/4 front, studio</span>
     </div>
============================================================ */

:root {
    --sec-pad-y: 96px;
    --sec-pad-x: 56px;
    --sec-max: 1400px;
    --sec-gap: 28px;
    --sec-radius: 4px;
}

.sec {
    padding: var(--sec-pad-y) var(--sec-pad-x);
    border-top: 1px solid var(--border);
}
.sec:first-child { border-top: none; }
.sec-alt { background: var(--bg); }

.sec-inner {
    max-width: var(--sec-max);
    margin: 0 auto;
}

.sec-inner-narrow {
    max-width: 760px;
    margin: 0 auto;
}

/* ─── shared section heading block ─── */
.sec-head {
    max-width: 720px;
    margin-bottom: 48px;
}
.sec-head.sec-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 {
    font-family: 'Epilogue', sans-serif;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.12;
    font-size: clamp(26px, 3vw, 38px);
    color: var(--ink);
    margin-bottom: 14px;
}
.sec-head p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ink-mid);
}

/* ─── image placeholder ─── */
.img-placeholder {
    --ratio: 4/3;
    aspect-ratio: var(--ratio);
    width: 100%;
    border-radius: var(--sec-radius);
    background:
        repeating-linear-gradient(135deg, var(--bg2), var(--bg2) 10px, var(--bg) 10px, var(--bg) 20px);
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
}
.img-placeholder span {
    font-family: 'Epilogue', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mid);
    background: var(--white);
    border: 1px solid var(--border2);
    border-radius: 3px;
    padding: 6px 12px;
    line-height: 1.5;
}

/* ─── generic responsive card grid, N columns via --cols ─── */
.sec-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    gap: var(--sec-gap);
}

/* ─── generic scannable card, used across many templates ─── */
.sec-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--sec-radius);
    padding: 28px 26px;
}
.sec-card h3 {
    font-family: 'Epilogue', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 10px;
}
.sec-card p {
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--ink-mid);
}

/* ─── placeholder-fact tag — flags a number/claim not yet confirmed ─── */
.tbd {
    display: inline-block;
    font-family: 'Epilogue', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-pale);
    border-radius: 3px;
    padding: 2px 6px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ─── WIREFRAME PLACEHOLDER ───
   2026-09-03: Jon asked for every section template to render as a plain
   single-sentence placeholder — not a designed layout — so the page
   structure is visible without pre-empting how each section actually gets
   designed later, one at a time. This is the shared look every
   partials/sections/*.php file now uses for its output. Matches the plain
   spacer-block style from the original bingo/index.php nav preview.
   Nav and footer are NOT part of this — they're already signed off. */
.sec-placeholder {
    padding: 88px var(--sec-pad-x);
    text-align: center;
}
.sec-placeholder-label {
    font-family: 'Epilogue', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mid);
    margin-bottom: 8px;
}
.sec-placeholder-note {
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-mid);
    max-width: 620px;
    margin: 0 auto;
}

/* ─── pillar links hub — real, functional cards (see partials/pillar-links-hub.php) ─── */
.hub-kicker {
    font-family: 'Epilogue', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}
.hub-card {
    display: block;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.hub-card:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}
.hub-card-tag {
    display: inline-block;
    font-family: 'Epilogue', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mid);
    background: var(--bg2);
    border-radius: 3px;
    padding: 3px 8px;
    margin-bottom: 12px;
}
.hub-card-note {
    font-size: 12px;
    font-weight: 500;
    color: var(--red);
    margin-top: 8px;
}
.hub-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Epilogue', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 18px;
}

@media (max-width: 1300px) { :root { --sec-pad-x: 40px; } }
@media (max-width: 1080px) { :root { --sec-pad-x: 32px; --sec-pad-y: 80px; } }
@media (max-width: 935px)  {
    :root { --sec-pad-x: 24px; --sec-pad-y: 64px; }
    .sec-grid { grid-template-columns: repeat(min(2, var(--cols, 3)), 1fr); }
}
@media (max-width: 600px) {
    .sec-grid { grid-template-columns: 1fr; }
}
