/* WoodAge page-level styles for Days 3–9 content pages */
/* Companion to bootstrap.min.css + style.css for money pages and EEAT pages */

:root {
  /* Brand */
  --wa-black:    #1D1D1D;
  --wa-yellow:   #DCA44B;   /* brand gold — backgrounds/accents only (fails AA as body text on white) */
  --wa-gold-ink: #8A5A12;   /* AA-safe gold for small text/labels on white */
  /* Ink — warm near-blacks read calmer than pure #000/#1D1D1D, still well past AA */
  --wa-ink:      #262320;   /* body text — ~14:1 on paper */
  --wa-ink-soft: #4D4842;   /* secondary prose / captions */
  /* Surfaces */
  --wa-paper:    #FCFBF8;   /* page background — barely-warm off-white, less glare than #fff */
  --wa-card:     #FFFFFF;   /* raised surfaces pop against the warm paper */
  --wa-gray:     #F1F1F1;
  --wa-bg-warm:  #FAF7F2;   /* warm paper tone for soft callouts */
  --wa-line:     #E7E3DC;   /* warm hairline (was #E4E4E4) */
  --wa-line-soft:#EFEBE3;
  /* Text */
  --wa-muted:    #5F5F5F;   /* AA on white (was #707070) */
  --wa-link:     #0B57D0;   /* AA-safe blue (was #1a73e8) */
  /* Shape — SQUARE corners to match the woodage.in brand language
     (homepage buttons / modals use border-radius:0). Kept as tokens so the whole
     system stays square-by-default and consistent. */
  --wa-radius:   0;
  --wa-radius-sm: 0;
  /* Depth — light comes from above: shadows fall below, soft & diffuse, never up/hard */
  --wa-elev-1:   0 1px 2px rgba(28,25,20,.05), 0 4px 12px rgba(28,25,20,.05);
  --wa-elev-2:   0 2px 6px rgba(28,25,20,.06), 0 14px 32px rgba(28,25,20,.08);
  --wa-shadow:   var(--wa-elev-1);  /* legacy alias */
  /* Layout — ~63ch reading measure at 17px (was 900) */
  --wa-maxw:     860px;
  /* Spacing — strict 8px scale: 4 8 12 16 24 32 48 64 */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --wa-space:    clamp(20px, 4vw, 32px);
  /* Motion — "nothing teleports": one easing, ~180ms */
  --wa-ease:     cubic-bezier(.2,.6,.3,1);
  --wa-dur:      180ms;
}

/* ── Base ── */
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--wa-ink);
  background: var(--wa-paper);
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Sticky header offsets in-page anchor jumps so targets aren't hidden.
   scrollbar-gutter:stable reserves the scrollbar space permanently, so when
   js/quote-modal.js sets overflow:hidden on open the page/header no longer
   shifts sideways (fixes the "header jumps left on Get Quote" bug — Task 3).
   interpolate-size enables the FAQ height:auto open/close animation (Task 1). */
html { scroll-padding-top: 72px; scrollbar-gutter: stable; interpolate-size: allow-keywords; }

/* ── Page wrapper ── */
body > nav,
body > h1,
body > section,
body > aside,
body > article,
body > footer {
  max-width: var(--wa-maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--s-5);
  padding-right: var(--s-5);
}

