/* ═══════════════════════════════════════════════════
   HOME CARE SERVICES GROUP
   Minimal UK home repair — inspired by Checkatrade,
   MyBuilder, TrustATrader & RatedPeople
═══════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────── */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem;
  --sp-4: 1rem;    --sp-5: 1.25rem; --sp-6: 1.5rem;
  --sp-8: 2rem;    --sp-10: 2.5rem; --sp-12: 3rem;
  --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;

  /* Layout */
  --content: 1140px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);

  /* Transitions */
  --ease: 180ms cubic-bezier(0.16,1,0.3,1);

  /* ── LIGHT PALETTE ── */
  --color-bg:          #f8f7f4;
  --color-surface:     #ffffff;
  --color-surface-2:   #f3f2ef;
  --color-border:      #e4e2dd;
  --color-divider:     #ece9e4;

  --color-text:        #1a1916;
  --color-text-muted:  #6b6a67;
  --color-text-faint:  #b0aea9;
  --color-text-inv:    #ffffff;

  /* Primary — Union Jack Navy */
  --color-primary:       #012169;
  --color-primary-hover: #001550;
  --color-primary-light: #e6eaf5;

  /* Accent — Union Jack Red */
  --color-accent:        #C8102E;
  --color-accent-hover:  #a50d26;
  --color-accent-light:  #fce8eb;

  /* Fonts */
  --font-display: 'Switzer', 'Helvetica Neue', sans-serif;
  --font-body:    'General Sans', 'Helvetica Neue', sans-serif;
}

/* ── DARK MODE ─────────────────────────────────── */
[data-theme='dark'] {
  --color-bg:          #141312;
  --color-surface:     #1c1b19;
  --color-surface-2:   #232220;
  --color-border:      #333230;
  --color-divider:     #2a2926;

  --color-text:        #e8e6e3;
  --color-text-muted:  #8a8885;
  --color-text-faint:  #58564f;
  --color-text-inv:    #141312;

  --color-primary:       #5b80c8;
  --color-primary-hover: #6e90d8;
  --color-primary-light: #1a2340;

  --color-accent:        #e63050;
  --color-accent-hover:  #f04060;
  --color-accent-light:  #2d1018;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #141312; --color-surface: #1c1b19; --color-surface-2: #232220;
    --color-border: #333230; --color-divider: #2a2926;
    --color-text: #e8e6e3; --color-text-muted: #8a8885; --color-text-faint: #58564f;
    --color-primary: #4a80b8; --color-primary-hover: #5a90c8; --color-primary-light: #1e2d3d;
    --color-accent: #f07020; --color-accent-hover: #ff8030; --color-accent-light: #2d1e10;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

img, svg { display: block; max-width: 100%; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.2; font-family: var(--font-display); }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

::selection { background: color-mix(in oklab, var(--color-primary), transparent 75%); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

a, button, input, select, textarea {
  transition: color var(--ease), background var(--ease), border-color var(--ease),
              box-shadow var(--ease), opacity var(--ease), transform var(--ease);
}

/* ── LAYOUT UTILITIES ──────────────────────────── */
.container {
  width: min(var(--content), 100% - 2rem);
  margin-inline: auto;
}

/* ── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.65em 1.5em;
  font-size: var(--text-sm); font-weight: 600; font-family: var(--font-body);
  border-radius: var(--radius-md); border: 2px solid transparent;
  white-space: nowrap; cursor: pointer;
}
.btn-primary {
  background: var(--color-primary); color: var(--color-text-inv);
  border-color: var(--color-primary);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--color-primary-hover); border-color: var(--color-primary-hover);
}
.btn-accent {
  background: var(--color-accent); color: #fff;
  border-color: var(--color-accent);
}
.btn-accent:hover, .btn-accent:focus-visible {
  background: var(--color-accent-hover); border-color: var(--color-accent-hover);
}
.btn-ghost {
  background: transparent; color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-ghost:hover { background: var(--color-primary-light); }
.btn-white {
  background: white; color: var(--color-primary); border-color: white;
  font-weight: 700;
}
.btn-white:hover { background: #f0f0f0; }
.btn-lg { padding: 0.8em 2em; font-size: var(--text-base); border-radius: var(--radius-lg); }

/* ── SECTION HEADERS ───────────────────────────── */
.section-header {
  text-align: center; max-width: 640px; margin: 0 auto var(--sp-12);
}
.section-header h2 {
  font-size: var(--text-2xl); font-weight: 700;
  margin-bottom: var(--sp-3); color: var(--color-text);
}
.section-header p { color: var(--color-text-muted); font-size: var(--text-base); }
.section-header--left { text-align: left; margin: 0 0 var(--sp-8); }

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.header { position: sticky; top: 0; z-index: 100; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }

/* Top bar */
.header-top-bar {
  background: var(--color-accent); color: rgba(255,255,255,0.95);
  font-size: var(--text-xs); padding: var(--sp-2) 0;
  display: none;
}
@media (min-width: 768px) { .header-top-bar { display: block; } }
.htb-inner { display: flex; align-items: center; gap: var(--sp-4); }
.htb-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.3); }
.htb-phone { color: white; font-weight: 600; margin-left: auto; }
.htb-phone:hover { opacity: 0.85; }

