/* =====================================================================
   Delaware Dumpster Rental — site stylesheet
   Palette: deep navy + brand dumpster green, with a neon-green signal accent.
   ===================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-950: #060f19;
  --navy-900: #0a1826;
  --navy-800: #102336;
  --navy-700: #1a3149;
  --green-800: #0f4a2a;
  --green-700: #145f37;
  --green-600: #1a7a45;
  --green-500: #20a05a;
  --signal: #3ee08a;
  --signal-soft: rgba(62, 224, 138, .16);
  --amber: #ffbe3d;
  --paper: #f3f6f5;
  --surface: #ffffff;
  --line: #dfe7e3;
  --line-dark: rgba(255, 255, 255, .1);
  --text: #13212b;
  --muted: #536370;
  --on-dark: #e8f0ee;
  --on-dark-muted: #a6b6bf;
  --danger: #c43d3d;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 24, 38, .06), 0 2px 8px rgba(10, 24, 38, .05);
  --shadow: 0 2px 4px rgba(10, 24, 38, .05), 0 12px 32px rgba(10, 24, 38, .09);
  --shadow-lg: 0 4px 10px rgba(6, 15, 25, .12), 0 30px 70px rgba(6, 15, 25, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1220px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green-600); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; color: var(--navy-900); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: var(--navy-950); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--signal); color: var(--navy-950); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-600); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.4em;
  border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .01em; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(26, 122, 69, .55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--signal { --btn-bg: var(--signal); --btn-fg: var(--navy-950); }
.btn--signal:hover { box-shadow: 0 10px 30px -6px rgba(62, 224, 138, .6); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .35); }
.btn--ghost:hover { --btn-bd: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--green-700); --btn-bd: var(--green-600); }
.btn--outline:hover { --btn-bg: var(--green-600); --btn-fg: #fff; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow .3s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(6, 15, 25, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: background-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.site-header.is-scrolled::before, .nav-open .site-header::before { background: rgba(6, 15, 25, .96); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--signal), transparent); opacity: .45; }
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); max-width: 1360px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.brand img { width: 60px; height: 60px; border-radius: 12px; background: #fff; padding: 2px; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.05; letter-spacing: -.01em; }
.brand-text small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; margin: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 9px; border-radius: 8px;
  color: var(--on-dark); font-size: .92rem; font-weight: 500; text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-link[aria-current="page"], .has-sub.is-current > .nav-link { color: var(--signal); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .25s var(--ease); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 50%; min-width: 270px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--navy-900); border: 1px solid var(--line-dark); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.submenu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.submenu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--on-dark); text-decoration: none; font-size: .94rem; line-height: 1.35; }
.submenu a:hover, .submenu a[aria-current="page"] { background: rgba(62, 224, 138, .1); color: var(--signal); }
.submenu li { margin: 0; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub:hover > .nav-link .chev, .has-sub.is-open > .nav-link .chev { transform: rotate(180deg); }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: .98rem; padding: 8px 4px; }
.header-phone svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--signal-soft); color: var(--signal); }
.header-phone:hover { color: var(--signal); }
.header-cta .btn { min-height: 42px; padding: .6em 1.1em; font-size: .94rem; }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1440px) {
  .header-phone span { display: none; }
}
@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 20px var(--gutter) 40px;
    background: var(--navy-950); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1.08rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .submenu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 12px; display: none; min-width: 0; }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { transform: none; }
  .has-sub.is-open > .submenu { display: block; transform: none; }
  .mobile-cta { display: grid !important; gap: 10px; margin-top: 24px; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1201px) { .mobile-cta { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--on-dark); background: var(--navy-950); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { /* legibility gradient */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(62, 224, 138, .14), transparent 60%),
    linear-gradient(100deg, rgba(6, 15, 25, .96) 0%, rgba(6, 15, 25, .88) 42%, rgba(6, 15, 25, .62) 100%);
}
.hero::after { /* futuristic grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 100px); }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 .accent { color: var(--signal); }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--on-dark); max-width: 60ch; opacity: .92; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--signal);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; box-shadow: 0 0 12px currentColor; }
.hero .eyebrow { padding: 7px 14px 7px 12px; border: 1px solid rgba(62, 224, 138, .35); border-radius: 999px; background: rgba(62, 224, 138, .07); letter-spacing: .08em; text-transform: none; font-size: .88rem; }
.hero .eyebrow::before { width: 8px; height: 8px; border-radius: 50%; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(62, 224, 138, .6); } 50% { box-shadow: 0 0 0 7px rgba(62, 224, 138, 0); } }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero-badges li { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); font-size: .92rem; color: var(--on-dark); }
.hero-badges .stars { color: var(--amber); letter-spacing: 2px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--signal); flex: none; }

.breadcrumbs { margin-bottom: 18px; font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; color: var(--on-dark-muted); }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .3); }
.breadcrumbs a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--signal); }
.breadcrumbs [aria-current] { color: #fff; }

/* ---------- Quote card (wraps the EDR Forms embed) ---------- */
.quote-card {
  position: relative; scroll-margin-top: calc(var(--header-h) + 16px);
  width: 100%; max-width: 520px; justify-self: end;
  background: var(--surface); color: var(--text);
  border-radius: var(--radius-lg); padding: clamp(24px, 3.2vw, 36px);
  box-shadow: 0 1px 2px rgba(6, 15, 25, .08), 0 24px 60px -12px rgba(6, 15, 25, .45);
}
.quote-head { margin-bottom: 22px; }
.quote-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 12px 5px 10px;
  border-radius: 999px; background: #eaf7f0; color: var(--green-700);
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
}
.quote-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }
.quote-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); line-height: 1.15; letter-spacing: -.015em; color: var(--navy-900); margin: 0 0 8px; }
.quote-head p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.55; }

