/* =========================================================================
   Emergency Oil Delivery Long Island - Global Stylesheet
   Mobile-first, no framework, single source of truth.
   ========================================================================= */

/* ---------- 1. Resets ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding-left: 1.25rem; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--color-amber); outline-offset: 2px; }

/* ---------- 2. Design tokens ---------- */
:root {
  /* Colors */
  --color-red: #C8102E;
  --color-red-dark: #9E0C24;
  --color-red-light: #E63950;
  --color-navy: #0F1B2D;
  --color-navy-soft: #1B2A44;
  --color-amber: #F59E0B;
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F3F4F6;
  --color-text: #1F2937;
  --color-text-soft: #4B5563;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-border-strong: #D1D5DB;
  --color-success: #15803D;

  /* Typography */
  --font-heading: 'Lato', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 3.25rem;
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-base: 1.6;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;

  /* Layout */
  --max-content: 1200px;
  --max-prose: 760px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15,27,45,0.06);
  --shadow: 0 4px 12px rgba(15,27,45,0.08);
  --shadow-lg: 0 12px 28px rgba(15,27,45,0.12);
  --header-h: 64px;

  --transition: 180ms ease;
}

/* ---------- 3. Base typography ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: var(--lh-tight);
  color: var(--color-navy);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { color: var(--color-text); }
p + p { margin-top: var(--space-4); }

a { color: var(--color-red); transition: color var(--transition); }
a:hover { color: var(--color-red-dark); }

/* ---------- 4. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding-left: clamp(1.25rem, 5vw, 2rem);
  padding-right: clamp(1.25rem, 5vw, 2rem);
}
.section { padding: var(--space-10) 0; }
.section--tight { padding: var(--space-8) 0; }
.section--alt { background: var(--color-surface-alt); }
.section--navy { background: var(--color-navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--red { background: var(--color-red); color: #fff; }
.section--red h2, .section--red h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: var(--fs-xs);
  color: var(--color-red);
  margin-bottom: var(--space-3);
}
.section--navy .eyebrow, .section--red .eyebrow { color: var(--color-amber); }

.lead { font-size: var(--fs-md); color: var(--color-text-soft); max-width: var(--max-prose); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto var(--space-4); }
.section-head .eyebrow { margin-bottom: var(--space-3); }
.section-head h2 { margin-bottom: var(--space-3); }
.section-head .lead { margin: 0 auto; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-red); color: #fff; }
.btn--primary:hover { background: var(--color-red-dark); color: #fff; box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn--amber { background: var(--color-amber); color: var(--color-navy); }
.btn--amber:hover { background: #d97706; color: #fff; }
.btn--outline { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn--outline:hover { background: var(--color-navy); color: #fff; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: var(--fs-base); }
.btn--full { width: 100%; }
.btn--phone::before {
  content: "";
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8a15.5 15.5 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.36 2.3.55 3.5.55a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.2.2 2.4.55 3.5a1 1 0 0 1-.25 1z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8a15.5 15.5 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.36 2.3.55 3.5.55a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.2.2 2.4.55 3.5a1 1 0 0 1-.25 1z'/></svg>") center/contain no-repeat;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-4);
}
.logo { display: flex; align-items: center; gap: var(--space-3); }
.logo img { height: 36px; width: auto; }
.logo-text { font-family: var(--font-heading); font-weight: 900; color: var(--color-navy); font-size: var(--fs-base); line-height: 1; }
.logo-text small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: 2px; letter-spacing: 0.04em; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3);
  margin-right: -0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow);
}
.primary-nav.open { display: block; }
.nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: var(--space-3) var(--space-2);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-item.current > .nav-link { color: var(--color-red); }

.has-dropdown > .nav-link::after {
  content: "";
  display: inline-block;
  margin-left: 0.4em;
  border: 5px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
  transform: translateY(2px);
}
.dropdown {
  display: none;
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  background: var(--color-surface-alt);
  border-radius: var(--radius);
}
.has-dropdown.open > .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: var(--space-3);
  color: var(--color-text);
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
}
.dropdown li a:hover { background: #fff; color: var(--color-red); }

.header-cta { display: none; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245,158,11,0.18), transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(200,16,46,0.20), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  display: grid;
  gap: var(--space-7);
  text-align: center;
}
.hero-inner > div:first-child { display: flex; flex-direction: column; align-items: center; }
.hero h1 { text-wrap: balance; }
.hero p.hero-lead { margin-left: auto; margin-right: auto; }
.hero-meta { justify-content: center; }
.hero-cta-row { justify-content: center; }
.hero-image { display: none; }
.hero h1 {
  color: #fff;
  font-size: var(--fs-2xl);
  font-weight: 900;
}
.hero h1 .accent { color: var(--color-amber); display: block; }
.hero p.hero-lead {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.85);
  max-width: 38rem;
  margin-top: var(--space-4);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.9);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.hero-meta span::before { content: "✓"; color: var(--color-amber); font-weight: 700; }
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-navy-soft);
  max-width: 480px;
  margin: 0 auto;
}
.hero-image img { width: 100%; height: auto; display: block; }

.hero--compact .hero-inner {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

/* ---------- 8. Cards / feature grid ---------- */
.feature-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  margin-top: var(--space-7);
}
.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(200,16,46,0.10);
  color: var(--color-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: var(--font-heading);
  margin-bottom: var(--space-4);
  font-size: var(--fs-md);
  flex-shrink: 0;
}
.feature h3 { margin-bottom: var(--space-2); font-size: var(--fs-md); }
.feature p { color: var(--color-text-soft); font-size: var(--fs-sm); }