/* Main nav */
.header-inner {
  display: flex; align-items: center; gap: var(--sp-6);
  padding-block: var(--sp-3);
}

/* Logo */
.logo { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: var(--text-base); font-weight: 700; color: var(--color-text); font-family: var(--font-display); }
.logo-sub  { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 500; }
.logo--white .logo-main, .logo--white .logo-sub { color: rgba(255,255,255,0.9); }

.nav { display: none; align-items: center; gap: var(--sp-6); margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav-link { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); }
.nav-link:hover { color: var(--color-primary); }
.nav-cta { margin-left: var(--sp-2); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }
@media (min-width: 900px) { .header-actions { margin-left: 0; } }

.phone-pill {
  display: none; align-items: center; gap: var(--sp-2);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-primary);
  padding: var(--sp-2) var(--sp-4); border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-full);
}
@media (min-width: 640px) { .phone-pill { display: flex; } }
.phone-pill:hover { background: var(--color-primary-light); }

.theme-toggle {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full); color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
}
.theme-toggle:hover { color: var(--color-text); background: var(--color-surface-2); }
.icon-moon { display: none; }
[data-theme='dark'] .icon-sun { display: none; }
[data-theme='dark'] .icon-moon { display: block; }

.burger {
  display: flex; flex-direction: column; gap: 4px; width: 32px; padding: 4px;
  border-radius: var(--radius-sm);
}
@media (min-width: 900px) { .burger { display: none; } }
.burger span { display: block; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--color-border); background: var(--color-surface);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: var(--sp-3) 0; font-size: var(--text-base); color: var(--color-text); border-bottom: 1px solid var(--color-divider); }
.mobile-nav .btn { margin-top: var(--sp-2); justify-content: center; }
.mobile-phone { font-size: var(--text-base); font-weight: 700; color: var(--color-primary); padding-top: var(--sp-3); }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  background: var(--color-primary);
  padding-top: var(--sp-16);
  border-top: 4px solid var(--color-accent);
}
.hero-bg-shape {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(91,128,200,0.25) 0%, transparent 70%),
              linear-gradient(135deg, rgba(1,33,105,0) 0%, rgba(0,10,40,0.55) 100%);
}
/* Subtle diagonal Union Jack cross lines in hero background */
.hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(135deg, rgba(200,16,46,0.07) 1px, transparent 1px),
    linear-gradient(45deg, rgba(200,16,46,0.07) 1px, transparent 1px);
  background-size: 120px 120px;
}

.hero-inner {
  display: grid; grid-template-columns: 1fr;
  gap: var(--sp-12); padding-bottom: var(--sp-16);
  position: relative; z-index: 1;
}
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Hero content */
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); font-size: var(--text-xs); font-weight: 600;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-full);
  margin-bottom: var(--sp-5); letter-spacing: 0.03em; text-transform: uppercase;
}
.hero-badge svg { opacity: 0.8; }

