/* =========================================================
   Lone Star Pest Shield — styles
   Texas-sunset palette + drifting-dust hero animation
   ========================================================= */

/* --- 1. Tokens & Reset ---------------------------------- */
:root {
  --c-bg: #f5e9c9;          /* warm cream */
  --c-bg-2: #ead8a8;
  --c-bg-3: #d8c184;
  --c-ink: #1a2845;         /* deep Texas navy */
  --c-ink-2: #0f1830;
  --c-red: #b22234;         /* Texas red */
  --c-red-dark: #8a1822;
  --c-blue: #1a4d8f;        /* Texas flag blue */
  --c-gold: #d4a23a;
  --c-line: #cfc2a3;

  --shadow-sm: 0 1px 2px rgba(26,40,69,.12);
  --shadow-md: 0 6px 18px rgba(26,40,69,.18);
  --shadow-lg: 0 16px 40px rgba(26,40,69,.25);

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;

  --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-ink); }
a:hover { color: var(--c-red); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-ink); color: var(--c-bg);
  padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- 2. Header ---------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(245,233,201,.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 50;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-color: var(--c-line);
  box-shadow: var(--shadow-sm);
  background: rgba(245,233,201,.97);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--c-ink);
  font-family: var(--ff-display);
}
.brand-mark {
  width: 56px; height: 56px;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em;
  display: flex; flex-direction: column; line-height: 1.05;
  text-transform: uppercase;
}
.brand-sub {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  opacity: .7; font-family: var(--ff-sans);
  color: var(--c-red);
}

.primary-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 6px; align-items: center;
}
.primary-nav a {
  display: inline-block; padding: 8px 12px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: .95rem; text-decoration: none;
}
.primary-nav a:hover { background: rgba(178,34,52,.1); color: var(--c-red); }
.primary-nav .nav-cta {
  background: var(--c-red); color: #fff; padding: 10px 16px;
  border-radius: 999px;
}
.primary-nav .nav-cta:hover { background: var(--c-red-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--c-ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- 3. Hero — Texas sunset + dust particles --------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 180px;
  display: flex; align-items: center;
  background: #1a2845;
  overflow: hidden;
  isolation: isolate;
  color: #f5e9c9;
}
/* Sunset gradient — orange/red top fading to navy bottom */
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    linear-gradient(180deg,
      #f6c46a 0%,
      #ee8a3a 18%,
      #d44a2a 32%,
      #8a1822 48%,
      #3a1a3a 70%,
      #1a2845 100%);
}
.hero-bg::after {
  /* Subtle horizon glow */
  content: ""; position: absolute; left: 0; right: 0; bottom: 35%;
  height: 30%;
  background: radial-gradient(ellipse at 50% 100%, rgba(246,196,106,.4), transparent 60%);
  pointer-events: none;
}

/* Star sparkles in upper portion */
.hero-stars {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,240,200,.7), transparent 50%),
    radial-gradient(1px 1px at 28% 12%, rgba(255,240,200,.6), transparent 50%),
    radial-gradient(1px 1px at 47% 22%, rgba(255,240,200,.7), transparent 50%),
    radial-gradient(1px 1px at 62% 8%, rgba(255,240,200,.5), transparent 50%),
    radial-gradient(1px 1px at 78% 16%, rgba(255,240,200,.6), transparent 50%),
    radial-gradient(1px 1px at 92% 24%, rgba(255,240,200,.7), transparent 50%),
    radial-gradient(1.5px 1.5px at 18% 28%, rgba(255,240,200,.8), transparent 50%),
    radial-gradient(1.5px 1.5px at 70% 30%, rgba(255,240,200,.6), transparent 50%);
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}

/* Drifting dust particles — 20 small circles drifting upward */
.hero-dust {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
}
.hero-dust span {
  position: absolute;
  bottom: -20px;
  width: 3px; height: 3px;
  background: rgba(246,196,106,.7);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(246,196,106,.5);
  animation: drift linear infinite;
  opacity: 0;
}

