/* =====================================================================
   Sahu Plywood & Hardware — design system: base + core components
   BUILD_PLAN Phase 2.1. Depends on tokens.css.

   PROJECT FILE, not boilerplate — keeps global.css merge-clean.

   SCOPE NOTE: this holds the primitives every page needs and the ones
   where the contrast rules actually bite (buttons above all). The nine
   CONTENT components in the 2.1 inventory — category card, product card,
   spec table, USP tile, process step, sticky action bar, WhatsApp float,
   breadcrumb, pagination, language switcher — are deliberately NOT here.
   They cannot be finalised before their markup exists (Phase 3/4), and
   guessing them now is how a design system gets rebuilt twice.
   ===================================================================== */

/* ---------------------------------------------------------------
   1. Base
   --------------------------------------------------------------- */
body {
   background: var(--ground);
   color: var(--body);
   font-family: var(--font-body);
   font-size: var(--step-0);
   font-weight: var(--weight-body);
   line-height: var(--leading-body);
   -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
   font-family: var(--font-display);
   color: var(--heading);
   font-weight: var(--weight-heading);
   line-height: var(--leading-tight);
   text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }
h5 { font-size: var(--step-1); }
h6 { font-size: var(--step-0); }

p  { max-width: var(--measure); }
a  { color: var(--brass-ink); text-decoration: none; }   /* 4.71:1 — NOT raw brass */
a:hover, a:focus-visible { color: var(--walnut); text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--rule); opacity: 1; }

/* Keyboard focus is never removed — only restyled. 3:1 minimum. */
:focus-visible {
   outline: 2px solid var(--walnut);
   outline-offset: 2px;
}
.on-dark :focus-visible { outline-color: var(--cream); }

/* ---------------------------------------------------------------
   2. Section rhythm (D6) + dark sections
   --------------------------------------------------------------- */
.py-section { padding-block: var(--space-section); }
.pt-section { padding-top: var(--space-section); }
.pb-section { padding-bottom: var(--space-section); }

/* Dark ground. Per the contrast ledger, body text here MUST be cream and
   brass is the ONLY usable accent — brass-ink (2.49) and sage (2.93) both
   fail on walnut. */
.on-dark {
   background: var(--ground-dark);
   color: var(--cream);
}
.on-dark h1, .on-dark h2, .on-dark h3,
.on-dark h4, .on-dark h5, .on-dark h6 { color: var(--cream); }
/* Brass on walnut is 4.16:1 — the ledger in tokens.css says large text and UI
   only, and this rule once applied it to EVERY link on a dark ground, including
   the 14px ones in the announcement bar. Cream is 11.72:1 and is the only safe
   text colour on walnut, so dark-ground links take cream. Brass survives where
   it is legitimately UI: borders, fills and button labels.
   No resting underline, by request. The affordance moves to hover and focus.
   That is fine for every link the site has today, which are all discrete UI —
   nav rows, the announcement bar, footer lists — not links sitting inside a
   paragraph. If dark PROSE ever gets an inline link, that one needs an
   underline back: colour alone cannot mark it, because cream link on cream
   body text is no contrast at all. */
.on-dark a { color: var(--cream); }
.on-dark a:hover, .on-dark a:focus-visible { color: var(--cream); text-decoration: underline; }
.on-dark hr { border-top-color: rgb(245 239 230 / 0.18); }

.measure { max-width: var(--measure); }

/* Blog articles run the full column; the 68ch cap left the copy narrower than its own tables. */
.sp-single-post .entry-content p { max-width: none; }
.sp-single-post .entry-content h2 { scroll-margin-top: 6rem; }

/* Blog table of contents: a sticky rail on desktop, a collapsed panel above the copy on mobile. */
.sp-toc {
   position: sticky;
   top: 6.5rem;
   max-height: calc(100vh - 8rem);
   overflow-y: auto;
}
.sp-toc summary { cursor: pointer; list-style: none; color: var(--brass-ink); }
.sp-toc summary::-webkit-details-marker { display: none; }
.sp-toc ol { list-style: none; margin: 0.75rem 0 0; padding: 0; border-left: 2px solid var(--rule); }
.sp-toc a {
   display: block;
   margin-left: -2px;
   padding: 0.4rem 0 0.4rem 1rem;
   border-left: 2px solid transparent;
   color: var(--ink);
   font-size: var(--step--1);
   line-height: 1.4;
   text-decoration: none;
}
.sp-toc a:hover, .sp-toc a:focus-visible, .sp-toc a.active { border-left-color: var(--brass); color: var(--brass-ink); }
@media (min-width: 992px) {
   .sp-toc summary { pointer-events: none; }
}
@media (max-width: 991.98px) {
   .sp-toc { position: static; max-height: none; padding: 1rem 1.25rem; border: 1px solid var(--rule); border-radius: 0.5rem; }
   .sp-toc summary::after { content: ' +'; }
   .sp-toc details[open] summary::after { content: ' \2212'; }
}

/* Sticky NAV only — the announcement bar scrolls away. A sticky element is
   constrained to its parent's box, so the header must stop generating a box
   (display:contents) or the tightly-wrapped .navbar would release the moment
   the header scrolls off. Landmark semantics survive display:contents in
   current browsers. The header's border-bottom moves to the navbar. */
.site-header { display: contents; }
.navbar {
   position: sticky;
   top: 0;
   z-index: 1040; /* under consent (1080) and the mobile action bar/WA float (1070) */
   background: var(--ground);
   border-bottom: 1px solid var(--rule);
}

/* ---------------------------------------------------------------
   3. Section header + eyebrow
   --------------------------------------------------------------- */
.eyebrow {
   font-family: var(--font-body);
   font-size: var(--step--1);
   font-weight: var(--weight-medium);
   letter-spacing: var(--tracking-eyebrow);
   text-transform: uppercase;
   color: var(--brass-ink);                  /* 4.71:1, safe as text */
   margin-bottom: 0.5rem;
}
/* Same 4.16:1 problem: the eyebrow is uppercase --step--1 text. On walnut it
   goes cream and leans on the tracking and case to stay distinct. */
.on-dark .eyebrow { color: var(--cream); }

.section-header { margin-bottom: 2.5rem; }
.section-header > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   4. Buttons — 3 variants (2.1)

   THE CONTRAST RULE LIVES HERE. The primary CTA is brass FILL with an
   INK label (5.55:1). Cream-on-brass is 2.82:1 and forbidden, which is
   why no variant below ever puts --cream on --brass.
   --------------------------------------------------------------- */
