:root {
  --blue-900: #063a57;
  --blue-800: #0b5a86;
  --blue-700: #1176ac;
  --blue-500: #2196d4;
  --blue-100: #e6f4fb;
  --sand: #f7f4ee;
  --ink: #10222e;
  --ink-muted: #52697a;
  --white: #ffffff;
  --slate-900: #1e2732;
  --slate-700: #3a4653;
  --border: #dde6ec;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(6, 58, 87, 0.18);
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-900);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Netlify Forms honeypot — hidden from real visitors, left in the DOM
   (not display:none) so it still reads as a normal field to simple bots. */
.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; color: var(--blue-900); }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-muted); max-width: 640px; }
.lede-body { font-size: 1.05rem; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--blue-700);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.eyebrow svg { width: 1em; height: 1em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1.02rem; }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-800); transform: translateY(-1px); }
.btn-ghost { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.btn-ghost:hover { background: var(--blue-100); }
.btn-ghost-invert { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost-invert:hover { background: rgba(255,255,255,0.12); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 1.5rem;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 36px; width: auto; display: block; }
.footer-logo { height: 40px; filter: brightness(0) invert(1); }

.main-nav { display: flex; align-items: center; gap: 1.3rem; margin-left: 1.5rem; flex: 1; }
.nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link:hover { color: var(--blue-700); text-decoration: none; }
.nav-link.active { color: var(--blue-700); }

.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; cursor: pointer; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary svg { width: 0.75em; height: 0.75em; transition: transform 0.15s ease; }
.nav-dropdown[open] summary svg { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  z-index: 110;
}
.dropdown-link {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
}
.dropdown-link:hover { background: var(--blue-100); text-decoration: none; color: var(--blue-900); }

.header-ctas { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-promo {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  border: 1px solid var(--blue-500);
}
.nav-promo:hover { background: var(--blue-500); color: #fff; text-decoration: none; }
.nav-promo svg { width: 1em; height: 1em; }
.btn-ghost-icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%;
  border: 2px solid var(--border);
  color: var(--blue-700);
  justify-content: center;
  flex-shrink: 0;
}
.btn-ghost-icon:hover { border-color: var(--blue-700); background: var(--blue-100); }
.btn-ghost-icon svg { width: 1.15em; height: 1.15em; margin: 0; }

.mobile-cta-row { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.8rem; }
.mobile-cta-row .btn { justify-content: center; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--blue-900); display: block; }
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem 1.2rem;
  border-top: 1px solid var(--border);
  gap: 0.2rem;
}
.mobile-nav a { padding: 0.6rem 0; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 0.8rem; justify-content: center; }
.mobile-nav.open { display: flex; }

/* Hero */
.hero { padding: 4rem 0 3rem; background: linear-gradient(180deg, var(--blue-100), #fff); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.4rem 0; }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 0; margin: 1rem 0 0; font-weight: 600; color: var(--blue-900); }
.trust-row li { display: flex; align-items: center; gap: 0.4rem; }
.trust-row svg { width: 1.15em; height: 1.15em; color: var(--blue-700); }
.hero-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); padding: 2rem; }
.hero-card-inner { display: flex; flex-direction: column; gap: 1.4rem; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-size: 2rem; color: var(--blue-700); }
.hero-stat span { color: var(--ink-muted); font-size: 0.9rem; }

/* Page hero (inner pages) */
.page-hero { padding: 3rem 0 2.5rem; background: linear-gradient(180deg, var(--blue-100), #fff); }
.page-hero .icon-badge-lg { width: 56px; height: 56px; margin-bottom: 1rem; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--sand); }
.section-title { margin-bottom: 0.4rem; }
.section-lede { color: var(--ink-muted); max-width: 680px; margin-bottom: 2rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.service-card h3 { margin-bottom: 0.4rem; }
.nearby-card { padding: 1.2rem 1.4rem; }
.nearby-card h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.card-link { color: var(--blue-700); font-weight: 700; font-size: 0.92rem; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  margin-bottom: 0.9rem;
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge-lg { width: 56px; height: 56px; border-radius: 14px; }
.icon-badge-lg svg { width: 28px; height: 28px; }

.feature { padding: 0.5rem 0; }

.callout-box {
  background: var(--blue-100);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.callout-box .icon-badge { background: #fff; margin: 0 auto 0.9rem; }
.callout-box h2 { margin-bottom: 0.4em; }
.callout-box p { color: var(--ink-muted); max-width: 560px; margin: 0 auto 1.2rem; }
.callout-box .hero-actions { justify-content: center; margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.6rem; }
.check-list svg { width: 1.2em; height: 1.2em; color: var(--blue-700); flex-shrink: 0; margin-top: 0.15em; }

.checklist-groups { align-items: start; }
.checklist-group {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.checklist-group h3 { margin-bottom: 1rem; font-size: 1.05rem; }
.checklist-group h3 .muted { font-weight: 600; font-size: 0.85rem; }
.checklist-group .check-list { margin-bottom: 0; font-size: 0.95rem; }
.checklist-more { margin: 0.9rem 0 0; padding-top: 0.9rem; border-top: 1px dashed var(--border); font-size: 0.85rem; font-style: italic; color: var(--ink-muted); }

.steps { counter-reset: step; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-700); color: #fff; font-weight: 700;
  margin-bottom: 0.8rem;
}

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; background: #fff; }
.faq-item summary { font-weight: 700; cursor: pointer; color: var(--blue-900); }
.faq-item p { margin: 0.7rem 0 0; color: var(--ink-muted); }

.chip-list { list-style: none; padding: 0; margin: 0 0 0.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-list a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-900);
}
.chip-list a:hover { border-color: var(--blue-700); text-decoration: none; }
.text-link { font-weight: 700; }

.county-block { margin-bottom: 2.5rem; }
.town-grid {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem 1rem;
}
.town-grid a { font-weight: 600; }

.breadcrumbs { padding: 1rem 1.5rem 0; max-width: var(--max-width); margin: 0 auto; font-size: 0.88rem; color: var(--ink-muted); }
.breadcrumbs span { margin: 0 0.3em; }

.cta-band { background: linear-gradient(135deg, var(--blue-800), var(--blue-900)); color: #fff; padding: 3rem 0; }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }

.contact-list, .hours-list { list-style: none; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.contact-list svg { width: 1.2em; height: 1.2em; color: var(--blue-700); }
.hours-list li { display: flex; justify-content: space-between; max-width: 320px; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }

.quote-form { display: flex; flex-direction: column; gap: 1rem; }
.quote-form label { font-weight: 600; font-size: 0.92rem; display: flex; flex-direction: column; gap: 0.35rem; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: 2px solid var(--blue-500);
  outline-offset: 1px;
}

.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer { background: var(--slate-900); color: rgba(255,255,255,0.85); padding: 3.5rem 0 1.5rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.9rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { margin-bottom: 0.9rem; }
.site-footer .muted { color: rgba(255,255,255,0.6); }
.footer-contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; }
.footer-contact-links svg { width: 1.1em; height: 1.1em; vertical-align: -0.15em; margin-right: 0.25em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.5rem; padding-top: 1.2rem; font-size: 0.85rem; }

/* The nav switches to the hamburger menu well before the general layout
   breakpoint below — with the "Free Inspection" pill plus Text/Call CTAs,
   the full nav row overflows on mid-size laptop widths (~960-1080px)
   long before content grids need to reflow. */
@media (max-width: 1120px) {
  .main-nav, .header-ctas { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .town-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .town-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}