/* Horizontal variant: icon left, content right. Used in narrower columns. */
.feature-grid--horizontal { grid-template-columns: 1fr; }
.feature-grid--horizontal .feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
}
.feature-grid--horizontal .feature-icon { margin-bottom: 0; margin-top: 2px; }
.feature-grid--horizontal .feature > div { min-width: 0; }
@media (min-width: 720px) {
  .feature-grid--horizontal { grid-template-columns: repeat(2, 1fr); }
}

/* Stacked horizontal cards: each card full-width, title left, copy right at desktop. */
.feature-grid.feature-grid--3col { grid-template-columns: 1fr; max-width: 880px; margin-left: auto; margin-right: auto; gap: var(--space-4); }
.feature-grid.feature-grid--3col > .feature { padding: var(--space-5) var(--space-6); }
@media (min-width: 720px) {
  .feature-grid.feature-grid--3col > .feature {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-5);
    align-items: start;
  }
  .feature-grid.feature-grid--3col > .feature h3 { margin-bottom: 0; }
  .feature-grid.feature-grid--3col > .feature p { margin: 0; }
}

/* ---------- 9. Trust strip ---------- */
.trust-strip {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-6);
}
.trust-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.trust-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red), var(--color-amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--color-red);
}
.trust-item:hover::before { transform: scaleX(1); }
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200,16,46,0.10), rgba(245,158,11,0.15));
  color: var(--color-red);
  margin: 0 auto var(--space-3);
  font-size: 1.5rem;
  line-height: 1;
}
.trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--fs-xl);
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.section--navy .trust-item { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); }
.section--navy .trust-item strong { color: #fff; }
.trust-item span { font-size: var(--fs-sm); color: var(--color-text-muted); display: block; }
.section--navy .trust-item span { color: rgba(255,255,255,0.7); }

/* ---------- 10. Service cards ---------- */
.service-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  margin-top: var(--space-7);
}
.service-grid--2col { max-width: none; }
@media (min-width: 720px) {
  .service-grid--2col { grid-template-columns: repeat(2, 1fr); }
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--color-surface-alt); }
.service-card-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.service-card p { color: var(--color-text-soft); font-size: var(--fs-sm); flex: 1; }
.service-card .arrow {
  margin-top: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- 11. Testimonials ---------- */
.testimonial-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  margin-top: var(--space-7);
}
.testimonial {
  background: var(--color-surface);
  border-left: 4px solid var(--color-amber);
  padding: var(--space-6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.testimonial p { font-style: italic; color: var(--color-text); }
.testimonial cite {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-navy);
}
.testimonial-stars {
  color: var(--color-amber);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

/* ---------- 12. Steps / numbered list ---------- */
.step-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: grid;
  gap: var(--space-4);
}
.step-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-4);
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
}
.step-list li::before {
  content: counter(step);
  counter-increment: step;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
}
.step-list { counter-reset: step; }

/* ---------- 13. FAQ accordion ---------- */
.faq-list { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--color-navy);
  background: transparent;
}
.faq-question .chevron {
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
  margin-left: var(--space-4);
}
.faq-item.open .faq-question .chevron { transform: rotate(-135deg); }
.faq-answer {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-text-soft);
}
.faq-item.open .faq-answer { display: block; }

/* ---------- 14. Mid-page CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  margin: var(--space-8) 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: var(--space-5); }
.cta-band .btn { background: #fff; color: var(--color-red); }
.cta-band .btn:hover { background: var(--color-amber); color: var(--color-navy); }

/* ---------- 15. Prose / longform sections ---------- */
.prose {
  max-width: var(--max-prose);
  margin-left: auto;
  margin-right: auto;
}
.prose p, .prose ul, .prose ol { color: var(--color-text); font-size: var(--fs-base); line-height: var(--lh-base); }
.prose ul, .prose ol { margin: var(--space-3) 0; }
.prose li + li { margin-top: var(--space-2); }
.prose h2 { margin-top: var(--space-8); margin-bottom: var(--space-4); }
.prose h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); }
/* When prose is inside a column layout (split, sticky sidebar main), reset width to fill */
.split-content .prose, .town-main .prose { max-width: none; margin-left: 0; margin-right: 0; }

/* ---------- 15b. Split section (text + image) ---------- */
.split {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  align-items: center;
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-surface-alt);
  aspect-ratio: 4/3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-content .prose { max-width: none; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split--media-right { direction: ltr; }
  .split--media-left .split-media { order: -1; }
}

