/* ==========================================================================
   Metro Drain Specialists — concept demo
   Design: dark-first, guarantee-led, drain-specialist identity
   Palette: logo-derived — deep navy + sky-blue primary + orange accent
   Type: Lato (single-family; Black 900 display, 400/700 body)
   ========================================================================== */

:root {
  /* Palette — OKLCH — light theme, derived from brand palette (white-bg logo blends on light) */
  /* NOTE: "-dark" token names are legacy from the dark-first build; they now carry the
     light-theme base/ink so the section markup didn't need rewiring. */
  --bg:        oklch(0.99 0.003 220);     /* bright cool white — header, hero, contact base */
  --surface:   oklch(0.95 0.007 220);     /* recessed grey — guarantee seams, contact-card, footer, seal-inner */
  --surface-2: oklch(0.995 0.002 220);    /* white elevated — cards, badges, nav drawer */
  --lt-bg:     oklch(0.97 0.006 220);     /* alt section tint — problem/services/reviews */
  --lt-surface:oklch(0.93 0.010 220);
  --ink-dark:  oklch(0.22 0.032 235);     /* primary text on light base — near logo navy */
  --muted-dark:oklch(0.45 0.032 232);     /* muted text — ≥4.5:1 on bg/surface/lt-bg */
  --ink-lt:    oklch(0.20 0.032 235);     /* text on -lt sections */
  --muted-lt:  oklch(0.44 0.038 232);
  --primary:   oklch(0.50 0.128 235);     /* interactive blue — links, buttons, accents (AA on white) */
  --primary-d: oklch(0.41 0.108 236);     /* darker — heritage/cta bands, hover */
  --primary-lt:oklch(0.93 0.045 228);     /* light blue tint — pills */
  --accent:    oklch(0.70 0.155 55);      /* logo orange (worker shirt) */
  --accent-d:  oklch(0.58 0.145 52);
  --line-dark: oklch(0.89 0.012 220);
  --line-lt:   oklch(0.87 0.014 220);
  --seal-ring: oklch(0.50 0.105 220);

  /* Type scale (fluid, 1.27 ratio) */
  --step--1: clamp(0.83rem, 0.80rem + 0.14vw, 0.91rem);
  --step-0:  clamp(1rem, 0.96rem + 0.20vw, 1.10rem);
  --step-1:  clamp(1.27rem, 1.18rem + 0.44vw, 1.52rem);
  --step-2:  clamp(1.60rem, 1.42rem + 0.93vw, 2.05rem);
  --step-3:  clamp(2.04rem, 1.72rem + 1.62vw, 2.90rem);
  --step-4:  clamp(2.58rem, 2.06rem + 2.60vw, 4.10rem);

  --maxw: 1160px;
  --r:    14px;
  --r-s:  9px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --z-head:  100;
  --z-ribbon: 200;
  --z-call:  150;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

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

/* ---------- ribbon ---------- */
.ribbon {
  background: var(--accent);
  color: oklch(0.18 0.04 74);
  font-size: var(--step--1);
  font-family: 'Lato', sans-serif;
  text-align: center;
  padding: 0.55rem 1rem;
  position: relative;
  z-index: var(--z-ribbon);
}
.ribbon strong { font-weight: 700; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-head);
  background: oklch(0.99 0.003 220 / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.name {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: var(--step-0);
  color: var(--ink-dark);
  line-height: 1.2;
}
.name span {
  display: block;
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--muted-dark);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}
.site-nav a {
  color: var(--muted-dark);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  transition: color 0.18s;
}
.site-nav a:hover { color: var(--ink-dark); }

.btn-nav {
  background: var(--primary);
  color: oklch(0.97 0.006 220) !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-s);
  font-weight: 600 !important;
  font-size: var(--step--1) !important;
  transition: background 0.18s !important;
}
.btn-nav:hover { background: var(--primary-d) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink-dark);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  background: var(--bg);
  padding-block: clamp(4rem, 9vw, 7rem) 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem 4rem;
  align-items: center;
}
.hero-copy { max-width: 580px; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.badge {
  background: var(--surface-2);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  letter-spacing: 0.01em;
}

h1 {
  font-family: 'Lato', sans-serif;
  font-size: var(--step-4);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink-dark);
  text-wrap: balance;
  margin-bottom: 1.25rem;
}
h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-copy > p {
  font-size: var(--step-1);
  color: var(--muted-dark);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: oklch(0.97 0.006 220);
  font-weight: 700;
  font-size: var(--step-0);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-s);
  text-decoration: none;
  transition: background 0.18s var(--ease), transform 0.12s;
}
.btn-primary:hover { background: var(--primary-d); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-lg { font-size: var(--step-1); padding: 0.9rem 2rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--muted-dark);
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  transition: color 0.18s;
}
.btn-ghost:hover { color: var(--ink-dark); }