.btn-brass,
.btn-outline-walnut,
.btn-quiet {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 0.5rem;
   min-height: var(--tap-min);
   padding: 0.75rem 1.5rem;
   border-radius: var(--radius);
   font-family: var(--font-body);
   font-size: var(--step-0);
   font-weight: var(--weight-medium);
   line-height: 1.2;
   text-decoration: none;
   cursor: pointer;
   transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

/* Primary — brass fill, ink label. 5.55:1 */
.btn-brass {
   background: var(--brass);
   color: var(--ink);
   border: 1px solid var(--brass);
}
.btn-brass:hover, .btn-brass:focus-visible {
   background: var(--brass-ink);
   border-color: var(--brass-ink);
   color: var(--cream);                      /* 4.71:1 on brass-ink */
}

/* Secondary — outline. Border carries no meaning alone (it pairs a label). */
.btn-outline-walnut {
   background: transparent;
   color: var(--walnut);
   border: 1px solid var(--walnut);
}
.btn-outline-walnut:hover, .btn-outline-walnut:focus-visible {
   background: var(--walnut);
   color: var(--cream);
}
.on-dark .btn-outline-walnut { color: var(--cream); border-color: var(--cream); }
.on-dark .btn-outline-walnut:hover,
.on-dark .btn-outline-walnut:focus-visible { background: var(--cream); color: var(--walnut); }

/* Tertiary — text-weight action. */
.btn-quiet {
   background: transparent;
   color: var(--brass-ink);
   border: 1px solid transparent;
   padding-inline: 0.5rem;
}
.btn-quiet:hover, .btn-quiet:focus-visible { color: var(--walnut); text-decoration: underline; }
.on-dark .btn-quiet { color: var(--brass); }

.btn-brass[disabled], .btn-outline-walnut[disabled], .btn-quiet[disabled] {
   opacity: .55;
   cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
   .btn-brass, .btn-outline-walnut, .btn-quiet { transition: none; }
}

/* ---------------------------------------------------------------
   Consent notice (Phase 2.4)

   Bottom sheet on mobile, bar on desktop. Walnut ground, so `.on-dark`
   rules apply: cream text, brass the ONLY accent — brass-ink and sage
   both fail contrast on walnut (see the ledger in tokens.css).
   --------------------------------------------------------------- */
.sp-consent {
   position: fixed;
   inset-inline: 0;
   bottom: 0;
   z-index: 1080; /* above Bootstrap's fixed elements, below its modal (1055+) backdrop use */
   display: flex;
   flex-wrap: wrap;
   gap: 0.75rem 1.5rem;
   align-items: center;
   justify-content: center;
   padding: 1rem clamp(1rem, 4vw, 3rem);
   background: var(--walnut);
   color: var(--cream);
   box-shadow: 0 -4px 24px rgb(0 0 0 / 0.25);
}

.sp-consent[hidden] { display: none; }

.sp-consent__text {
   flex: 1 1 22rem;
   margin: 0;
   font-size: 0.9375rem;
   line-height: 1.5;
}

.sp-consent__text a { color: var(--brass); }

.sp-consent__actions {
   display: flex;
   gap: 0.5rem;
   flex-wrap: wrap;
}

.sp-consent__actions .btn-quiet { color: var(--brass); }

/* TranslatePress's floating switcher is fixed bottom-right above everything;
   tracking.js publishes --sp-consent-h while the notice is up so it clears it. */
.trp-floating-switcher {
   bottom: calc(var(--sp-consent-h, 0px) + var(--sp-consent-gap, 0px) + var(--sp-sticky-h, 0px)) !important;
}

:root:has(#sp-consent:not([hidden])) { --sp-consent-gap: 0.75rem; }

/* =====================================================================
   PHASE 3 COMPONENTS

   All of it lives HERE, not in a page-scoped sheet: every one of these is
   used by at least two templates (the quote form alone appears in the home
   hero, the home banner and the contact page), and a shared part whose CSS
   only loads on one page is the recurring silent bug in this boilerplate.
   ===================================================================== */

/* --- Announcement bar ------------------------------------------------ */
.sp-announce {
   background: var(--walnut);
   color: var(--cream);
   font-size: 0.875rem;
}

.sp-announce__inner {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: 0.25rem 1.25rem;
   padding-block: 0.5rem;
}

@media (max-width: 767px) {
   .sp-announce__inner { justify-content: center; }
}

.sp-announce__links {
   display: flex;
   flex-wrap: wrap;
   gap: 0.25rem 1.25rem;
   align-items: center;
}

/* The bar is a compact action row, not prose, so it opts out of the underline
   `.on-dark a` gives every other dark-ground link. Specificity has to beat
   `.on-dark a` (0,1,1) — this is the same cascade trap that made every brass
   CTA invisible in Phase 3. */
.sp-announce .sp-announce__link {
   color: var(--cream);
   text-decoration: none;
   min-height: 1.75rem;
   display: inline-flex;
   align-items: center;
}

/* Hover/focus carries the underline; the colour stays cream because a 14px link
   turning brass under the cursor fails contrast exactly when it is being read.
   The CTA is set apart by weight alone now that the resting underline is gone. */
.sp-announce .sp-announce__link:hover,
.sp-announce .sp-announce__link:focus-visible { text-decoration: underline; }
.sp-announce .sp-announce__link--cta { font-weight: var(--weight-medium); }

/* --- Inline icons ----------------------------------------------------- */
/* Sized in em and coloured by currentColor, so an icon inherits the size and
   colour of the text it replaces. INLINE, never block: the negative
   vertical-align is what drops an SVG's box onto the text baseline instead of
   leaving it sitting a few pixels high. `flex: none` stops a flex parent from
   squashing it into an ellipse. */
.sp-icon {
   display: inline-block;
   width: 1em;
   height: 1em;
   vertical-align: -0.125em;
   flex: none;
}

/* Alone in a link, an icon centres on the line box rather than sitting on a
   baseline it no longer shares with any text. */
.sp-announce__link--icon .sp-icon,
.sp-nap__actions .sp-icon { vertical-align: middle; }

/* An icon-only link still needs a finger-sized target — test-phase3 asserts no
   tap target under 24px, and a bare 16px glyph would fail it.

   inline-block with a line-height, NOT inline-flex: a flex container blockifies
   its children, so an inline-flex link would compute the SVG inside it to
   `display: block` however the icon itself is declared. Centring by line-height
   keeps the whole thing in inline formatting. */
.sp-announce .sp-announce__link--icon {
   display: inline-block;
   min-width: 1.75rem;
   line-height: 1.75rem;
   text-align: center;
   font-size: var(--step-0);
}

/* --- Header additions ------------------------------------------------ */
/* the_custom_logo() prints the full-size image with its own width/height attrs
   (993x240), so the header needs an explicit cap or the brand blows the navbar
   apart. Height-driven, width auto — the lockup is 4.14:1 and must not squash. */
.site-brand .custom-logo,
.site-brand .brand-logo {
   height: clamp(2rem, 5.5vw, 2.75rem);
   width: auto;
   max-width: min(70vw, 260px);
   object-fit: contain;
}

.sp-nav-cta { align-items: center; white-space: nowrap; }

/* --- Hero ------------------------------------------------------------ */
.sp-hero {
   position: relative;
   background: var(--walnut);
   color: var(--cream);
   padding-block: var(--space-section);
   overflow: hidden;
}

.sp-hero > .container { position: relative; z-index: 2; }

/* The hero image is DECORATION behind the copy, never a competitor to the form.
   MEASURED from the composited pixels, not assumed. At 28% over walnut the
   brightest pixel under the copy composites to rgb(115,101,94) — 4.90:1 against
   cream. That clears AA at every size, but BUILD_PLAN 3.5.5 asked for the
   11.72:1 this palette gets on bare walnut, and 25% of the band sat under 7:1.
   The 28% was chosen before the photograph existed.
   11:1 turns out to be unreachable with a VISIBLE photograph: getting there
   needs an opaque scrim, and an opaque scrim is just walnut with the picture
   deleted (measured 11.56:1 and a hero nobody would call photographed). So the
   scrim is partial and one-sided — 55% walnut over the copy column, fading out
   before the form — which measures 7.85:1 worst case while the workshop still
   reads behind the headline. Re-measure if the photo or the layout changes.

   RE-MEASURED 2026-09-11, when the hero became a 3-frame slideshow. Worst-case
   composited pixel under the copy column, per frame, against cream:
     woodworking-workshop-hero            7.95:1
     proj-turnkey-woodworking-bilaspur    8.17:1
     proj-fluted-tv-unit-baloda-bazar     7.85:1
   The floor is unchanged, so the frames were picked warm and low-key on
   purpose. A brighter photograph is what would break this — measure before
   adding one, do not assume the scrim absorbs it. */
.sp-hero__bg {
   position: absolute;
   inset: 0;
   z-index: 0;
   opacity: 0.28;
}

/* z-index 1 puts this above the image (0) and below the copy (2). The
   transparent stop repeats --walnut's literal value because a gradient cannot
   fade a custom property to alpha 0 without relative-colour syntax, and this
   rule is the accessibility fix — it must not degrade to nothing. */
.sp-hero::before {
   content: "";
   position: absolute;
   inset: 0;
   z-index: 1;
   background: linear-gradient(to right,
      rgb(61 43 34 / 0.55) 0%,
      rgb(61 43 34 / 0.55) 48%,
      rgb(61 43 34 / 0) 80%);
   pointer-events: none;
}

/* Below lg the image is its own block above the form, not a backdrop, so there
   is nothing for the scrim to protect. */
@media (max-width: 991.98px) {
   .sp-hero::before { display: none; }
}

.sp-hero__bg img, .sp-hero__media img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

/* Hero slideshow — the same crossfade as the page banners, driven by
   initSlider in global.js. The frames stack and only .is-active is opaque, so
   with JS off the first one shows and the rest stay hidden rather than piling
   up. The scrim and the 0.28 opacity above are unchanged, which is what keeps
   the measured contrast on the copy column the same for every frame; see the
   .sp-hero__bg comment before swapping a photograph in. */
/* Only the mobile block needs a containing block; .sp-hero__bg is already
   `position: absolute; inset: 0` above, and giving it `relative` here collapsed
   the whole hero image to nothing. */
.sp-hero__media[data-sp-slider] { position: relative; }

.sp-hero__slide {
   position: absolute;
   inset: 0;
   opacity: 0;
   transition: opacity 1.2s ease-in-out;
}

.sp-hero__slide.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
   .sp-hero__slide { transition: none; }
}

.sp-hero__media {
   margin-top: 1.5rem;
   border-radius: var(--radius-lg);
   overflow: hidden;
   aspect-ratio: 16 / 9;
}

.sp-hero__trust {
   display: inline-block;
   margin-bottom: 1rem;
   padding: 0.25rem 0.75rem;
   border: 1px solid var(--brass);          /* border is UI: 4.16 clears the 3:1 floor */
   border-radius: 999px;
   color: var(--cream);                     /* 13px text, so brass would fail */
   font-size: 0.8125rem;
   letter-spacing: 0.02em;
}

.sp-hero__headline { margin-bottom: 1rem; }
.sp-hero__sub { margin-bottom: 1.5rem; font-size: 1.0625rem; }

.sp-hero__actions {
   display: flex;
   flex-wrap: wrap;
   gap: 0.75rem;
}

/* --- Forms ----------------------------------------------------------- */
.sp-form {
   position: relative;   /* the clipped honeypot anchors to this */
   background: var(--cream);
   color: var(--body);
   border-radius: var(--radius-lg);
   padding: clamp(1.25rem, 3vw, 2rem);
   box-shadow: var(--shadow-card);
}

/* The form is an island of light inside .on-dark sections, so the inherited
   dark-ground rules have to be undone explicitly. */
.on-dark .sp-form h2,
.on-dark .sp-form h3,
.on-dark .sp-form legend,
.on-dark .sp-form label { color: var(--heading); }

.sp-form__heading { margin-bottom: 1.25rem; }

.sp-field { display: block; }

.sp-field__label {
   display: block;
   margin-bottom: 0.25rem;
   font-size: 0.875rem;
   font-weight: var(--weight-medium);
   color: var(--walnut);
}

.sp-field__req { color: var(--brass-ink); margin-inline-start: 0.15em; }

.sp-field__input {
   width: 100%;
   min-height: var(--tap-min);
   padding: 0.5rem 0.75rem;
   font: inherit;
   color: var(--body);
   background: #fff;
   border: 1px solid var(--rule);
   border-radius: var(--radius);
}

.sp-field__input:focus-visible {
   outline: 2px solid var(--brass-ink);
   outline-offset: 1px;
   border-color: var(--brass-ink);
}

.sp-field__input[aria-invalid="true"] { border-color: #A6321F; }

/* A flagged checkbox group: the fieldset itself carries the state. */
.sp-field--choices[aria-invalid="true"] {
   padding-inline-start: 0.6rem;
   border-inline-start: 2px solid #A6321F;
}

textarea.sp-field__input { min-height: auto; resize: vertical; }

/* Native select, brought in line with the text inputs: the UA arrow is dropped
   for one that matches the brass rule, and the inline-end padding keeps a long
   shade name off it. */
select.sp-field__input {
   appearance: none;
   padding-inline-end: 2.25rem;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23705a2e' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
   background-repeat: no-repeat;
   background-position: right 0.85rem center;
   background-size: 0.7rem;
   cursor: pointer;
}

[dir="rtl"] select.sp-field__input { background-position: left 0.85rem center; }

/* The made-to-order notice when it sits under a field rather than in the
   product spec column. */
.sp-lead-notice--inline { margin-top: 0.5rem; margin-bottom: 0; }

.sp-field__hint {
   margin: 0.35rem 0 0;
   font-size: 0.8125rem;
   color: rgb(28 22 20 / 0.68);
}

.sp-field--choices { border: 0; padding: 0; margin: 0; }

.sp-choices {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem 1rem;
}

.sp-choice {
   display: inline-flex;
   align-items: center;
   gap: 0.4rem;
   min-height: var(--tap-min);
   font-size: 0.9375rem;
}

.sp-choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--brass); }

