/* ============================================================
   Anderson Parker — Specialist Plasterer
   Shared stylesheet. Plain CSS, no build step.
   Palette sampled from the AP logo: deep olive, warm gold,
   parchment / stone off-white.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colour */
  --olive:        #3d4a2b;   /* primary deep olive/forest green */
  --olive-deep:   #2c3620;   /* footer / hovers */
  --olive-soft:   #5d6e44;   /* lighter olive for accents */
  --gold:         #b89244;   /* confident antique-gold accent */
  --gold-bright:  #cda84e;
  --gold-pale:    #efe2a0;   /* hero gradient light */
  --gold-pale-2:  #e9edb0;

  --parchment:    #f3ecd9;   /* page background (stone/parchment) */
  --cream:        #faf6ea;   /* raised surfaces / cards */
  --cream-line:   #e7dcc3;   /* hairline dividers on parchment */

  --ink:          #2b2a24;   /* charcoal body text */
  --ink-soft:     #5a564b;   /* secondary text */
  --ink-faint:    #837d6e;

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing rhythm (8pt) */
  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(43,42,36,.06), 0 2px 8px rgba(43,42,36,.05);
  --shadow-md: 0 8px 24px rgba(43,42,36,.10), 0 2px 6px rgba(43,42,36,.06);
  --shadow-lg: 0 20px 50px rgba(44,54,32,.16);

  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
/* Rounded corners on every image site-wide (the circular brand logo keeps
   its own more-specific rule below). */
img { border-radius: var(--radius); }
a { color: var(--olive); text-decoration: none; }
ul { list-style: none; padding: 0; }

/* Subtle paper texture on the whole page (pure CSS, no asset) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(233,237,176,.35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(184,146,68,.08), transparent 55%);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: linear-gradient(180deg, #fbf7ee, #f6efdd); border-block: 1px solid var(--cream-line); }
.section--olive { background: var(--olive); color: #ece7d6; }
.center { text-align: center; }
.narrow { max-width: 720px; margin-inline: auto; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
p { max-width: 68ch; }
.section--olive h1,.section--olive h2,.section--olive h3 { color: #f4efe0; }

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem;
}
.eyebrow::before { content:""; width: 28px; height: 2px; background: var(--gold); display:inline-block; }
.section--olive .eyebrow { color: var(--gold-pale); }
.section--olive .eyebrow::before { background: var(--gold-pale); }

.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); line-height: 1.6; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem,5vw,3.25rem); }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s;
  min-height: 48px; line-height: 1;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--gold); color: #2b2410; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--olive); color: #f3eedd; }
.btn-dark:hover { background: var(--olive-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--olive); border-color: rgba(61,74,43,.35); }
.btn-outline:hover { border-color: var(--olive); background: rgba(61,74,43,.06); transform: translateY(-2px); }
.section--olive .btn-outline { color: #f3eedd; border-color: rgba(243,238,221,.4); }
.section--olive .btn-outline:hover { background: rgba(243,238,221,.1); border-color: #f3eedd; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243,236,217,.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.scrolled { background: rgba(247,242,231,.95); border-bottom-color: var(--cream-line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--ink); letter-spacing: -.01em; }
.brand-text span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: .35rem; }
.primary-nav a, .nav-dd-toggle {
  font-size: .95rem; font-weight: 500; color: var(--ink); padding: .55rem .7rem; border-radius: 8px;
  background: none; border: 0; cursor: pointer; font-family: var(--sans);
  display: inline-flex; align-items: center; gap: .3rem; transition: color .2s, background .2s;
}
.primary-nav a:hover, .nav-dd-toggle:hover { color: var(--olive); background: rgba(61,74,43,.07); }
.primary-nav a[aria-current="page"] { color: var(--olive); font-weight: 600; }

/* Services dropdown */
.has-dropdown { position: relative; }
.nav-dd-toggle .chev { width: 14px; height: 14px; transition: transform .2s; }
.has-dropdown.open .nav-dd-toggle .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 120;
}
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: .6rem .75rem; border-radius: 8px; font-size: .92rem; color: var(--ink); }
.dropdown a small { display: block; color: var(--ink-faint); font-size: .78rem; font-weight: 400; }
.dropdown a:hover { background: rgba(61,74,43,.08); color: var(--olive); }

.header-cta { display: inline-flex; gap: .5rem; align-items: center; }
.header-cta .btn { padding: .65rem 1.1rem; min-height: 44px; }

/* Mobile nav toggle */
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--cream-line); background: var(--cream); border-radius: 10px; cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(160deg, rgba(233,237,176,.55) 0%, rgba(239,226,160,.35) 35%, rgba(243,236,217,0) 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,5vw,4rem); align-items: center; padding-block: clamp(3rem,7vw,5.5rem); }
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--olive); font-style: italic; }
.hero .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem,2.4vw,1.5rem); color: var(--olive-soft); margin-bottom: 1rem; }
.hero .lead { margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .9rem; color: var(--ink-soft); }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* hero visual stack */
.hero-visual { position: relative; }
.hero-visual .img-placeholder { aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; bottom: -18px; left: -18px; background: var(--olive); color: #f3eeda;
  border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow-md); max-width: 16rem;
}
.hero-badge strong { font-family: var(--serif); font-size: 1.3rem; display: block; color: var(--gold-pale); }
.hero-badge small { font-size: .82rem; opacity: .9; }

