/* ==========================================================================
   Ashburn Pest Control - pestcontrolashburn.pro
   Palette: harbor navy, field green, signal amber, fog, mist
   Type: Bricolage Grotesque (headings), Public Sans (body)
   ========================================================================== */

:root {
  --ink: #0B2B3A;
  --ink-2: #12394C;
  --ink-3: #1B4A60;
  --field: #2E7D4F;
  --field-dark: #1F5C39;
  --signal: #F5A524;
  --signal-dark: #D98A0B;
  --fog: #F3F6F5;
  --mist: #E2EEE7;
  --text: #17262E;
  --muted: #4F626B;
  --line: #D5E0DB;
  --white: #FFFFFF;

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --wrap: 1180px;
  --radius: 10px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--field-dark); }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--signal); color: var(--ink); padding: .75rem 1rem; font-weight: 700; text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.ico-lg { width: 2.25rem; height: 2.25rem; flex: none; color: var(--field); }

/* Buttons ------------------------------------------------------------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1rem/1 var(--font-body);
  padding: .9rem 1.4rem; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { padding: 1.05rem 1.6rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--signal-dark); color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-3); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: var(--ink); color: var(--white); }

.text-link { font-weight: 700; color: var(--field-dark); text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Top bar ------------------------------------------------------------- */
.topbar { background: var(--ink); color: #D6E6DE; font-size: .875rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.topbar p { margin: 0; }
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; }
.topbar a:hover { color: var(--signal); }

