/* ==========================================================================
   Dumpster Rental New Jersey — main stylesheet
   Modern, slightly futuristic rebuild. Pure CSS, no frameworks.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0d1726;
  --ink-soft: #33405a;
  --ink-muted: #5c6b85;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --line: #e3e9f2;

  --navy-950: #081023;
  --navy-900: #0b1a33;
  --navy-800: #10254a;
  --navy-700: #16315f;

  --accent: #f97316;
  --accent-strong: #c2410c;
  --accent-soft: #ffedd5;
  --amber: #fbbf24;
  --accent-grad: linear-gradient(135deg, #fb923c 0%, #f97316 55%, #ea580c 100%);

  --link: #1d4ed8;
  --link-hover: #0f3bb0;
  --success: #15803d;
  --danger: #b91c1c;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13, 23, 38, 0.06), 0 2px 8px rgba(13, 23, 38, 0.05);
  --shadow: 0 2px 6px rgba(13, 23, 38, 0.05), 0 14px 34px rgba(13, 23, 38, 0.09);
  --shadow-lg: 0 6px 16px rgba(13, 23, 38, 0.08), 0 28px 60px rgba(13, 23, 38, 0.14);

  --font-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --header-h: 76px;
}

/* ---------- 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(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { border-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.15em; }

a { color: var(--link); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--link-hover); text-decoration: underline; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: 0.45em; }

mark {
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.35), rgba(249, 115, 22, 0.28));
  color: inherit;
  padding: 0.05em 0.22em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

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

::selection { background: rgba(249, 115, 22, 0.25); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  will-change: transform;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent-grad);
  color: #1d0f02;
  box-shadow: 0 4px 12px rgba(13, 23, 38, 0.22);
}
.btn-primary:hover { color: #1d0f02; box-shadow: 0 8px 20px rgba(13, 23, 38, 0.28); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); }

.btn-dark {
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-dark:hover { color: #fff; background: var(--navy-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 16, 35, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(4, 8, 20, 0.45); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  padding: 3px;
}
.brand .brand-name span { color: var(--amber); }

/* Primary nav */
.primary-nav { margin-left: auto; }
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav li { margin: 0; position: relative; }
.primary-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 10px 14px;
  border-radius: 10px;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav li.is-open > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  text-decoration: none;
}
.primary-nav a[aria-current="page"] { color: var(--amber); }

.nav-caret {
  width: 10px;
  height: 10px;
  flex: none;
  transition: transform 0.2s ease;
}
li.is-open > a > .nav-caret { transform: rotate(180deg); }

/* Dropdowns */
.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #0d1d3d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(3, 7, 18, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.sub-menu .sub-menu {
  top: -8px;
  left: calc(100% + 6px);
}
li.is-open > .sub-menu,
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a {
  padding: 10px 14px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.header-cta { display: inline-flex; align-items: center; gap: 10px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}
.header-phone:hover { color: var(--amber); border-color: var(--amber); text-decoration: none; }
.header-phone svg { width: 16px; height: 16px; }

.header-cta .btn { padding: 0.72em 1.35em; font-size: 0.95rem; white-space: nowrap; }
.brand { flex-shrink: 0; }
.brand .brand-name { white-space: nowrap; }

/* Tighten header spacing on narrower desktops before the mobile menu kicks in */
@media (max-width: 1360px) {
  .header-inner { gap: 12px; }
  .primary-nav a { padding: 10px 10px; font-size: 0.94rem; }
  .header-phone { padding: 12px; }
  .header-phone span { display: none; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle-box {
  position: relative;
  width: 22px;
  height: 16px;
  display: block;
}
.nav-toggle-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 7px; }
.nav-toggle-box span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

@media (max-width: 1150px) {
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    margin: 0;
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px clamp(16px, 4vw, 32px) 26px;
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { padding: 13px 12px; font-size: 1.05rem; }
  .nav-caret { margin-left: auto; }
  .sub-menu,
  .sub-menu .sub-menu {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    box-shadow: none;
    margin: 2px 0 6px 12px;
    padding: 4px;
  }
  li.is-open > .sub-menu { display: block; }
  .sub-menu a { white-space: normal; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .header-cta { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}

@media (max-width: 560px) {
  .brand .brand-name { font-size: 0.86rem; }
  .header-phone span { display: none; }
  .header-phone { padding: 12px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(249, 115, 22, 0.28), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(37, 99, 235, 0.25), transparent 60%),
              linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 35%, transparent 80%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 110px);
}
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero h1 mark {
  background: none;
  padding: 0;
  color: var(--amber);
}
.hero .hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin: 0;
}
.hero-points svg { width: 17px; height: 17px; color: var(--amber); flex: none; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(2, 6, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: calc(var(--radius-lg) + 14px);
  border: 1px dashed rgba(251, 191, 36, 0.35);
  pointer-events: none;
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { display: none; }
}

/* Photo hero: image as background, quote form beside the headline */
.hero-photo { isolation: isolate; background: var(--navy-950); }
.hero-photo .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 16, 35, 0.95) 0%, rgba(8, 16, 35, 0.86) 42%, rgba(8, 16, 35, 0.6) 100%),
    linear-gradient(0deg, rgba(8, 16, 35, 0.55) 0%, transparent 40%);
  pointer-events: none;
}
.hero-photo::before { z-index: -1; }
.hero-photo .hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  padding-block: clamp(48px, 7vw, 96px);
}
.hero-photo .hero-copy { max-width: 600px; }
.hero-form .quote-card { max-width: none; margin: 0; }
.hero-form .quote-card-head { margin-bottom: 20px; }
.hero-form .quote-card-head h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