.btn-primary-light {
  display: inline-flex;
  align-items: center;
  background: oklch(0.97 0.006 220);
  color: var(--primary-d);
  font-weight: 700;
  font-size: var(--step-0);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-s);
  text-decoration: none;
  transition: background 0.18s var(--ease);
}
.btn-primary-light:hover { background: var(--primary-lt); }

/* ---------- seal ---------- */
.hero-seal {
  flex-shrink: 0;
  width: clamp(200px, 25vw, 280px);
}
.seal-svg { width: 100%; height: auto; }
.seal-ring-outer {
  fill: none;
  stroke: var(--seal-ring);
  stroke-width: 3;
  stroke-dasharray: 8 4;
}
.seal-ring-inner {
  fill: var(--surface);
  stroke: var(--seal-ring);
  stroke-width: 2;
}
.seal-arc-text, .seal-arc-text-bot {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: var(--muted-dark);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
/* bottom arc carries a longer string on the same radius — tighten tracking to fit */
.seal-arc-text-bot { letter-spacing: 1px; }
.seal-main-1 {
  font-family: 'Lato', sans-serif;
  font-size: 32px;
  font-weight: 900;
  fill: var(--primary);
  letter-spacing: -0.02em;
}
.seal-main-2 {
  font-family: 'Lato', sans-serif;
  font-size: 22px;
  font-weight: 700;
  fill: var(--ink-dark);
  letter-spacing: 0.04em;
}
.seal-main-3 {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 600;
  fill: var(--muted-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- hero stats ---------- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.75rem 1rem;
  border-right: 1px solid var(--line-dark);
}
.hstat:last-child { border-right: none; }
.hstat-n {
  font-family: 'Lato', sans-serif;
  font-size: var(--step-3);
  font-weight: 900;
  color: var(--ink-dark);
  line-height: 1;
}
.hstar { color: var(--accent); }
.hstat-l {
  font-size: var(--step--1);
  color: var(--muted-dark);
  font-weight: 500;
}

/* ---------- problems (light section) ---------- */
.problems {
  background: var(--lt-bg);
  padding-block: clamp(4rem, 8vw, 6rem);
  color: var(--ink-lt);
}
.section-intro {
  max-width: 560px;
  margin-bottom: 3rem;
}
.section-intro h2 {
  font-family: 'Lato', sans-serif;
  font-size: var(--step-3);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink-lt);
  margin-bottom: 0.6rem;
  text-wrap: balance;
}
.section-intro p {
  color: var(--muted-lt);
  font-size: var(--step-0);
}

.problems-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line-lt);
  border-radius: var(--r);
  overflow: hidden;
}
.problem {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 2rem;
  align-items: start;
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid var(--line-lt);
  background: oklch(1 0 0);
  transition: background 0.15s;
}
.problem:last-child { border-bottom: none; }
.problem:hover { background: var(--lt-surface); }

.prob-num {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.15rem;
  font-family: 'Lato', sans-serif;
  font-size: var(--step-2);
  font-weight: 900;
  color: var(--line-lt);
  line-height: 1;
}
.prob-body h3 {
  font-family: 'Lato', sans-serif;
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink-lt);
  margin-bottom: 0.5rem;
}
.prob-body p {
  color: var(--muted-lt);
  max-width: 60ch;
  margin-bottom: 0.75rem;
}
.prob-fix {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--primary-d);
  background: oklch(0.92 0.040 218);
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
}

/* ---------- guarantees (dark) ---------- */
.guarantees {
  background: var(--surface);
  padding-block: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.g-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.g-card {
  background: var(--surface-2);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.g-card:first-child { border-radius: var(--r) 0 0 var(--r); }
.g-card:last-child  { border-radius: 0 var(--r) var(--r) 0; }
.g-mark {
  width: 44px;
  height: 44px;
  color: var(--primary);
}
.g-mark svg { width: 44px; height: 44px; }
.g-card h3 {
  font-family: 'Lato', sans-serif;
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink-dark);
}
.g-card p {
  color: var(--muted-dark);
  font-size: var(--step-0);
  line-height: 1.6;
}

/* ---------- services (light) ---------- */
.services {
  background: var(--lt-bg);
  padding-block: clamp(4rem, 8vw, 6rem);
  color: var(--ink-lt);
}
.services h2 {
  font-family: 'Lato', sans-serif;
  font-size: var(--step-3);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--ink-lt);
  margin-bottom: 2.5rem;
}
.svc-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.svc {
  border: 1px solid var(--line-lt);
  border-radius: var(--r);
  padding: 1.75rem 1.5rem;
  background: oklch(1 0 0);
}
.svc h3 {
  font-family: 'Lato', sans-serif;
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink-lt);
  margin-bottom: 0.6rem;
}
.svc p {
  color: var(--muted-lt);
  font-size: var(--step-0);
  line-height: 1.6;
}
.svc-note {
  font-size: var(--step--1);
  color: var(--muted-lt);
}