/* ── Shared site header (component: partials/header.html) ── */
.wa-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--wa-line);
}
.wa-header-inner {
  max-width: var(--wa-maxw);
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.wa-logo { display: inline-flex; align-items: center; }
.wa-logo img { display: block; height: 40px; width: auto; }
.wa-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wa-nav a {
  display: inline-block;
  padding: 9px 12px;
  color: var(--wa-black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  transform: none !important;  /* nav links never move/scale on hover */
}
/* Nothing about the hover may change box size, so the row cannot shift:
   hover changes COLOUR only (no padding/border/font-size/transform change). */
.wa-nav a:hover, .wa-nav a:focus, .wa-nav a:active { transform: none !important; }
/* Match homepage nav exactly: link text turns brand gold (#DCA44B) on hover. */
.wa-nav a:hover { background: transparent; color: var(--wa-yellow); text-decoration: none; }
/* Match the homepage "Get Quote" pill exactly (css/style.css .nav-quote-trigger):
   gold fill + white text, hover INVERTS to white fill + gold text. Colour-only with
   a same-width border so the nav row never reflows on hover (Task 3). */
.wa-nav .wa-nav-cta,
.wa-nav .wa-nav-cta:focus {
  background: var(--wa-yellow);
  color: #fff;
  border: 1px solid var(--wa-yellow);
  border-radius: 0;            /* SQUARE — matches homepage .btn-primary / .nav-quote-trigger */
  transform: none !important;  /* never scale/translate/zoom on hover */
}
.wa-nav .wa-nav-cta:hover {
  background: #fff;
  color: var(--wa-yellow);
  border-color: var(--wa-yellow);
  transform: none !important;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .wa-nav a { transition: color 0.25s ease, background-color 0.25s ease; }
  .wa-nav .wa-nav-cta { transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
  /* colour/background/border ONLY — deliberately NOT transform/opacity, so the
     inversion eases smoothly (like the homepage) and the button never moves. */
  .sticky-cta a { transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
}
@media (max-width: 520px) {
  .wa-header-inner { padding: 8px 16px; }
  .wa-logo img { height: 34px; }
  .wa-nav a { padding: 8px 8px; font-size: 13px; }
}

/* Shared dark site footer must span full width (overrides body > footer clamp) */
footer.wa-site-footer {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ── Breadcrumb ── */
nav.breadcrumb {
  padding-top: 18px;
  padding-bottom: 8px;
  font-size: 13px;
  color: var(--wa-muted);
}
nav.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
nav.breadcrumb li + li::before {
  content: '›';
  margin-right: 4px;
  color: var(--wa-muted);
}
nav.breadcrumb a {
  color: var(--wa-link);
  text-decoration: none;
}

/* ── Headings — "loud" volume. Merriweather, tight tracking on the big sizes. ── */
h1 {
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.021em;
  font-weight: 700;
  color: var(--wa-ink);
  margin: var(--s-6) auto var(--s-4);
  max-width: var(--wa-maxw);
  padding: 0 var(--s-5);
}

h2 {
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(23px, 3.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: 700;
  margin: var(--s-7) 0 var(--s-4);
  color: var(--wa-ink);
}

h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  margin: var(--s-5) 0 var(--s-2);
  color: var(--wa-ink);
}

p { margin: 0 0 var(--s-4); }
ul, ol { padding-left: var(--s-5); margin: 0 0 var(--s-5); }
li { margin-bottom: var(--s-2); }
strong { font-weight: 700; color: var(--wa-ink); }

/* ── AI Answer Block — the AEO/snippet anchor. Make it the calm, confident
   first thing the eye (and an answer engine) lands on. ── */
.ai-answer-block {
  background: var(--wa-bg-warm);
  border: 1px solid var(--wa-line);
  border-left: 4px solid var(--wa-yellow);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-2) auto var(--s-6);
  border-radius: var(--wa-radius);
  box-shadow: var(--wa-elev-1);
  font-size: 18px;
  line-height: 1.65;
}
.ai-answer-block p { margin: 0; font-size: 18px; line-height: 1.65; }

/* ── "On this page" TOC — box on desktop, Claude-style gold dropdown on mobile.
   Markup injected by scripts/seo/apply-page-toc.mjs; behaviour in js/wa-toc.js. */
.wa-toc { max-width: var(--wa-maxw); margin: var(--s-5) auto var(--s-6); border: 1px solid var(--wa-line); background: var(--wa-card); }
.wa-toc__summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-3) var(--s-4); cursor: pointer; }
.wa-toc__summary::-webkit-details-marker { display: none; }
.wa-toc__label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wa-gold-ink); }
.wa-toc__chevron { flex: none; color: var(--wa-gold-ink); transition: transform var(--wa-dur) var(--wa-ease); }
.wa-toc__body { position: relative; padding: var(--s-1) var(--s-4) var(--s-3) calc(var(--s-4) + 10px); }
.wa-toc__body::before { content: ''; position: absolute; left: var(--s-4); top: 6px; bottom: 6px; width: 2px; background: var(--wa-line); border-radius: 2px; }
.wa-toc__marker { position: absolute; left: var(--s-4); top: 0; width: 2px; height: 0; opacity: 0; background: var(--wa-yellow); border-radius: 2px; transition: transform .28s cubic-bezier(.4,0,.2,1), height .28s cubic-bezier(.4,0,.2,1), opacity .2s ease; will-change: transform, height; }
.wa-toc__body ol { list-style: none !important; margin: 0; padding: 0; }
.wa-toc__body li { margin: 0; list-style: none !important; }
.wa-toc__body li::marker { content: ""; }
.wa-toc__body a { display: block; padding: 6px 10px; color: var(--wa-ink-soft); text-decoration: none; line-height: 1.45; font-size: 14.5px; transition: color var(--wa-dur) var(--wa-ease); }
.wa-toc__body a:hover, .wa-toc__body a:focus { color: var(--wa-gold-ink); }
.wa-toc__body a.is-active { color: var(--wa-gold-ink); }
/* Hover/active change colour ONLY — never metrics. Guard against the legacy theme's
   link rules (transform / underline) and any bolding so text never shifts on hover. */