/* Bootstrap's g-5 puts a -24px margin on the row while a .container only has
   12px of padding, so a g-5 row directly inside a container overhangs the
   viewport by 12px on phones. Horizontal gutters therefore only grow from lg
   up (g-4 g-lg-5); this is the guard for anywhere that gets forgotten. */
.container > .row[class*="g-5"]:not([class*="g-lg-5"]) { --bs-gutter-x: 1.5rem; }

/* Honeypot: visually hidden but NOT display:none — some bots skip fields that
   are display:none, which defeats the trap. Clipped rather than pushed to
   left:-9999px, which adds horizontal scroll on some browsers. */
.sp-hp {
   position: absolute;
   width: 1px;
   height: 1px;
   overflow: hidden;
   clip-path: inset(50%);
   white-space: nowrap;
}

/* The full form's optional spec fields, folded (quote-form.php). */
.sp-form__more { margin-top: 1rem; }
.sp-form__more > summary {
   cursor: pointer;
   font-weight: 500;
   color: var(--brass-ink);
}
.sp-form__more[open] > summary { margin-bottom: 1rem; }

.sp-form__foot {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 0.75rem 1.25rem;
   margin-top: 1.25rem;
}

.sp-form__note, .sp-form__foot .sp-form__note {
   flex: 1 1 16rem;
   margin: 0;
   font-size: 0.8125rem;
   color: rgb(28 22 20 / 0.68);
}