/* ---------- 16. Towns / link clusters ---------- */
.town-cluster {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-5);
}
.town-cluster a {
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
}
.town-cluster a:hover { background: var(--color-surface-alt); border-color: var(--color-red); color: var(--color-red); }

/* Pill button style for county pages */
.town-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.town-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: -0.01em;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.town-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  opacity: 0.4;
  transition: opacity var(--transition), transform var(--transition);
}
.town-pill:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
  transform: translateY(-2px);
}
.town-pill:hover::before { background: #fff; opacity: 1; transform: scale(1.2); }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.85);
  padding: var(--space-10) 0 var(--space-6);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  gap: var(--space-6) var(--space-5);
  grid-template-columns: repeat(2, 1fr);
}
.footer-col h4 {
  color: #fff;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--color-amber); }
.footer-brand p { color: rgba(255,255,255,0.7); margin-top: var(--space-3); max-width: 30ch; }
.footer-phone { font-family: var(--font-heading); font-weight: 900; font-size: var(--fs-lg); color: #fff !important; display: block; margin-top: var(--space-2); }
.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: rgba(255,255,255,0.55);
  font-size: var(--fs-xs);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--color-amber); }

/* ---------- 18. Floating mobile call CTA ---------- */
.floating-call {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-red);
  color: #fff;
  text-align: center;
  padding: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--fs-md);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.18);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
}
.floating-call:hover { background: var(--color-red-dark); color: #fff; }
body.has-floating-call { padding-bottom: 72px; }

/* ---------- 18b. Town page two-column layout with sticky sidebar ---------- */
.town-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: start;
}
.town-main { min-width: 0; } /* keeps grid item from overflowing */
.town-aside { display: contents; } /* on mobile, children flow inline */
.town-aside > * { display: block; }

.aside-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.aside-card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--color-surface-alt); }
.aside-card-media img { width: 100%; height: 100%; object-fit: cover; }
.aside-card-body { padding: var(--space-5); text-align: center; }
.aside-card-body h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.aside-card-body p { color: var(--color-text-soft); font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.aside-card .btn { width: 100%; }

.aside-county {
  margin-top: var(--space-4);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.aside-county h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.aside-county-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.aside-county-link:hover { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.aside-county-link::after {
  content: "→";
  margin-left: var(--space-3);
}

/* ---------- 19. Breadcrumb ---------- */
.breadcrumb {
  padding: var(--space-3) 0;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-red); }
.breadcrumb-sep { margin: 0 var(--space-2); color: var(--color-border-strong); }

/* ---------- 20. Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.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;
}

/* ---------- 21. Tablet (>= 720px) ---------- */
@media (min-width: 720px) {
  :root { --fs-2xl: 2.5rem; --fs-3xl: 3rem; }
  .section { padding: var(--space-12) 0; }
  .hero-inner { padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .hero h1 { font-size: var(--fs-3xl); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .town-cluster { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 22. Desktop (>= 1024px) ---------- */
@media (min-width: 1024px) {
  :root { --header-h: 78px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: block !important;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-list { flex-direction: row; align-items: center; gap: var(--space-2); }
  .nav-link { padding: var(--space-3); }
  .has-dropdown > .nav-link::after { transform: translateY(2px); }
  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    margin-top: 0;
    padding-top: var(--space-4);
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-2) var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 150ms ease 120ms, transform 150ms ease 120ms, visibility 150ms ease 120ms;
  }
  /* Invisible hover bridge so dropdown doesn't close on the gap between parent link and submenu */
  .has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    height: var(--space-4);
    pointer-events: none;
  }
  .has-dropdown:hover::after { pointer-events: auto; }
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown,
  .has-dropdown.open > .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0ms;
  }
  .dropdown li a:hover { background: var(--color-surface-alt); }

  .header-cta { display: inline-flex; }

  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--space-10);
    text-align: left;
  }
  .hero-inner > div:first-child { display: block; align-items: stretch; }
  .hero p.hero-lead { margin-left: 0; margin-right: 0; }
  .hero-meta { justify-content: flex-start; }
  .hero-cta-row { justify-content: flex-start; }
  .hero-image { display: block; }
  .hero h1 { font-size: var(--fs-4xl); }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid--horizontal { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid--2col { grid-template-columns: repeat(2, 1fr); }
  .town-cluster { grid-template-columns: repeat(4, 1fr); }
  .floating-call { display: none; }
  body.has-floating-call { padding-bottom: 0; }

  /* Town page two-column layout */
  .town-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-8);
  }
  .town-aside {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
    align-self: start;
  }
}

/* ---------- 23. Wide (>= 1280px) ---------- */
@media (min-width: 1280px) {
  .hero h1 { font-size: 3.5rem; }
}

/* ---------- 24. Print ---------- */
@media print {
  .site-header, .site-footer, .floating-call, .cta-band, .btn { display: none !important; }
  body { color: #000; background: #fff; }
}