h1 {
  font-size: var(--text-3xl); font-weight: 800; color: white;
  margin-bottom: var(--sp-5); letter-spacing: -0.02em;
}
.hero-highlight {
  position: relative; display: inline-block;
  background: linear-gradient(135deg, var(--color-accent), #f5a020);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: var(--text-lg); color: rgba(255,255,255,0.8);
  margin-bottom: var(--sp-8); max-width: 520px;
}
.hero-sub strong { color: white; }

/* Hero search (Checkatrade-inspired) */
.hero-search { margin-bottom: var(--sp-6); }
.hs-wrap {
  display: flex; flex-direction: column; gap: var(--sp-2);
  background: white; border-radius: var(--radius-lg);
  padding: var(--sp-3); box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
@media (min-width: 640px) { .hs-wrap { flex-direction: row; padding: var(--sp-2); } }

.hs-field {
  display: flex; align-items: center; gap: var(--sp-3);
  flex: 1; min-width: 0; padding: var(--sp-3) var(--sp-4);
  background: var(--color-bg); border-radius: var(--radius-md);
}
[data-theme='dark'] .hs-field { background: var(--color-surface-2); }

.hs-field input {
  border: none; background: transparent; width: 100%;
  font-size: var(--text-sm); color: var(--color-text);
  outline: none;
}
.hs-field input::placeholder { color: var(--color-text-faint); }
.hs-btn { border-radius: var(--radius-md) !important; white-space: nowrap; }

.hs-hint { font-size: var(--text-xs); color: rgba(255,255,255,0.6); margin-top: var(--sp-3); }

/* Hero trust pills */
.hero-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85); font-size: var(--text-xs); font-weight: 500;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-full);
}

/* Hero floating cards */
.hero-cards {
  position: relative; display: none; min-height: 360px;
}
@media (min-width: 900px) { .hero-cards { display: block; } }

.hcard {
  position: absolute; background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--sp-4) var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-3);
  animation: float 6s ease-in-out infinite;
}
[data-theme='dark'] .hcard { background: var(--color-surface); }
.hcard--main { bottom: 40px; left: 0; right: 60px; animation-delay: 0s; }
.hcard--sm { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md); }
.hcard--tl { top: 20px; left: 20px; animation-delay: 2s; }
.hcard--br { top: 120px; right: 0; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hcard-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary-light);
  color: var(--color-primary); font-weight: 700; font-size: var(--text-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hcard-name  { font-weight: 600; font-size: var(--text-sm); color: var(--color-text); }
.hcard-text  { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; max-width: 200px; }
.hcard-stars { color: #f5a623; font-size: var(--text-sm); margin-top: 4px; }

.hcard-emoji { font-size: 1.4rem; flex-shrink: 0; }
.hcard-sm-title { font-weight: 600; font-size: var(--text-sm); color: var(--color-text); }
.hcard-sm-sub   { font-size: var(--text-xs); color: var(--color-text-muted); }
.badge-live {
  margin-left: auto; background: #16a34a; color: white;
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full);
  letter-spacing: 0.05em; text-transform: uppercase;
}

.hero-stat-ring {
  position: absolute; top: 0; right: 20px;
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--color-accent); display: flex; flex-direction: column;
  align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}
.hsr-num   { font-size: var(--text-xl); font-weight: 800; color: white; line-height: 1; }
.hsr-label { font-size: 0.6rem; color: rgba(255,255,255,0.85); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* Stats bar (MyBuilder style) */
.hero-stats {
  background: rgba(0,0,0,0.25); border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--sp-5) 0; position: relative; z-index: 1;
}
.hero-stats-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--sp-6);
}
.hstat { text-align: center; }
.hstat strong { display: block; font-size: var(--text-xl); font-weight: 800; color: white; line-height: 1; }
.hstat span   { font-size: var(--text-xs); color: rgba(255,255,255,0.65); margin-top: var(--sp-1); }
.hstat-div    { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }
@media (max-width: 480px) { .hstat-div { display: none; } }

/* ══════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════ */
.services { padding: var(--sp-20) 0; }