.sp-form-status {
   margin-top: 0.75rem;
   font-size: 0.9375rem;
}

.sp-form-status:empty { display: none; }
.sp-form-status[data-state="error"] { color: #A6321F; }

/* --- Cards, value props, process ------------------------------------- */
.sp-usp {
   height: 100%;
   padding: 1.25rem;
   background: #fff;
   border-radius: var(--radius);
   border-top: 3px solid var(--brass);
   transition: transform .18s ease, box-shadow .18s ease;
}
.sp-usp:hover {
   transform: translateY(-2px);
   box-shadow: 0 2px 4px rgb(28 22 20 / 0.08), 0 14px 32px rgb(28 22 20 / 0.12);
}
@media (prefers-reduced-motion: reduce) {
   .sp-usp { transition: none; }
   .sp-usp:hover { transform: none; }
}

.on-dark .sp-usp {
   background: rgb(245 239 230 / 0.06);
   border-top-color: var(--brass);
}

.on-dark .sp-usp__title { color: var(--cream); }
.sp-usp__title { margin-bottom: 0.35rem; }
.sp-usp__text { font-size: 0.9375rem; }

.sp-usp__icon {
   display: inline-flex;
   width: 3rem;
   height: 3rem;
   margin-bottom: 0.9rem;
   align-items: center;
   justify-content: center;
   border-radius: 999px;
   color: var(--brass-ink);
   background: rgb(184 134 59 / 0.12);
}
.sp-usp__icon svg,
.sp-usp__icon .sp-usp__img { width: 1.5rem; height: 1.5rem; }
.on-dark .sp-usp__icon { color: var(--brass); background: rgb(184 134 59 / 0.18); }

.sp-card {
   display: flex;
   flex-direction: column;
   height: 100%;
   background: #fff;
   border-radius: var(--radius-lg);
   overflow: hidden;
   box-shadow: var(--shadow-card);
   text-decoration: none;
   color: inherit;
   transition: transform .18s ease, box-shadow .18s ease;
}

.sp-card:hover, .sp-card:focus-visible {
   transform: translateY(-2px);
   box-shadow: 0 2px 4px rgb(28 22 20 / 0.08), 0 14px 32px rgb(28 22 20 / 0.12);
}

/* .sp-card as a <button>, for the /interior-design/ chooser tiles. A button is
   the right element there (it opens the quote modal, it does not navigate), and
   the tile has to BE the button rather than contain one — .sp-card is an <a> in
   six other templates and an interactive element inside another is invalid and
   keyboard-unreachable. Only the UA button defaults need undoing; every visual
   rule above already applies, focus-visible included. */
.sp-card--button {
   appearance: none;
   border: 0;
   padding: 0;
   font: inherit;
   text-align: left;
}

/* A PORTRAIT box, not the 1:1 this used to have and not the free-height it was
   changed to. Both previous attempts were wrong in opposite directions:
   1:1 + contain letterboxed every portrait door scan inside wide empty bands;
   free height then let each card size to its own image, and the scans run from
   1.90:1 to 3.26:1, so one row of three put its titles up to 260px apart and
   left a dead void under the short card's text (every card in a row stretches
   to the tallest).
   2:1 is the middle of the scan range, so the common case barely letterboxes,
   and it is `contain` rather than `cover` because cropping a door design is
   still worse than a band — the image IS the product here. */
.sp-card__media { overflow: hidden; position: relative; } /* anchors .sp-badge */

.sp-card__media img { width: 100%; height: auto; display: block; }

/* PRODUCT photos get the portrait box. A modifier rather than :has(img),
   because :has() inherits its argument's specificity and would have outranked
   .sp-card__media--tile below, flipping the square category tiles to portrait. */
.sp-card__media--photo { aspect-ratio: 1 / 2; }
.sp-card__media--photo img { height: 100%; object-fit: contain; }

/* CATEGORY TILES are navigation, not product shots, and they must match each
   other. Seven sit in one grid on /doors/ and their term thumbnails come from
   three different sources — client photos, portrait supplier design scans, and
   3:2 generated art. At natural aspect that row goes ragged: titles land at
   different heights and the short images leave a void under their text.
   So tiles get a fixed box and `cover`. Note it is COVER, not the `contain`
   this used to have: contain was the actual bug, letterboxing every non-square
   thumbnail inside empty bands. 1:1 crops both landscape and portrait sources
   moderately, which is the fairest treatment for a mixed set.
   Product cards deliberately do NOT get this — there the image IS the product,
   and cropping a door design is worse than a tall card. */
.sp-card__media--tile { aspect-ratio: 1; }
.sp-card__media--tile img { height: 100%; object-fit: cover; }

/* This panel was written when "no image" was TEMPORARY — Phase 6 was going to
   supply the imagery. Phase 4.7 made it permanent for windows, hardware and
   plywood: the AI placeholders are gone and no photography is coming.
   A big gradient block is fine as a brief stand-in and wrong as a resting
   state — it read as a broken image rather than a choice. So the empty variant
   is a brass rule across the top of the card, which reads as deliberate.
   The height is what does the work here: with no image inside it, .sp-card__media
   would otherwise collapse to nothing. */
.sp-card__media--empty {
   height: 0.375rem;
   background: var(--brass);   /* flat, not a gradient — at 6px a gradient just reads muddy */
   opacity: 1;
}

/* A material texture band where the product photo would have been. Deliberately
   WIDE and short: a brushed-steel macro filling a tall card reads as "photo of
   the product", which is the exact false claim the AI strip removed. At 16:5 it
   reads as a card header — decoration nobody mistakes for a SKU. Falls back to
   the brass rule above when a category has no texture mapped, so the two are
   additive, not alternatives.
   This one DOES need aspect-ratio: the band is a CSS background with no image
   element inside it, so nothing else would give it height. */
.sp-card__media--texture {
   aspect-ratio: 16 / 5;
   background-color: var(--walnut);
   background-image: var(--sp-tex);
   background-size: 260% auto;   /* zoomed, so shifting the origin shows a different region */
   background-position: 50% 50%;
   opacity: 1;
}

/* Every card in a category shares one texture file, so without this a row of
   three reads as the same image pasted three times. Cycling the origin costs
   four declarations and no PHP — each card shows a different part of the same
   band. Period of 4 rather than 3, so the offsets don't line up with the
   3-across grid and repeat column by column. */
.sp-card-cell:nth-child(4n+1) .sp-card__media--texture { background-position:  8% 42%; }
.sp-card-cell:nth-child(4n+2) .sp-card__media--texture { background-position: 62% 58%; }
.sp-card-cell:nth-child(4n+3) .sp-card__media--texture { background-position: 35% 20%; }
.sp-card-cell:nth-child(4n+4) .sp-card__media--texture { background-position: 88% 70%; }

.sp-card__body { padding: 1.25rem; }
.sp-card__title { margin-bottom: 0.4rem; }
.sp-card__text { font-size: 0.9375rem; }
.sp-card:hover .sp-card__title, .sp-card:focus-visible .sp-card__title { color: var(--brass-ink); }

/* A product-grid cell that carries its own quote CTA under the card. The button
   cannot live inside .sp-card (that is an <a>), so the cell becomes the column
   and .sp-card gives up its height:100% to it — otherwise the card would claim
   the full cell and push the button out of the grid row. */
.sp-card-cell { display: flex; flex-direction: column; }
.sp-card-cell .sp-card { flex: 1 1 auto; height: auto; }
.sp-card__cta { width: 100%; margin-top: 0.75rem; }

.sp-process__list {
   list-style: none;
   margin: 0;
   padding: 0;
   display: grid;
   gap: 1.5rem;
   grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
   counter-reset: step;
}

.sp-process__step {
   padding-top: 1rem;
   border-top: 1px solid rgb(245 239 230 / 0.22);
}

.sp-process__num {
   display: block;
   margin-bottom: 0.5rem;
   font-family: var(--font-display);
   font-size: 1.5rem;
   color: var(--brass);
}

.sp-process__title { margin-bottom: 0.35rem; }
.sp-process__text { font-size: 0.9375rem; }

/* --- Testimonials ---------------------------------------------------- */
.sp-quote {
   height: 100%;
   margin: 0;
   padding: 1.5rem;
   background: #fff;
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-card);
}

