/* ══════════════════════════════════════════════════════════════════
   FD Roofing and Building — shared stylesheet
   Forest of Dean, Gloucestershire
   ══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette — slate/charcoal (trust, roofing) + warm amber accent */
  --primary:      #22303f;   /* deep slate */
  --primary-mid:  #2f4256;
  --primary-dark: #171f29;   /* near-black slate */
  --accent:       #e07b2c;   /* warm amber/terracotta */
  --accent-mid:   #f2934a;
  --accent-dark:  #c1651c;

  /* Neutrals */
  --bg:        #f7f5f1;   /* warm off-white */
  --surface:   #ffffff;
  --surface-2: #f0ede7;
  --border:    #e2ddd4;
  --text:      #1c242e;
  --text-soft: #55606d;
  --text-muted:#8a929c;
  --on-dark:   #eef1f4;
  --on-dark-soft: #a9b4c0;

  /* Typography */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 8vw, 120px);
  --container:   1200px;
  --radius:      12px;
  --radius-lg:   22px;
  --shadow-sm:   0 2px 8px rgba(23, 31, 41, 0.06);
  --shadow:      0 12px 32px rgba(23, 31, 41, 0.10);
  --shadow-lg:   0 24px 60px rgba(23, 31, 41, 0.16);
  --header-h:    76px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

section { padding-block: var(--section-pad); }

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; }
p  { font-size: clamp(0.98rem, 1.4vw, 1.08rem); color: var(--text-soft); }
a  { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.82rem; font-weight: 600;
  color: var(--accent-dark);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); display: inline-block; }
.eyebrow.centered { justify-content: center; }
.on-dark .eyebrow { color: var(--accent-mid); }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 0.6rem 0 0.8rem; }
.section-head p { font-size: 1.08rem; }

.text-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; transition: color 0.2s; }
.text-link:hover { color: var(--accent); }

em { font-style: normal; color: var(--accent-dark); }
.on-dark em, .hero em { color: var(--accent-mid); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.98rem; font-weight: 600;
  padding: 0.95rem 1.9rem; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(224, 123, 44, 0.28); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(224, 123, 44, 0.34); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: #fff; color: var(--primary); border-color: #fff; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent-mid); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; }

/* ── Skip link ──────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── Header / Nav ───────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: baseline; gap: 0.55rem; font-family: var(--font-display); }
.brand .mark {
  font-size: 1.7rem; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: var(--accent); padding: 0.05em 0.4em; border-radius: 6px; line-height: 1.1;
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-text strong { font-weight: 600; font-size: 1.12rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.brand .brand-text small { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-soft); font-family: var(--font-body); }

.site-header.scrolled { background: rgba(255,255,255,0.96); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-header.scrolled .brand .brand-text strong { color: var(--primary); }
.site-header.scrolled .brand .brand-text small { color: var(--text-muted); }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 0.35rem; }
.nav-menu > li > a, .nav-menu > li > .sub-label {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 0.92rem; font-weight: 500; color: var(--on-dark);
  padding: 0.55rem 0.85rem; border-radius: 6px; background: none; border: none; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.site-header.scrolled .nav-menu > li > a,
.site-header.scrolled .nav-menu > li > .sub-label { color: var(--text); }
.nav-menu > li > a:hover, .nav-menu > li > .sub-label:hover,
.nav-menu > li > a[aria-current="page"] { color: var(--accent); }
.site-header.scrolled .nav-menu > li > a:hover,
.site-header.scrolled .nav-menu > li > a[aria-current="page"] { color: var(--accent-dark); }

.nav-menu .nav-cta a {
  background: var(--accent); color: #fff !important; padding: 0.6rem 1.3rem;
  box-shadow: 0 6px 16px rgba(224,123,44,0.3);
}
.nav-menu .nav-cta a:hover { background: var(--accent-dark); }

/* Dropdown */
.has-sub { position: relative; }
.sub-menu {
  list-style: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
  padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
  display: block; padding: 0.6rem 0.8rem; border-radius: 6px; color: var(--text);
  font-size: 0.94rem; font-weight: 500; transition: background 0.15s, color 0.15s;
}
.sub-menu a:hover { background: var(--surface-2); color: var(--accent-dark); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: none; border: none; cursor: pointer; z-index: 120;
}
.nav-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s, background 0.3s; }
.site-header.scrolled .nav-toggle span { background: var(--primary); }
.site-header.menu-open .nav-toggle span { background: #fff; }
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--on-dark); padding-top: var(--header-h);
  background:
    linear-gradient(115deg, rgba(23,31,41,0.94) 0%, rgba(34,48,63,0.86) 55%, rgba(34,48,63,0.55) 100%),
    var(--primary-dark);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 22px);
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(3rem, 8vh, 6rem); width: 100%; }
.hero-inner { max-width: 780px; }
.hero .eyebrow { color: var(--accent-mid); }
.hero h1 { color: #fff; margin: 1rem 0 1.2rem; }
.hero .lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--on-dark-soft); max-width: 620px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.14); }
.hero-trust .trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--on-dark); }
.hero-trust .trust-item svg { width: 22px; height: 22px; color: var(--accent-mid); flex-shrink: 0; }
.hero-trust .trust-item strong { font-family: var(--font-display); letter-spacing: 0.03em; }

