/* ==========================================================================
   CASTLEROCK ROOFING — Design System
   Edinburgh heritage & listed-building roof specialists
   One cohesive stylesheet shared by every page.
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ------------------------------------------------ */
:root {
  /* Brand palette */
  --slate:        #2f3a44;   /* Edinburgh slate — primary dark */
  --slate-900:    #1a1e22;   /* ink / near-black text */
  --slate-700:    #3b4753;
  --slate-500:    #5d6b78;
  --stone:        #c9beac;   /* warm stone */
  --stone-200:    #e3ddd1;
  --stone-100:    #efe9dd;
  --heritage:     #1f4436;   /* deep heritage green */
  --heritage-700: #2c5a48;
  --heritage-300: #6d9384;
  --amber:        #e8853b;   /* safety-amber accent */
  --amber-600:    #cf6f28;
  --amber-100:    #f6dcc4;
  --offwhite:     #f6f4ef;   /* page background */
  --paper:        #fbfaf6;   /* raised surfaces */
  --ink:          #1a1e22;

  /* Semantic */
  --bg:           var(--offwhite);
  --surface:      var(--paper);
  --text:         var(--slate-900);
  --text-soft:    var(--slate-500);
  --line:         rgba(47, 58, 68, 0.14);
  --line-strong:  rgba(47, 58, 68, 0.28);

  /* Typography */
  --font-head: "Space Grotesk", "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-eyebrow: 0.78rem;
  --fs-sm:   clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --fs-lg:   clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-xl:   clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --fs-2xl:  clamp(1.9rem, 1.5rem + 1.9vw, 2.9rem);
  --fs-3xl:  clamp(2.5rem, 1.9rem + 3.2vw, 4.4rem);
  --fs-4xl:  clamp(3rem, 2rem + 5vw, 5.6rem);

  --lh-tight: 1.05;
  --lh-snug:  1.2;
  --lh-body:  1.62;

  /* Spacing scale */
  --sp-1: 0.375rem;
  --sp-2: 0.625rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2.25rem;
  --sp-6: 3.25rem;
  --sp-7: 4.75rem;
  --sp-8: 7rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 7rem);

  /* Radius */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(26, 30, 34, 0.08);
  --sh:    0 6px 22px -12px rgba(26, 30, 34, 0.35);
  --sh-lg: 0 22px 60px -28px rgba(26, 30, 34, 0.5);
  --sh-amber: 0 10px 28px -12px rgba(232, 133, 59, 0.55);

  --container: 1200px;
  --container-narrow: 780px;
  --header-h: 76px;

  --ease: cubic-bezier(0.4, 0.05, 0.1, 1);
}

/* ---------- 2. RESET / BASE ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* faint slate paper texture */
  background-image:
    radial-gradient(circle at 18% -10%, rgba(31, 68, 54, 0.05), transparent 45%),
    radial-gradient(circle at 92% 8%, rgba(232, 133, 59, 0.045), transparent 42%);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { object-fit: cover; }

a { color: var(--heritage); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--amber-600); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  color: var(--slate-900);
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { text-wrap: pretty; }

strong { font-weight: 650; color: var(--slate-900); }
::selection { background: var(--amber); color: #fff; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

hr { border: none; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }

/* ---------- 3. LAYOUT PRIMITIVES ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.container.narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section.tight { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }

.section.slate   { background: var(--slate); color: var(--stone-100); }
.section.heritage{ background: var(--heritage); color: #eaf1ec; }
.section.stone   { background: var(--stone-100); }
.section.paper   { background: var(--paper); }

.section.slate h1, .section.slate h2, .section.slate h3, .section.slate h4,
.section.heritage h1, .section.heritage h2, .section.heritage h3, .section.heritage h4 { color: #fff; }
.section.slate a, .section.heritage a { color: var(--amber); }

.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.flex { display: flex; gap: var(--sp-3); }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

/* Utilities */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.measure.center { margin-inline: auto; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.soft { color: var(--text-soft); }
.on-dark .soft { color: rgba(255,255,255,0.72); }
.amber-text { color: var(--amber); }
.nowrap { white-space: nowrap; }
.hide-mobile { display: none; }

/* ---------- 4. HEADER / NAV ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--slate-900); }
.brand:hover { color: var(--slate-900); }
.brand svg { flex: none; }
.brand .wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand .wordmark small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--heritage-700);
  margin-top: 3px;
}

/* Primary nav */
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--r-sm);
  position: relative;
}
.nav a:hover { color: var(--slate-900); background: rgba(47,58,68,0.06); }
.nav a.active { color: var(--heritage); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.28rem;
  height: 2px; border-radius: 2px;
  background: var(--amber);
}
.header-cta { display: flex; align-items: center; gap: 0.75rem; }