.sp-quote__text {
   margin: 0 0 1rem;
   font-family: var(--font-display);
   font-size: 1.0625rem;
   line-height: 1.5;
}

.sp-quote__text > :last-child { margin-bottom: 0; }

.sp-quote__cite {
   font-size: 0.875rem;
   font-weight: var(--weight-medium);
   color: var(--brass-ink);
}

/* --- Quote banner ---------------------------------------------------- */
.sp-quote-banner { background: var(--walnut); }
.sp-quote-banner .btn-outline-walnut { margin-top: 0.5rem; }

@media (min-width: 992px) {
   .sp-quote-banner .col-lg-7 { text-align: end; }
   .sp-quote-banner .btn-outline-walnut { margin-top: 0; }
}

/* --- About / contact prose ------------------------------------------- */
.sp-lede { font-size: 1.0625rem; }
.sp-prose > :last-child { margin-bottom: 0; }
.sp-about__media { border-radius: var(--radius-lg); overflow: hidden; }
.sp-about__media img { width: 100%; height: auto; display: block; }

.sp-contact__aside {
   padding: clamp(1.25rem, 3vw, 1.75rem);
   background: #fff;
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-card);
}

.sp-nap { font-style: normal; margin-bottom: 1.25rem; }
.sp-nap__name { font-weight: var(--weight-medium); margin-bottom: 0.25rem; }
.sp-nap__address { margin-bottom: 0.75rem; }

.sp-nap__list {
   list-style: none;
   margin: 0 0 0.75rem;
   padding: 0;
   display: grid;
   gap: 0.25rem;
}

/* WhatsApp and Directions, as icons on one line. The list is a grid, so these
   two share a single row; within it they are plain inline boxes, so no flex
   container blockifies the SVGs (see .sp-announce__link--icon above). */
.sp-nap__actions {
   margin-top: 0.25rem;
   line-height: 0;
}

.sp-nap__list .sp-nap__actions a {
   display: inline-block;
   min-width: 2rem;
   line-height: 2rem;
   margin-inline-end: 0.25rem;
   text-align: center;
   font-size: 1.15rem;
   border-radius: var(--radius);
   text-decoration: none;
}

.sp-nap__list .sp-nap__actions a:hover,
.sp-nap__list .sp-nap__actions a:focus-visible { color: var(--brass); }

.sp-nap__list a { min-height: 1.75rem; display: inline-flex; align-items: center; }
.sp-nap__areas { font-size: 0.875rem; color: rgb(28 22 20 / 0.68); margin: 0; }
.sp-map { border-radius: var(--radius-lg); overflow: hidden; }
.sp-map iframe { border: 0; }

/* --- Sticky action bar + WhatsApp float ------------------------------ */
.sp-sticky-bar {
   position: fixed;
   inset-inline: 0;
   bottom: 0;
   z-index: 1070;
   display: flex;
   background: var(--walnut);
   box-shadow: 0 -2px 12px rgb(0 0 0 / 0.25);
}

.sp-sticky-bar__item {
   flex: 1;
   min-height: var(--tap-min);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 0.65rem 0.5rem;
   color: var(--cream);
   text-decoration: none;
   font-weight: var(--weight-medium);
   font-size: 0.9375rem;
   border-inline-end: 1px solid rgb(245 239 230 / 0.16);
}

.sp-sticky-bar__item:last-child { border-inline-end: 0; }
.sp-sticky-bar__item--cta { background: var(--brass); color: var(--ink); }

/* The bar covers the end of the page on mobile, so the document gets room for
   it — otherwise the footer's last line is permanently unreachable. Its height
   is published as a token because the TranslatePress switcher has to clear it
   too, and two hard-coded copies of the same 52px drift apart. */
:root { --sp-sticky-h: 0px; }

@media (max-width: 991.98px) {
   :root { --sp-sticky-h: 52px; }

   /* `html body`, not `body`: WordPress prints its own global-styles block
      INLINE in the head with `body{padding-bottom:0}`, which beats an equally
      specific rule in a linked stylesheet on document order. A plain
      `body { padding-bottom: … }` here computed to 0 and the footer's last line
      stayed under the sticky bar. */
   html body { padding-bottom: var(--sp-sticky-h); }
}

.sp-wa-float {
   position: fixed;
   inset-inline-start: 1.25rem;
   bottom: calc(var(--sp-consent-h, 0px) + 1.25rem);
   z-index: 1070;
   align-items: center;
   justify-content: center;
   /* Icon-only circle, not a labelled pill: a pill is ~170px wide and, being
      fixed, sat on top of the contact form's Message label and the About body
      copy. The accessible name still comes from aria-label. */
   width: 52px;
   height: 52px;
   padding: 0;
   border-radius: 999px;
   background: var(--walnut);
   color: var(--cream);
   text-decoration: none;
   box-shadow: 0 6px 20px rgb(28 22 20 / 0.28);
}

