/* ============================================================
   Lockport Pest Control — mobile-first stylesheet
   Design goals: fast, honest, phone-first, form-visible above the fold.
   ============================================================ */

:root {
  --green-900: #0f3d24;
  --green-800: #14532d;
  --green-700: #166534;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white: #ffffff;
  --red-600: #dc2626;
  --red-50: #fef2f2;
  --amber-100: #fef3c7;
  --amber-800: #92400e;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 28px rgba(0,0,0,.14);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --container: 1120px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; height: auto; }

a { color: var(--green-800); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--gray-900);
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 4.6vw + .6rem, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.2vw + .5rem, 2rem); }
h3 { font-size: clamp(1.15rem, 1vw + .6rem, 1.35rem); }
p  { margin: 0 0 1em; text-wrap: pretty; }

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

/* ------------------------------------------------------------
   HEADER — sticky, tiny, still leaves room for hero above fold.
   ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  max-width: var(--container); margin: 0 auto;
  gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--green-900);
}
.brand-mark {
  width: 32px; height: 32px; flex: none;
}
.brand-text {
  font-weight: 800; font-size: 1.05rem; line-height: 1.1;
  color: var(--green-900); letter-spacing: -0.01em;
}
.brand-text small {
  display: block; font-weight: 500; font-size: .72rem;
  color: var(--gray-600);
}
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange-600); color: var(--white);
  padding: 10px 14px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
  min-height: 44px;
}
.header-cta:hover { background: var(--orange-700); color: var(--white); }
.header-cta svg { width: 16px; height: 16px; }

/* Simple nav (only on desktop; mobile uses sticky bottom bar) */
.site-nav { display: none; }
@media (min-width: 900px) {
  .site-nav {
    display: flex; gap: 22px; align-items: center;
    font-size: .95rem;
  }
  .site-nav a { color: var(--gray-700); text-decoration: none; font-weight: 600; }
  .site-nav a:hover { color: var(--green-800); }
}

/* ------------------------------------------------------------
   HERO — headline + subhead + form ALL above the fold on 390px.
   ------------------------------------------------------------ */
.hero {
  background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
  padding: 22px 0 32px;
  border-bottom: 1px solid var(--gray-200);
}
.hero-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero { padding: 44px 0 56px; }
  .hero-grid {
    grid-template-columns: 1.05fr .95fr;
    gap: 44px;
    align-items: start;
  }
}
.hero h1 { margin-bottom: 10px; }
.hero .sub {
  color: var(--gray-700);
  font-size: 1.02rem;
  margin: 0 0 14px;
  max-width: 34em;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 14px;
  font-size: .82rem;
}
.hero-badges span {
  background: var(--green-100); color: var(--green-800);
  padding: 4px 10px; border-radius: 999px;
  font-weight: 600;
}

/* ------------------------------------------------------------
   FORM — single column, big fields, thumb-friendly, in the hero.
   ------------------------------------------------------------ */
.lead-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.lead-form h2 {
  margin: 0 0 4px; font-size: 1.15rem; color: var(--green-900);
}
.lead-form .form-sub {
  font-size: .9rem; color: var(--gray-600); margin: 0 0 14px;
}
.field { margin: 0 0 12px; }
.field label {
  display: block;
  font-weight: 600; font-size: .88rem;
  color: var(--gray-800);
  margin: 0 0 4px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 16px;   /* 16px stops iOS zoom-on-focus */
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  min-height: 46px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(22,101,52,.18);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--red-600);
  background: var(--red-50);
}
.field-error {
  display: none;
  color: var(--red-600); font-size: .82rem; margin-top: 5px;
  font-weight: 600;
}
.field.invalid .field-error { display: block; }

/* Honeypot — hidden from real people, present for spam bots. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 800; font-size: 1.02rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-height: 52px;
  transition: background .15s ease, transform .05s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--orange-600); color: var(--white);
  width: 100%;
  box-shadow: 0 4px 0 var(--orange-700), var(--shadow-sm);
}
.btn-primary:hover { background: var(--orange-700); color: var(--white); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--orange-700); }
.btn-secondary {
  background: var(--white); color: var(--green-900);
  border: 2px solid var(--green-800);
}
.btn-secondary:hover { background: var(--green-50); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.form-reassure {
  margin-top: 10px; font-size: .82rem;
  color: var(--gray-600); text-align: center;
}
.form-status {
  margin-top: 12px; padding: 10px 12px;
  border-radius: var(--radius);
  font-size: .92rem;
  display: none;
}
.form-status.ok  { display: block; background: var(--green-100); color: var(--green-900); }
.form-status.err { display: block; background: var(--red-50); color: var(--red-600); font-weight: 600; }

/* ------------------------------------------------------------
   SECTIONS
   ------------------------------------------------------------ */