.wa-toc__body a, .wa-toc__body a:hover, .wa-toc__body a:focus, .wa-toc__body a:active, .wa-toc__body a.is-active { padding: 6px 10px !important; text-decoration: none !important; transform: none !important; font-size: 14.5px !important; line-height: 1.45 !important; font-weight: 400 !important; }
@media (min-width: 760px) {
  .wa-toc__summary { cursor: default; }
  .wa-toc__chevron { display: none; }
}
/* Wide screens: a sticky rail in the right gutter (consistent with the blog
   aside). Falls back to the top box below 1240px and the dropdown below 760px. */
@media (min-width: 1240px) {
  .wa-toc { position: fixed; top: 92px; left: calc(50% + 446px); width: clamp(176px, calc(50vw - 456px), 268px); max-width: none; max-height: calc(100vh - 120px); overflow-y: auto; margin: 0; border: 0; background: transparent; z-index: 40; transition: opacity .2s ease; }
  .wa-toc__summary { padding: 0 0 var(--s-2); }
  .wa-toc__body { padding-right: 0; }
  .wa-toc.wa-toc--hidden { display: none; }
}
.wa-toc--mobile { border-color: #ecd9a8; }
.wa-toc--mobile .wa-toc__summary { background: #fbf1d6; cursor: pointer; }
.wa-toc--mobile[open] .wa-toc__summary { border-bottom: 1px solid #ecd9a8; }
.wa-toc--mobile[open] .wa-toc__chevron { transform: rotate(180deg); }
/* Mobile dropdown shows the whole list (no inner scroll) so the left indicator
   line runs the full height of every title instead of being clipped early. */
.wa-toc--mobile .wa-toc__body { padding-top: var(--s-2); max-height: none; overflow: visible; }

/* ── Sticky CTAs ── */
.sticky-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px auto;
  padding: 16px 20px;
  background: var(--wa-gray);
  border-radius: 8px;
}
.sticky-cta a {
  display: inline-block;
  padding: 11px 20px;
  background: var(--wa-yellow);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--wa-yellow);
  border-radius: 0;            /* SQUARE — matches homepage .btn-primary button language */
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transform: none !important;  /* hard guarantee: no zoom/scale/move on hover or tap */
}
/* Smooth colour inversion (matches the homepage's .btn-primary 0.3s ease). The
   transition is defined in the prefers-reduced-motion block below and covers
   colour/background/border ONLY — never transform — so the button never moves
   or resizes; it only eases colour, exactly like the homepage button. */
.sticky-cta a:hover { background: #fff; color: var(--wa-yellow); transform: none !important; }
.sticky-cta a[href^="tel:"] { background: var(--wa-black); color: #fff; border-color: var(--wa-black); }
.sticky-cta a[href^="tel:"]:hover { background: #fff; color: var(--wa-black); }
.sticky-cta a[href*="whatsapp"] { background: #25D366; color: #fff; border-color: #25D366; }
.sticky-cta a[href*="whatsapp"]:hover { background: #fff; color: #128C3E; }

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║ ROOT CAUSE of "button shrinks / nav text shifts on hover":           ║
   ║ legacy css/style.css (loaded AFTER this file) has                     ║
   ║   a, a:hover, a:focus { padding: 0px; ... }                          ║
   ║ On hover, `a:hover{padding:0}` ties our buttons on specificity        ║
   ║ (both 0,1,1) and WINS by source order — collapsing padding to 0,      ║
   ║ which shrinks the box and pushes neighbours. We lock the padding with ║
   ║ !important (the theme itself uses !important) so it holds in EVERY     ║
   ║ state — resting, hover, focus, active. box-sizing pinned for safety.  ║
   ╚══════════════════════════════════════════════════════════════════════╝ */
.wa-nav a,
.wa-nav a:hover,
.wa-nav a:focus,
.wa-nav a:active { padding: 9px 12px !important; box-sizing: border-box !important; }
.sticky-cta a,
.sticky-cta a:hover,
.sticky-cta a:focus,
.sticky-cta a:active { padding: 11px 20px !important; box-sizing: border-box !important; }
.wa-quote-form__submit,
.wa-quote-form__submit:hover,
.wa-quote-form__submit:focus { padding: 12px 16px !important; box-sizing: border-box !important; }

/* ── Tables — framed as a soft card; scannable rows (AEO-friendly) ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-4) 0 var(--s-6);
  font-size: 15px;
  background: var(--wa-card);
  border: 1px solid var(--wa-line);
  border-radius: var(--wa-radius);
  overflow: hidden;            /* clips row corners to the radius */
  box-shadow: var(--wa-elev-1);
}
th {
  background: var(--wa-ink);   /* warm dark — softer than pure black */
  color: #fff;
  padding: var(--s-3) var(--s-4);
  text-align: left;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--wa-line);
  vertical-align: top;
}
tr:last-child td { border-bottom: 0; }
tr:nth-child(even) td { background: var(--wa-bg-warm); }

/* ── Citation facts ── */
.citation-facts-section {
  max-width: var(--wa-maxw);
  margin: 28px auto;
}
.citation-facts th { background: #2c5f2e; }

/* ── Definition lists (numbered checklists, evaluation criteria, comparisons) ── */
dl { margin: var(--s-4) 0 var(--s-5); }
dt { font-weight: 700; margin-top: var(--s-4); color: var(--wa-ink); }
dt:first-of-type { margin-top: 0; }
dd { margin: var(--s-1) 0 0; padding: 2px 0 2px var(--s-4); border-left: 3px solid var(--wa-yellow); color: var(--wa-ink-soft); }

/* ── Cost caveat ── */
.cost-caveat {
  background: #FBF3DC;
  border: 1px solid #EBD9A8;
  border-left: 4px solid var(--wa-yellow);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--wa-radius-sm);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--wa-ink-soft);
  max-width: var(--wa-maxw);
  margin: var(--s-4) auto;
}

/* ── FAQ section ── */
.faq-section, .faq {
  max-width: var(--wa-maxw);
  margin: 32px auto;
}
.faq-section h3, .faq h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 4px;
  color: var(--wa-black);
}
.faq-section p, .faq p {
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}

/* ── Entity-proof "business card" (Task 5) ──
   Designed contact/trust card at page end (warm panel + gold accent bar),
   not raw text. Keeps the full visible NAP — that local-business signal is
   AEO/GEO-valuable, so it is intentionally retained even though the dark
   site footer also carries NAP (NAP repetition on a page is standard and not
   penalised). The two read as distinct components: page-level contact card
   vs site-wide footer. */
/* ── Page credibility strip — publisher · freshness · disambiguation ──
   The full NAP (address/phone/email) lives ONCE, in the site footer + JSON-LD.
   This in-content block carries the page-level E-E-A-T signals answer engines
   weight most: who published it, when it was last updated (matches schema
   dateModified), entity disambiguation, and the page caveat. Styled as a quiet
   editorial by-line aligned to the content measure — deliberately distinct from
   the dark footer and the warm AI-answer card, so it reads as intentional page
   metadata, never a duplicate contact card. (max-width restores the content
   alignment lost when the block was migrated from <footer> to <div>.) */
.entity-proof {
  max-width: var(--wa-maxw);
  margin: var(--s-7) auto var(--s-5);
  padding: var(--s-5) var(--s-5) 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--wa-line);
  border-radius: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--wa-ink-soft);
}
.entity-proof::before {
  content: "About this page";
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--wa-gold-ink);
  margin-bottom: var(--s-3);
}
.entity-proof > :first-child { margin-top: 0; }
.entity-proof__id,
.entity-proof address {
  display: block;
  font-style: normal;
  font-size: 15px;
  line-height: 1.5;
  color: var(--wa-ink);
  margin: 0 0 var(--s-2);
}
.entity-proof__id strong,
.entity-proof address strong { font-weight: 700; color: var(--wa-ink); }
.entity-proof p { margin: var(--s-2) 0 0; }
.entity-proof small { color: var(--wa-ink-soft); }
.entity-proof time { color: var(--wa-ink); font-weight: 600; }
.entity-proof a { color: var(--wa-gold-ink); font-weight: 600; }
.byline {
  font-size: 13px;
  color: var(--wa-ink-soft);
  border-top: 1px solid var(--wa-line);
  padding-top: var(--s-3);
  margin-top: var(--s-3);
}