/* Category pill filters (Checkatrade-inspired) */
.cat-pills {
  display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center;
  margin-bottom: var(--sp-10);
}
.cat-pill {
  padding: var(--sp-2) var(--sp-5); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 500;
  border: 1.5px solid var(--color-border); color: var(--color-text-muted);
  background: var(--color-surface); cursor: pointer;
}
.cat-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cat-pill.active { background: var(--color-primary); border-color: var(--color-primary); color: white; }

/* Services grid */
.services-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.svc-card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--color-surface); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  text-decoration: none; cursor: pointer;
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
}
.svc-card:hover {
  box-shadow: var(--shadow-md); border-color: var(--color-primary);
  transform: translateY(-2px);
}
.svc-card.hidden { display: none; }

.svc-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.svc-icon--red    { background: #fff1f0; color: #dc2626; }
.svc-icon--orange { background: #fff7ed; color: #ea580c; }
.svc-icon--yellow { background: #fefce8; color: #d97706; }
.svc-icon--blue   { background: #eff6ff; color: #2563eb; }
.svc-icon--teal   { background: #f0fdfa; color: #0d9488; }
.svc-icon--green  { background: #f0fdf4; color: #16a34a; }
.svc-icon--brown  { background: #fdf8f0; color: #92400e; }
.svc-icon--purple { background: #faf5ff; color: #7c3aed; }

[data-theme='dark'] .svc-icon--red    { background: #2d1212; color: #f87171; }
[data-theme='dark'] .svc-icon--orange { background: #2d1a0a; color: #fb923c; }
[data-theme='dark'] .svc-icon--yellow { background: #27200a; color: #fbbf24; }
[data-theme='dark'] .svc-icon--blue   { background: #0d1d35; color: #60a5fa; }
[data-theme='dark'] .svc-icon--teal   { background: #0d2520; color: #2dd4bf; }
[data-theme='dark'] .svc-icon--green  { background: #0d2010; color: #4ade80; }
[data-theme='dark'] .svc-icon--brown  { background: #21180a; color: #d97706; }
[data-theme='dark'] .svc-icon--purple { background: #1c1030; color: #c084fc; }

.svc-body h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--sp-1); color: var(--color-text); }
.svc-body p  { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; }

.svc-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--color-divider); }
.svc-rating { font-size: var(--text-sm); font-weight: 600; color: #d97706; }
.svc-arrow  { color: var(--color-primary); font-size: var(--text-lg); transition: transform var(--ease); }
.svc-card:hover .svc-arrow { transform: translateX(4px); }

/* ══════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════ */
.hiw {
  padding: var(--sp-20) 0;
  background: var(--color-surface-2);
}
.hiw-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--sp-8); align-items: center;
}
@media (min-width: 768px) {
  .hiw-grid { grid-template-columns: 1fr auto 1fr auto 1fr; }
}

.hiw-step { text-align: center; }
.hiw-num {
  font-size: var(--text-3xl); font-weight: 900; color: var(--color-border);
  line-height: 1; margin-bottom: var(--sp-3); font-family: var(--font-display);
}
.hiw-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-4); box-shadow: var(--shadow-sm);
}
.hiw-step h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--sp-2); }
.hiw-step p  { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 260px; margin: 0 auto; }

.hiw-connector { display: none; color: var(--color-primary); }
@media (min-width: 768px) { .hiw-connector { display: flex; align-items: center; } }

/* ══════════════════════════════════════════════════
   FORM SECTION
══════════════════════════════════════════════════ */
.form-section { padding: var(--sp-20) 0; background: var(--color-bg); }

.form-wrap {
  display: grid; grid-template-columns: 1fr;
  gap: var(--sp-12); background: var(--color-surface);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border); overflow: hidden;
}
@media (min-width: 900px) {
  .form-wrap { grid-template-columns: 360px 1fr; }
}

/* Sidebar */
.form-sidebar {
  background: var(--color-primary); padding: var(--sp-12) var(--sp-8);
  display: flex; flex-direction: column; gap: var(--sp-8);
}
@media (max-width: 899px) { .form-sidebar { padding: var(--sp-8); } }
.form-sidebar .section-header--left h2 { color: white; }
.form-sidebar .section-header--left p  { color: rgba(255,255,255,0.75); }

.form-perks { display: flex; flex-direction: column; gap: var(--sp-3); }
.form-perks li {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--text-sm); color: rgba(255,255,255,0.85); font-weight: 500;
}

.sidebar-trust { margin-top: auto; }
.st-badge {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md); padding: var(--sp-4);
}
.st-name { font-weight: 700; font-size: var(--text-sm); color: white; }
.st-sub  { font-size: var(--text-xs); color: rgba(255,255,255,0.7); margin-top: 2px; }

/* Form */
.quote-form { padding: var(--sp-10) var(--sp-8); display: flex; flex-direction: column; gap: 0; }
@media (max-width: 899px) { .quote-form { padding: var(--sp-6) var(--sp-6) var(--sp-8); } }

/* Numbered step rows */
.fstep {
  display: flex; gap: var(--sp-5); padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--color-divider);
  align-items: flex-start;
}
.fstep:last-of-type { border-bottom: none; }
.fstep-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-primary); color: white;
  font-size: var(--text-sm); font-weight: 700; font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.fstep-body { flex: 1; display: flex; flex-direction: column; gap: var(--sp-3); }
.fstep-label { font-size: var(--text-base); font-weight: 700; color: var(--color-text); }
.fstep-hint  { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: calc(-1 * var(--sp-1)); }

.form-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-group--full { grid-column: 1 / -1; }

label {
  font-size: var(--text-sm); font-weight: 600; color: var(--color-text);
}
.req { color: var(--color-accent); }
.optional { font-weight: 400; color: var(--color-text-muted); font-size: var(--text-xs); }

/* Word count */
.word-count-wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); }
.word-count {
  font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; margin-left: auto;
  transition: color var(--ease);
}
.word-count.ok  { color: #16a34a; font-weight: 600; }
.word-count.err { color: #dc2626; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md); background: var(--color-bg);
  color: var(--color-text); font-size: var(--text-base);
  outline: none; width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--color-text-faint); }
input:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary), transparent 80%);
}
input.error { border-color: #dc2626; }
textarea { resize: vertical; min-height: 80px; }

.sel-wrap { position: relative; }
select {
  width: 100%; padding: var(--sp-3) var(--sp-4); padding-right: 2.5rem;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-bg); color: var(--color-text);
  font-size: var(--text-base); appearance: none; outline: none; cursor: pointer;
}
select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary), transparent 80%); }
select.error { border-color: #dc2626; }
.sel-arr { position: absolute; right: var(--sp-3); top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--color-text-muted); }

.ferr { font-size: var(--text-xs); color: #dc2626; min-height: 1rem; }

/* Urgency cards */
.urgency-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); margin-bottom: var(--sp-2); display: block; }
.urgency-grid {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 480px) { .urgency-grid { grid-template-columns: repeat(4, 1fr); } }

.urg-card { cursor: pointer; }
.urg-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.urg-inner {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-3); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md); background: var(--color-bg);
  text-align: center; cursor: pointer;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.urg-card:hover .urg-inner {
  border-color: var(--color-primary); background: var(--color-primary-light);
}
.urg-card input:checked ~ .urg-inner {
  border-color: var(--color-accent); background: var(--color-accent-light);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent), transparent 80%);
}
.urg-emoji { font-size: 1.6rem; }
.urg-title { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); }
.urg-desc  { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Form footer */
.form-actions { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-2); }
@media (min-width: 560px) { .form-actions { flex-direction: row; align-items: center; } }
.form-gdpr { font-size: var(--text-xs); color: var(--color-text-muted); flex: 1; }
.form-gdpr a { color: var(--color-primary); text-decoration: underline; }
.btn-submit { margin-left: auto; white-space: nowrap; }

/* Success */
.form-success {
  grid-column: 1 / -1; padding: var(--sp-16); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
}
.fs-icon { color: var(--color-primary); }
.form-success h3 { font-size: var(--text-xl); font-weight: 700; }
.form-success p  { color: var(--color-text-muted); max-width: 420px; }
.form-success a  { color: var(--color-primary); font-weight: 600; }