/* ---------- heritage (dark) ---------- */
.heritage {
  background: var(--primary-d);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  color: oklch(0.97 0.006 220);
}
.heritage-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem 5rem;
  align-items: center;
}
.her-year {
  font-family: 'Lato', sans-serif;
  font-size: var(--step-4);
  font-weight: 900;
  opacity: 0.25;
  line-height: 1;
  margin-bottom: -0.25rem;
}
.her-text h2 {
  font-family: 'Lato', sans-serif;
  font-size: var(--step-3);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.her-text p {
  opacity: 0.8;
  max-width: 52ch;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.her-numbers {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  flex-shrink: 0;
}
.her-stat { display: flex; flex-direction: column; gap: 0.15rem; text-align: right; }
.her-n {
  font-family: 'Lato', sans-serif;
  font-size: var(--step-3);
  font-weight: 900;
  line-height: 1;
}
.her-l { font-size: var(--step--1); opacity: 0.7; font-weight: 500; }

/* ---------- reviews (light) ---------- */
.reviews {
  background: var(--lt-bg);
  padding-block: clamp(4rem, 8vw, 6rem);
  color: var(--ink-lt);
}
.rev-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
}
.rev-header h2 {
  font-family: 'Lato', sans-serif;
  font-size: var(--step-3);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--ink-lt);
}
.rev-score {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step-0);
  color: var(--muted-lt);
}
.rev-stars { color: var(--accent-d); font-size: var(--step-1); }

.rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.rev-card {
  background: oklch(1 0 0);
  border: 1px solid var(--line-lt);
  border-radius: var(--r);
  padding: 2rem;
}
.rev-card p {
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink-lt);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.rev-card cite {
  font-style: normal;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted-lt);
}

/* ---------- contact (dark) ---------- */
.contact {
  background: var(--bg);
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line-dark);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
  align-items: start;
}
.cta-block h2 {
  font-family: 'Lato', sans-serif;
  font-size: var(--step-3);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink-dark);
  margin-bottom: 0.75rem;
}
.cta-block p {
  color: var(--muted-dark);
  margin-bottom: 1.75rem;
  max-width: 48ch;
}
.cta-hours {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  font-size: var(--step--1) !important;
  color: var(--muted-dark) !important;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: 2rem;
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cc-name {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--ink-dark);
}
.contact-card p { color: var(--muted-dark); line-height: 1.55; }
.contact-card a { color: var(--primary); text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
}
.trust-chips li {
  background: var(--surface-2);
  border: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-size: var(--step--1);
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
}

/* ---------- footer ---------- */
.site-foot {
  background: var(--surface);
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--step--1);
  color: var(--muted-dark);
}
.foot-inner a { color: var(--muted-dark); text-decoration: none; }
.foot-inner a:hover { color: var(--ink-dark); }
.foot-credit { opacity: 0.6; }

/* ---------- call rail (mobile) ---------- */
.call-rail {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-call);
  background: var(--primary);
  color: oklch(0.97 0.006 220);
  font-weight: 700;
  font-size: var(--step-0);
  padding: 0.85rem 2rem;
  border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 4px 24px oklch(0.54 0.115 222 / 0.55);
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: background 0.18s;
}
.call-rail:hover { background: var(--primary-d); }

/* ---------- reveal animations ---------- */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js-anim .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-seal { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hstat { border-bottom: 1px solid var(--line-dark); }
  .hstat:nth-child(odd) { border-right: 1px solid var(--line-dark); }
  .hstat:nth-child(even) { border-right: none; }
  .hstat:nth-last-child(-n+2) { border-bottom: none; }
  .g-grid { grid-template-columns: 1fr; gap: 2px; }
  .g-card:first-child { border-radius: var(--r) var(--r) 0 0; }
  .g-card:last-child  { border-radius: 0 0 var(--r) var(--r); }
  .svc-row { grid-template-columns: repeat(2, 1fr); }
  .heritage-inner { grid-template-columns: 1fr; }
  .her-numbers { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; text-align: left; }
  .her-stat { text-align: left; }
  .rev-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line-dark); padding: 1.25rem; gap: 0.75rem; }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 1fr; }
  .problem { grid-template-columns: 56px 1fr; padding: 1.5rem 1.25rem 1.5rem 0; }
  .call-rail { display: flex; }
  body { padding-bottom: 5rem; }
}