/* ── Eyebrow ── */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wa-gold-ink);
  margin-bottom: 4px;
}

/* ── Sections ── */
section {
  margin: var(--s-7) auto;
  padding: 0 var(--s-5);
}

/* ── Links ── */
a { color: var(--wa-link); }
a:hover { text-decoration: underline; }

/* Visible keyboard focus — !important overrides legacy style.css "outline:0 !important" */
a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--wa-link) !important;
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── FAQ accordion — matched to the homepage #faq .faq-item (Tasks 1 & 2) ──
   Card + hidden default triangle + "+"→"×" marker + #DCA44B accent, default
   CLOSED, smooth open/close. Scoped to .faq-section / .faq so it can never
   touch the homepage's own #faq styling. Behaviour is identical on desktop,
   tablet and mobile (no breakpoint changes the interaction). */
details { margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }

/* Box matched 1:1 to the homepage #faq .faq-item: 8px radius, hairline border,
   white card, NO shadow — so the FAQ reads identically on the homepage and every
   landing page. (Intentionally overrides the square --wa-radius default, because
   the brand's FAQ component itself is the 8px-rounded card.) */
.faq-section details,
.faq details {
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background: #fff;
  margin: 0 0 14px;
  overflow: hidden;
}
.faq-section summary,
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 18px 48px 18px 18px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--wa-black);
  -webkit-tap-highlight-color: transparent; /* kills the mobile tap flash */
}
.faq-section summary::-webkit-details-marker,
.faq summary::-webkit-details-marker { display: none; } /* hide default triangle */
.faq-section summary::after,
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  color: var(--wa-black);
}
.faq-section details[open] summary::after,
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg); /* "+" becomes "×" */
  color: var(--wa-yellow);
}
.faq-section details:hover summary,
.faq details:hover summary,
.faq-section details[open] summary,
.faq details[open] summary { color: var(--wa-yellow); }
.faq-section details > :not(summary),
.faq details > :not(summary) { margin: 0; padding: 0 18px 18px; line-height: 1.75; }

