@import url("/assets/fonts/fonts.css");

/* ============================================================
   D. Andersen Plumbing — design tokens
   Values lifted from the Framer project's colour + text styles.
   ============================================================ */
:root {
  --ink: rgb(12, 28, 44);
  --ink-deep: rgb(7, 19, 32);
  --paper: rgb(244, 246, 245);
  --surface: rgb(255, 255, 255);
  --blue: rgb(23, 92, 168);
  --blue-hover: rgb(35, 122, 205);
  --blue-light: rgb(126, 180, 236);
  --text: rgb(22, 33, 46);
  --muted: rgb(92, 107, 120);
  --line: rgba(12, 28, 44, 0.12);
  --white-70: rgba(255, 255, 255, 0.72);
  --line-light: rgba(255, 255, 255, 0.14);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--sans);

  --container: 1200px;
  --gutter: 40px;
  --section-y: 110px;
  --stack-gap: 56px;

  --ease: cubic-bezier(0.3, 0, 0.4, 1);
}

@media (max-width: 1199.98px) {
  :root { --gutter: 32px; --section-y: 90px; }
}
@media (max-width: 809.98px) {
  :root { --gutter: 20px; --section-y: 72px; --stack-gap: 40px; }
}

/* ── reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
/* <picture> must not become the sized box — let the <img> fill its container. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }

/* ── type scale ────────────────────────────────────────────── */
.display, .h2, .h3, .stat {
  font-family: var(--display);
  color: var(--text);
}
.display {
  font-weight: 700;
  font-size: 76px;
  letter-spacing: -2px;
  line-height: 1.04;
  text-wrap: balance;
}
.h2 {
  font-weight: 700;
  font-size: 52px;
  letter-spacing: -1.5px;
  line-height: 1.08;
  text-wrap: balance;
}
.h3 {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.stat {
  font-weight: 700;
  font-size: 60px;
  letter-spacing: -1.5px;
  line-height: 1;
}
.eyebrow {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.8px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--blue);
}
.body-lg { font-size: 19px; line-height: 1.6; color: var(--muted); }
.body    { font-size: 16px; line-height: 1.6; color: var(--muted); }
.small   { font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--muted); }

@media (max-width: 1199.98px) {
  .display { font-size: 56px; letter-spacing: -1.5px; }
  .h2      { font-size: 42px; letter-spacing: -1px; }
  .h3      { font-size: 22px; }
  .stat    { font-size: 48px; }
  .body-lg { font-size: 17px; }
}
@media (max-width: 809.98px) {
  .display { font-size: 40px; letter-spacing: -1px; }
  .h2      { font-size: 32px; letter-spacing: -0.5px; }
  .h3      { font-size: 20px; }
  .stat    { font-size: 40px; }
  .body-lg { font-size: 16px; }
}

/* on dark sections */
.on-dark .display, .on-dark .h2, .on-dark .h3, .on-dark .stat { color: #fff; }
.on-dark .eyebrow { color: var(--blue-light); }
.on-dark .body-lg, .on-dark .body, .on-dark .small { color: var(--white-70); }

/* ── layout ────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}
.section-dark { background: var(--ink); }
.section-paper { background: var(--paper); }
.section-white { background: var(--surface); }
.stack { display: flex; flex-direction: column; gap: var(--stack-gap); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 26px;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease),
    opacity 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--outline-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.16); }
.btn--outline-dark {
  background: rgba(12, 28, 44, 0);
  border-color: rgba(12, 28, 44, 0.3);
  color: var(--ink);
}
.btn--outline-dark:hover { background: rgba(12, 28, 44, 0.07); }
/* The paired CTAs under the reviews grid are a fixed 219px in the original. */
.u-w219 { width: 219px; }
@media (max-width: 479.98px) { .u-w219 { width: 100%; } }

/* ── navbar ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line-light);
}
.nav__bar {
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; transition: opacity 0.25s var(--ease); }
.brand:hover { opacity: 0.8; }
.brand__mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; flex: none;
}
.brand__mark svg { width: 16px; height: 16px; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.3px; }

.nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__link {
  font-size: 14px; font-weight: 500; color: var(--white-70);
  transition: color 0.25s var(--ease);
}
.nav__link:hover { color: #fff; }

.nav__services { position: relative; }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  min-width: 288px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(12, 28, 44, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav__services:hover .nav__dropdown,
.nav__services:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__dropdown::before { content: ""; position: absolute; inset: -14px 0 100% 0; }
.nav__drop-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: background-color 0.2s var(--ease);
}
.nav__drop-row:hover { background: var(--paper); }
.nav__drop-row svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #fff;
  transition: opacity 0.25s var(--ease);
}
.nav__phone:hover { opacity: 0.75; }
.nav__phone svg { width: 16px; height: 16px; color: var(--blue-light); }
.nav .btn { padding: 11px 18px; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  color: #fff; place-items: center;
  transition: background-color 0.25s var(--ease);
}
.nav__toggle:hover { background: rgba(255, 255, 255, 0.1); }

/* mobile drawer */
.drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink-deep);
  padding: 88px var(--gutter) 40px;
  overflow-y: auto;
}
.drawer[data-open="true"] { display: block; }
.drawer__heading {
  font-size: 12px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 4px;
}
.drawer__link {
  display: block; padding: 12px 0;
  font-size: 18px; font-weight: 500; color: #fff;
  border-bottom: 1px solid var(--line-light);
}
.drawer__cta { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.drawer__cta .btn { width: 100%; }
.drawer__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; color: #fff;
}
.drawer__phone svg { width: 18px; height: 18px; color: var(--blue-light); }

