/* ==========================================================================
   C.O.P.S. Plumbing  |  Design System
   Complete. On Time. Plumbing Service.
   Brand: royal blue, alarm red, ink black, warm white. Gear and wrench motif.
   Note: no em dashes used anywhere in copy or code, per brand spec.
   ========================================================================== */

:root {
  /* Brand palette */
  --blue: #1A4FB4;
  --blue-dark: #103a8a;
  --blue-deep: #0b265c;
  --red: #D62828;
  --red-dark: #ad1f1f;
  --ink: #0E1726;
  --ink-soft: #1f2a3c;
  --paper: #ffffff;
  --cream: #F7F5EF;
  --cream-2: #efece2;

  /* Neutral scale */
  --gray-50: #f6f7f9;
  --gray-100: #eceef2;
  --gray-200: #dfe3ea;
  --gray-300: #c5ccd8;
  --gray-400: #97a1b2;
  --gray-500: #6b7587;
  --gray-600: #4a5365;
  --gray-700: #323c4d;

  /* Typography */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --maxw: 1240px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, .06), 0 2px 6px rgba(14, 23, 38, .06);
  --shadow-md: 0 10px 30px rgba(14, 23, 38, .10);
  --shadow-lg: 0 24px 60px rgba(14, 23, 38, .18);
  --shadow-blue: 0 16px 40px rgba(26, 79, 180, .28);

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

  --focus: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 6px var(--blue);
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Typography
   Major headings are fluid and engineered to fill their container width.
   .fit-text gets precise width fitting from JS; the clamp() is the fallback.
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.h-hero {
  font-size: clamp(2.6rem, 8.2vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.03em;
}

.h-section {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.02;
}

.h-sub { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }

.fit-text {
  display: block;
  width: 100%;
  white-space: nowrap;
  line-height: 1;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
  display: inline-block;
}
.eyebrow.on-dark { color: #bcd0ff; }

.lede {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: var(--gray-600);
  max-width: 60ch;
}

p { max-width: 70ch; }
.prose p { margin-block: 1.05rem; }
.prose h2 { margin-top: 2.6rem; margin-bottom: .8rem; }
.prose h3 { margin-top: 1.9rem; margin-bottom: .5rem; font-size: 1.3rem; }
.prose ul, .prose ol { margin-block: 1rem; }
.prose li { margin-block: .4rem; }
.prose strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section.tight { padding-block: clamp(2.4rem, 5vw, 4rem); }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: #e7ecf5; }
.bg-blue { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; }
.bg-grid { position: relative; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: var(--s, 1rem); }

.grid { display: grid; gap: clamp(1rem, 2.4vw, 2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--blue);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.01em;
  padding: .92rem 1.5rem;
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
  text-align: center;
  line-height: 1.1;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn-red { --bg: var(--red); }
.btn-red:hover { --bg: var(--red-dark); box-shadow: 0 16px 40px rgba(214,40,40,.32); }
.btn-ink { --bg: var(--ink); }
.btn-ghost {
  --bg: transparent; --fg: var(--ink);
  box-shadow: inset 0 0 0 2px var(--gray-300);
}
.btn-ghost:hover { --fg: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-on-dark.btn-ghost { --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.btn-on-dark.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .2s var(--ease);
}
.link-arrow:hover { gap: .7rem; }

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #cbd5e8;
  font-size: .85rem;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: #cbd5e8; }
.topbar a:hover { color: #fff; }
.topbar .topbar-left { display: flex; gap: 1.4rem; align-items: center; }
.topbar .pill { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: #46d17f; box-shadow: 0 0 0 4px rgba(70,209,127,.18); }
@media (max-width: 760px) { .topbar .topbar-left .hide-sm { display: none; } }
@media (max-width: 600px) {
  .topbar { font-size: .73rem; }
  .topbar .wrap { min-height: 36px; gap: .6rem; }
  .topbar .topbar-left, .topbar .pill, .topbar a { white-space: nowrap; }
  .topbar .pill .full { display: none; }
}
@media (min-width: 601px) { .topbar .pill .short { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand:hover { color: inherit; }
.brand .mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: .06em;
  color: var(--ink);
}
.brand .wordmark span {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a, .nav-links > li > button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink-soft);
  padding: .6rem .85rem;
  border-radius: 9px;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color .2s, background .2s;
}
.nav-links > li > a:hover, .nav-links > li > button:hover,
.nav-links > li > a[aria-current="page"] { color: var(--blue); background: var(--gray-50); }
.nav-links .caret { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute;
  /* No vertical gap between the button and the panel: the panel's hit area
     touches the button so hover can never be lost. The 14px transparent top
     border keeps the floating look without a dead zone. */
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(880px, 92vw);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-top: 14px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  z-index: 70;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.mega.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.has-mega:hover .caret, .has-mega:focus-within .caret { transform: rotate(180deg); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .8rem; }
.mega-link {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .7rem; border-radius: 12px; transition: background .2s;
}
.mega-link:hover { background: var(--gray-50); }
.mega-link .ic {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; background: #eaf0ff; color: var(--blue);
}
.mega-link .ic svg { width: 20px; height: 20px; }
.mega-link b { font-family: var(--font-display); font-size: .96rem; color: var(--ink); display: block; }
.mega-link small { color: var(--gray-500); font-size: .82rem; line-height: 1.4; }
.mega-feature {
  background: linear-gradient(160deg, var(--blue-deep), var(--blue));
  color: #fff; border-radius: var(--radius); padding: 1.3rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
}
.mega-feature h4 { color: #fff; font-size: 1.2rem; }
.mega-feature p { color: #d6e2ff; font-size: .9rem; }

/* Hamburger */
.hamburger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: #fff;
  position: relative;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform .3s var(--ease), opacity .2s;
}
.hamburger span::before { transform: translate(-50%, -7px); }
.hamburger span::after { transform: translate(-50%, 5px); }
body.menu-open .hamburger span { background: transparent; }
body.menu-open .hamburger span::before { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .hamburger span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(8, 14, 26, .55);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(420px, 88vw);
  background: #fff; padding: 1.4rem;
  transform: translateX(100%); transition: transform .35s var(--ease);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: .4rem;
}
body.menu-open .drawer { opacity: 1; visibility: visible; }
body.menu-open .drawer-panel { transform: translateX(0); }
.drawer a { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); padding: .85rem .6rem; border-radius: 10px; border-bottom: 1px solid var(--gray-100); }
.drawer a:hover { background: var(--gray-50); color: var(--blue); }
.drawer .drawer-sub { display: grid; gap: .1rem; margin: .2rem 0 .4rem; padding-left: .9rem; border-left: 2px solid var(--gray-200); }
.drawer .drawer-sub a { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .92rem; color: var(--gray-600); padding: .6rem; border-bottom: 0; }
.drawer .drawer-sub a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex: 0 0 auto; opacity: .6; }

@media (max-width: 1024px) {
  .nav-links, .nav-actions .desk-only { display: none; }
  .hamburger { display: inline-grid; place-items: center; }
}

/* --------------------------------------------------------------------------
   Header utilities: translate toggle
   -------------------------------------------------------------------------- */
.util-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 999px; padding: .5rem .8rem;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--ink-soft);
  transition: border-color .2s, color .2s;
}
.util-btn:hover { border-color: var(--blue); color: var(--blue); }
.util-btn svg { width: 16px; height: 16px; }

.translate-wrap { position: relative; }
.translate-pop {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff; border: 1px solid var(--gray-200); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: .9rem; width: 240px;
  display: none; z-index: 75;
}
.translate-pop.open { display: block; }
.translate-pop p { font-size: .78rem; color: var(--gray-500); margin-bottom: .5rem; }
#google_translate_element { font-size: .85rem; }
.goog-te-gadget { font-family: var(--font-body) !important; color: transparent !important; }
.goog-te-gadget .goog-te-combo {
  width: 100%; padding: .55rem .6rem; border-radius: 10px;
  border: 1px solid var(--gray-200); font-family: var(--font-body); color: var(--ink);
}
body { top: 0 !important; }
.goog-te-banner-frame { display: none !important; }

/* Top bar right cluster: language switcher next to phone */
.topbar-right { display: flex; align-items: center; gap: .9rem; }
.topbar .translate-wrap { position: relative; display: flex; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #e7ecf5; border-radius: 999px;
  padding: .26rem .7rem; font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  transition: background .2s, border-color .2s;
}
.lang-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.lang-btn svg { width: 15px; height: 15px; }
.topbar .translate-pop { right: 0; top: calc(100% + 8px); }
.topbar-phone strong { color: #fff; }
@media (max-width: 600px) {
  .topbar .topbar-left { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .topbar-right { gap: .7rem; }
  .lang-toggle button { padding: .28rem .6rem; font-size: .72rem; }
}

/* EN | ES language toggle (custom, no Google UI) */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 2px;
}
.lang-toggle .slider {
  position: absolute;
  top: 2px; bottom: 2px; left: 2px;
  width: calc(50% - 2px);
  background: #fff;
  border-radius: 999px;
  transition: transform .25s var(--ease);
  z-index: 0;
}
.lang-toggle.is-es .slider { transform: translateX(100%); }
.lang-toggle button {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  color: #cbd5e8;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .05em;
  padding: .3rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s;
}
.lang-toggle button[aria-pressed="true"] { color: #0E1726; }
/* Hidden Google engine element and any injected Google chrome */
.gt-hidden { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 0; height: 0; overflow: hidden; }
.goog-te-banner-frame, .goog-te-gadget-icon, .skiptranslate { display: none !important; }
font.goog-te-gadget { font-size: 0 !important; }

/* Service page hero with quick-quote card */
.svc-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 920px) { .svc-hero-inner { grid-template-columns: 1fr; } }
.hero-quote {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.3rem, 2.5vw, 1.8rem);
  border: 1px solid var(--gray-100);
}
.hero-quote h2 { font-size: 1.3rem; margin-bottom: .2rem; }
.hero-quote .sub { color: var(--gray-500); font-size: .9rem; margin-bottom: 1rem; }
.hero-quote .field { margin-bottom: .8rem; }
.hero-quote .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 480px) { .hero-quote .form-row { grid-template-columns: 1fr; } }
.hero-quote .form-note { margin-top: .7rem; }
.hero-quote .trust-row { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; font-size: .82rem; color: var(--gray-500); }
.hero-quote .trust-row .stars { color: #f6a609; letter-spacing: 1px; }

/* Trending Now seasonal module */
.trending {
  background: linear-gradient(135deg, #ffffff, var(--cream));
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.trending__head { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); flex-wrap: wrap; }
.trending__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: 0 0 auto; animation: trendPulse 2s infinite; }
@keyframes trendPulse { 0% { box-shadow: 0 0 0 0 rgba(214,40,40,.5); } 70% { box-shadow: 0 0 0 9px rgba(214,40,40,0); } 100% { box-shadow: 0 0 0 0 rgba(214,40,40,0); } }
.trending__season { font-family: var(--font-body); font-weight: 600; font-size: .76rem; color: #fff; background: var(--red); padding: .15rem .6rem; border-radius: 999px; text-transform: capitalize; }
.trending__list { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.4rem; margin: .9rem 0 0; padding-left: 1.1rem; }
@media (max-width: 560px) { .trending__list { grid-template-columns: 1fr; } }
.trending__list li { color: var(--ink-soft); font-weight: 600; }
.trending__note { color: var(--gray-500); font-size: .88rem; margin-top: .9rem; max-width: none; }

/* Pulled review quote for service pages */
.pullquote {
  border-left: 4px solid var(--red);
  padding: .4rem 0 .4rem 1.3rem;
  margin: 1.6rem 0;
  font-size: 1.15rem; line-height: 1.5; color: var(--ink);
  font-family: var(--font-display); font-weight: 600;
}
.pullquote cite { display: block; margin-top: .6rem; font-size: .9rem; color: var(--gray-500); font-style: normal; font-weight: 500; }
.pullquote cite .stars { color: #f6a609; margin-right: .4rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: clip; background: var(--cream); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(26,79,180,.10), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(214,40,40,.06), transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 0.86fr 1.14fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.2rem, 5vw, 4rem); }
@media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { margin: .4rem 0 .9rem; }
.hero .accent { color: var(--blue); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; align-items: center; }
.hero-trust .stars { color: #f6a609; letter-spacing: 2px; font-size: 1.05rem; }
.hero-trust b { font-family: var(--font-display); }

.hero-media { position: relative; }
.hero-media .photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 3.6;
  min-height: clamp(340px, 46vw, 560px);
  object-fit: cover;
  transform: rotate(-1.2deg);
}
.hero-badge {
  position: absolute; left: -10px; bottom: -18px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-md);
  padding: .9rem 1.1rem; display: flex; gap: .7rem; align-items: center;
  border: 1px solid var(--gray-100);
}
.hero-badge .big { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--blue); line-height: 1; }
.hero-badge small { color: var(--gray-500); font-size: .76rem; }
.hero-badge .ring {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  background: conic-gradient(var(--red) 0 100%, var(--gray-100) 0);
  display: grid; place-items: center; color: #fff;
}
.hero-badge .ring svg { width: 22px; height: 22px; }

/* Marquee of service tags */
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 999px; padding: .4rem .85rem; font-size: .82rem; font-weight: 600; color: var(--gray-700);
}
.chip svg { width: 14px; height: 14px; color: var(--blue); }

/* --------------------------------------------------------------------------
   Stat strip
   -------------------------------------------------------------------------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gray-200); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; padding: 1.4rem 1.2rem; text-align: center; }
.bg-ink .stat, .bg-blue .stat { background: transparent; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--blue); line-height: 1; }
.bg-ink .stat .num, .bg-blue .stat .num { color: #fff; }
.stat .lbl { font-size: .82rem; color: var(--gray-500); margin-top: .4rem; letter-spacing: .02em; }
.bg-ink .stat .lbl, .bg-blue .stat .lbl { color: #b9c6df; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.card .ic {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, #eaf0ff, #dbe6ff); color: var(--blue); margin-bottom: 1rem;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.card p { color: var(--gray-600); font-size: .96rem; }
.card .link-arrow { margin-top: .9rem; font-size: .9rem; }
.card.feature { border-top: 4px solid var(--red); }

/* Principles: custom editorial treatment (not boxed cards) */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
}
.principle {
  position: relative;
  padding: 2.4rem clamp(1.1rem, 2.4vw, 2.2rem) 2.6rem;
  border-left: 1px solid var(--gray-200);
  overflow: hidden;
}
.principle:first-child { border-left: 0; padding-left: 0; }
.principle__num {
  position: absolute;
  top: .9rem;
  right: .6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 2px var(--blue);
  opacity: .2;
  pointer-events: none;
  user-select: none;
}
.principle:nth-child(2) .principle__num { -webkit-text-stroke-color: var(--red); }
.principle:nth-child(3) .principle__num { -webkit-text-stroke-color: var(--ink); }
.principle__head { display: flex; align-items: center; gap: .6rem; position: relative; z-index: 1; }
.principle__ico { width: 26px; height: 26px; flex: 0 0 auto; color: var(--blue); }
.principle:nth-child(2) .principle__ico { color: var(--red); }
.principle:nth-child(3) .principle__ico { color: var(--ink); }
.principle h3 { font-size: 1.35rem; }
.principle__bar {
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
  margin: .9rem 0 1rem;
  transition: width .4s var(--ease);
}
.principle:nth-child(2) .principle__bar { background: var(--red); }
.principle:nth-child(3) .principle__bar { background: var(--ink); }
.principle:hover .principle__bar { width: 64px; }
.principle p { color: var(--gray-600); position: relative; z-index: 1; max-width: 36ch; }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; border-top: 0; }
  .principle { border-left: 0; border-top: 1px solid var(--gray-200); padding-left: 0; padding-right: 0; }
  .principle:first-child { border-top: 0; }
}