@media (prefers-reduced-motion: no-preference) {
  .faq-section summary, .faq summary,
  .faq-section summary::after, .faq summary::after {
    transition: color 0.2s ease, transform 0.2s ease;
  }
}
/* Smooth open AND close is handled by js/faq-smooth.js (height animation that
   works in every browser) — no experimental CSS ::details-content needed. */

/* NO gold/box line when you click a FAQ question with the mouse. Only a subtle
   INSET keyboard-focus ring remains for accessibility (it can't be clipped into
   a "line" by the card's overflow). This removes the gold line that appeared on
   open and vanished on clicking outside. */
.faq-section summary:focus,
.faq summary:focus { outline: none; }
.faq-section summary:focus-visible,
.faq summary:focus-visible { outline: 2px solid var(--wa-link); outline-offset: -3px; border-radius: 0; }

/* ── Code ── */
code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .sticky-cta { flex-direction: column; }
  .sticky-cta a { text-align: center; }
  table { font-size: 13px; }
  th, td { padding: 7px 8px; }
}

/* ════════════════════════════════════════════════════════════════════════
   LEGACY CASCADE OVERRIDE LAYER
   The legacy theme css/style.css is linked AFTER this file on every landing
   page, and sets aggressive bare-element rules that would otherwise bury the
   design system above:
     body { font-size:14px; line-height:24px }
     h1 { font-size:72px; line-height:72px }   h2 { 48px }   h3 { 36px }
     h1..h6 { font-weight:300 }
     a, a:focus { color:#DCA44B }   a { font-size:14px }
     ul li { font-size:14px }
     a,a:hover,a:focus { text-decoration:none !important; outline:0 !important }
   These higher-specificity rules (and a few targeted !important, matching the
   legacy theme's own use) restore intended sizing/weight/colour for the
   readable content region only. The shared dark footer and the sticky header
   keep their own class-scoped styling and are deliberately NOT touched here.
   ════════════════════════════════════════════════════════════════════════ */