/* ---------- Image placeholders ---------- */
.img-placeholder {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(184,146,68,.06) 0 14px, rgba(184,146,68,.10) 14px 28px),
    linear-gradient(135deg, #efe7d2, #e6dcc2);
  border: 1.5px dashed rgba(120,103,60,.45);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--ink-faint); min-height: 180px;
}
.img-placeholder .ph-label { padding: 1rem; }
.img-placeholder .ph-label svg { width: 34px; height: 34px; margin: 0 auto .5rem; color: rgba(120,103,60,.6); }
.img-placeholder .ph-label b { display: block; font-family: var(--sans); font-weight: 600; color: var(--ink-soft); font-size: .9rem; }
.img-placeholder .ph-label small { font-size: .78rem; }
.img-placeholder.is-wide { aspect-ratio: 16/10; }
.img-placeholder.is-square { aspect-ratio: 1/1; }

/* ---------- Reusable photo wrapper ---------- */
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.is-wide { aspect-ratio: 16/10; }
.photo.is-portrait { aspect-ratio: 4/5; }

/* ---------- Recent work gallery (masonry) ---------- */
/* CSS columns — handles any number of photos in any orientation; add
   another <figure class="work-item"> and it tiles itself. */
.work-grid {
  columns: 3;
  column-gap: 1.1rem;
  margin-top: 2.4rem;
}
.work-item { margin: 0 0 1.1rem; break-inside: avoid; }
.work-item .photo { width: 100%; }
.work-item .photo img { width: 100%; height: auto; transition: transform .5s ease; }
.work-item:hover .photo img { transform: scale(1.04); }
@media (max-width: 980px) { .work-grid { columns: 2; } }
@media (max-width: 560px) { .work-grid { columns: 1; column-gap: 0; } }

/* ---------- Services overview (icon cards) ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius);
  overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(184,146,68,.5); }
.card-icon {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(61,74,43,.10), rgba(184,146,68,.16));
  border: 1px solid rgba(184,146,68,.30); color: var(--olive);
  margin-bottom: 1.1rem; transition: background .22s, color .22s, transform .22s var(--ease);
}
.card-icon svg { width: 30px; height: 30px; }
.card:hover .card-icon { background: var(--olive); color: var(--gold-pale); transform: rotate(-4deg); }
.card-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .95rem; color: var(--ink-soft); flex: 1; margin-bottom: 1rem; }
.card .card-link { font-weight: 600; font-size: .92rem; color: var(--olive); display: inline-flex; align-items: center; gap: .4rem; }
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }
.card::after { content:""; position:absolute; inset:0; } /* full-card click target */