@media (max-width: 1023.98px) {
  .nav__links, .nav__cta .btn, .nav__phone span { display: none; }
  .nav__toggle { display: grid; }
  .nav__cta { margin-left: auto; }
  .nav__phone { display: inline-flex; }
}

/* ── hero ──────────────────────────────────────────────────── */
.hero { position: relative; background: var(--ink); overflow: hidden; }

/*
 * Home-hero glow. Two things keep it seamless at every width:
 *
 *  1. It sits on the full-bleed section, not on the 1200px wrap. Previously the
 *     gradient was painted on the wrap, so above 1200px it was sliced off at the
 *     wrap's right edge while still ~40% opaque — a hard vertical seam.
 *  2. Its last stop is fully transparent blue, not opaque ink, so the fade always
 *     completes inside the painted area rather than terminating at a box edge.
 *
 * Radii step up per breakpoint so the falloff stays in proportion to the hero
 * (a fixed desktop-sized radius overshoots a 390px viewport and flattens into an
 * even wash). Each --glow-ry is comfortably past the half-height of the hero at
 * that breakpoint, so `overflow: hidden` only ever clips alpha <= 0.04.
 */
.hero--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    var(--glow-rx) var(--glow-ry) at var(--glow-x) var(--glow-y),
    rgba(24, 94, 168, 0.62) 0%,
    rgba(24, 94, 168, 0.45) 25%,
    rgba(24, 94, 168, 0.24) 50%,
    rgba(24, 94, 168, 0.08) 75%,
    rgba(24, 94, 168, 0) 100%
  );
  /* Phone: the hero is a tall single column, so keep the glow small enough
     that its falloff is actually visible inside a 390px viewport. */
  --glow-rx: 520px;
  --glow-ry: 420px;
  --glow-x: 72%;
  --glow-y: 46%;
}
@media (min-width: 810px) {
  .hero--glow::before { --glow-rx: 700px; --glow-ry: 460px; --glow-y: 50%; }
}
@media (min-width: 1200px) {
  /* The wrap stops growing here, so anchor the glow to the photo column:
     its centre sits exactly 296px right of the viewport centre. */
  .hero--glow::before {
    --glow-rx: 900px;
    --glow-ry: 470px;
    --glow-x: calc(50% + 296px);
    --glow-y: 52%;
  }
}

.hero__wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding: 88px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-light);
  font-size: 13px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--blue-light);
}
.hero__chip svg { width: 16px; height: 16px; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; }
.hero__ctas .btn { width: 219px; }
.hero__trust { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.hero__trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--white-70); }
.hero__trust svg { width: 18px; height: 18px; color: var(--blue-light); flex: none; }

.hero__media { position: relative; }
.hero__photo { border-radius: 24px; overflow: hidden; aspect-ratio: 430 / 560; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  left: -46px;
  bottom: 46px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 36px rgba(7, 19, 32, 0.35);
  display: flex; flex-direction: column; gap: 10px;
}
.hero__badge-top { display: flex; align-items: center; gap: 10px; }
.hero__badge-icon {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: rgba(23, 92, 168, 0.1); color: var(--blue);
  display: grid; place-items: center;
}
.hero__badge-icon svg { width: 18px; height: 18px; }
.hero__badge-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }
.hero__badge-sub { font-size: 13px; color: var(--muted); line-height: 1.3; }
.hero__badge .stars { color: var(--blue); }