/* Base reading size + warm ink/paper (beats style.css `body` + bare `p{14px}`) */
html body { font-size: 17px; line-height: 1.75; color: var(--wa-ink); background: var(--wa-paper); }
html body p { font-size: 17px; color: var(--wa-ink); }
/* Re-assert intentionally smaller secondary text (class rules already win on
   specificity, but caveat text sizes its container not its <p>, so re-state) */
.cost-caveat, .cost-caveat p { font-size: 13px; }
.faq-section p, .faq p { font-size: 14px; }

/* Headings: restore scale + weight + warm ink (beats style.css bare h1/h2/h3 + weight:300) */
body h1 { font-size: clamp(30px, 5.2vw, 46px); line-height: 1.14; font-weight: 700; color: var(--wa-ink); }
body h2 { font-size: clamp(23px, 3.4vw, 30px); line-height: 1.25; font-weight: 700; color: var(--wa-ink); }
body h3 { font-size: 19px; line-height: 1.4; font-weight: 700; color: var(--wa-ink); }

/* Tables: beat legacy style.css bare th/td (loaded after this file) so the
   refined cell padding + readable cell size actually win. */
html body th { padding: var(--s-3) var(--s-4); font-size: 13.5px; color: #fff; }
html body td { padding: var(--s-3) var(--s-4); font-size: 15px; color: var(--wa-ink); }

/* Content list items inherit the 16px base (beats style.css `ul li{14px}`) */
body > section li, body > article li, body > aside li,
.faq li, .faq-section li { font-size: inherit; }

/* Restore real list markers + indentation for readable content lists. The legacy
   style.css strips them (`ul li { list-style-type:none }`), which makes proper
   <ul>/<ol> render as flat un-bulleted text. Scoped to the content region so nav,
   breadcrumb and footer lists are untouched. Gold ::marker is the brand accent. */
body > section ul, body > article ul, body > aside ul,
.faq ul, .faq-section ul, .ai-answer-block ul { list-style: disc outside; padding-left: var(--s-5); }
body > section ul > li, body > article ul > li, body > aside ul > li,
.faq ul > li, .faq-section ul > li, .ai-answer-block ul > li { list-style: disc outside; }
body > section ul ul > li, body > article ul ul > li { list-style: circle outside; }
body > section ol, body > article ol, body > aside ol { list-style: decimal outside; padding-left: var(--s-5); }
body > section ol > li, body > article ol > li, body > aside ol > li { list-style: decimal outside; list-style-position: outside; }
body > section li, body > article li, body > aside li,
.faq li, .faq-section li { padding-left: 4px; }
body > section li::marker, body > article li::marker, body > aside li::marker,
.faq li::marker, .faq-section li::marker { color: var(--wa-gold-ink); font-weight: 700; }

/* Content links: AA-safe gold-ink + underline (style.css makes them #DCA44B,
   which fails WCAG AA on white, and forces text-decoration:none !important) */
body > section a, body > article a, body > aside a,
.faq a, .faq-section a, .ai-answer-block a, nav.breadcrumb a {
  color: var(--wa-gold-ink);
  font-size: inherit;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
body > section a:hover, body > article a:hover, body > aside a:hover,
.faq a:hover, .faq-section a:hover, .ai-answer-block a:hover, nav.breadcrumb a:hover {
  color: var(--wa-black);
}

/* ── Motion: ease colour + depth so nothing snaps (≈180ms, one easing) ── */
@media (prefers-reduced-motion: no-preference) {
  body > section a, body > article a, body > aside a,
  .faq a, .faq-section a, .ai-answer-block a, nav.breadcrumb a, .entity-proof a,
  a { transition: color var(--wa-dur) var(--wa-ease); }
  table, .ai-answer-block, .cost-caveat, .entity-proof, .citation-facts-section { transition: box-shadow var(--wa-dur) var(--wa-ease); }
}

/* ════════════════════════════════════════════════════════════════════════
   GET QUOTE MODAL (progressive enhancement — js/quote-modal.js)
   Injected into every Site landing page via partials/footer.html. The
   trigger keeps href="/get-quote/" as a crawlable fallback; this layer only
   styles the in-page dialog that JS reveals. Hidden by default via [hidden].
   ════════════════════════════════════════════════════════════════════════ */
.wa-quote-modal[hidden] { display: none; }
.wa-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wa-quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 29, 0.55);
}
.wa-quote-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 0;                 /* square corners, matches the homepage quote modal */
  border-top: 4px solid #DCA44B;    /* gold top accent, matches the homepage quote modal */
  box-shadow: 0 20px 60px rgba(29, 29, 29, 0.2);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px 30px 26px;
}
.wa-quote-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--wa-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.wa-quote-modal__close:hover { color: var(--wa-black); background: var(--wa-gray); }
.wa-quote-modal__eyebrow {
  margin: 0 0 4px;
  color: var(--wa-gold-ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wa-quote-modal__title {
  margin: 0 0 6px;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  color: var(--wa-black);
}
.wa-quote-modal__intro {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--wa-muted);
}
.wa-quote-form label {
  display: block;
  margin: 10px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wa-black);
}
.wa-quote-form input,
.wa-quote-form select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--wa-black);
  background: #fff;
  border: 1px solid var(--wa-line);
  border-radius: 8px;
  box-sizing: border-box;
}
.wa-quote-form input:focus,
.wa-quote-form select:focus {
  outline: none;
  border-color: var(--wa-gold-ink);
  box-shadow: 0 0 0 3px rgba(138, 90, 18, 0.15);
}
.wa-quote-form__submit {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--wa-yellow);
  border: 1px solid var(--wa-yellow);
  border-radius: 0;            /* SQUARE — matches the homepage button language */
  cursor: pointer;
  transform: none !important;  /* no zoom/scale on hover */
}
.wa-quote-form__submit:hover {
  background: #fff;
  color: var(--wa-yellow);
  transform: none !important;
}
.wa-quote-form__note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--wa-muted);
  text-align: center;
}
/* ── Inline quote form (get-quote page) ── */
.wa-quote-inline {
  max-width: var(--wa-maxw);
  margin: 18px auto 30px;
  padding: 24px var(--s-5) 22px;
  background: #fff;
  border: 1px solid var(--wa-line);
  border-top: 4px solid #DCA44B;
  box-shadow: 0 6px 24px rgba(29, 29, 29, 0.06);
  box-sizing: border-box;
}
.wa-quote-inline h2 { margin-top: 0; }
.wa-quote-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--wa-black);
  background: #fff;
  border: 1px solid var(--wa-line);
  border-radius: 8px;
  box-sizing: border-box;
  resize: vertical;
}
.wa-quote-form textarea:focus {
  outline: none;
  border-color: var(--wa-gold-ink);
  box-shadow: 0 0 0 3px rgba(138, 90, 18, 0.15);
}