/* Page hero (interior pages) */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 7vw, 5rem); color: var(--on-dark);
  background: linear-gradient(120deg, var(--primary-dark), var(--primary-mid));
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 24px);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 0.8rem 0 0.9rem; }
.page-hero .lede { color: var(--on-dark-soft); max-width: 640px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.breadcrumb { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--on-dark-soft); margin-bottom: 0.4rem; text-transform: uppercase; font-family: var(--font-display); }
.breadcrumb a:hover { color: var(--accent-mid); }

/* ── Service cards grid ─────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }

.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.service-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-card .icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent-dark); margin-bottom: 1.2rem;
}
.service-card .icon svg { width: 28px; height: 28px; }
.service-card.featured { background: var(--primary); color: var(--on-dark); border-color: transparent; }
.service-card.featured h3, .service-card.featured .tag { color: #fff; }
.service-card.featured p { color: var(--on-dark-soft); }
.service-card.featured .icon { background: rgba(255,255,255,0.1); color: var(--accent-mid); }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { font-size: 0.98rem; margin-bottom: 1.2rem; }
.service-card .tag { display: inline-block; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 0.8rem; }
.card-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.86rem; font-weight: 600; color: var(--accent-dark);
}
.service-card.featured .card-link { color: var(--accent-mid); }
.card-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* ── Split / about ──────────────────────────────────────────────── */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
.split .media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px;
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-dark));
  box-shadow: var(--shadow);
}
.split .media::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 3px, transparent 3px 26px);
}
.split .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .media .media-badge {
  position: absolute; z-index: 2; left: 1.4rem; bottom: 1.4rem;
  background: var(--accent); color: #fff; padding: 0.8rem 1.2rem; border-radius: 10px;
  font-family: var(--font-display); box-shadow: var(--shadow);
}
.split .media .media-badge b { font-size: 1.9rem; display: block; line-height: 1; }
.split .media .media-badge span { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }
.split.reverse .media { order: -1; }
.split ul.ticks { list-style: none; margin: 1.4rem 0 1.8rem; display: grid; gap: 0.75rem; }
.split ul.ticks li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-soft); }
.split ul.ticks li svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.split h2 { margin: 0.6rem 0 1rem; }

/* ── Stats band ─────────────────────────────────────────────────── */
.stats { background: var(--primary-dark); color: var(--on-dark); }
.stats .grid-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; line-height: 1; display: block; }
.stat b em { color: var(--accent-mid); }
.stat span { font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); }

/* ── Process / steps ────────────────────────────────────────────── */
.steps { display: grid; gap: 1.4rem; grid-template-columns: 1fr; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; position: relative;
}
.step .num {
  font-family: var(--font-display); font-size: 2.2rem; color: var(--accent); line-height: 1;
  display: block; margin-bottom: 0.6rem; font-weight: 700;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; }

/* ── Why / feature list ─────────────────────────────────────────── */
.feature-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.feature {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.feature .f-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; background: var(--surface-2); color: var(--accent-dark); display: grid; place-items: center; }
.feature .f-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.feature p { font-size: 0.94rem; }

/* ── Testimonials ───────────────────────────────────────────────── */
.testimonials { background: var(--surface-2); }
.testi-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.testi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.testi .stars { display: flex; gap: 3px; margin-bottom: 1rem; color: var(--accent); }
.testi .stars svg { width: 20px; height: 20px; }
.testi blockquote { font-size: 1.02rem; color: var(--text); line-height: 1.7; margin-bottom: 1.2rem; }
.testi .who { margin-top: auto; display: flex; align-items: center; gap: 0.8rem; }
.testi .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; }
.testi .who strong { display: block; font-size: 0.98rem; }
.testi .who span { font-size: 0.84rem; color: var(--text-muted); }