/* Header + navigation ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: stretch; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { white-space: nowrap; display: flex; flex-direction: column; font: 800 1.15rem/1.1 var(--font-head); letter-spacing: -.01em; }
.brand-text small { font: 500 .72rem/1.3 var(--font-body); color: var(--muted); letter-spacing: 0; margin-top: .15rem; }
.brand-light { color: var(--white); }

.nav-toggle { display: none; }

.primary-nav { display: flex; align-items: stretch; gap: 1rem; }
.nav-list { display: flex; align-items: stretch; list-style: none; }
.nav-list > li { display: flex; align-items: center; position: relative; }
.nav-list > li.mega-li { position: static; }

.nav-link {
  white-space: nowrap;
  display: flex; align-items: center; height: 100%;
  padding: 0 .55rem; color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none;
}
.nav-link:hover { color: var(--field-dark); }
.has-menu > .nav-link { padding-right: .15rem; }

.caret {
  display: flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.caret svg { width: 1rem; height: 1rem; transition: transform .15s; }
.has-menu:hover > .caret svg,
.has-menu.open > .caret svg { transform: rotate(180deg); }

.menu-panel {
  display: none; position: absolute; top: 100%; z-index: 110;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--signal);
  box-shadow: 0 18px 40px rgba(11, 43, 58, .14);
}
.has-menu:hover > .menu-panel,
.has-menu:focus-within > .menu-panel,
.has-menu.open > .menu-panel { display: block; }

.drop { left: 0; min-width: 270px; padding: .6rem 0; }
.drop ul { list-style: none; }
.drop a { display: block; padding: .55rem 1.25rem; color: var(--text); text-decoration: none; font-size: .975rem; }
.drop a:hover { background: var(--fog); color: var(--field-dark); }

.mega { left: 0; right: 0; padding: 1.75rem 0; border-left: 0; border-right: 0; }
.has-menu:hover > .mega,
.has-menu:focus-within > .mega,
.has-menu.open > .mega { display: grid; }
.mega {
  grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  padding-left: max(1.25rem, calc((100vw - var(--wrap)) / 2 + 1.25rem));
  padding-right: max(1.25rem, calc((100vw - var(--wrap)) / 2 + 1.25rem));
}
.mega-col h3 { font-size: 1rem; margin-bottom: .6rem; padding-bottom: .5rem; border-bottom: 2px solid var(--mist); }
.mega-col h3 a { color: var(--ink); text-decoration: none; }
.mega-col h3 a:hover { color: var(--field-dark); }
.mega-col ul { list-style: none; }
.mega-col li a { display: block; padding: .3rem 0; color: var(--text); text-decoration: none; font-size: .975rem; }
.mega-col li a:hover { color: var(--field-dark); text-decoration: underline; text-underline-offset: 3px; }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-actions .btn { padding: .7rem 1rem; font-size: .95rem; }

/* Hero ---------------------------------------------------------------- */
.hero { background: var(--ink); color: var(--white); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: var(--white); }
.hero-kicker { color: var(--signal); font-weight: 700; margin-bottom: .75rem; }
.hero-lede { font-size: 1.15rem; color: #D6E6DE; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.hero-points { list-style: none; display: grid; gap: .45rem; color: #D6E6DE; }
.hero-points .ico { color: var(--signal); margin-right: .35rem; }

.hero-art { margin: 0; }
.hero-art svg { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); }
.hero-art figcaption { margin-top: .6rem; font-size: .875rem; color: #A9C3B8; }

/* Trust --------------------------------------------------------------- */
.trust { background: var(--mist); border-bottom: 1px solid var(--line); }
.trust-list { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; padding: 1.5rem 0; }
.trust-list li { display: flex; align-items: center; gap: .75rem; }
.trust-list .ico-lg { width: 2rem; height: 2rem; }
.trust-list span { display: flex; flex-direction: column; font-size: .875rem; line-height: 1.35; color: var(--muted); }
.trust-list strong { color: var(--ink); font-size: .975rem; }

/* Generic sections ---------------------------------------------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-foot { margin: 2rem 0 0; }

/* Services ------------------------------------------------------------ */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem 2rem; }
.service { border-top: 4px solid var(--ink); padding-top: 1rem; }
.service:nth-child(3n+2) { border-top-color: var(--field); }
.service:nth-child(3n) { border-top-color: var(--signal); }
.service h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.service p { color: var(--muted); margin-bottom: .75rem; }
.service ul { list-style: none; display: grid; gap: .15rem; }
.service li a { color: var(--field-dark); text-decoration: none; font-weight: 500; }
.service li a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Residential --------------------------------------------------------- */
.residential { background: var(--fog); }
.split-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.plan-box { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--field); border-radius: var(--radius); padding: 1.75rem; }
.plan-box h3 { margin-bottom: 1rem; }
.checklist { list-style: none; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .ico { color: var(--field); margin-top: .2rem; }

/* Commercial ---------------------------------------------------------- */
.commercial { background: var(--ink-2); color: #D6E6DE; }
.commercial h2 { color: var(--white); }
.commercial-head { max-width: 48rem; margin-bottom: 2rem; }
.industry-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.industry-grid a {
  display: block; height: 100%; padding: 1rem 1.1rem; color: var(--white); text-decoration: none; font-weight: 600;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); transition: background-color .15s, border-color .15s;
}
.industry-grid a:hover { background: var(--ink-3); border-color: var(--signal); }

/* Why ----------------------------------------------------------------- */
.why-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.why-grid li { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.why-grid h3 { margin: .75rem 0 .4rem; }
.why-grid p { color: var(--muted); margin: 0; }

/* Process ------------------------------------------------------------- */
.process { background: var(--fog); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.steps li { counter-increment: step; position: relative; padding: 2.75rem 1.5rem 0 0; }
.steps li::before {
  content: counter(step); position: absolute; top: -1.5rem; left: 0;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--ink); color: var(--white); font: 800 1.2rem/1 var(--font-head); border: 4px solid var(--fog);
}
.steps p { color: var(--muted); margin: 0; }

/* Emergency ----------------------------------------------------------- */
.emergency { background: var(--signal); color: var(--ink); padding: clamp(2.5rem, 5vw, 3.75rem) 0; }
.emergency-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.emergency h2 { margin-bottom: .4rem; }
.emergency p { margin-bottom: .6rem; font-weight: 500; }
.emergency ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.5rem; font-weight: 600; }
.emergency ul li { padding-left: 1.1rem; position: relative; }
.emergency ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; background: var(--ink); border-radius: 50%; }
.emergency-call { text-align: center; }
.emergency-call p { margin: .75rem 0 0; font-size: .95rem; }