@media (prefers-reduced-motion: no-preference) {
  .wa-quote-modal__close,
  .wa-quote-form input,
  .wa-quote-form select,
  .wa-quote-form__submit {
    transition: color .15s ease, background-color .15s ease,
      border-color .15s ease, box-shadow .15s ease;
  }
  /* Entry animation (Task 3): dialog slides in from the top, backdrop fades —
     matches the homepage's Bootstrap "modal fade" feel. Runs when
     js/quote-modal.js removes [hidden] (CSS animations fire on the display
     change), so no JS change is needed. Exit is native/instant. */
  .wa-quote-modal:not([hidden]) .wa-quote-modal__backdrop {
    animation: waModalFade .28s ease both;
  }
  .wa-quote-modal:not([hidden]) .wa-quote-modal__dialog {
    animation: waModalIn .28s cubic-bezier(.2, .7, .3, 1) both;
  }
  .wa-quote-modal.is-closing .wa-quote-modal__backdrop {
    animation: waModalFade .22s ease both reverse;
  }
  .wa-quote-modal.is-closing .wa-quote-modal__dialog {
    animation: waModalOut .22s ease both;
  }
}
@keyframes waModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes waModalIn {
  from { opacity: 0; transform: translateY(-34px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes waModalOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-34px); }
}

/* Landing-page TOC guard: hover/active may change color only. This sits last so
   legacy theme rules cannot reintroduce bullets, padding collapse, size changes
   or movement on the generated "On this page" links. */
.wa-toc .wa-toc__body ol,
.wa-toc .wa-toc__body ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.wa-toc .wa-toc__body li {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
}
.wa-toc .wa-toc__body li::marker {
  content: "" !important;
}
.wa-toc .wa-toc__body a,
.wa-toc .wa-toc__body a:hover,
.wa-toc .wa-toc__body a:focus,
.wa-toc .wa-toc__body a:active,
.wa-toc .wa-toc__body a.is-active {
  color: var(--wa-ink-soft);
  display: block !important;
  padding: 6px 10px !important;
  font-size: 14.5px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  transform: none !important;
  transition: color var(--wa-dur) var(--wa-ease) !important;
}
.wa-toc .wa-toc__body a:hover,
.wa-toc .wa-toc__body a:focus,
.wa-toc .wa-toc__body a:active,
.wa-toc .wa-toc__body a.is-active {
  color: #8A5A12 !important;
}