section { padding: 44px 0; }
@media (min-width: 900px) { section { padding: 64px 0; } }

.section-title { text-align: left; margin-bottom: 22px; }
.section-lede {
  color: var(--gray-700); max-width: 44em; margin: 0 0 26px;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 6px; color: var(--green-900); font-size: 1.1rem; }
.card p { margin: 0 0 10px; color: var(--gray-700); font-size: .96rem; }
.card .icon {
  width: 40px; height: 40px; margin-bottom: 10px;
  color: var(--green-700);
}
.card a.more {
  font-weight: 700; font-size: .9rem;
}

.bg-soft { background: var(--gray-50); }
.bg-green {
  background: var(--green-800);
  color: var(--white);
}
.bg-green h2 { color: var(--white); }
.bg-green p { color: rgba(255,255,255,.9); }
.bg-green a { color: #fef3c7; }

.two-col {
  display: grid; gap: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1.2fr .8fr; gap: 44px; }
}

/* Step / benefit list */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.steps li {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px;
  align-items: start;
}
.steps .num {
  background: var(--green-700); color: var(--white);
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
}
.steps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.steps p  { margin: 0; color: var(--gray-700); font-size: .96rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li {
  padding-left: 28px; position: relative; margin: 0 0 8px;
  color: var(--gray-800); font-size: .98rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>") no-repeat center / contain;
}

/* FAQ */
details.faq {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 10px;
  background: var(--white);
}
details.faq[open] { box-shadow: var(--shadow-sm); }
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--gray-900);
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  font-weight: 700; font-size: 1.4rem; color: var(--green-700);
  transition: transform .2s ease;
}
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 10px 0 0; color: var(--gray-700); }

/* Big CTA block */
.cta-block {
  background: var(--green-800);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}
.cta-block h2 { color: var(--white); margin-bottom: 8px; }
.cta-block p  { color: rgba(255,255,255,.92); margin-bottom: 22px; }
.cta-block .btns {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  max-width: 420px; margin: 0 auto;
}
@media (min-width: 700px) {
  .cta-block .btns { flex-direction: row; justify-content: center; max-width: none; }
}

/* Areas / services link grid */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.link-grid a {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-900);
  text-decoration: none;
  font-weight: 600; font-size: .95rem;
  min-height: 46px;
}
.link-grid a:hover { border-color: var(--green-700); color: var(--green-800); background: var(--green-50); }
.link-grid a::before {
  content: "→"; color: var(--green-700); font-weight: 800;
}

/* Footer */
.site-footer {
  background: var(--gray-900); color: var(--gray-300);
  padding: 40px 0 100px;   /* extra bottom = room for mobile sticky bar */
  font-size: .92rem;
}
.site-footer h4 { color: var(--white); margin: 0 0 10px; font-size: 1rem; }
.site-footer a { color: var(--gray-300); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid {
  display: grid; gap: 26px; grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0 0 6px; }
.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 30px; padding-top: 18px;
  color: var(--gray-500); font-size: .82rem;
}

/* ------------------------------------------------------------
   MOBILE STICKY CTA BAR — only shown on small screens.
   ------------------------------------------------------------ */
.sticky-mobile {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -6px 20px rgba(0,0,0,.10);
  display: flex; gap: 8px;
  padding: 8px 10px;
  z-index: 50;
}
.sticky-mobile a, .sticky-mobile button {
  flex: 1;
  padding: 12px 6px;
  border-radius: var(--radius);
  font-weight: 800; font-size: .95rem;
  text-align: center; text-decoration: none;
  min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer; font-family: inherit;
}
.sticky-mobile .m-call { background: var(--green-800); color: var(--white); }
.sticky-mobile .m-quote { background: var(--orange-600); color: var(--white); }
@media (min-width: 900px) {
  .sticky-mobile { display: none; }
  .site-footer { padding-bottom: 40px; }
}

/* Breadcrumbs */
.crumbs {
  font-size: .84rem; color: var(--gray-500);
  padding: 12px 0 0;
}
.crumbs a { color: var(--gray-600); text-decoration: none; }
.crumbs a:hover { color: var(--green-800); text-decoration: underline; }
.crumbs span { margin: 0 6px; }

/* Emergency banner */
.emergency-banner {
  background: #fef3c7;
  color: var(--amber-800);
  padding: 10px 20px;
  text-align: center;
  font-weight: 700; font-size: .92rem;
}
.emergency-banner a { color: var(--amber-800); text-decoration: underline; }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.small { font-size: .88rem; color: var(--gray-600); }
.lead { font-size: 1.08rem; color: var(--gray-800); }

/* Skip link — accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-800); color: var(--white);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; color: var(--white); }