@media (max-width: 980px) {
  .hero-photo .hero-inner { grid-template-columns: 1fr; }
  .hero-photo .hero-copy { max-width: none; }
  .hero-photo::after {
    background: linear-gradient(180deg, rgba(8, 16, 35, 0.88) 0%, rgba(8, 16, 35, 0.92) 60%, rgba(8, 16, 35, 0.97) 100%);
  }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  background: radial-gradient(900px 420px at 90% -20%, rgba(249, 115, 22, 0.22), transparent 60%),
              linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 70%, var(--navy-800) 100%);
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 30%, transparent 85%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  padding-block: clamp(44px, 6vw, 84px);
  max-width: 880px;
}
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero p { color: rgba(255, 255, 255, 0.8); max-width: 70ch; margin-bottom: 0; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.88rem;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: rgba(255, 255, 255, 0.65); }
.breadcrumbs li + li::before { content: "/"; color: rgba(255, 255, 255, 0.35); margin-right: 6px; }
.breadcrumbs a { color: rgba(255, 255, 255, 0.78); }
.breadcrumbs a:hover { color: var(--amber); text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: var(--amber); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  margin-top: 14px;
}
.post-meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; color: var(--amber); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-dark {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-900));
  color: rgba(255, 255, 255, 0.85);
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 820px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
}
.section-head.center .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
}
.section-dark .eyebrow { color: var(--amber); }

.lead { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 30px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 30px); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 30px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4ddea; }

/* Service cards (media split rows) */
.service-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.service-row + .service-row { margin-top: clamp(36px, 5vw, 64px); }
.service-row img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
@media (max-width: 820px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row > .service-media { order: -1; }
}

/* Size cards */
.size-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 26px);
}
@media (max-width: 980px) { .size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .size-grid { grid-template-columns: 1fr; } }

.size-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.size-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #ffd9b8; }

.size-card .size-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid #ffd9b8;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.size-card h3 { font-size: 1.22rem; margin-bottom: 0.45em; }
.size-card h3 a { color: inherit; }
.size-card h3 a:hover { color: var(--accent-strong); text-decoration: none; }
.size-card h3 a::after { content: ""; position: absolute; inset: 0; }
.size-card > p { color: var(--ink-soft); font-size: 0.97rem; }
.size-card .size-best {
  margin-top: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.size-card .size-best .label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  margin-bottom: 6px;
}
.size-card .size-best p { margin: 0; }

/* Steps */
.steps-grid {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 26px);
}
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 26px 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-card .step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.18rem; }
.step-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* County list */
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}
.county-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.county-grid li:hover { border-color: #ffd9b8; transform: translateY(-2px); }
.county-grid svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* ---------- Areas Served ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}
.area-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ffd9b8; }
.area-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.area-card h3 svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.area-card ul { list-style: none; margin: 0; padding: 0; }
.area-card li { margin: 0; }
.area-card a {
  display: block;
  padding: 7px 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.area-card a::after { content: "\00a0\2192"; }

.county-grid a { color: inherit; font-weight: 500; }
.county-grid a:hover { color: var(--accent-strong); text-decoration: none; }
.county-grid li:has(a) { padding: 0; }
.county-grid li a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; }

/* ---------- Quote form section ---------- */
.quote-section {
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.quote-card {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4.5vw, 48px);
  overflow: hidden;
}
.quote-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent-grad);
}
.quote-card-head { text-align: center; margin-bottom: 26px; }
.quote-card-head .eyebrow { justify-content: center; }
.quote-card-head .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
}
.quote-card-head h2 { margin-bottom: 0.35em; }
.quote-card-head p { color: var(--ink-muted); max-width: 52ch; margin-inline: auto; margin-bottom: 0; }

.quote-alt {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 18px 0 0;
}
.quote-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  list-style: none;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.quote-trust li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.quote-trust svg { width: 15px; height: 15px; color: var(--success); flex: none; }

/* The embedded EDR form container */
.quote-embed { min-height: 420px; }
.quote-embed [data-edr-form] { min-height: 420px; }

/* Style pass-through for embedded form fields (applies only if the embed
   renders inline inputs rather than an iframe) */