/* ── CTA band ───────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent));
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0.8rem auto 1.8rem; font-size: 1.1rem; }
.cta-band .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: var(--shadow); }
.cta-band .btn-primary:hover { background: var(--primary-dark); color: #fff; }
.cta-band .btn-outline-light:hover { background: rgba(255,255,255,0.14); color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── Contact ────────────────────────────────────────────────────── */
.contact-layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
.contact-info .channels { list-style: none; display: grid; gap: 1.1rem; margin: 1.6rem 0 2rem; }
.contact-info .channels li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-info .channels .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.contact-info .channels .ic svg { width: 20px; height: 20px; }
.contact-info .channels strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.82rem; color: var(--text-muted); }
.contact-info .channels a, .contact-info .channels span.plain { font-size: 1.08rem; color: var(--text); font-weight: 500; }
.contact-info .channels a:hover { color: var(--accent-dark); }
.hours { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.hours h4 { margin-bottom: 0.8rem; }
.hours ul { list-style: none; display: grid; gap: 0.4rem; }
.hours li { display: flex; justify-content: space-between; font-size: 0.95rem; color: var(--text-soft); }
.hours li b { color: var(--text); font-weight: 600; }

.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); position: relative; }
.contact-form-wrap h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.4rem; }
.contact-form-wrap > p.intro { margin-bottom: 1.6rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-bottom: 1.1rem; }
.form-row.cols-2 { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; color: var(--text-soft); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: 0.8rem 0.95rem; border: 1.5px solid var(--border); border-radius: 8px; background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,123,44,0.15); background: #fff;
}
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form-wrap .btn { width: 100%; margin-top: 0.4rem; }
.form-note { font-size: 0.86rem; color: var(--text-muted); text-align: center; margin-top: 0.9rem; }
.form-thanks { display: none; text-align: center; padding: 1rem 0; }
.contact-form-wrap.sent form { display: none; }
.contact-form-wrap.sent .form-thanks { display: block; }
.form-thanks .check { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: #1a7a3a; color: #fff; display: grid; place-items: center; }
.form-thanks .check svg { width: 32px; height: 32px; }
.form-thanks h3 { margin-bottom: 0.5rem; }

/* ── Areas served ───────────────────────────────────────────────── */
.areas-list { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.areas-list span {
  background: var(--surface); border: 1px solid var(--border); border-radius: 40px;
  padding: 0.5rem 1.1rem; font-size: 0.9rem; color: var(--text-soft); font-weight: 500;
}
.areas-list span::before { content: "📍 "; }

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 1rem; max-width: 820px; margin-inline: auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.2rem 1.4rem; font-family: var(--font-display); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; color: var(--accent); transition: transform 0.2s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; }
.faq-item .faq-body p { font-size: 0.98rem; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--primary-dark); color: var(--on-dark-soft); padding-block: clamp(3rem, 6vw, 4.5rem) 1.8rem; }
.footer-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; margin-bottom: 2.4rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .brand .brand-text strong { color: #fff; }
.footer-brand p { font-size: 0.94rem; color: var(--on-dark-soft); max-width: 320px; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 0.9rem; }
.footer-links { list-style: none; display: grid; gap: 0.6rem; }
.footer-links a { font-size: 0.94rem; color: var(--on-dark-soft); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-mid); }
.site-footer address { font-style: normal; font-size: 0.94rem; line-height: 1.9; }
.site-footer address a:hover { color: var(--accent-mid); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--on-dark); }
.footer-bottom a:hover { color: var(--accent-mid); }

/* ── Reveal animation ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Mobile nav ─────────────────────────────────────────────────── */
@media (max-width: 940px) {
  /* backdrop-filter on an ancestor becomes the containing block for
     position:fixed descendants, which would clip the full-height slide-in
     menu to the ~76px header bar the moment the page is scrolled. Disable
     it at mobile widths — the background is already 96% opaque, so the
     blur added little — while leaving .scrolled's existing background and
     icon-colour rules untouched. */
  .site-header.scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.2rem;
    background: var(--primary-dark); padding: calc(var(--header-h) + 1rem) 1.4rem 2rem;
    transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto;
    box-shadow: -12px 0 40px rgba(0,0,0,0.3);
  }
  .site-header.menu-open .nav-menu { transform: translateX(0); }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a, .nav-menu > li > .sub-label {
    color: var(--on-dark) !important; width: 100%; font-size: 1.05rem; padding: 0.85rem 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 0;
  }
  .nav-menu .nav-cta a { background: var(--accent); color: #fff !important; text-align: center; margin-top: 0.8rem; border-radius: 8px; justify-content: center; }
  .has-sub .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: transparent; border: none; padding: 0 0 0 0.8rem; min-width: 0;
  }
  .sub-menu a { color: var(--on-dark-soft); }
  .sub-menu a:hover { background: rgba(255,255,255,0.06); color: var(--accent-mid); }
  .has-sub > .sub-label::after { content: ""; }
}

/* Prevent hover dropdown flash on mobile handled above; menu backdrop */
.site-header.menu-open::before {
  content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: -1;
}

/* ── Tablet / desktop layout ────────────────────────────────────── */
@media (min-width: 640px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .stats .grid-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split .media { min-height: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 0.9fr 1.1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps.four { grid-template-columns: repeat(4, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid.three { grid-template-columns: repeat(3, 1fr); }
}