/* Bottom-LEFT on purpose: TranslatePress's switcher and the consent notice
   both live bottom-right, and three fixed elements in one corner is how a
   phone screen loses its content. */
.sp-wa-float:hover, .sp-wa-float:focus-visible { background: var(--brass); color: var(--ink); }
/* The shared .sp-icon is sized in em, and the float's own font-size is 18px —
   this pins the glyph back to the 24px it was drawn at. */
.sp-wa-float__icon { display: inline-flex; font-size: 24px; }

/* Kept in the markup for the accessible name; never painted. */
.sp-wa-float__label {
   position: absolute;
   width: 1px;
   height: 1px;
   overflow: hidden;
   clip-path: inset(50%);
}

/* The footer menu is a plain <ul>: Bootstrap's .list-inline only works with
   .list-inline-item on every <li>, which wp_nav_menu does not add. */
.footer-menu {
   display: flex;
   flex-wrap: wrap;
   gap: 0.25rem 1.25rem;
   list-style: none;
   margin: 0;
   padding: 0;
}

.footer-menu a { min-height: 1.75rem; display: inline-flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
   .sp-card { transition: none; }
   .sp-card:hover, .sp-card:focus-visible { transform: none; }
}

/* --- Phase 3 fixes found by measuring the built page ------------------ */

/* `.on-dark a { color: brass }` (0,1,1) outranks `.btn-brass { color: ink }`
   (0,1,0), so every brass CTA inside a dark section rendered brass-on-brass —
   a 1:1 invisible button. The ink label is the 5.55:1 pair from the ledger and
   must win everywhere. */
.on-dark a.btn-brass,
.on-dark button.btn-brass { color: var(--ink); }

/* Two walnut sections in a row read as one enormous dark block, so the join
   gets a brass hairline. Works on Home (process -> banner) and About
   (values -> banner) without either template knowing about the other. */
.on-dark + .sp-quote-banner,
.on-dark + .on-dark { border-top: 1px solid rgb(184 134 59 / 0.35); }

/* Eight nav items plus a phone number and a CTA is tight at 992-1200px: let
   the items breathe and never let a label break mid-word. */
@media (min-width: 1200px) {
   .primary-nav .navbar-nav .nav-link,
   .primary-nav .navbar-nav a { white-space: nowrap; }
   .primary-nav .navbar-nav { gap: 0.15rem; }

   /* DOM order keeps the toggler beside the brand for the collapsed layout, so
      the expanded row is reordered here instead: brand | menu | search + CTA. */
   .navbar-expand-xl > .container > .sp-nav-actions { order: 3; margin-inline-start: 0.75rem !important; }
   .navbar-expand-xl > .container > .navbar-collapse { order: 2; }
}

/* Eight items + Search + a CTA overflowed the container at 1280 (1447px of
   content), which put a horizontal scrollbar on every page. Tighten the row
   before dropping anything from it. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
   .primary-nav .navbar-nav a { padding-inline: 0.3rem; font-size: 0.9rem; }
   .header-search { padding-inline: 0.4rem; font-size: 0.9rem; }
   .sp-nav-cta { padding: 0.45rem 0.8rem; font-size: 0.9rem; }
}

/* The collapsed panel is a stacked list, not a row: give the items real tap
   height. (The search toggle now lives in .sp-nav-actions, always visible.) */
@media (max-width: 1199.98px) {
   .primary-nav .navbar-nav a { min-height: var(--tap-min); display: flex; align-items: center; }
}

/* --- Header submenus (dropdown on desktop, accordion when collapsed) --- */

.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 0; }

/* Caret toggle button (injected by initSubmenus in global.js). */
.primary-nav .submenu-toggle {
   display: inline-flex; align-items: center; justify-content: center;
   border: 0; background: transparent; cursor: pointer; color: currentColor;
   padding: 0.25rem; margin-inline-start: 0.1rem; line-height: 0;
}
.primary-nav .submenu-toggle svg { transition: transform .2s ease; }
.primary-nav .menu-item-has-children.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.primary-nav .submenu-toggle:focus-visible {
   outline: 2px solid var(--brass); outline-offset: 2px; border-radius: var(--radius);
}

/* Desktop: absolute dropdown, revealed on hover / keyboard focus / click. */
@media (min-width: 1200px) {
   .primary-nav .menu-item-has-children { display: flex; align-items: center; }

   .primary-nav .sub-menu {
      position: absolute; top: 100%; inset-inline-start: 0; z-index: 1030;
      min-width: 220px;
      background: var(--cream);
      border: 1px solid var(--rule);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-card);
      padding: 0.4rem;
      margin-top: 0.35rem;
      opacity: 0; visibility: hidden; transform: translateY(6px);
      transition: opacity .18s ease, transform .18s ease, visibility .18s;
      pointer-events: none;
   }
   /* Bridge the gap between item and menu so the mouse can cross without closing. */
   .primary-nav .menu-item-has-children > .sub-menu::before {
      content: ""; position: absolute; top: -0.35rem; inset-inline: 0; height: 0.35rem;
   }
   .primary-nav .menu-item-has-children:hover > .sub-menu,
   .primary-nav .menu-item-has-children:focus-within > .sub-menu,
   .primary-nav .menu-item-has-children.is-open > .sub-menu {
      opacity: 1; visibility: visible; transform: none; pointer-events: auto;
   }
   .primary-nav .sub-menu .nav-link {
      display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius);
      color: var(--ink); font-size: 0.9rem; white-space: nowrap;
   }
   .primary-nav .sub-menu .nav-link:hover,
   .primary-nav .sub-menu .nav-link:focus-visible {
      background: rgb(184 134 59 / 0.12); color: var(--brass-ink);
   }

   /* THIRD LEVEL (Doors > Wooden Doors > Sagwan / Bija). Without this it
      inherits `top:100%; inset-inline-start:0` from the rule above and lands on
      top of the dropdown that opened it. A nested menu flies out sideways
      instead, level with the row that owns it. */
   .primary-nav .sub-menu .menu-item-has-children { position: relative; }
   .primary-nav .sub-menu .sub-menu {
      top: -0.4rem;                      /* cancel the parent's padding so rows line up */
      inset-inline-start: 100%;
      margin-top: 0;
      margin-inline-start: 0.25rem;
   }
   /* The hover bridge belongs on the SIDE here, not above. */
   .primary-nav .sub-menu .menu-item-has-children > .sub-menu::before {
      top: 0; bottom: 0; height: auto;
      inset-inline: -0.25rem auto; width: 0.25rem;
   }
   /* A nested row already has the caret button global.js injects — reuse it
      rather than adding a second marker, but point it sideways, because this
      one opens a flyout rather than dropping down. */
   .primary-nav .sub-menu .menu-item-has-children {
      display: flex; align-items: center; justify-content: space-between;
   }
   .primary-nav .sub-menu .menu-item-has-children > .nav-link { flex: 1 1 auto; }
   .primary-nav .sub-menu .submenu-toggle svg { transform: rotate(-90deg); }
   .primary-nav .sub-menu .menu-item-has-children.is-open > .submenu-toggle svg {
      transform: rotate(-90deg);
   }
   /* Flip the flyout back inside the viewport on the last nav items. */
   .primary-nav .navbar-nav > .menu-item:nth-last-child(-n+3) .sub-menu .sub-menu {
      inset-inline-start: auto;
      inset-inline-end: 100%;
      margin-inline: 0 0.25rem;
   }
}