/* Areas --------------------------------------------------------------- */
.areas-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.areas-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.areas-lists h3 { font-size: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--mist); margin-bottom: .6rem; }
.areas-lists ul { list-style: none; display: grid; gap: .3rem; }
.areas-lists a { color: var(--field-dark); text-decoration: none; font-weight: 500; }
.areas-lists a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Resources ----------------------------------------------------------- */
.resources { background: var(--mist); }
.calendar { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.season { padding: 1.5rem; }
.season h3 { margin-bottom: .4rem; }
.season p { margin: 0; font-size: .975rem; }
.season.spring { background: #CFE6D6; }
.season.summer { background: #F7DFA6; }
.season.fall   { background: #EBC9A0; }
.season.winter { background: #C9DCE6; }
.guides { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.guides a {
  display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.1rem 1.2rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); font-size: .95rem;
}
.guides a:hover { border-color: var(--ink); }
.guides strong { color: var(--ink); font: 700 1.05rem/1.3 var(--font-head); }

/* FAQ ----------------------------------------------------------------- */
.faq-wrap { max-width: 56rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font: 700 1.1rem/1.35 var(--font-head); color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--field); flex: none; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin: 0 0 1.25rem; color: var(--muted); max-width: 46rem; }

/* Final CTA ----------------------------------------------------------- */
.final-cta { background: var(--ink); color: #D6E6DE; padding: clamp(3rem, 7vw, 5rem) 0; }
.final-cta h2 { color: var(--white); }
.final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.final-copy p { font-size: 1.1rem; max-width: 30em; margin-bottom: 1.5rem; }
.final-points { list-style: none; display: grid; gap: .45rem; margin-top: 1.75rem; }
.final-points .ico { color: var(--signal); margin-right: .35rem; }

.quote-form { background: var(--white); color: var(--text); border-radius: 14px; padding: clamp(1.25rem, 3vw, 2rem); }
.quote-form h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; flex: 1; }
.field-row { display: flex; gap: .9rem; }
.field label { font-weight: 600; font-size: .925rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); padding: .75rem .85rem; width: 100%;
  border: 1.5px solid #9DB0A8; border-radius: 8px; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--signal); outline-offset: 1px; border-color: var(--ink); }
.field textarea { resize: vertical; }

/* Footer -------------------------------------------------------------- */
.site-footer { background: #071E29; color: #B9CEC5; font-size: .975rem; padding-top: clamp(2.5rem, 5vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; display: grid; gap: .45rem; }
.site-footer a { color: #B9CEC5; text-decoration: none; }
.site-footer a:hover { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p { margin: 1rem 0 0; max-width: 24rem; }
.footer-brand .contact-lines a { color: var(--white); font-weight: 600; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .875rem; }
.footer-base p { margin: 0; }
.footer-base ul { display: flex; gap: 1.25rem; }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 1439px) {
  .nav-call { display: none; }
  .brand-text small { display: none; }
}
@media (max-width: 1100px) {
  .nav-link { padding: 0 .3rem; font-size: .9rem; }
  .brand-text { font-size: 1.05rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .topbar p:nth-child(2) { display: none; }

  .nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem; align-self: center;
    padding: .6rem .9rem; border: 2px solid var(--ink); border-radius: 8px; background: var(--white);
    color: var(--ink); font: 700 .95rem/1 var(--font-body); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative;
  }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }

  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; background: var(--white); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: .5rem 1.25rem 1.25rem;
  }
  .primary-nav.open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list > li, .nav-list > li.mega-li { position: relative; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; height: auto; padding: .95rem 0; font-size: 1.05rem; }
  .has-menu > .nav-link { padding-right: 0; }
  .caret { width: 3rem; height: 3rem; }

  .menu-panel, .mega, .drop {
    position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; border-top: 0;
    padding: 0 0 .75rem .75rem;
  }
  .has-menu:hover > .menu-panel,
  .has-menu:focus-within > .menu-panel { display: none; }
  .has-menu.open > .menu-panel { display: block; }
  .has-menu.open > .mega { display: block; }
  .mega { padding-left: .75rem; padding-right: 0; }
  .mega-col { margin-bottom: 1rem; }
  .drop a { padding: .5rem 0; }

  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 1rem; }
  .nav-actions .nav-call { display: inline-flex; }

  .hero-grid, .split-grid, .areas-grid, .final-grid, .emergency-in { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid, .guides { grid-template-columns: repeat(2, 1fr); }
  .calendar { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; border-top: 0; }
  .steps li { border-top: 3px solid var(--ink); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .emergency-call { text-align: left; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .topbar-in { justify-content: center; }
  .topbar p:first-child { display: none; }
  .brand-text small { display: none; }
  .brand-text { font-size: .98rem; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-toggle { padding: .55rem .7rem; }
  .trust-list, .service-grid, .why-grid, .industry-grid, .guides, .calendar, .steps, .areas-lists, .footer-grid { grid-template-columns: 1fr; }
  .emergency ul { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .hero-actions .btn, .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