/* water drips behind the headline */
.drips { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hero__copy > *:not(.drips) { position: relative; z-index: 1; }
.drip { position: absolute; color: var(--blue-light); }
.ripple {
  position: absolute;
  border: 1px solid var(--blue-light);
  border-radius: 50%;
  width: 10px; height: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .drip { animation: dripFall 1s linear infinite; }
  .ripple { animation: rippleOut 1s linear infinite; }
}
@keyframes dripFall {
  0% { transform: translateY(0); opacity: var(--o, 0.24); }
  100% { transform: translateY(var(--fall, 120px)); opacity: 0; }
}
@keyframes rippleOut {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(3.4); opacity: 0; }
}

@media (max-width: 1199.98px) {
  .hero__wrap { grid-template-columns: 1fr; padding: 72px var(--gutter) 80px; gap: 48px; }
  .hero__badge { left: 24px; bottom: -28px; }
  .hero__photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 809.98px) {
  .hero__wrap { padding: 56px var(--gutter) 64px; gap: 40px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .hero__photo { aspect-ratio: 1 / 1; }
  /* Badge hangs below the photo, left-aligned — as on the phone breakpoint. */
  .hero__badge { left: 4px; right: auto; bottom: -62px; }
  .hero__media { margin-bottom: 62px; }
  /* The drip layer is hidden on phone in the original (7 loops above the fold). */
  .drips { display: none; }
}

/* ── ticker ────────────────────────────────────────────────── */
.ticker { background: var(--ink-deep); padding: 18px 0; overflow: hidden; }
.ticker__track { display: flex; gap: 48px; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: tickerScroll 45s linear infinite; }
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker__chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--white-70);
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}
.ticker__chip:hover { opacity: 0.6; }
.ticker__chip svg { width: 16px; height: 16px; color: var(--blue-light); flex: none; }

/* ── section headers ───────────────────────────────────────── */
.head { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.head--row {
  flex-direction: row; align-items: flex-end; justify-content: space-between;
  max-width: none; gap: 40px;
}
.head--row .head__copy { max-width: 620px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 809.98px) {
  .head--row { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ── service cards (home, static) ──────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1199.98px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639.98px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(12, 28, 44, 0.1); }
.svc-card__icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: rgba(23, 92, 168, 0.1); color: var(--blue);
  display: grid; place-items: center;
}
.svc-card__icon svg { width: 22px; height: 22px; }
.svc-card__body { display: flex; flex-direction: column; gap: 10px; }

/* ── service cards (CMS, with photo) ───────────────────────── */
.svc-photo-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.svc-photo-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(12, 28, 44, 0.1); }
.svc-photo-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.svc-photo-card__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-photo-card__body { padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 10px; }

/* ── process ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 809.98px) { .steps { grid-template-columns: 1fr; gap: 36px; } }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--blue); }
.step__head { display: flex; align-items: center; gap: 10px; color: var(--blue); }
.step__head svg { width: 24px; height: 24px; }
.step__num { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 1px; }

/* ── emergency band ────────────────────────────────────────── */
/*
 * Base is a vertical ink-deep -> ink fade. It was diagonal (135deg), which left
 * the bottom-LEFT corner mid-gradient and about 6/255 lighter than the reviews
 * section directly beneath it — a faint but real horizontal line. Vertical means
 * the entire bottom edge lands on exactly var(--ink), so the seam disappears.
 * The diagonal character now comes from the radial below instead.
 *
 * That radial is the blue that used to be the linear gradient's final stop. It
 * ends transparent so it fades out inside the band rather than being cut at the
 * boundary. The ellipse is deliberately flat (240px tall) because this band is
 * only ~427px high — a rounder glow would still be bright where it gets clipped.
 */