/* 20 unique particle positions + timings */
.hero-dust span:nth-child(1)  { left:  4%; width: 2px; height: 2px; animation-duration: 14s; animation-delay:  -2s; }
.hero-dust span:nth-child(2)  { left: 10%; width: 4px; height: 4px; animation-duration: 18s; animation-delay:  -7s; }
.hero-dust span:nth-child(3)  { left: 16%; width: 2px; height: 2px; animation-duration: 12s; animation-delay:  -1s; }
.hero-dust span:nth-child(4)  { left: 22%; width: 3px; height: 3px; animation-duration: 16s; animation-delay: -10s; }
.hero-dust span:nth-child(5)  { left: 28%; width: 2px; height: 2px; animation-duration: 13s; animation-delay:  -3s; }
.hero-dust span:nth-child(6)  { left: 34%; width: 5px; height: 5px; animation-duration: 20s; animation-delay:  -8s; }
.hero-dust span:nth-child(7)  { left: 40%; width: 2px; height: 2px; animation-duration: 11s; animation-delay:  -5s; }
.hero-dust span:nth-child(8)  { left: 46%; width: 3px; height: 3px; animation-duration: 17s; animation-delay: -12s; }
.hero-dust span:nth-child(9)  { left: 52%; width: 2px; height: 2px; animation-duration: 15s; animation-delay:  -2s; }
.hero-dust span:nth-child(10) { left: 58%; width: 4px; height: 4px; animation-duration: 19s; animation-delay:  -9s; }
.hero-dust span:nth-child(11) { left: 64%; width: 2px; height: 2px; animation-duration: 12s; animation-delay:  -4s; }
.hero-dust span:nth-child(12) { left: 70%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: -11s; }
.hero-dust span:nth-child(13) { left: 76%; width: 2px; height: 2px; animation-duration: 16s; animation-delay:  -6s; }
.hero-dust span:nth-child(14) { left: 82%; width: 5px; height: 5px; animation-duration: 21s; animation-delay:  -3s; }
.hero-dust span:nth-child(15) { left: 88%; width: 2px; height: 2px; animation-duration: 13s; animation-delay: -10s; }
.hero-dust span:nth-child(16) { left: 94%; width: 3px; height: 3px; animation-duration: 15s; animation-delay:  -1s; }
.hero-dust span:nth-child(17) { left:  8%; width: 2px; height: 2px; animation-duration: 17s; animation-delay:  -8s; }
.hero-dust span:nth-child(18) { left: 36%; width: 4px; height: 4px; animation-duration: 13s; animation-delay:  -5s; }
.hero-dust span:nth-child(19) { left: 68%; width: 2px; height: 2px; animation-duration: 19s; animation-delay:  -7s; }
.hero-dust span:nth-child(20) { left: 86%; width: 3px; height: 3px; animation-duration: 11s; animation-delay: -13s; }

@keyframes drift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translateY(-50vh) translateX(20px); opacity: .8; }
  90%  { opacity: .5; }
  100% { transform: translateY(-110vh) translateX(-10px); opacity: 0; }
}