/* Service card variant with image */
.svc-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.svc-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.svc-card .body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { font-size: 1.15rem; }
.svc-card .link-arrow { margin-top: auto; padding-top: .8rem; }

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.review {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); height: 100%;
  display: flex; flex-direction: column; gap: .8rem;
}
.review .stars { color: #f6a609; letter-spacing: 1px; }
.review p { color: var(--ink-soft); font-size: .98rem; flex: 1; }
.review .who { display: flex; align-items: center; gap: .7rem; margin-top: .4rem; }
.review .avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700;
  background: linear-gradient(140deg, var(--blue), var(--blue-dark));
}
.review .who b { font-family: var(--font-display); font-size: .95rem; display: block; }
.review .who small { color: var(--gray-500); font-size: .8rem; display: inline-flex; align-items: center; gap: .3rem; }
.gverified { display: inline-flex; align-items: center; gap: .3rem; color: var(--gray-500); font-size: .8rem; }
.gverified svg { width: 14px; height: 14px; }

.reviews-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(360px, 82vw);
  gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.reviews-rail .review { scroll-snap-align: start; }

/* --------------------------------------------------------------------------
   Content modules from the content protocol
   -------------------------------------------------------------------------- */
.callout {
  border-left: 5px solid var(--blue);
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin-block: 1.6rem;
}
.callout.warn { border-left-color: var(--red); }
.callout .tag {
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); display: block; margin-bottom: .35rem;
}
.callout.warn .tag { color: var(--red); }