/* Mobile hamburger — pure CSS checkbox hack */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--slate-900);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-burger span::before { transform: translateY(-6px); }
.nav-burger span::after  { transform: translateY(4px); }

/* ---------- 5. BUTTONS ------------------------------------------------------ */
.btn {
  --btn-bg: var(--slate-900);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bg: var(--amber);
  --btn-fg: #fff;
  box-shadow: var(--sh-amber);
}
.btn-primary:hover { --btn-bg: var(--amber-600); }

.btn-dark { --btn-bg: var(--slate-900); --btn-fg: #fff; box-shadow: var(--sh); }
.btn-dark:hover { --btn-bg: var(--slate-700); }

.btn-heritage { --btn-bg: var(--heritage); --btn-fg: #fff; box-shadow: var(--sh); }
.btn-heritage:hover { --btn-bg: var(--heritage-700); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--slate-900);
  border-color: var(--line-strong);
}
.btn-ghost:hover { --btn-bg: rgba(47,58,68,0.06); --btn-fg: var(--slate-900); }
.on-dark .btn-ghost, .section.slate .btn-ghost, .section.heritage .btn-ghost {
  --btn-fg: #fff; border-color: rgba(255,255,255,0.4);
}
.on-dark .btn-ghost:hover { --btn-bg: rgba(255,255,255,0.12); --btn-fg: #fff; }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }

.header-cta .btn { padding: 0.62rem 1.15rem; }

/* ---------- 6. EYEBROW / SECTION HEADERS ----------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heritage-700);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
}
.section.slate .eyebrow, .section.heritage .eyebrow { color: var(--amber); }

.section-head { max-width: 720px; margin-bottom: var(--sp-5); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { color: var(--text-soft); font-size: var(--fs-lg); margin-top: var(--sp-3); }
.section.slate .section-head p, .section.heritage .section-head p { color: rgba(255,255,255,0.78); }

/* ---------- 7. PILLS / CHIPS ----------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.42rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--stone-100);
  color: var(--heritage-700);
  border: 1px solid var(--line);
}
.pill.amber  { background: var(--amber-100); color: var(--amber-600); border-color: rgba(232,133,59,0.3); }
.pill.green  { background: rgba(31,68,54,0.1); color: var(--heritage); border-color: rgba(31,68,54,0.2); }
.pill.solid  { background: var(--heritage); color: #fff; border-color: transparent; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }

/* ---------- 8. CARDS -------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.card.hover:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--line-strong); }

.card .card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: linear-gradient(145deg, var(--heritage), var(--heritage-700));
  color: var(--amber);
  margin-bottom: var(--sp-3);
}
.card .card-icon svg { stroke: currentColor; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-soft); font-size: var(--fs-base); }

/* Service card with top accent + image */
.service-card { padding: 0; display: flex; flex-direction: column; }
.service-card .media { aspect-ratio: 16/10; overflow: hidden; }
.service-card .media img { width: 100%; height: 100%; transition: transform 0.5s var(--ease); }
.service-card.hover:hover .media img { transform: scale(1.06); }
.service-card .body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.service-card .body h3 { font-size: var(--fs-lg); }
.service-card .price-tag {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--heritage);
  font-size: 0.95rem;
  margin-top: var(--sp-3);
  display: inline-flex; align-items: baseline; gap: 0.3rem;
}
.service-card .price-tag span { color: var(--text-soft); font-weight: 500; font-size: 0.8rem; }

/* Stat card */
.stat { text-align: center; padding: var(--sp-4); }
.stat .num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-3xl);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--heritage);
  background: linear-gradient(180deg, var(--heritage), var(--heritage-300));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section.slate .stat .num, .section.heritage .stat .num {
  background: linear-gradient(180deg, #fff, var(--stone)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .label { font-size: 0.86rem; color: var(--text-soft); margin-top: 0.4rem; letter-spacing: 0.02em; }
.section.slate .stat .label, .section.heritage .stat .label { color: rgba(255,255,255,0.72); }

/* Feature list w/ ticks */
.ticklist { list-style: none; padding: 0; display: grid; gap: 0.85rem; }
.ticklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.ticklist li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--heritage);
}
.on-dark .ticklist li::before { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231f4436' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--amber); }

/* ---------- 9. HERO --------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--slate);
  isolation: isolate;
}
.hero .hero-media {
  position: absolute; inset: 0; z-index: -2;
}
.hero .hero-media img, .hero .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(26,30,34,0.55) 0%, rgba(26,30,34,0.35) 40%, rgba(31,68,54,0.7) 100%),
    linear-gradient(90deg, rgba(26,30,34,0.72) 0%, rgba(26,30,34,0.15) 65%);
}
.hero .container {
  position: relative;
  padding-block: clamp(4.5rem, 4rem + 8vw, 9rem);
  min-height: min(84vh, 720px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-inner { max-width: 680px; }
.hero h1 { color: #fff; }
.hero p.lead {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.9);
  margin-top: var(--sp-4);
  max-width: 40ch;
}
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero .trust-row {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem;
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero .trust-row .ti { display: flex; align-items: center; gap: 0.55rem; font-size: 0.86rem; color: rgba(255,255,255,0.85); }
.hero .trust-row .ti strong { color: #fff; font-family: var(--font-head); }

/* Compact page hero (interior pages) */
.page-hero {
  position: relative;
  background: var(--slate);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,30,34,0.6), rgba(31,68,54,0.78));
}
.page-hero .container { padding-block: clamp(3rem, 2.5rem + 4vw, 5.5rem); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: var(--fs-lg); margin-top: var(--sp-3); max-width: 52ch; }