/* Hero content */
.hero-content {
  position: relative; z-index: 2;
  max-width: 780px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(26,40,69,.4);
  border: 1px solid rgba(245,233,201,.3);
  padding: 6px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--c-bg);
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02; margin: 22px 0 18px;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.title-line { display: block; opacity: 0; transform: translateY(24px); animation: fadeUp .8s ease forwards; }
.title-line:nth-child(1) { animation-delay: .1s; }
.title-line:nth-child(2) { animation-delay: .35s; }
.title-line:nth-child(3) { animation-delay: .6s; }
.title-line em { font-style: italic; color: #f6c46a; }
.hero-lede {
  font-size: 1.15rem; max-width: 56ch;
  color: rgba(245,233,201,.92);
  opacity: 0; animation: fadeUp .8s ease forwards;
  animation-delay: .85s;
}
.hero-ctas {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  opacity: 0; animation: fadeUp .8s ease forwards;
  animation-delay: 1.05s;
}
.hero-stats {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: center;
  opacity: 0; animation: fadeUp .8s ease forwards;
  animation-delay: 1.25s;
}
.hero-stats li { display: flex; flex-direction: column; color: rgba(245,233,201,.95); }
.hero-stats strong { font-size: 1.5rem; font-family: var(--ff-display); color: #fff; }
.hero-stats span { font-size: .85rem; opacity: .8; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--c-red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--c-red-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(26,40,69,.4); color: #fff; border: 1px solid rgba(245,233,201,.5); }
.btn-ghost:hover { background: #fff; color: var(--c-ink); }
.btn-icon { width: 18px; height: 18px; }
.btn-full { width: 100%; justify-content: center; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- 4. Sections base --------------------------------- */
.section { padding: 96px 0; position: relative; background: var(--c-bg); }
.section + .section { border-top: 1px solid var(--c-line); }
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
  padding: 0 24px;
}
.section-head .eyebrow {
  background: rgba(178,34,52,.1);
  border-color: transparent;
  color: var(--c-red);
}
.section-head h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15; letter-spacing: -.01em;
  margin: 16px 0 12px;
  text-wrap: balance;
}
.section-head p { opacity: .8; font-size: 1.05rem; max-width: 60ch; margin: 0 auto; }

/* --- 5. Services -------------------------------------- */
.services { background: var(--c-bg-2); }
.service-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  justify-content: center;
}
.service-card {
  background: #fff; border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column; gap: 12px;
  color: var(--c-ink);
  text-decoration: none;
  position: relative;
}
.service-card::after {
  content: "→";
  position: absolute; top: 28px; right: 24px;
  font-size: 1.2rem; color: var(--c-red);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.service-card:hover::after { opacity: 1; transform: translateX(0); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-red); }
.service-card h3 { margin: 4px 0 4px; font-size: 1.25rem; }
.service-card p { margin: 0; opacity: .8; line-height: 1.55; }
.service-price {
  margin-top: auto; padding-top: 12px;
  font-weight: 700; color: var(--c-red);
  font-size: 1rem;
}
.service-pullquote {
  margin-top: auto;
  padding: 10px 0 0 12px;
  border-left: 3px solid var(--c-red);
  font-style: italic;
  font-size: 0.95rem;
  opacity: .75;
  line-height: 1.5;
}

/* --- 6. Pest grid (replaces pill strip) ---------------- */
.pests { background: var(--c-bg); }
.pest-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}
.pest-tile {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pest-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-red); }
.pest-name { font-weight: 700; font-size: 1.02rem; color: var(--c-ink); }
.pest-note { font-size: .85rem; opacity: .7; line-height: 1.4; }

/* --- 7. Why / Process ---------------------------------- */
.why { background: var(--c-bg-2); }
.process-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.process-steps li {
  background: #fff; border-radius: var(--radius);
  padding: 28px 24px; border: 1px solid var(--c-line);
  position: relative;
}
.step-num {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--c-red);
  margin-bottom: 12px;
}
.process-steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.process-steps p { margin: 0; opacity: .8; font-size: .95rem; }

/* --- 8. Reviews --------------------------------------- */
.reviews { background: var(--c-bg); }
.testimonial-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial {
  background: #fff; border-radius: var(--radius);
  padding: 28px; margin: 0;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 18px;
}
.testimonial blockquote {
  margin: 0; font-size: 1.02rem; line-height: 1.55;
  font-style: italic;
}
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { font-size: .85rem; opacity: .65; }

/* --- 9. Contact --------------------------------------- */
.contact {
  background: linear-gradient(180deg, var(--c-bg-2), var(--c-bg-3));
}
.contact-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15; margin: 14px 0 12px;
}
.contact-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 10px;
}
.contact-list li {
  display: grid; grid-template-columns: 110px 1fr; gap: 8px;
  padding: 8px 0; border-bottom: 1px dashed var(--c-line);
}
.contact-list strong { color: var(--c-red); }