.compare {
  width: 100%; border-collapse: collapse; margin-block: 1.6rem;
  font-size: .95rem; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
}
.compare th, .compare td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.compare thead th { background: var(--ink); color: #fff; font-family: var(--font-display); font-size: .9rem; }
.compare tbody tr:nth-child(even) { background: var(--gray-50); }
.compare td:first-child { font-weight: 600; }
.compare .good { color: #138a4e; font-weight: 600; }
.compare .bad { color: var(--red); }

.sidebar-note {
  background: linear-gradient(160deg, #fff, var(--cream));
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.sidebar-note h4 { font-size: 1.05rem; margin-bottom: .5rem; color: var(--ink); }
.sidebar-note .tag { color: var(--red); font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }

.decision { display: grid; gap: .9rem; margin-block: 1.8rem; }
.decision .row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) auto minmax(0, 1.15fr);
  gap: 1.1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.decision .row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.decision .if {
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  font-size: .98rem; line-height: 1.25; white-space: normal;
}
.decision .if::before {
  content: "IF";
  display: inline-block; margin-right: .5rem;
  font-size: .66rem; letter-spacing: .08em; font-weight: 800;
  color: #fff; background: var(--blue); padding: .15rem .42rem; border-radius: 5px;
  vertical-align: middle;
}
.decision .arrow { color: var(--blue); flex: 0 0 auto; display: grid; place-items: center; }
.decision .arrow svg { width: 22px; height: 22px; }
.decision .then { color: var(--gray-600); font-size: .96rem; line-height: 1.45; }
.decision .then b { color: var(--ink); }
@media (max-width: 620px) {
  .decision .row { grid-template-columns: 1fr; gap: .5rem; }
  .decision .arrow { display: none; }
}

.bottom-line {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff; border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; margin-block: 1.8rem;
}
.bottom-line h4 { color: #fff; }
.bottom-line p { color: #dbe6ff; }

/* Author / proof of experience bio */
.author-card {
  display: flex; gap: 1.1rem; align-items: center;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-top: 2.4rem;
}
.author-card img, .author-card .ph {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--blue), var(--blue-dark)); display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
}
.author-card b { font-family: var(--font-display); }
.author-card small { color: var(--gray-500); display: block; }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 1.15rem 0;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.faq-q .pm { flex: 0 0 auto; width: 26px; height: 26px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--blue);
  transform: translate(-50%, -50%); transition: transform .3s var(--ease);
}
.faq-q .pm::before { width: 14px; height: 2px; }
.faq-q .pm::after { width: 2px; height: 14px; }
.faq-item.open .pm::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 0 1.2rem; color: var(--gray-600); }

/* --------------------------------------------------------------------------
   Steps / process
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.step .n {
  counter-increment: step; width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--blue); color: #fff;
  font-family: var(--font-display); font-weight: 800;
}
.step .n::before { content: counter(step); }
.step h4 { font-size: 1.1rem; }
.step p { color: var(--gray-600); font-size: .95rem; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
@media (max-width: 820px) { .cta-inner { grid-template-columns: 1fr; text-align: center; } }
.cta-inner .actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 820px) { .cta-inner .actions { justify-content: center; } }
.gear-deco { position: absolute; opacity: .07; right: -60px; top: -60px; width: 320px; color: #fff; z-index: 1; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.4rem, 3vw, 2.2rem); }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--gray-300); border-radius: 11px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,79,180,.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--gray-500); }
.form-success { display: none; background: #e9f7ef; border: 1px solid #b6e3c7; color: #136c3c; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.form-success.show { display: block; }
.form-error { display: none; background: #fdecec; border: 1px solid #f3bcbc; color: #a11; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.form-error.show { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact methods */
.contact-method { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--gray-200); }
.contact-method .ic { width: 46px; height: 46px; border-radius: 12px; background: #eaf0ff; color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }
.contact-method b { font-family: var(--font-display); display: block; }
.contact-method a { font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #aebbd0; padding-block: clamp(3rem, 6vw, 4.5rem) 7rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 { font-family: var(--font-display); color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #aebbd0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-brand .wordmark b { color: #fff; }
.footer-brand p { color: #8a99b3; font-size: .92rem; margin-top: 1rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #cdd8ea; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.lic-badge { font-size: .76rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: .35rem .6rem; color: #c3cfe3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

/* --------------------------------------------------------------------------
   Mobile floating footer nav (app-like)
   -------------------------------------------------------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none;
  padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -8px 30px rgba(14,23,38,.12);
}
.mobile-bar-inner { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: .4rem; max-width: 560px; margin-inline: auto; }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  font-family: var(--font-display); font-weight: 600; font-size: .68rem; color: var(--gray-600);
  padding: .45rem .2rem; border-radius: 12px; text-align: center;
}
.mobile-bar a svg { width: 22px; height: 22px; }
.mobile-bar a.primary { background: var(--red); color: #fff; }
.mobile-bar a.book { background: var(--blue); color: #fff; }
@media (max-width: 1024px) { .mobile-bar { display: block; } body { padding-bottom: 64px; } }

/* --------------------------------------------------------------------------
   Accessibility widget
   -------------------------------------------------------------------------- */
.a11y-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 85;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--blue); color: #fff; border: 3px solid #fff;
  box-shadow: var(--shadow-lg); display: grid; place-items: center;
}
.a11y-toggle svg { width: 26px; height: 26px; }
@media (max-width: 1024px) { .a11y-toggle { bottom: calc(74px + env(safe-area-inset-bottom)); } }
.a11y-panel {
  position: fixed; left: 16px; bottom: 80px; z-index: 86;
  width: min(320px, calc(100vw - 32px));
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200); padding: 1.2rem;
  transform: translateY(12px) scale(.97); opacity: 0; visibility: hidden;
  transition: transform .28s var(--ease), opacity .28s, visibility .28s;
}
.a11y-panel.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
@media (max-width: 1024px) { .a11y-panel { bottom: calc(138px + env(safe-area-inset-bottom)); } }
.a11y-panel h4 { font-size: 1.05rem; margin-bottom: .2rem; }
.a11y-panel .sub { font-size: .8rem; color: var(--gray-500); margin-bottom: 1rem; }
.a11y-opt {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .7rem 0; border-bottom: 1px solid var(--gray-100);
}
.a11y-opt span { font-size: .92rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.a11y-opt span svg { width: 18px; height: 18px; color: var(--blue); }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--gray-300); border-radius: 999px; transition: background .2s; }
.switch .track::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--blue); }
.switch input:checked + .track::before { transform: translateX(20px); }
.a11y-reset { margin-top: 1rem; width: 100%; }