.quote-embed input[type="text"],
.quote-embed input[type="email"],
.quote-embed input[type="tel"],
.quote-embed input[type="number"],
.quote-embed input[type="date"],
.quote-embed select,
.quote-embed textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #d6deea;
  border-radius: 12px;
  padding: 0.78em 1em;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.quote-embed input:hover,
.quote-embed select:hover,
.quote-embed textarea:hover { border-color: #b9c6d9; }
.quote-embed input:focus,
.quote-embed select:focus,
.quote-embed textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}
.quote-embed label { font-weight: 600; font-size: 0.93rem; color: var(--ink-soft); }
.quote-embed button[type="submit"],
.quote-embed input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: #1d0f02;
  background: var(--accent-grad);
  border: none;
  border-radius: 999px;
  padding: 0.9em 2em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 23, 38, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.quote-embed button[type="submit"]:hover,
.quote-embed input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 23, 38, 0.28);
}

/* Split layout: intro + form (size pages) */
.intro-quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 920px) { .intro-quote { grid-template-columns: 1fr; } }
.intro-quote .quote-card { margin-inline: 0; max-width: none; }

/* ---------- Prose (long-form content) ---------- */
.prose { max-width: 820px; }
.prose h2 {
  margin-top: 1.9em;
  padding-top: 0.2em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-block: 10px;
}
.prose figure { margin: 1.8em 0; }
.prose ul li::marker { color: var(--accent); }
.prose a { font-weight: 500; }

.prose table, .table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.97rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 1.4em 0;
}
.prose th, .table-wrap th {
  background: var(--navy-900);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 13px 16px;
}
.prose td, .table-wrap td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.prose tbody tr:nth-child(even) td, .table-wrap tbody tr:nth-child(even) td { background: #f8fafd; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Layout: prose + sidebar CTA */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 1020px) { .content-layout { grid-template-columns: 1fr; } }

.side-rail { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
@media (max-width: 1020px) { .side-rail { position: static; } }

.cta-panel {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 200px at 110% -10%, rgba(249, 115, 22, 0.35), transparent 70%);
  pointer-events: none;
}
.cta-panel h3 { color: #fff; position: relative; }
.cta-panel p { position: relative; font-size: 0.95rem; }
.cta-panel .btn { position: relative; width: 100%; margin-top: 6px; }
.cta-panel .cta-phone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}
.cta-panel .cta-phone:hover { color: var(--amber); text-decoration: none; }
.cta-panel .cta-phone svg { width: 17px; height: 17px; flex: none; }

.mini-nav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.mini-nav h3 { font-size: 1.02rem; margin-bottom: 12px; }
.mini-nav ul { list-style: none; margin: 0; padding: 0; }
.mini-nav li { margin: 0; }
.mini-nav a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.mini-nav a:hover { background: var(--bg); color: var(--accent-strong); text-decoration: none; }
.mini-nav a[aria-current="page"] { color: var(--accent-strong); font-weight: 600; background: var(--accent-soft); }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 28px); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-900); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.post-card .post-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.post-card h2, .post-card h3 { font-size: 1.14rem; line-height: 1.35; margin-bottom: 0.5em; }
.post-card h2 a, .post-card h3 a { color: inherit; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent-strong); text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card .post-excerpt { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.post-card .post-date {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin: 10px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Prev/next post navigation */
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 5vw, 48px);
}
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-nav a:hover { transform: translateY(-3px); border-color: #ffd9b8; box-shadow: var(--shadow); text-decoration: none; color: var(--accent-strong); }
.post-nav .nav-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.post-nav .nav-next { text-align: right; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: radial-gradient(800px 400px at 15% 120%, rgba(249, 115, 22, 0.3), transparent 60%),
              linear-gradient(160deg, var(--navy-950), var(--navy-900));
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, #000 30%, transparent 80%);
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 72px);
}
@media (max-width: 820px) { .cta-band-inner { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: 0.4em; }
.cta-band p { margin-bottom: 0; max-width: 62ch; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 70px);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { width: 56px; height: 56px; border-radius: 14px; background: #fff; padding: 4px; margin-bottom: 14px; }
.footer-brand .footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.footer-brand p { margin-bottom: 8px; }
.footer-brand a { color: rgba(255, 255, 255, 0.85); }
.footer-brand a:hover { color: var(--amber); }

.site-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer ul a { color: rgba(255, 255, 255, 0.72); }
.site-footer ul a:hover { color: var(--amber); text-decoration: none; }

.footer-hours li { display: flex; justify-content: space-between; gap: 14px; }
.footer-hours span:last-child { color: rgba(255, 255, 255, 0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: var(--amber); }

/* ---------- Map embed ---------- */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 360px;
}
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- 404 ---------- */
.error-hero { text-align: center; padding-block: clamp(70px, 12vw, 140px); }
.error-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.1em;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* No-JS fallback: never hide content */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent-strong); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- Utilities ---------- */
.h3-size { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