/* ---------- About / feature list ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.feature-list { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.feature-list li { display: flex; gap: .85rem; align-items: flex-start; }
.feature-list .fi { flex: none; width: 40px; height: 40px; border-radius: 10px; background: rgba(61,74,43,.08); color: var(--olive); display: grid; place-items: center; }
.feature-list .fi svg { width: 20px; height: 20px; }
.feature-list h4 { font-family: var(--sans); font-weight: 700; font-size: 1rem; margin-bottom: .15rem; }
.feature-list p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Areas ---------- */
.areas-grid { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.area-chip {
  background: var(--cream); border: 1px solid var(--cream-line); border-radius: 999px;
  padding: .55rem 1.1rem; font-weight: 500; font-size: .95rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: .5rem;
}
.area-chip svg { width: 15px; height: 15px; color: var(--gold); }
.section--olive .area-chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #ece7d6; }

/* ---------- Testimonials ---------- */
/* Horizontal scroll carousel — swipe / drag sideways */
/* Auto-floating marquee: the row drifts left continuously and loops.
   JS clones the cards once so the loop is seamless; pauses on hover/focus. */
.quotes-scroller { overflow: hidden; padding-block: 1.6rem; }
.quotes { display: flex; width: max-content; }
html.js .quotes { animation: quotes-marquee 60s linear infinite; }
.quotes-scroller:hover .quotes,
.quotes-scroller:focus-within .quotes { animation-play-state: paused; }
@keyframes quotes-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.quote {
  flex: 0 0 clamp(280px, 80vw, 360px);
  margin-right: 1.25rem;
  display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
  white-space: normal;
}
/* Fallbacks: no JS (no clones) or reduced motion → plain manual scroll */
html:not(.js) .quotes-scroller { overflow-x: auto; }
@media (prefers-reduced-motion: reduce) {
  html.js .quotes { animation: none; }
  .quotes-scroller { overflow-x: auto; }
}
.quote .stars { display: flex; gap: .15rem; color: var(--gold); margin-bottom: .85rem; }
.quote .stars svg { width: 18px; height: 18px; }
.quote blockquote { font-size: 1.02rem; line-height: 1.6; color: var(--ink); margin-bottom: 1rem; }
.quote figcaption { font-weight: 600; font-size: .92rem; }
.quote figcaption small { display: block; color: var(--ink-faint); font-weight: 400; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
.contact-methods { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-method { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.15rem; background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.contact-method:hover { border-color: rgba(184,146,68,.5); transform: translateY(-2px); }
.contact-method .ci { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(61,74,43,.08); color: var(--olive); display: grid; place-items: center; }
.contact-method .ci svg { width: 22px; height: 22px; }
.contact-method > div { min-width: 0; } /* allow the long email to shrink/wrap instead of overflowing */
.contact-method b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.contact-method span { font-size: 1.1rem; font-weight: 600; color: var(--ink); font-family: var(--serif); overflow-wrap: anywhere; }

/* Form */
.form-card { background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: clamp(1.5rem,4vw,2.25rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid var(--cream-line); border-radius: var(--radius-sm);
  background: #fffdf7; transition: border-color .2s, box-shadow .2s; min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--olive-soft); box-shadow: 0 0 0 3px rgba(93,110,68,.18); }
.field .req { color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .82rem; color: var(--ink-faint); margin-top: .9rem; }
.form-status { margin-top: 1rem; font-size: .92rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive-deep); color: #cdd0bf; padding-block: clamp(3rem,6vw,4.5rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 { color: var(--gold-pale); font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }
.site-footer a { color: #cdd0bf; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-text strong { color: #f3eeda; }
.footer-brand p { font-size: .92rem; color: #aab19a; margin: 1rem 0 1.25rem; max-width: 34ch; }
.footer-links li, .footer-contact li { margin-bottom: .6rem; font-size: .95rem; }
.footer-contact a { font-weight: 500; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; }
.footer-social a:hover { background: var(--gold); color: var(--olive-deep); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; color: #9aa088; }

/* ---------- Mobile sticky call bar ---------- */
.mobile-call-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--olive); color: #f3eeda; font-weight: 600; font-size: 1.05rem;
  align-items: center; justify-content: center; gap: .6rem; padding: .95rem;
  padding-bottom: calc(.95rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0,0,0,.18); border-top: 1px solid var(--olive-soft);
}
.mobile-call-bar svg { width: 20px; height: 20px; }

/* ---------- Sub-page hero (service pages) ---------- */
.page-hero { background: linear-gradient(160deg, rgba(233,237,176,.5), rgba(243,236,217,0) 65%); padding-block: clamp(2.5rem,6vw,4.5rem); }
.breadcrumb { font-size: .85rem; color: var(--ink-faint); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--olive); }
.page-hero h1 { max-width: 16ch; margin-bottom: 1rem; }
.page-hero .lead { max-width: 60ch; }
.page-hero .hero-actions { margin-top: 1.6rem; }

/* Service content */
.prose { max-width: 760px; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.prose p strong { color: var(--ink); }
.checklist { display: grid; gap: .8rem; margin: 1.25rem 0 1.5rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--olive); margin-top: 1px; }

.content-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
.sidecard { position: sticky; top: calc(var(--header-h) + 16px); background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.sidecard h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.sidecard p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.sidecard .btn { width: 100%; margin-bottom: .6rem; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { margin: 0 auto 1.8rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Scroll reveal (only hidden when JS is active) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin-inline: auto; }
  /* Image is centred & narrower here — keep the badge tucked inside it
     so it never floats onto the page background. */
  .hero-badge { left: 1rem; right: auto; bottom: 1rem; }
  .cards { grid-template-columns: repeat(2,1fr); }
  .split, .contact-grid, .content-grid { grid-template-columns: 1fr; }
  .sidecard { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  /* Mobile nav: slide-down panel */
  .header-cta .btn-quote { display: none; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--cream-line);
    padding: .5rem var(--gutter) 1.25rem; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s var(--ease), opacity .25s, visibility .25s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  body.nav-open .primary-nav { transform: none; opacity: 1; visibility: visible; }
  .primary-nav > a, .nav-dd-toggle { padding: .9rem .25rem; border-radius: 0; border-bottom: 1px solid var(--cream-line); font-size: 1.05rem; }
  .has-dropdown { position: static; }
  .nav-dd-toggle { width: 100%; justify-content: space-between; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 .5rem; min-width: 0; max-height: 0; overflow: hidden; transition: max-height .25s var(--ease); }
  .has-dropdown.open .dropdown { max-height: 520px; }
  .dropdown a { padding-left: 1rem; }
  .dropdown a small { display: none; }

  .mobile-call-bar { display: flex; }
  body { padding-bottom: 72px; } /* clear sticky call bar */
  .site-footer { padding-bottom: 90px; }

  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; }
  .hero-badge { left: 1rem; bottom: 1rem; }
}

@media (min-width: 721px) { .mobile-call-bar { display: none !important; } }