.emergency {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 100%);
}
.emergency::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    700px 240px at 86% 52%,
    rgba(20, 110, 180, 0.5) 0%,
    rgba(20, 110, 180, 0.36) 28%,
    rgba(20, 110, 180, 0.17) 58%,
    rgba(20, 110, 180, 0) 100%
  );
}
.emergency__wrap { position: relative; z-index: 1; }
.emergency__wrap {
  max-width: var(--container); margin-inline: auto;
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.emergency__copy { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.emergency__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.call-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 30px; border-radius: 14px;
  background: var(--blue); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.3px;
  box-shadow: 0 16px 40px rgba(13, 157, 233, 0.35);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.call-btn:hover { background: var(--blue-hover); transform: scale(1.02); }
.call-btn svg { width: 22px; height: 22px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .call-btn { animation: callPulse 2.5s var(--ease) infinite; }
}
@keyframes callPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@media (max-width: 809.98px) {
  .emergency__wrap { grid-template-columns: 1fr; gap: 32px; }
  .emergency__cta { align-items: flex-start; }
  .call-btn { font-size: 20px; width: 100%; justify-content: center; }
}

/* ── reviews ───────────────────────────────────────────────── */
/*
 * Same fix as the hero. This glow used to sit on .reviews__wrap, which is capped
 * at 1200px — so above that width it was sliced off at BOTH wrap edges while
 * still ~0.3 opaque, giving two vertical seams. It now lives on the full-bleed
 * section and ends in transparent blue. Fixed-pixel radii keep the falloff
 * consistent whether the section holds 6 cards (home) or 83 (/reviews).
 */
.reviews { position: relative; background: var(--ink); overflow: hidden; }
.reviews::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /*
   * Anchored 460px off the bottom with a matching 460px radius, so the fade
   * reaches exactly zero at the section's bottom edge. A percentage centre (the
   * original 88.4%) leaves the glow ~0.13 opaque where it gets cut, which is
   * invisible against the white Stats section on the home page but a clear
   * horizontal seam on /reviews, where the next section is also dark.
   */
  background: radial-gradient(
    1100px 460px at 0% calc(100% - 460px),
    rgba(24, 94, 168, 0.34) 0%,
    rgba(24, 94, 168, 0.25) 28%,
    rgba(24, 94, 168, 0.12) 58%,
    rgba(24, 94, 168, 0) 100%
  );
}
.reviews__wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container); margin-inline: auto;
  padding: var(--section-y) var(--gutter);
  display: flex; flex-direction: column; gap: var(--stack-gap);
}
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 1199.98px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639.98px) { .reviews-grid { grid-template-columns: 1fr; } }

/* masonry for the full /reviews listing */
.reviews-masonry { columns: 3; column-gap: 24px; }
.reviews-masonry > * { break-inside: avoid; margin-bottom: 24px; }
@media (max-width: 1199.98px) { .reviews-masonry { columns: 2; } }
@media (max-width: 639.98px) { .reviews-masonry { columns: 1; } }