/* Collapsed panel: inline accordion. Caret sits at the row end as the tap
   target; the parent link keeps its own href. */
@media (max-width: 1199.98px) {
   .primary-nav .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
   .primary-nav .menu-item-has-children > .nav-link { flex: 1 1 auto; }
   .primary-nav .submenu-toggle {
      flex: 0 0 auto; min-width: var(--tap-min); min-height: var(--tap-min);
   }
   .primary-nav .sub-menu {
      flex-basis: 100%;
      max-height: 0; overflow: hidden;
      transition: max-height .25s ease;
      padding-inline-start: 0.75rem;
   }
   .primary-nav .menu-item-has-children.is-open > .sub-menu {
      max-height: 70vh; overflow-y: auto;
   }
   .primary-nav .sub-menu .nav-link {
      min-height: var(--tap-min); display: flex; align-items: center;
      font-size: 0.9rem; color: var(--ink);
   }
}

/* --- Footer (Phase 3.5.2) -------------------------------------------- */

.site-footer {
   border-top: 1px solid rgb(28 22 20 / 0.12);
}

.sp-footer__main {
   padding-block: clamp(2.5rem, 5vw, 4rem);
}

.sp-footer__brand {
   font-family: var(--font-display);
   font-size: 1.25rem;
   margin-bottom: 0.35rem;
}

.sp-footer__brand img {
   display: block;
   height: auto;
   max-height: 56px;
   width: auto;
}

.sp-footer__tagline {
   color: rgb(28 22 20 / 0.72);
   margin-bottom: 1.25rem;
}

.sp-footer__heading {
   color: var(--brass-ink);
   letter-spacing: 0.06em;
   text-transform: uppercase;
   font-size: 0.8125rem;
   margin-bottom: 0.9rem;
}

.sp-footer__links {
   list-style: none;
   margin: 0;
   padding: 0;
   display: grid;
   gap: 0.15rem;
}

/* 1.75rem keeps a footer link a real tap target without spacing the list out
   the way a full 44px row would. */
.sp-footer__links a,
.sp-footer__socials a {
   min-height: 1.75rem;
   display: inline-flex;
   align-items: center;
}

.sp-footer__actions {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
   margin-bottom: 1.25rem;
}

.sp-footer__socials {
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
   flex-wrap: wrap;
   gap: 0.25rem 1rem;
}

.sp-footer__bar {
   border-top: 1px solid rgb(28 22 20 / 0.12);
   padding-block: 1rem;
   font-size: 0.875rem;
}

/* TranslatePress's floating switcher is fixed bottom-right, so at the true
   bottom of the page it lands on this row's last link — which was Privacy
   Policy. Extra clearance lifts the row clear of it.
   ponytail: a fixed 3rem rather than a measured token, because Phase 7 moves
   the switcher into the header and deletes this rule outright. */
.sp-footer__bar { padding-bottom: 3rem; }

@media (min-width: 768px) {
   .sp-footer__bar { padding-bottom: 1rem; padding-inline-end: 9rem; }
}

/* --- Category landing pages (Phase 3.5.3) ---------------------------- */

.sp-cat__actions {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
   margin-top: 1.5rem;
}

.sp-cat__media {
   border-radius: var(--radius-lg);
   overflow: hidden;
   aspect-ratio: 1;
}

.sp-cat__media img { width: 100%; height: 100%; object-fit: cover; }

/* Intro slider — same crossfade as the page banner (initSlider in global.js),
   but stacking real <img> instead of background divs so every frame keeps the
   alt text its seeder wrote. The parent already clips and holds the square, so
   the frames only need to stack. With JS off the first frame stays visible and
   the rest stay hidden, exactly as the banner behaves. */
.sp-cat__media--slider { position: relative; }

.sp-cat__slide {
   position: absolute;
   inset: 0;
   opacity: 0;
   transition: opacity 1.2s ease-in-out;
}

.sp-cat__slide.is-active { opacity: 1; }

/* Portrait door scans in the square box: show the whole door with bands either
   side rather than cropping the design out of the middle. Same call, same
   reason, as .sp-card__media--photo on the product cards. */
.sp-cat__media--contain img { object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
   .sp-cat__slide { transition: none; }
}

/* The "Request a Quote" button in the intro is an in-page anchor to
   #sp-quote. Both halves live here rather than in JS: the smooth scroll, and
   the offset that stops the sticky navbar covering the form's heading. */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
   html { scroll-behavior: auto; }
}

#sp-quote { scroll-margin-top: 5rem; }

/* The square crop above is for the editorial category heroes, where the photo
   is decorative. On a product page the photo IS the product — a cover-crop to
   1:1 lops the top and bottom off a landscape door shot. Keep the natural
   aspect ratio there. The empty-state box still needs the square to hold its
   space, so it keeps it. */
.sp-product .sp-cat__media:not(.sp-cat__media--empty) { aspect-ratio: auto; }

/* contain + a height cap, not just `height: auto`: the ready-made door photos
   are tall portraits, and at full column width one would render ~1400px high
   and push the whole summary column off screen. */
.sp-product .sp-cat__media img {
   height: auto;
   max-height: 640px;
   object-fit: contain;
}

.sp-product__description { margin-top: 15px; }

/* Native <details>, so keyboard support, find-in-page reveal and open state
   all come for free. The marker is replaced rather than hidden: removing it
   outright leaves no affordance that the row opens. */
.sp-faq {
   border-block-end: 1px solid rgb(28 22 20 / 0.14);
}

.sp-faq__q {
   cursor: pointer;
   list-style: none;
   padding-block: 1rem;
   padding-inline-end: 2rem;
   position: relative;
   font-weight: var(--weight-medium);
   min-height: 2.75rem;
}

.sp-faq__q::-webkit-details-marker { display: none; }

.sp-faq__q::after {
   content: "+";
   position: absolute;
   inset-inline-end: 0;
   top: 1rem;
   color: var(--brass-ink);
   font-size: 1.25rem;
   line-height: 1;
}

.sp-faq[open] .sp-faq__q::after { content: "\2212"; }

.sp-faq__a {
   margin: 0;
   padding-block-end: 1rem;
   color: rgb(28 22 20 / 0.78);
}

/* --- Catalog: product pages, quote CTA, comparison table (Phase 4) --- */