.contact-form {
  background: #fff; border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 16px;
  border: 1px solid var(--c-line);
}
.contact-form h3 { margin: 0 0 4px; font-family: var(--ff-display); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; padding: 12px 14px;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  background: var(--c-bg); color: var(--c-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(178,34,52,.15);
}
/* General form card style. The .form class is reused by the marketing signup
   form on /Contact and the standalone /Marketing page. */
.form {
  background: #fff; border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 16px;
  border: 1px solid var(--c-line);
}
.form h3 { margin: 0 0 4px; font-family: var(--ff-display); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; padding: 12px 14px;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  background: var(--c-bg); color: var(--c-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(178,34,52,.15);
}
/* Marketing signup: pill-shaped inputs (operator-requested "rounded edges"
   beyond the standard small radius). Side-by-side fields on wider screens
   via .form-row, single column on mobile. */
.marketing-form input { border-radius: 999px; padding: 14px 20px; }
.marketing-form .form-row {
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .marketing-form .form-row { grid-template-columns: 1fr 1fr; }
}
/* Marketing section gets a slightly distinct background so it reads as its
   own card below the contact form on the /Contact page. */
.marketing-signup {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%);
  border-top: 1px solid var(--c-line);
}
.marketing-signup .section-head { margin-bottom: 36px; }
.error { color: var(--c-red-dark); font-size: .8rem; font-weight: 500; display: none; }
.contact-form.is-invalid label:has([data-error-for="name"]) .error,
.contact-form.is-invalid label:has([data-error-for="contact"]) .error,
.contact-form.is-invalid label:has([data-error-for="pest"]) .error { display: block; }
.form-status { min-height: 1.2em; margin: 0; font-weight: 600; color: var(--c-red); }
.form-fine { font-size: .75rem; opacity: .6; margin: 0; }

/* --- 10. Footer --------------------------------------- */
.site-footer {
  background: var(--c-ink); color: #f5e9c9;
  padding: 56px 0 24px;
}
.site-footer a { color: #f5e9c9; text-decoration: none; }
.site-footer a:hover { color: #f6c46a; }
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: start;
}
.footer-grid .brand-name { color: #fff; font-size: 1.3rem; }
.site-footer p { opacity: .75; }
.site-footer h4 {
  font-family: var(--ff-display); margin: 0 0 10px;
  font-size: 1rem; color: #fff;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .newsletter p { margin: 0 0 8px; font-size: .9rem; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter-row input {
  flex: 1; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid rgba(245,233,201,.2);
  background: rgba(255,255,255,.08); color: #fff;
  font: inherit;
}
.newsletter-row input::placeholder { color: rgba(245,233,201,.5); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(245,233,201,.15);
  text-align: center; opacity: .65; font-size: .85rem;
}

/* --- 11. Scroll-to-top -------------------------------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-red); color: #fff; border: 0;
  font-size: 1.4rem; cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .15s ease;
  z-index: 40;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--c-red-dark); }

/* --- 12. Reveal-on-scroll ----------------------------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* --- 13. Reduced motion ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .title-line, .hero-lede, .hero-ctas, .hero-stats {
    opacity: 1 !important; transform: none !important;
  }
  .hero-dust span, .hero-stars { animation: none !important; opacity: .5; }
}

/* --- 14. Responsive ----------------------------------- */
@media (max-width: 960px) {
  .hero { padding: 120px 0 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-bg); border-bottom: 1px solid var(--c-line);
    padding: 12px 16px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .primary-nav a { padding: 12px; }
  .primary-nav .nav-cta { text-align: center; }
  .section { padding: 72px 0; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .form { padding: 24px; }
}
@media (max-width: 460px) {
  .container { padding: 0 18px; }
  .hero-title { font-size: 2.4rem; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .service-grid { grid-template-columns: 1fr; }
  .pest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form, .contact-form { padding: 20px; }
  .marketing-form input { padding: 13px 18px; }
}

/* --- 15. Services page -------------------------------- */
.page-header {
  padding: 140px 0 80px;
  background: var(--c-bg-2);
  border-bottom: 1px solid var(--c-line);
}
.page-header h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1; letter-spacing: -.02em;
  margin: 16px 0 16px;
  text-wrap: balance;
  max-width: 18ch;
}
.page-header .page-lede {
  font-size: 1.1rem;
  max-width: 60ch;
  opacity: .85;
  margin: 0;
}

.service-detail { background: var(--c-bg); }
.service-detail:nth-of-type(odd) { background: var(--c-bg-2); }
.section-head--left { text-align: left; margin-left: 0; padding: 0; }
.section-head--left h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.1; letter-spacing: -.01em;
  margin: 12px 0 8px;
}
.section-head--left p { font-size: 1.05rem; opacity: .8; max-width: 60ch; margin: 0; }

.service-detail__grid {
  display: grid; gap: 48px;
  grid-template-columns: 1.6fr 1fr;
  align-items: start;
  max-width: 1100px;
  margin: 32px auto 0;
}
.service-detail__body h3 {
  font-family: var(--ff-display);
  font-size: 1.15rem; letter-spacing: .02em;
  margin: 24px 0 8px;
  color: var(--c-red);
}
.service-detail__body h3:first-child { margin-top: 0; }
.service-detail__body p { line-height: 1.6; margin: 0 0 8px; }
.service-detail__quote {
  margin: 16px 0 0;
  padding: 12px 0 12px 16px;
  border-left: 3px solid var(--c-red);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--c-ink);
  opacity: .85;
}
.service-steps {
  list-style: none; counter-reset: step; padding: 0; margin: 8px 0 0;
  display: grid; gap: 14px;
}
.service-steps li {
  position: relative; padding-left: 36px;
  line-height: 1.55;
}
.service-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px;
  background: var(--c-red); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}

.service-detail__aside {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  padding: 28px;
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 14px;
}
.service-detail__price {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 14px; border-bottom: 1px solid var(--c-line);
  margin-bottom: 4px;
}
.price-label {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: #777; font-weight: 600;
}
.price-amount {
  font-family: var(--ff-display);
  font-size: 2.4rem; font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -.01em;
  line-height: 1;
}
.price-note { font-size: .85rem; opacity: .7; line-height: 1.4; margin-top: 4px; }
.aside-note { font-size: .8rem; opacity: .65; margin: 0; line-height: 1.4; }

.services-cta { background: var(--c-ink); color: var(--c-bg); }
.services-cta .cta-card {
  max-width: 700px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.services-cta h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0; color: #fff; line-height: 1.15;
}
.services-cta p { opacity: .8; margin: 0; max-width: 50ch; }

/* --- 16. Privacy modal -------------------------------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 24, 48, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 720px; width: 100%;
  max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--c-line);
}
.modal__header h2 {
  font-family: var(--ff-display);
  font-size: 1.4rem; margin: 0;
  letter-spacing: -.01em;
}
.modal__close {
  background: none; border: 0; cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #555;
  transition: background .15s ease;
}
.modal__close:hover { background: var(--c-bg); color: var(--c-ink); }
.modal__body {
  padding: 24px 28px 28px;
  overflow-y: auto;
  font-size: .95rem; line-height: 1.6;
  color: #333;
}
.modal__body h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  margin: 24px 0 6px; color: var(--c-ink);
}
.modal__body h3:first-child { margin-top: 0; }
.modal__body p { margin: 0 0 10px; }
.modal__body ul { margin: 0 0 10px; padding-left: 20px; }
.modal__body li { margin-bottom: 4px; }

body.modal-open { overflow: hidden; }

@media (max-width: 720px) {
  .service-detail__grid { grid-template-columns: 1fr; gap: 32px; }
  .service-detail__aside { position: static; }
  .page-header { padding: 120px 0 56px; }
  .modal { padding: 12px; }
  .modal__dialog { max-height: 92vh; }
  .modal__header { padding: 16px 20px; }
  .modal__body { padding: 18px 20px 22px; }
}