.review {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.review:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.1); }
.review__quote { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.review__meta { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.review__name { font-size: 14px; font-weight: 600; color: #fff; }
.review__sep, .review__date { font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.review__g { margin-left: auto; color: var(--blue-light); }
.review__g svg { width: 18px; height: 18px; }
.stars { display: flex; gap: 3px; color: var(--blue-light); }

.reviews__more { display: flex; justify-content: center; }
.load-more {
  padding: 12px 26px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff; font-size: 14px; font-weight: 600;
  transition: background-color 0.25s var(--ease);
}
.load-more:hover { background: rgba(255, 255, 255, 0.18); }
.review-hidden { display: none; }

/* ── stats ─────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 809.98px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}
@media (max-width: 389.98px) { .stat-card { padding: 18px; } }
.stat-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(23, 92, 168, 0.1); color: var(--blue);
  display: grid; place-items: center;
}
.stat-card__icon svg { width: 22px; height: 22px; }
.stat-card .stars { color: var(--blue); }

/* ── who's doing the work ──────────────────────────────────── */
.who__wrap {
  max-width: var(--container); margin-inline: auto;
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center;
}
@media (max-width: 809.98px) { .who__wrap { grid-template-columns: 1fr; gap: 40px; } }
.dane-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(12, 28, 44, 0.08);
}
.dane-card__photo {
  height: 340px;
  background: var(--blue);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 104px; line-height: 1;
}
.dane-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.dane-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.who__copy { display: flex; flex-direction: column; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px; color: var(--text);
}
.chip svg { width: 16px; height: 16px; color: var(--blue); flex: none; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq__wrap {
  max-width: var(--container); margin-inline: auto;
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: 1fr 660px; gap: 64px; align-items: start;
}
@media (max-width: 1199.98px) { .faq__wrap { grid-template-columns: 1fr; gap: 40px; } }
.faq__aside { display: flex; flex-direction: column; gap: 14px; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-size: 18px; font-weight: 600; color: var(--text);
  transition: background-color 0.25s var(--ease);
}
.faq-item__q:hover { background: rgba(12, 28, 44, 0.05); }
.faq-item__toggle {
  width: 32px; height: 32px; border-radius: 100px; flex: none;
  background: var(--paper); color: var(--text);
  display: grid; place-items: center;
}
.faq-item__toggle svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.faq-item[open] .faq-item__toggle svg { transform: rotate(45deg); }
.faq-item__a { padding: 0 48px 18px 20px; }
.faq-item__q::-webkit-details-marker { display: none; }
summary.faq-item__q { list-style: none; cursor: pointer; }

.phone-row {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; color: var(--text);
  transition: opacity 0.25s var(--ease);
}
.phone-row:hover { opacity: 0.7; }
.phone-row svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.on-dark .phone-row { color: #fff; }
.on-dark .phone-row svg { color: var(--blue-light); }

/* ── contact ───────────────────────────────────────────────── */
.contact { background: var(--ink); }
.contact__wrap {
  max-width: var(--container); margin-inline: auto;
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: 1fr 480px; gap: 64px; align-items: start;
}
@media (max-width: 1023.98px) { .contact__wrap { grid-template-columns: 1fr; gap: 40px; } }
.contact__copy { display: flex; flex-direction: column; gap: 16px; }
.contact__rows { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.contact__row {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; color: #fff;
  transition: opacity 0.25s var(--ease);
}
a.contact__row:hover { opacity: 0.75; }
.contact__row svg { width: 20px; height: 20px; color: var(--blue-light); flex: none; }

.form {
  background: var(--surface);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column; gap: 16px;
}
.form__title { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.3px; color: var(--text); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 479.98px) { .field__row { grid-template-columns: 1fr; } }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(92, 107, 120, 0.6); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--surface);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6b78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 18px;
  padding-right: 40px;
}
.form__note { font-size: 13px; color: var(--muted); }
.form .btn { width: 100%; }
.form__status { font-size: 14px; font-weight: 500; padding: 12px 14px; border-radius: 10px; display: none; }
.form__status[data-state="ok"] { display: block; background: rgba(22, 163, 74, 0.15); color: rgb(21, 128, 61); }
.form__status[data-state="error"] { display: block; background: rgba(220, 38, 38, 0.12); color: rgb(185, 28, 28); }

/* ── service detail page ───────────────────────────────────── */
.svc-hero { background: var(--ink); }
.svc-hero__wrap {
  max-width: var(--container); margin-inline: auto;
  padding: 88px var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 1023.98px) { .svc-hero__wrap { grid-template-columns: 1fr; gap: 40px; padding: 72px var(--gutter); } }
.svc-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.svc-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-hero__photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; }
.svc-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.handle__wrap {
  max-width: var(--container); margin-inline: auto;
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
@media (max-width: 809.98px) { .handle__wrap { grid-template-columns: 1fr; gap: 32px; } }
.handle__left { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.handle__card {
  background: var(--surface);
  border-radius: 20px;
  padding: 30px 32px;
  box-shadow: 0 20px 50px rgba(12, 28, 44, 0.08);
  display: flex; flex-direction: column; gap: 14px;
}
.handle__card li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--muted); }
.handle__card svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }

.empty-state {
  padding: 28px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white-70); font-size: 16px;
}

/* ── footer ────────────────────────────────────────────────── */
.footer { background: var(--ink-deep); }
.footer__wrap { max-width: var(--container); margin-inline: auto; padding: 56px var(--gutter) 28px; display: flex; flex-direction: column; gap: 32px; }
.footer__top { display: flex; gap: 56px; justify-content: space-between; }
.footer__brand-col { display: flex; flex-direction: column; gap: 12px; max-width: 300px; }
.footer__blurb { font-size: 14px; line-height: 1.6; color: var(--white-70); }
.footer__cols { display: flex; gap: 56px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col-title {
  font-size: 12px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 2px;
}
.footer__col a, .footer__col span { font-size: 14px; color: var(--white-70); transition: color 0.25s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__divider { height: 1px; background: var(--line-light); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer__legal { font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.footer__social { color: var(--white-70); transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.footer__social:hover { transform: scale(1.15); color: #fff; }
.footer__social svg { width: 20px; height: 20px; }

@media (max-width: 1199.98px) {
  .footer__top { flex-direction: column; gap: 32px; }
}
@media (max-width: 809.98px) {
  .footer__cols { flex-wrap: wrap; gap: 32px; }
  .footer__col { min-width: 45%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── scroll reveal ─────────────────────────────────────────── */
/* Reveal-on-scroll only when JS is running — without it, content is simply visible. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