.sp-spec-list { margin: 1.5rem 0; }

.sp-spec-list__row {
   display: flex;
   gap: 0.75rem;
   padding-block: 0.4rem;
   border-block-end: 1px solid var(--rule);
}

.sp-spec-list__row dt { flex: 0 0 8rem; font-weight: var(--weight-medium); margin: 0; }
.sp-spec-list__row dd { margin: 0; }

/* Brass-ink text needs the verified 4.71:1 pure-cream ground (tokens.css
   ledger) — a brass-tinted background measured 4.38:1 and failed AA. */
.sp-lead-notice {
   border-inline-start: 3px solid var(--brass);
   background: var(--cream);
   padding: 0.75rem 1rem;
   font-size: var(--step--1);
   color: var(--brass-ink);
}

.sp-product-cta {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
   margin-top: 1.5rem;
}

.sp-product-cta--loop { margin-top: 0.75rem; }

.sp-compare-table {
   width: 100%;
   border-collapse: collapse;
   font-size: var(--step--1);
}

.sp-compare-table th,
.sp-compare-table td {
   text-align: start;
   padding: 0.75rem 1rem;
   border: 1px solid rgb(245 239 230 / 0.18);
   vertical-align: top;
}

.sp-compare-table th { font-family: var(--font-display); font-weight: var(--weight-heading); }

/* --- Scroll reveal ---------------------------------------------------
   motion-kit (assets/lib/motion-kit/motion.css) + Motion.init in global.js.
   Theme tuning of it lives in global.css section 3.
   -------------------------------------------------------------------- */

/* --- Phase 5: Projects Portfolio, Blog & Taxonomy Components --------- */

.sp-badge {
   position: absolute;
   top: 0.75rem;
   inset-inline-start: 0.75rem;
   background: var(--walnut);
   color: var(--cream);
   font-size: 0.75rem;
   font-weight: var(--weight-medium);
   padding: 0.25rem 0.6rem;
   border-radius: var(--radius-sm);
   z-index: 2;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sp-project-card .sp-card__media {
   position: relative;
}

.sp-project-card__meta {
   font-size: 0.8125rem;
   color: rgb(28 22 20 / 0.75);
}

.sp-filter-nav {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
}

.sp-filter-link {
   display: inline-flex;
   align-items: center;
   padding: 0.4rem 0.9rem;
   border-radius: 999px;
   border: 1px solid var(--rule);
   color: var(--ink);
   text-decoration: none;
   font-size: var(--step--1);
   font-weight: var(--weight-medium);
   transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sp-filter-link:hover,
.sp-filter-link:focus-visible,
.sp-filter-link.is-active {
   background: var(--walnut);
   color: var(--cream);
   border-color: var(--walnut);
}

.sp-read-more {
   display: inline-flex;
   align-items: center;
   color: var(--brass-ink);
   font-weight: var(--weight-medium);
   font-size: var(--step--1);
   text-decoration: none;
}

.sp-read-more:hover,
.sp-read-more:focus-visible {
   text-decoration: underline;
   color: var(--ink);
}

.sp-pagination .nav-links {
   display: flex;
   flex-wrap: wrap;
   gap: 0.4rem;
   align-items: center;
}

.sp-pagination .page-numbers {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-width: 2.25rem;
   height: 2.25rem;
   padding: 0.25rem 0.6rem;
   border-radius: var(--radius-sm);
   border: 1px solid var(--rule);
   color: var(--ink);
   text-decoration: none;
   font-size: var(--step--1);
   font-weight: var(--weight-medium);
}

.sp-pagination .page-numbers:hover,
.sp-pagination .page-numbers:focus-visible,
.sp-pagination .page-numbers.current {
   background: var(--walnut);
   color: var(--cream);
   border-color: var(--walnut);
}

.sp-project-hero__img {
   width: 100%;
   max-height: 480px;
   object-fit: cover;
}

.sp-gallery-item img {
   width: 100%;
   aspect-ratio: 4 / 3;
   object-fit: cover;
   border-radius: var(--radius-md);
}

.sp-project-sidebar {
   background: #FAFAF7;
}

/* --- Inner Page Hero Banner (0.5 brightness background) ---------------- */
.sp-page-banner {
   position: relative;
   overflow: hidden;
   min-height: 400px;
   padding: clamp(3rem, 6vw, 5.5rem) 0;
   display: flex;
   align-items: center;
   background-color: var(--walnut);
   color: var(--cream);
}

.sp-page-banner__slider {
   position: absolute;
   inset: 0;
   z-index: 1;
}

.sp-page-banner__bg {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   background-size: cover;
   background-position: center;
   filter: brightness(0.5);
   transform: scale(1.02);
   z-index: 1;
}

/* Slideshow frames stack and crossfade. Only .is-active is visible, so with
   JS off the first frame still shows and the rest stay hidden — no flash of
   every image at once. */
.sp-page-banner__slider .sp-page-banner__bg {
   opacity: 0;
   transition: opacity 1.2s ease-in-out;
}

.sp-page-banner__slider .sp-page-banner__bg.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
   .sp-page-banner__slider .sp-page-banner__bg { transition: none; }
}

/* Title block left, CTA right. Wraps to stacked on narrow screens, where the
   button sits under the description rather than being squeezed beside it. */
.sp-page-banner__row--cta {
   display: flex;
   flex-wrap: wrap;
   gap: 1.5rem 2rem;
   align-items: center;
   justify-content: space-between;
}

.sp-page-banner__row--cta .sp-page-banner__main { flex: 1 1 min(100%, 34rem); }

.sp-page-banner__cta { flex: 0 0 auto; }

.sp-page-banner__overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(180deg, rgba(61, 43, 34, 0.35) 0%, rgba(61, 43, 34, 0.65) 100%);
   z-index: 2;
   pointer-events: none;
}

.sp-page-banner__content {
   position: relative;
   z-index: 3;
}

.sp-page-banner__title {
   color: var(--cream) !important;
   font-family: var(--font-display);
   font-weight: var(--weight-bold);
   letter-spacing: -0.015em;
   margin-bottom: 0.5rem;
}

.sp-page-banner__subtitle {
   color: rgba(245, 239, 230, 0.92) !important;
   max-width: 680px;
}

/* Breadcrumb inside banner */
.sp-page-banner .breadcrumb {
   background: transparent;
   padding: 0;
   margin: 0;
   font-size: var(--step-0);
   color: rgba(245, 239, 230, 0.75);
}

.sp-page-banner .breadcrumb__link {
   color: var(--brass) !important;
   text-decoration: none;
   transition: color 0.15s ease;
}

.sp-page-banner .breadcrumb__link:hover,
.sp-page-banner .breadcrumb__link:focus-visible {
   color: var(--cream) !important;
   text-decoration: underline;
}

.sp-page-banner .breadcrumb__separator {
   color: rgba(245, 239, 230, 0.45) !important;
}

.sp-page-banner .breadcrumb__current {
   color: var(--cream) !important;
   font-weight: var(--weight-medium);
}


