/* ============================================================================
   Pensacola Pest Control — visual system
   Spec: design_system.md. Synthesized from four category references; patterns
   only, no reference assets, colours, imagery or copy.

   The grammar all four share: a photograph of a person at a house, a headline
   far bigger and heavier than a content site would use, ONE loud accent
   reserved for the action, hard background-band alternation, and pill buttons.
   ========================================================================= */

:root {
  /* ── Colour roles ─────────────────────────────────────────────────────── */
  --ink:       #12211f;
  --ink-soft:  #44605a;
  --teal:      #12564c;
  --teal-dk:   #0b322c;
  --teal-lt:   #4b877c;
  --amber:     #e08a2c;   /* accent — primary call action ONLY */
  --amber-dk:  #b3712a;
  --amber-ink: #8a5418;   /* amber as text on light (AA-safe) */
  --paper:     #faf7f0;
  --tint:      #eef3f0;   /* alternating band */
  --white:     #fffdf9;
  --line:      #ddd3c2;

  /* ── Type ─────────────────────────────────────────────────────────────── */
  /* System stack, weight-led. All four references use a bought grotesque;
     matching that costs a font file and the LCP that protects call rate.
     Weight 800 at large sizes gets most of the way for zero bytes. */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-hero:    clamp(2.4rem, 7.2vw, 4.5rem);
  --fs-h1:      clamp(2rem, 5.2vw, 3.2rem);
  --fs-h2:      clamp(1.5rem, 3.6vw, 2.25rem);
  --fs-h3:      1.125rem;
  --fs-lede:    clamp(1.05rem, 2.2vw, 1.3rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.75rem;
  --fs-phone:   clamp(1.6rem, 5vw, 2.6rem);

  /* ── Space ────────────────────────────────────────────────────────────── */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --wrap: 1120px;
  --r: 14px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(11,50,44,.06), 0 10px 30px -16px rgba(11,50,44,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  padding-bottom: 78px;           /* room for the sticky mobile call bar */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }

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

.skip { position: absolute; left: -9999px; background: var(--teal); color: #fff; padding: 12px 18px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* ── Type ───────────────────────────────────────────────────────────────── */

h1, h2, h3 { font-weight: 800; color: var(--teal-dk); margin: 0 0 .5em; }
h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.02em; margin-top: 1.9em; }
h3 { font-size: var(--fs-h3); line-height: 1.3;  letter-spacing: -.01em; margin-top: 1.7em; font-weight: 700; }
p  { margin: 0 0 1.1em; }

.eyebrow {
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-ink);
  margin: 0 0 var(--s3); display: flex; align-items: center; gap: var(--s3);
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 90px; }

.lede { font-size: var(--fs-lede); color: var(--ink-soft); line-height: 1.55; }

/* ── Buttons — pill, one accent, no secondary action anywhere ───────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 58px; padding: 15px var(--s6);
  border-radius: var(--r-pill);
  font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .13s ease, background-color .13s ease, box-shadow .13s ease;
}
.btn-call {
  background: var(--amber); color: #20140a;
  box-shadow: 0 2px 0 rgba(0,0,0,.18), 0 12px 26px -12px rgba(224,138,44,.9);
}
.btn-call:hover { background: #eb9538; transform: translateY(-1px); }
.btn-call:active { transform: translateY(1px); }
.btn-block { display: flex; width: 100%; }

.ico { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* Phone rendered as display type — the one idea that transfers cleanly from a
   reference whose offer-led energy we are not allowed to copy. */
.phone-lg {
  display: inline-block; font-size: var(--fs-phone); font-weight: 800;
  letter-spacing: -.02em; line-height: 1; color: var(--amber);
  text-decoration: none; margin: 0 0 var(--s4);
}
.phone-lg:hover { color: #f0a049; }

.hours {
  display: flex; align-items: center; gap: var(--s2);
  font-size: var(--fs-small); font-weight: 500; margin: var(--s4) 0 0;
}
.hours svg { width: 16px; height: 16px; fill: currentColor; flex: none; opacity: .85; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.hdr { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 70px; }
.brand { display: block; line-height: 0; }
.brand img { width: auto; height: 42px; }
.hdr-call { min-height: 46px; padding: 10px var(--s5); font-size: 1rem; }
.hdr-call-short { display: none; }

/* ── Hero — full-bleed photograph, headline overlaid ────────────────────── */

.hero { position: relative; isolation: isolate; background: var(--teal-dk); }
/* Pages with no hero photograph: the scrim has nothing to sit over and a vh
   height reads as dead space, so they get a compact brand-dark band instead. */
.hero-flat::after { display: none; }
.hero-flat .hero-in { padding: var(--s8) 0 var(--s7); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,50,44,.72) 0%, rgba(11,50,44,.80) 45%, rgba(11,50,44,.93) 100%);
}
.hero-in {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  /* Mobile: content-driven height with a fixed band of photograph above it, so
     the CTA and hours line stay above the fold on a 412x823 viewport. A vh-based
     min-height pushed the button off-screen — the one failure the hero rules
     exist to prevent. Desktop switches to a vh hero at the 900px breakpoint. */
  padding: 190px 0 var(--s6);
}
.hero .eyebrow { color: #f0b877; }
.hero .eyebrow::after { background: rgba(255,255,255,.28); }
.hero h1 { color: #fff; font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -.03em; margin-bottom: var(--s4); max-width: 18ch; }
.hero .lede { color: #cfe0dc; max-width: 34em; margin-bottom: var(--s5); }
.hero-cta { margin: 0; }
.hero-note { font-size: var(--fs-small); color: #a9c6c0; margin: var(--s4) 0 0; }
.hero .hours { color: #bcd6d0; }
.hero-cap {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  background: rgba(7,32,28,.78); color: #cfe0dc;
  font-size: .68rem; line-height: 1.3; padding: 5px 9px; border-top-left-radius: 6px;
}

/* ── Badge band — a real band, not a strip ──────────────────────────────── */

.trust { background: var(--tint); border-bottom: 1px solid var(--line); padding: var(--s7) 0; }
.trust-row {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s6) var(--s5); align-items: start; justify-items: center;
}
.trust-row img { height: 96px; width: auto; }
/* The generator gave each badge a different amount of internal breathing room,
   so a uniform box height reads as uneven mass. These two are nudged to match
   the other two optically. */
.trust-row img[src*="badge-residential"]  { height: 112px; }
.trust-row img[src*="badge-family-owned"] { height: 104px; }

/* ── Sections and bands ─────────────────────────────────────────────────── */

.sec { padding: var(--s7) 0; }
.sec-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec > .wrap > h2:first-child,
.sec > .wrap > .eyebrow:first-child { margin-top: 0; }

.prose > * { max-width: 40em; }
.prose ul, .prose ol { padding-left: 1.15em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--teal-dk); }

.note {
  border-left: 4px solid var(--amber); background: var(--white);
  padding: var(--s5); margin: 0 0 1.4em; border-radius: 0 var(--r) var(--r) 0;
  box-shadow: var(--shadow);
}
.note p:last-child { margin-bottom: 0; }
.note strong { display: block; font-size: 1.06rem; font-weight: 800; margin-bottom: .3em; }

/* ── CTA — full-bleed dark band ─────────────────────────────────────────── */

.cta-block {
  background: var(--teal-dk); color: #e8f1ef;
  padding: var(--s8) var(--s5); margin: var(--s7) 0 0;
  text-align: center; border-radius: var(--r);
}
.cta-head { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.02em; color: #fff; margin: 0 0 var(--s3); line-height: 1.15; }
.cta-sub { font-size: 1rem; color: #bcd6d0; margin: 0 auto var(--s5); max-width: 44ch; }
.cta-block .phone-lg { display: block; }
.cta-block .btn-call { width: 100%; max-width: 400px; margin: 0 auto; }
.cta-block .hours { justify-content: center; color: #bcd6d0; }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; margin: var(--s5) 0 0; }
.card {
  display: block; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s5); text-decoration: none; color: inherit;
  transition: border-color .13s ease, transform .13s ease;
}
.card:hover { border-color: var(--amber); transform: translateY(-2px); }
.card h3 { margin: 0 0 .3em; font-size: 1.06rem; color: var(--teal-dk); }
.card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

.area-list { display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: var(--s5) 0 0; list-style: none; }
.area-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 16px; font-size: .95rem; font-weight: 600; color: var(--teal-dk);
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq { margin: var(--s5) 0 0; max-width: 44em; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: var(--s3); }
.faq summary {
  cursor: pointer; padding: var(--s4) var(--s5); font-weight: 700; color: var(--teal-dk);
  list-style: none; min-height: 56px; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; color: var(--amber-ink); line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-a { padding: 0 var(--s5) var(--s5); margin: 0; font-size: .98rem; color: var(--ink-soft); }

/* ── Section figure ─────────────────────────────────────────────────────── */

.fig { margin: var(--s7) 0; position: relative; }
.fig picture img, .fig > img { width: 100%; border-radius: var(--r); }
.fig figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: var(--s2); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.ftr { background: var(--teal-dk); color: #bed4cf; padding: var(--s8) 0 var(--s7); margin-top: var(--s8); }
.ftr-grid { display: grid; gap: var(--s7); grid-template-columns: 1fr; }
.ftr-col { min-width: 0; }
.ftr-brand img { height: 44px; width: auto; background: var(--paper); border-radius: 8px; padding: 7px 11px; }
.ftr-blurb { font-size: .95rem; margin: var(--s4) 0 var(--s5); max-width: 32em; }
.ftr-h { font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: #f0b877; margin: 0 0 var(--s3); font-weight: 700; }
.ftr-h2 { margin-top: var(--s6); }
.ftr-list { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.ftr-list li { margin-bottom: var(--s2); }
.ftr-list a { color: #d8e6e2; text-decoration: none; }
.ftr-list a:hover { color: #fff; text-decoration: underline; }

.disclaimer { border-top: 1px solid rgba(255,255,255,.14); margin: var(--s7) 0 0; padding-top: var(--s5); font-size: .78rem; line-height: 1.6; color: #a9c6c0; }
.copyright { font-size: .78rem; color: #a9c6c0; margin: var(--s3) 0 0; }

/* ── Sticky mobile call bar — untouched behaviour, restyled ─────────────── */

.sticky-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--amber); box-shadow: 0 -2px 20px rgba(11,50,44,.3);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-call-btn { display: flex; align-items: center; justify-content: center; gap: var(--s3); min-height: 66px; padding: 10px var(--s4); color: #20140a; text-decoration: none; font-weight: 800; }
.sticky-call-btn .ico { width: 25px; height: 25px; }
.sticky-call-lines { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-call-lines strong { font-size: 1.2rem; letter-spacing: -.01em; }
.sticky-call-lines small { font-size: .75rem; font-weight: 600; }

/* ── Breakpoints ────────────────────────────────────────────────────────── */

@media (max-width: 560px) {
  .hdr-call-txt { display: none; }
  .hdr-call-short { display: inline; }
  .brand img { height: 36px; }
}

@media (min-width: 700px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: repeat(4, 1fr); }
  .trust-row img { height: 120px; }
  .trust-row img[src*="badge-residential"]  { height: 140px; }
  .trust-row img[src*="badge-family-owned"] { height: 130px; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky-call { display: none; }
  .hero-in { min-height: 76vh; padding: var(--s9) 0 var(--s8); }
  .hero-flat .hero-in { min-height: 0; padding: var(--s9) 0 var(--s9); }
  .hero::after {
    background: linear-gradient(100deg, rgba(11,50,44,.94) 0%, rgba(11,50,44,.82) 42%, rgba(11,50,44,.30) 72%, rgba(11,50,44,.12) 100%);
  }
  .sec { padding: var(--s9) 0; }
  .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cta-block { padding: var(--s9) var(--s7); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