/* Breadcrumb */
.crumbs { display: flex; gap: 0.5rem; font-size: 0.82rem; margin-bottom: var(--sp-3); flex-wrap: wrap; }
.crumbs a { color: rgba(255,255,255,0.7); }
.crumbs span { color: rgba(255,255,255,0.45); }

/* ---------- 10. FEATURE BANDS / MEDIA ROWS --------------------------------- */
.media-figure {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  position: relative;
  aspect-ratio: 4/3;
}
.media-figure img { width: 100%; height: 100%; }
.media-figure.tall { aspect-ratio: 3/4; }
.media-figure .badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(26,30,34,0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--r);
  font-size: 0.82rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.media-figure .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(232,133,59,0.3); }

/* framed image with amber corner */
.framed { position: relative; }
.framed::before {
  content: ""; position: absolute; z-index: 2;
  right: -12px; top: -12px; width: 64px; height: 64px;
  border-top: 3px solid var(--amber); border-right: 3px solid var(--amber);
  border-top-right-radius: var(--r);
}

/* ---------- 11. PRICING TABLE ---------------------------------------------- */
.pricing {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: var(--fs-base);
}
.pricing thead th {
  background: var(--slate);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.pricing td { padding: 0.95rem 1.25rem; border-top: 1px solid var(--line); vertical-align: middle; }
.pricing tbody tr:nth-child(even) { background: rgba(201,190,172,0.12); }
.pricing tbody tr:hover { background: rgba(232,133,59,0.07); }
.pricing .svc { font-weight: 600; color: var(--slate-900); }
.pricing .price { font-family: var(--font-head); font-weight: 600; color: var(--heritage); white-space: nowrap; }
.pricing .price .from { color: var(--text-soft); font-weight: 500; font-size: 0.78rem; }
.pricing .free { color: var(--amber-600); font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }

/* Pricing card (highlighted plans) */
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex; flex-direction: column;
  box-shadow: var(--sh-sm);
}
.plan.featured {
  border-color: var(--amber);
  box-shadow: var(--sh-lg);
  position: relative;
}
.plan.featured::before {
  content: "Most requested";
  position: absolute; top: -12px; left: var(--sp-5);
  background: var(--amber); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: var(--r-pill);
}
.plan .plan-price { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-2xl); color: var(--slate-900); letter-spacing: -0.03em; }
.plan .plan-price small { font-size: 0.9rem; color: var(--text-soft); font-weight: 500; }
.plan ul { margin: var(--sp-4) 0; }
.plan .btn { margin-top: auto; }