/* Theme tokens for the embed. They inherit into its shadow DOM and override its defaults; site.js adds finer styling once it renders. */
.quote-embed [data-edr-form] > div {
  --color-surface: #fff;
  --color-surface-hover: #f4f8f6;
  --color-ink: var(--text);
  --color-ink-muted: var(--muted);
  --color-ink-inverted: #fff;
  --color-border: var(--line);
  --color-border-strong: #cfdcd5;
  --color-primary: var(--green-600);
  --color-primary-hover: var(--green-700);
  --color-accent: var(--green-500);
  --color-focus: var(--green-700);
  --color-danger: var(--danger);
  --color-danger-subtle: #fff4f4;
  --color-success: var(--green-700);
  --radius-field: 10px;
  --radius-panel: 0;
  --font-sans: var(--font-body);
  --tab-active-bg: var(--green-600);
  --tab-active-text: #fff;
  --tab-inactive-bg: transparent;
  --tab-inactive-text: var(--muted);
}
/* Placeholder while the embed loads, so the card doesn't jump. */
.quote-embed [data-edr-form]:empty {
  min-height: 236px; border-radius: 12px;
  background:
    linear-gradient(#e9efec, #e9efec) 0 0 / 38% 14px no-repeat,
    linear-gradient(#f2f6f4, #f2f6f4) 0 26px / 100% 48px no-repeat,
    linear-gradient(#e9efec, #e9efec) 0 100% / 100% 52px no-repeat;
  animation: quotePulse 1.4s ease-in-out infinite;
}
@keyframes quotePulse { 50% { opacity: .55; } }
.quote-fallback { display: none; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--paper); color: var(--text); font-size: .95rem; }
.quote-fallback a { color: var(--green-700); font-weight: 700; }
.no-js .quote-fallback, .quote-embed.is-failed .quote-fallback { display: block; }
.no-js .quote-embed [data-edr-form], .quote-embed.is-failed [data-edr-form] { display: none; }

.quote-trust {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  margin: 22px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--muted);
}
.quote-trust li { margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.quote-trust svg { width: 15px; height: 15px; flex: none; color: var(--green-600); }
.quote-trust a { color: var(--navy-900); font-weight: 600; text-decoration: none; white-space: nowrap; }
.quote-trust a:hover { color: var(--green-700); text-decoration: underline; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .quote-card { justify-self: center; max-width: 560px; }
}
@media (max-width: 480px) {
  .quote-card { padding: 22px 18px; border-radius: var(--radius); }
  .quote-trust { flex-direction: column; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .quote-embed [data-edr-form]:empty { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--white { background: var(--surface); }
.section--dark { background: var(--navy-950); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--on-dark-muted); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: var(--on-dark-muted); }
.lead { font-size: 1.15rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--navy-800); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media-frame:hover img { transform: scale(1.03); }
.media-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.media-tag { position: absolute; left: 16px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(6, 15, 25, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: .85rem; font-weight: 600; font-family: var(--font-display); }
.media-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.stat { position: relative; padding: 24px 22px; border-radius: var(--radius); background: var(--navy-950); color: #fff; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(62,224,138,.25), transparent 70%); }
.stat-value { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1; color: var(--signal); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.stat-label { margin: 0; color: var(--on-dark-muted); font-size: .95rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* Size tabs */
.size-tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.tablist { display: flex; gap: 6px; padding: 10px; background: var(--navy-950); overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--on-dark-muted); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.tab[aria-selected="true"] { background: var(--signal); color: var(--navy-950); box-shadow: 0 0 22px -4px rgba(62, 224, 138, .7); }
.tabpanel { padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.tabpanel[hidden] { display: none; }
.tabpanel.is-active { animation: fadeUp .45s var(--ease); }
.size-badge { position: relative; aspect-ratio: 1; border-radius: var(--radius); display: grid; place-content: center; text-align: center; background: linear-gradient(145deg, var(--green-700), var(--navy-900)); color: #fff; overflow: hidden; }
.size-badge::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; }
.size-badge strong { position: relative; font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--signal); }
.size-badge span { position: relative; font-family: var(--font-display); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; }
.size-badge em { position: relative; display: block; margin-top: 10px; font-style: normal; font-size: .8rem; color: var(--on-dark-muted); }
.tabpanel ul { list-style: none; padding: 0; }
.tabpanel li { position: relative; padding-left: 30px; }
.tabpanel li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--signal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7a45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 700px) { .tabpanel { grid-template-columns: 1fr; } .size-badge { aspect-ratio: auto; padding: 22px; } .size-badge strong { font-size: 3rem; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Size cards (sizes page) */
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.size-card { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.size-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(32, 160, 90, .4); }
.size-card h3 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.size-card h3 strong { font-size: 2.2rem; color: var(--green-600); line-height: 1; }
.size-card .dims { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 6px; background: var(--paper); font-size: .82rem; font-weight: 600; color: var(--navy-700); font-variant-numeric: tabular-nums; }
.size-card p { font-size: .96rem; color: var(--muted); }
.size-card ul { margin: 0; padding-left: 1.1em; font-size: .94rem; }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px); color: #fff; background: var(--navy-950); }
.cta-band .cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-band .cta-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 15, 25, .95) 10%, rgba(6, 15, 25, .6) 70%, rgba(15, 74, 42, .5)); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band .cta-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .4em; text-transform: capitalize; color: #fff; }
.cta-band p { max-width: 62ch; color: var(--on-dark); opacity: .9; }

/* Cards */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(32, 160, 90, .35); }
.card p:last-child { margin-bottom: 0; }
.card .card-num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--navy-950); color: var(--signal); font-family: var(--font-display); font-weight: 700; box-shadow: 0 0 0 4px var(--signal-soft); }

/* Testimonials */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.review { position: relative; display: flex; flex-direction: column; padding: 30px; margin: 0; border-radius: var(--radius-lg); background: var(--navy-900); border: 1px solid var(--line-dark); transition: transform .3s var(--ease), border-color .3s; }
.review:hover { transform: translateY(-4px); border-color: rgba(62, 224, 138, .35); }
.review::before { content: "\201C"; position: absolute; right: 24px; top: 6px; font-family: Georgia, serif; font-size: 6rem; line-height: 1; color: rgba(62, 224, 138, .14); }
.review .stars { color: var(--amber); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 12px; }
.review h3 { font-size: 1.15rem; color: #fff; margin-bottom: .6em; }
.review blockquote { margin: 0 0 20px; color: var(--on-dark-muted); font-size: .98rem; }
.review blockquote p { margin: 0; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; color: #fff; }
.review .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--green-600), var(--signal)); color: var(--navy-950); font-weight: 700; }
@media (max-width: 800px) { .reviews { grid-template-columns: 1fr; } }

/* Question list */
.q-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: q; }
.q-list li { counter-increment: q; position: relative; margin: 0; padding: 18px 20px 18px 64px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--navy-800); line-height: 1.5; }
.q-list li::before { content: counter(q, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font-family: var(--font-display); font-weight: 700; color: var(--green-600); font-size: 1.05rem; }

/* County / area links */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.area-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--navy-900); font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.area-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--signal); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.area-card:hover { transform: translateY(-3px); border-color: rgba(32, 160, 90, .4); box-shadow: var(--shadow); color: var(--green-700); }
.area-card:hover::before { transform: scaleY(1); }
.area-card > svg { width: 22px; height: 22px; flex: none; color: var(--green-600); transition: transform .3s var(--ease); }
.area-card:hover > svg { transform: translateX(4px); }
.area-card .pin { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--signal-soft); color: var(--green-600); }
.area-card .pin svg { width: 20px; height: 20px; }
.area-card > span:not(.pin) { flex: 1; }
.section--dark .area-card { background: var(--navy-900); border-color: var(--line-dark); color: #fff; }
@media (max-width: 860px) { .area-grid { grid-template-columns: 1fr; } }

/* Accordion */
.accordion { display: grid; gap: 12px; }
.acc { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s; }
.acc[open] { border-color: rgba(32, 160, 90, .45); box-shadow: var(--shadow); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--navy-900); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h3 { margin: 0; font-size: inherit; }
.acc summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7a45' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.acc[open] summary::after { transform: rotate(135deg); background-color: var(--signal-soft); }
.acc summary:hover { color: var(--green-700); }
.acc-body { padding: 0 22px 8px; color: var(--muted); }
.acc-body > :last-child { margin-bottom: 14px; }

/* ---------- Inner page layout ---------- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 1000px) { .page-grid { grid-template-columns: 1fr; } }

.prose { font-size: 1.0625rem; color: #26343d; max-width: 78ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.9em; padding-top: .2em; position: relative; }
.prose h2::before { content: ""; display: block; width: 40px; height: 3px; margin-bottom: 18px; border-radius: 3px; background: linear-gradient(90deg, var(--green-600), var(--signal)); }
.prose > h2:first-child::before { margin-top: 0; }
.prose h3 { margin-top: 1.6em; color: var(--navy-800); }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--green-500); transform: rotate(45deg); }
.prose ul.list-check li::before, .prose ul.list-x li::before { left: 0; top: .32em; width: 19px; height: 19px; border-radius: 50%; transform: none; background: var(--signal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7a45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.prose ul.list-x li::before { background: #fbe9e9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c43d3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.prose .intro { font-size: 1.16rem; color: var(--navy-800); line-height: 1.65; }
.prose a { font-weight: 600; }
.prose .meta-dates { display: inline-block; padding: 10px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.prose .faq-group { margin-top: 2.2em; }
.prose .faq-group:first-child { margin-top: 0; }
.prose .acc-body ul li { color: var(--muted); }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.side-card { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.side-card h2 { font-size: 1.3rem; margin-bottom: 14px; }
.side-card--dark { position: relative; overflow: hidden; background: var(--navy-950); border-color: var(--line-dark); color: var(--on-dark); }
.side-card--dark::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(62,224,138,.22), transparent 70%); pointer-events: none; }
.side-card--dark h2 { color: #fff; }
.side-card--dark p { color: var(--on-dark-muted); margin: 18px 0 10px; font-family: var(--font-display); font-weight: 600; color: #fff; }
.side-card .btn { width: 100%; margin-top: 10px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { margin: 0; border-top: 1px solid var(--line); }
.side-links li:first-child { border-top: 0; }
.side-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; color: var(--navy-800); text-decoration: none; font-weight: 500; font-size: .97rem; }
.side-links a::after { content: "\2192"; color: var(--green-600); transition: transform .25s var(--ease); }
.side-links a:hover { color: var(--green-600); }
.side-links a:hover::after { transform: translateX(4px); }
.side-links a[aria-current="page"] { color: var(--green-600); font-weight: 650; }
@media (max-width: 1000px) { .sidebar { position: static; } }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.contact-card { padding: 24px; border-radius: var(--radius); background: var(--navy-950); color: var(--on-dark); text-decoration: none; border: 1px solid var(--line-dark); transition: transform .3s var(--ease), border-color .3s; display: block; }
a.contact-card:hover { transform: translateY(-3px); border-color: rgba(62, 224, 138, .45); color: #fff; }
.contact-card svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--signal-soft); color: var(--signal); margin-bottom: 14px; }
.contact-card .label { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 4px; }
.contact-card strong { font-family: var(--font-display); font-size: 1.05rem; color: #fff; word-break: break-word; }
@media (max-width: 800px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-950); color: var(--on-dark-muted); padding-top: clamp(56px, 8vw, 88px); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--signal), transparent); opacity: .5; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px clamp(22px, 4vw, 40px); margin-bottom: clamp(44px, 6vw, 64px); border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--green-700), var(--navy-800)); border: 1px solid rgba(62, 224, 138, .25); }
.footer-cta p { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; color: #fff; line-height: 1.2; }
.footer-cta p small { display: block; font-family: var(--font-body); font-size: .95rem; font-weight: 400; color: var(--on-dark); opacity: .85; margin-top: 4px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { font-size: .95rem; margin: 18px 0; max-width: 34ch; }
.footer-brand .brand img { width: 72px; height: 72px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { margin: 0; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 500; word-break: break-word; }
.footer-contact a:hover { color: var(--signal); }
.footer-contact svg { width: 18px; height: 18px; color: var(--signal); flex: none; }
.side-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--navy-900); margin: 0 0 8px; }
.prose .acc-plain { padding: 0 4px; }
.prose .acc-plain > :last-child { margin-bottom: 0; }
.footer-title, .footer-col h2 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0 0 9px; }
.footer-col a { color: var(--on-dark-muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--signal); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 48px; padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }
.footer-bottom a { color: var(--on-dark-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--signal); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 15, 25, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-dark); transform: translateY(110%); transition: transform .35s var(--ease); }
  .call-bar.is-visible { transform: none; }
  .call-bar .btn { min-height: 46px; padding: .6em .8em; font-size: .95rem; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 76px; }
}

/* ---------- Simple pages (thanks / 404) ---------- */
.status-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding-block: 72px; }
.status-page .container { max-width: 760px; }
.status-icon { width: 92px; height: 92px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 50%; background: var(--signal-soft); color: var(--signal); box-shadow: 0 0 0 10px rgba(62, 224, 138, .06), 0 0 50px rgba(62, 224, 138, .35); }
.status-icon svg { width: 44px; height: 44px; }
.status-page h1 { color: #fff; }
.status-page p { color: var(--on-dark); font-size: 1.12rem; }
.status-page .btn-row { justify-content: center; }
.status-code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; margin: 0 0 10px; background: linear-gradient(180deg, #fff, rgba(62, 224, 138, .6)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.04em; }
.status-links { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; padding: 0; }
.status-links a { color: var(--on-dark-muted); }
.status-links a:hover { color: var(--signal); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
/* Hero entrance never starts fully transparent, so the LCP element is painted on the first frame. */
@keyframes heroIn { from { opacity: .2; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: heroIn .7s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.hero-copy > *:nth-child(5) { animation-delay: .24s; }
.hero-copy > *:nth-child(6) { animation-delay: .3s; }
.hero .quote-card { animation: heroIn .8s .1s var(--ease) both; }

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

@media print {
  .site-header, .call-bar, .quote-card, .sidebar, .footer-cta, .hero-media { display: none !important; }
  .hero, .site-footer { background: none; color: #000; }
  .hero h1 { color: #000; }
}

/* Tables inside page copy (e.g. size comparison) */
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.6em; font-size: .97rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--navy-950); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: #f8fbf9; }
.prose td:first-child { font-family: var(--font-display); font-weight: 700; color: var(--green-700); white-space: nowrap; }
.prose td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose ol { padding-left: 1.3em; }
.prose ol li::marker { color: var(--green-600); font-weight: 700; }
@media (max-width: 640px) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .prose td { padding: 2px 0; border: 0; white-space: normal !important; }
  .prose tbody tr:nth-child(even) { background: #f8fbf9; }
  .prose tbody tr:nth-child(even) td { background: transparent; }
}