/* Accessibility states applied to <html> */
html.a11y-contrast, html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast a { color: #ffe14d !important; }
html.a11y-contrast .card, html.a11y-contrast .review, html.a11y-contrast .form-card,
html.a11y-contrast .site-header, html.a11y-contrast .mega { background: #111 !important; border-color: #444 !important; color: #fff !important; }
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast h4 { color: #fff !important; }
html.a11y-bigtext { font-size: 119%; }
html.a11y-dyslexia, html.a11y-dyslexia body { font-family: "Comic Sans MS", "Segoe Print", Verdana, sans-serif !important; letter-spacing: .03em; word-spacing: .08em; }
html.a11y-dyslexia h1, html.a11y-dyslexia h2, html.a11y-dyslexia h3, html.a11y-dyslexia h4 { font-family: inherit !important; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-readable * { line-height: 1.9 !important; letter-spacing: .02em; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 10px 0; z-index: 100; }
.skip-link:focus { left: 0; color: #fff; }
.page-hero { background: linear-gradient(160deg, var(--blue-deep), var(--blue)); color: #fff; padding-block: clamp(2.6rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.page-hero .gear-deco { opacity: .08; right: -40px; top: -40px; width: 280px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #d4e0fb; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #b9c6df; margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: #d4e0fb; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }
.tagline-strike { color: var(--red); }
.muted { color: var(--gray-500); }
.pill-badge { display: inline-flex; align-items: center; gap: .45rem; background: #eaf0ff; color: var(--blue-dark); font-weight: 700; font-family: var(--font-display); font-size: .82rem; padding: .4rem .85rem; border-radius: 999px; }

@media (prefers-reduced-motion: reduce), (reduce-motion) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; }
html.a11y-motion .reveal { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   PREMIUM REFINEMENT LAYER  (v8)
   Elevates the whole site: deeper color, layered shadows, refined type,
   custom icon treatment (no gradient squares), airier rhythm.
   ========================================================================== */
:root {
  --ink: #0b1322;
  --ink-soft: #283449;
  --blue: #1a4fb4;
  --blue-deep: #0a2150;
  --cream: #f6f3ea;
  --cream-2: #efeadc;
  --gray-150: #e9ecf2;
  --blue-tint: rgba(26, 79, 180, .065);
  --gold: #cf9f3a;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 34, .04), 0 8px 22px rgba(11, 19, 34, .05);
  --shadow-md: 0 16px 42px rgba(11, 19, 34, .09);
  --shadow-lg: 0 36px 84px rgba(11, 19, 34, .16);
  --shadow-blue: 0 22px 52px rgba(26, 79, 180, .32);
  --ease: cubic-bezier(.16, .84, .44, 1);
}

/* ---- Typography polish ---- */
body { color: #1b2536; letter-spacing: -.006em; line-height: 1.7; }
h1, h2, h3, h4 { letter-spacing: -.028em; color: var(--ink); }
.h-hero { letter-spacing: -.045em; }
.h-section { letter-spacing: -.032em; }
.eyebrow { font-size: .74rem; letter-spacing: .24em; gap: .7rem; color: var(--blue); }
.eyebrow::before { width: 30px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--red), var(--blue)); }
.lede { color: #4a5468; }
.prose p { color: #2f3a4d; }

/* ---- Rhythm: comfortable, not cavernous ---- */
.section { padding-block: clamp(2.5rem, 4.5vw, 4.25rem); }
.section.tight { padding-block: clamp(2rem, 3.5vw, 3rem); }
/* Top align split columns so headings never float when one side (an image)
   is taller than the other. */
.split { align-items: start; }
.svc-hero-inner { align-items: center; }
.page-hero { padding-block: clamp(2.2rem, 4vw, 3.4rem); }

/* ---- Hero booking CTA card (replaces the old quick-quote form) ---- */
.hero-book {
  background: #fff; color: var(--ink);
  border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
}
.hero-book__badge {
  display: inline-block; background: #eaf0ff; color: var(--blue-dark, #1a4fb4);
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .05em;
  padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero-book h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; margin: 0 0 .6rem; }
.hero-book > p { color: #5a6b8c; margin: 0 auto 1.5rem; max-width: 34ch; }
.hero-book .btn-block { margin-bottom: .7rem; }
.hero-book .btn-block:last-of-type { margin-bottom: 0; }
.hero-book__trust { margin-top: 1.2rem; font-size: .84rem; color: #6b7893; }
.hero-book__trust .stars { color: #f6a609; letter-spacing: 1px; }

/* ---- Refined icon chips (no gradient squares) ---- */
.card .ic, .contact-method .ic, .mega-link .ic {
  background: var(--blue-tint);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(26, 79, 180, .14);
}
.card .ic { width: 54px; height: 54px; border-radius: 15px; transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.card .ic svg { width: 24px; height: 24px; }
.card:hover .ic { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }

/* ---- Cards: hairline, lift on hover ---- */
.card {
  border: 1px solid var(--gray-150);
  border-radius: 18px;
  box-shadow: none;
  padding: 1.75rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: #dde3ec; transform: translateY(-5px); }
.card.feature { border-top: 1px solid var(--gray-150); position: relative; overflow: hidden; }
.card.feature::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), #ef5a52); }
.svc-card { border-radius: 18px; }
.svc-card img { transition: transform .6s var(--ease); }
.svc-card:hover img { transform: scale(1.04); }

/* ---- Buttons: subtler, more premium ---- */
.btn { font-weight: 700; letter-spacing: -.01em; }
.btn-red { background: linear-gradient(180deg, #e03a31, #c81f19); }
.btn-red:hover { background: linear-gradient(180deg, #e84840, #b81b15); }
.btn:hover { transform: translateY(-2px); }
.pill-badge { background: var(--blue-tint); color: var(--blue-deep); box-shadow: inset 0 0 0 1px rgba(26, 79, 180, .14); }

/* ---- Header / nav refinement ---- */
.site-header { background: rgba(255, 255, 255, .78); border-bottom-color: rgba(11, 19, 34, .07); }
.mega { border-radius: 24px; }
.nav-links > li > a, .nav-links > li > button { letter-spacing: -.01em; }

/* ---- Hero ---- */
.hero { background: linear-gradient(180deg, #fbfaf5 0%, #f2efe5 100%); }
.hero-media .photo { box-shadow: var(--shadow-lg); border-radius: 22px; }
.hero-badge { border-radius: 18px; box-shadow: var(--shadow-md); border-color: var(--gray-150); }
/* White pill only on the DARK interior hero. On the light homepage hero the
   base .pill-badge (dark text on tint) applies, so it stays readable. */
.page-hero .hero-trust .pill-badge { font-size: .82rem; background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .30); }
.hero-trust .pill-badge { font-size: .82rem; }

/* Trustindex strip under each hero. The current embed is a Rich Snippet
   (invisible/SEO), so collapse the band when it renders nothing. If a visible
   Trustindex WIDGET embed is added later, restore vertical padding here. */
.reviews-strip { padding: 0; }
.reviews-strip .wrap { display: flex; justify-content: center; }
.reviews-strip:not(:empty) .wrap:not(:empty) { padding: 1.2rem 0; }

/* Buttons keep their label on one line (no dropping to a 2nd line) */
.btn { white-space: nowrap; }
/* Hero sub-heading ledes fill the full container width */
.page-hero .lede, .hero .lede { max-width: 100% !important; }
.form-prebar { background: #eef3fb; border: 1px solid #dbe6fb; border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; line-height: 1.45; margin-bottom: 1rem; color: #33405c; }
.form-prebar a { font-weight: 700; white-space: nowrap; }
.chip { border-radius: 999px; border-color: var(--gray-150); box-shadow: var(--shadow-sm); }

/* ---- Interior page hero: richer gradient ---- */
.page-hero { background: radial-gradient(135% 130% at 6% 0%, #1a4aa0 0%, var(--blue-deep) 52%, #07173a 100%); }

/* ---- Stat strip ---- */
.stat-strip { border-radius: 20px; border: 1px solid var(--gray-150); background: var(--gray-150); box-shadow: var(--shadow-sm); }
.stat .num { letter-spacing: -.035em; }

/* ---- Reviews ---- */
.review { border-radius: 18px; border-color: var(--gray-150); box-shadow: var(--shadow-sm); }
.review .avatar { background: var(--ink); }

/* ---- Forms ---- */
.form-card { border-radius: 22px; border-color: var(--gray-150); }
.field input, .field select, .field textarea { border-radius: 12px; border-color: var(--gray-200); }
.hero-quote { border-radius: 22px; }

/* ---- Surfaces ---- */
.trending, .sidebar-note, .callout, .compare, .author-card { border-radius: 18px; }
.bg-cream { background: var(--cream); }
.site-footer { background: #09101d; }

/* ---- Steps ---- */
.step .n { border-radius: 14px; box-shadow: var(--shadow-blue); }

/* ---- Section divider hairline accents ---- */
.bg-ink, .bg-blue { position: relative; }

/* ==========================================================================
   CLIENT FEEDBACK FIXES (v10)
   ========================================================================== */
/* Fix: the prose paragraph color override made white-on-blue modules
   unreadable. Restore light text inside dark callout modules. */
.bottom-line p, .prose .bottom-line p { color: #dbe6ff; }
.bottom-line h4, .prose .bottom-line h4 { color: #fff; }

/* Wordmark set in a wide, geometric face to resemble the C.O.P.S. logo */
.brand .wordmark b { font-family: "Michroma", var(--font-display); font-size: 1rem; letter-spacing: .01em; line-height: 1.1; }
.brand .wordmark span { letter-spacing: .18em; }
.footer-brand .wordmark b { font-family: "Michroma", var(--font-display); font-size: 1rem; }

/* Emergency slogan bar (home landing page) */
.slogan-bar { display: block; background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.slogan-bar:hover { color: #fff; }
.slogan-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 1.1rem; flex-wrap: wrap; min-height: 56px; padding-block: .65rem; text-align: center; }
.slogan-bar b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.02rem, 1.7vw, 1.3rem); letter-spacing: -.02em; }
.slogan-bar .accent { color: #ff6a5d; }
.slogan-bar .tag { display: inline-flex; align-items: center; gap: .5rem; background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .92rem; padding: .5rem 1.1rem; border-radius: 999px; }
.slogan-bar .tag svg { width: 1.05em; height: 1.05em; }
@media (max-width: 540px) { .slogan-bar .wrap { gap: .6rem; } .slogan-bar b { font-size: 1.02rem; } }

/* Mobile: no horizontal scroll (app-like). The off-canvas drawer panel is
   translated off-screen to the right; because the drawer is position:fixed,
   body overflow-x cannot clip it, so clip it at the drawer itself. Root uses
   overflow-x:clip (does not create a scroll container, so sticky still works). */
html { overflow-x: clip; }
.drawer { overflow: hidden; }
/* Never let a grid column be stretched past the screen by a wide heading */
.hero-inner, .svc-hero-inner, .split { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 941px) { .hero-inner { grid-template-columns: 0.86fr 1.14fr; } }
@media (min-width: 921px) { .svc-hero-inner { grid-template-columns: 1.15fr .85fr; } }
@media (min-width: 881px) { .split { grid-template-columns: 1.05fr .95fr; } }
.h-hero, .h-section, .h-sub { max-width: 100%; overflow-wrap: break-word; }

/* Real C.O.P.S. logo is a portrait droplet: size by height, keep aspect */
.brand .mark { width: auto; height: 48px; object-fit: contain; }
.drawer .brand .mark { height: 40px; }
.footer-brand .mark { height: 46px; }
@media (max-width: 1024px) { .brand .mark { height: 42px; } }