/* ---------- 12. TESTIMONIALS ----------------------------------------------- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: var(--sp-3);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute; top: 0.4rem; right: 1.4rem;
  font-family: Georgia, serif; font-size: 4.5rem; line-height: 1;
  color: var(--stone); opacity: 0.6;
}
.testimonial .stars { color: var(--amber); letter-spacing: 2px; font-size: 0.95rem; }
.testimonial p { font-size: var(--fs-lg); color: var(--slate-700); line-height: 1.5; font-weight: 450; }
.testimonial .who { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.testimonial .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: linear-gradient(145deg, var(--heritage), var(--slate));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
}
.testimonial .who .meta strong { display: block; font-family: var(--font-head); }
.testimonial .who .meta span { font-size: 0.82rem; color: var(--text-soft); }

/* ---------- 13. FORMS ------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.form-row { display: grid; gap: var(--sp-4); grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
label { font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; color: var(--slate-700); letter-spacing: 0.01em; }
label .req { color: var(--amber-600); }

.input, input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
select, textarea {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--slate-900);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 0.8rem 0.95rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
}
textarea { min-height: 140px; resize: vertical; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6b78' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--heritage);
  box-shadow: 0 0 0 3px rgba(31,68,54,0.14);
}
::placeholder { color: var(--slate-500); opacity: 0.7; }

.check { display: flex; gap: 0.65rem; align-items: flex-start; cursor: pointer; font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--text-soft); }
.check input[type="checkbox"], .check input[type="radio"] {
  appearance: none; flex: none;
  width: 22px; height: 22px; margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s;
}
.check input[type="radio"] { border-radius: 50%; }
.check input:checked {
  background: var(--heritage)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
  border-color: var(--heritage);
}
.form-note { font-size: 0.8rem; color: var(--text-soft); }

/* Card-wrapped form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 3vw, 2.75rem);
  box-shadow: var(--sh-lg);
}

/* Radio pick group (service selector) */
.pick-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); }
.pick {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.15s var(--ease);
  background: var(--paper);
}
.pick:hover { border-color: var(--heritage-300); }
.pick input { position: absolute; opacity: 0; }
.pick:has(input:checked) { border-color: var(--amber); background: var(--amber-100); color: var(--amber-600); font-weight: 600; }

/* ---------- 14. FAQ ACCORDION (details/summary) ---------------------------- */
.faq { display: grid; gap: 0.85rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s;
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--slate-900);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f4436' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center no-repeat;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(135deg);
  background-color: var(--amber-100);
}
.faq .faq-body { padding: 0 1.35rem 1.25rem; color: var(--text-soft); }
.faq .faq-body p + p { margin-top: 0.7rem; }

/* ---------- 15. PROCESS STEPS ---------------------------------------------- */
.steps { display: grid; gap: var(--sp-4); counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: none; }
.step .step-num {
  counter-increment: step;
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: var(--slate);
  color: var(--amber);
  font-family: var(--font-head); font-weight: 600; font-size: 1.35rem;
}
.step .step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: var(--fs-lg); margin-bottom: 0.3rem; }
.step p { color: var(--text-soft); }

/* ---------- 16. CTA BAND ---------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(circle at 85% 20%, rgba(232,133,59,0.22), transparent 55%),
    linear-gradient(120deg, var(--heritage) 0%, var(--slate) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 1.5rem + 4vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: var(--sp-3) auto 0; position: relative; }
.cta-band .hero-actions { position: relative; justify-content: center; margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Slim strip CTA */
.cta-strip {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4);
  background: var(--slate-900); color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
}
.cta-strip h3 { color: #fff; }
.cta-strip .phone { font-family: var(--font-head); font-size: var(--fs-xl); color: var(--amber); }

/* ---------- 17. LOGO / TRUST STRIP ----------------------------------------- */
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 2.5rem;
  padding-block: var(--sp-4);
}
.trust-strip .trust-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  color: var(--slate-700); letter-spacing: 0.02em;
}
.trust-strip .trust-item svg { color: var(--heritage); }