/* ══════════════════════════════════════════════════
   WHY US
══════════════════════════════════════════════════ */
.why-us {
  padding: var(--sp-20) 0;
  background: var(--color-surface-2);
}
.why-grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.why-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--sp-8);
  transition: box-shadow var(--ease), transform var(--ease);
}
.why-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.why-icon {
  width: 60px; height: 60px; border-radius: var(--radius-md);
  background: var(--color-primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5);
}
.why-card h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--sp-2); }
.why-card p  { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; }

/* ══════════════════════════════════════════════════
   REVIEWS
══════════════════════════════════════════════════ */
.reviews { padding: var(--sp-20) 0; }

.reviews-grid {
  display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-bottom: var(--sp-10);
}
.review-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
  transition: box-shadow var(--ease);
}
.review-card:hover { box-shadow: var(--shadow-md); }
.rc-stars { color: #f5a623; font-size: var(--text-lg); letter-spacing: 2px; }
.review-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; font-style: italic; flex: 1; }

.rc-footer { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--color-divider); }
.rc-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary-light); color: var(--color-primary);
  font-weight: 700; font-size: var(--text-xs); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rc-footer strong { display: block; font-size: var(--text-sm); font-weight: 700; }
.rc-footer span   { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Rating bar */
.rating-bar {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-5);
  padding: var(--sp-8); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  text-align: center;
}
@media (min-width: 640px) { .rating-bar { flex-direction: row; justify-content: space-between; } }
.rb-score { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }
@media (min-width: 640px) { .rb-score { align-items: flex-start; } }
.rb-num   { font-size: var(--text-2xl); font-weight: 900; color: var(--color-text); line-height: 1; }
.rb-stars { color: #f5a623; font-size: var(--text-xl); letter-spacing: 2px; }
.rb-count { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ══════════════════════════════════════════════════
   EMERGENCY BAND
══════════════════════════════════════════════════ */
.emergency-band {
  background: var(--color-accent);
  border-top: 3px solid white;
  border-bottom: 3px solid var(--color-primary);
  padding: var(--sp-12) 0;
}
.emergency-inner {
  display: flex; flex-direction: column; gap: var(--sp-6); align-items: center; text-align: center;
}
@media (min-width: 640px) {
  .emergency-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.emergency-band h2 { font-size: var(--text-xl); font-weight: 800; color: white; }
.emergency-band p  { color: rgba(255,255,255,0.85); margin-top: var(--sp-1); }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer { background: var(--color-primary); color: rgba(255,255,255,0.7); padding-top: var(--sp-16); }
.footer-inner {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-10);
  padding-bottom: var(--sp-12); border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.5fr 2fr; } }

.footer-brand .logo { margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--text-sm); line-height: 1.7; max-width: 300px; margin-bottom: var(--sp-4); }
.footer-phone { font-size: var(--text-lg); font-weight: 700; color: white; display: block; margin-bottom: var(--sp-1); }
.footer-phone:hover { opacity: 0.85; }
.footer-email { font-size: var(--text-sm); color: rgba(255,255,255,0.75); display: block; margin-bottom: var(--sp-1); }
.footer-email:hover { color: white; }
.footer-hours { font-size: var(--text-xs); }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
@media (max-width: 480px) { .footer-links { grid-template-columns: 1fr 1fr; } }
.fl-col { display: flex; flex-direction: column; gap: var(--sp-3); }
.fl-col h4 { font-size: var(--text-sm); font-weight: 700; color: white; margin-bottom: var(--sp-1); }
.fl-col a { font-size: var(--text-sm); color: rgba(255,255,255,0.65); }
.fl-col a:hover { color: white; }

.footer-bottom { padding: var(--sp-5) 0; }
.footer-bottom-inner { display: flex; flex-direction: column; gap: var(--sp-3); align-items: center; text-align: center; }
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom p { font-size: var(--text-xs); }
.cert-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cert {
  font-size: var(--text-xs); font-weight: 600; color: rgba(255,255,255,0.7);
  padding: var(--sp-1) var(--sp-3); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
}

/* ── REDUCED MOTION ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
