/* ============================================================
   GwinnettConnect — Base Stylesheet
   Authority-first, crawl-clean, conversion-ready
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #1a4fa0;
  --brand-dark:  #133a7a;
  --accent:      #e8a020;
  --text:        #1c1c1e;
  --muted:       #5a5a6e;
  --bg:          #f8f9fc;
  --surface:     #ffffff;
  --border:      #dde1ea;
  --radius:      8px;
  --max-w:       1100px;
  --section-gap: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

/* --- Header --- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--brand-dark); }

.site-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--brand); text-decoration: none; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 72px 0 60px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero .lede {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 640px;
  margin-bottom: 20px;
}

.hero .lede strong { color: #fff; }

.notice {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 0.88rem;
  margin-bottom: 28px;
  max-width: 560px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  text-decoration: none;
}
.btn:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1c1c1e;
}
.btn.primary:hover { background: #d08e10; border-color: #d08e10; }

/* Dark context buttons */
.section .btn {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}
.section .btn:hover { background: var(--brand); color: #fff; }
.section .btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.section .btn.primary:hover { background: var(--brand-dark); }

/* --- Sections --- */
.section {
  padding: var(--section-gap) 0;
}

.section:nth-child(even) { background: var(--surface); }

.section h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.subtext {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.97rem;
}

/* --- Service Grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  position: relative;
}
.card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(26,79,160,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
}

.card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f0f3fa;
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 4px;
}

/* --- Pill Grid (Cities) --- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pill {
  display: inline-block;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.pill:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  text-decoration: none;
}

/* --- Steps --- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
  max-width: 600px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- Bullets --- */
.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.bullets li {
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
}

.bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 6px; }

/* --- Silo Hero (inner pages) --- */
.silo-hero {
  background: linear-gradient(135deg, #0f3070 0%, var(--brand) 100%);
  color: #fff;
  padding: 52px 0 44px;
}

.silo-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

.silo-hero .lede {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 16px;
}

/* --- Service List (silo pages) --- */
.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.service-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
}

/* --- City Grid (silo main page) --- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.city-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.city-card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 12px rgba(26,79,160,0.1);
  text-decoration: none;
  color: var(--brand);
}

.city-card small {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}

/* --- Nearby Cities (city pages) --- */
.nearby-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* --- Exclusion List (pest control do-not-treat) --- */
.exclusion-list li::before {
  content: "✗";
  color: #c53030;
}
.exclusion-list li {
  color: #c53030;
}

/* --- Compliance Block --- */
.compliance {
  background: #f0f3fa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 32px;
  line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
  background: #111827;
  color: #c8cdd8;
  padding: 48px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.site-footer h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #9aa3b5;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

.footer-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.footer-cities a {
  color: #9aa3b5;
  font-size: 0.82rem;
  text-decoration: none;
}
.footer-cities a:hover { color: #fff; }
.footer-cities a::after { content: " •"; margin-left: 6px; color: #444; }
.footer-cities a:last-child::after { content: ""; }

.fine {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Header Phone --- */
.header-phone-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  border: 2px solid var(--brand);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.header-phone-link:hover {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

/* --- CTA Phone Button --- */
.cta-phone { margin-top: 12px; }
.cta-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 20px 16px; z-index: 99; }
  .site-nav.open li a { display: block; padding: 10px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .site-nav.open li:last-child a { border-bottom: none; }
  .site-header .container { position: relative; flex-wrap: wrap; }

  .hero { padding: 48px 0 40px; }

  .steps { max-width: 100%; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .city-grid { grid-template-columns: 1fr 1fr; }
}