/* ---------- 18. BLOG / JOURNAL --------------------------------------------- */
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.25s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.post-card .media { aspect-ratio: 16/9; overflow: hidden; }
.post-card .media img { width: 100%; height: 100%; transition: transform 0.5s var(--ease); }
.post-card:hover .media img { transform: scale(1.05); }
.post-card .body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card .post-meta { font-size: 0.78rem; color: var(--text-soft); letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-head); font-weight: 600; }
.post-card h3 { font-size: var(--fs-lg); }
.post-card .read { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--heritage); display: inline-flex; gap: 0.4rem; align-items: center; }
.post-card:hover .read { color: var(--amber-600); }

/* Article body (blog posts) */
.article { max-width: 720px; margin-inline: auto; }
.article > * + * { margin-top: 1.35rem; }
.article h2 { margin-top: 2.5rem; font-size: var(--fs-xl); }
.article h3 { margin-top: 1.8rem; }
.article p, .article li { color: var(--slate-700); font-size: 1.08rem; line-height: 1.72; }
.article ul, .article ol { padding-left: 1.3rem; display: grid; gap: 0.6rem; }
.article img { border-radius: var(--r-lg); box-shadow: var(--sh); margin-block: 2rem; width: 100%; }
.article blockquote {
  border-left: 3px solid var(--amber);
  padding: 0.4rem 0 0.4rem 1.4rem;
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--slate-900);
}
.article .lead { font-size: var(--fs-lg); color: var(--slate-700); }
.callout {
  background: var(--stone-100);
  border: 1px solid var(--line);
  border-left: 4px solid var(--heritage);
  border-radius: var(--r);
  padding: var(--sp-4);
}
.callout strong { color: var(--heritage); }

/* ---------- 19. FOOTER ------------------------------------------------------ */
.site-footer {
  background: var(--slate-900);
  color: var(--stone-200);
  padding-block: var(--sp-7) var(--sp-4);
  position: relative;
}
.site-footer::before {
  content: ""; display: block; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--heritage), var(--amber));
  position: absolute; top: 0; left: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer .brand .wordmark { color: #fff; }
.site-footer .footer-blurb { color: rgba(255,255,255,0.62); font-size: 0.92rem; margin-top: var(--sp-3); max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--sp-3); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.footer-col a:hover { color: var(--amber); }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; color: rgba(255,255,255,0.68); font-size: 0.92rem; margin-bottom: 0.6rem; }
.footer-contact svg { color: var(--amber); flex: none; margin-top: 3px; }

.socials { display: flex; gap: 0.6rem; margin-top: var(--sp-4); }
.socials a {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.2s var(--ease), transform 0.2s;
}
.socials a:hover { background: var(--amber); transform: translateY(-2px); color: #fff; }

.newsletter { margin-top: var(--sp-3); }
.newsletter form { display: flex; gap: 0.5rem; }
.newsletter input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  padding: 0.7rem 0.9rem;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter input:focus { border-color: var(--amber); box-shadow: none; }
.newsletter button { flex: none; }

.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding-top: var(--sp-4);
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}
.footer-legal .legal-links { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.6); }
.footer-legal a:hover { color: var(--amber); }

/* ---------- 20. RESPONSIVE -------------------------------------------------- */
@media (min-width: 900px) {
  .hide-mobile { display: initial; }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  /* Mobile nav */
  .nav-burger { display: flex; }
  .header-cta .btn:not(.nav-burger) { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    padding: var(--sp-3) clamp(1.1rem, 4vw, 2.5rem) var(--sp-4);
    max-height: 0; overflow: hidden;
    opacity: 0; visibility: hidden;
    transition: max-height 0.32s var(--ease), opacity 0.2s var(--ease), visibility 0.2s;
  }
  .nav a { padding: 0.9rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav a.active::after { display: none; }
  .nav a.active { color: var(--heritage); background: rgba(31,68,54,0.05); }
  .nav .mobile-cta { display: block; margin-top: var(--sp-3); }
  .nav-toggle:checked ~ .nav {
    max-height: 90vh; opacity: 1; visibility: visible;
    overflow-y: auto;
  }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { transform: translateY(0) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span::after  { transform: translateY(-2px) rotate(-45deg); }
}

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .split { gap: var(--sp-5); }
  .hero .trust-row { gap: 0.8rem 1.5rem; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .plan.featured::before { left: 50%; transform: translateX(-50%); }
  .btn-block-mobile { display: flex; width: 100%; }
  .hero .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- 21. MOTION PREFERENCES ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Reveal-on-load helper (progressive; safe without JS) */
.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s var(--ease) forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
