/* ─── RESET & TOKENS ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:         #0e1b2e;
  --navy-mid:     #142339;
  --navy-light:   #1e3254;
  --gold:         #c9922a;
  --gold-light:   #e8a83a;
  --gold-pale:    #f5e9d0;
  --cream:        #f7f4ef;
  --text-primary: #1a1a2e;
  --text-muted:   #6b7280;
  --border:       #e5e7eb;
  --card-bg:      #ffffff;
  --surface:      #f7f4ef;
  --shadow:       0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10);
  --radius:       12px;
  --radius-sm:    8px;
  --font-display: 'Cabinet Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Satoshi', 'Segoe UI', sans-serif;

  /* service type colors */
  --electric:  #f59e0b;
  --gas:       #ef4444;
  --water:     #3b82f6;
  --trash:     #22c55e;
  --internet:  #8b5cf6;
}

[data-theme="dark"] {
  --navy:         #0a1628;
  --navy-mid:     #0f1f3d;
  --navy-light:   #1a2f52;
  --cream:        #0e1b2e;
  --text-primary: #f0ece4;
  --text-muted:   #9ca3af;
  --border:       #1e3254;
  --card-bg:      #0f1f3d;
  --surface:      #0a1628;
  --gold-pale:    #2a1e07;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background 0.3s, color 0.3s;
}

/* ─── NAVBAR ─── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 24px;
}
.navbar-gold-bar { height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-icon { width: 32px; height: 32px; color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: #fff; letter-spacing: -0.01em; }
.brand-sub  { font-size: 0.68rem; color: rgba(255,255,255,0.55); }
.nav-center { flex: 1; display: flex; justify-content: center; }
.portal-link { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }
.portal-link:hover { color: var(--gold-light); }
.theme-toggle {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 6px 8px; color: rgba(255,255,255,0.8);
  cursor: pointer; display: flex; align-items: center; flex-shrink: 0; transition: background 0.2s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  padding: 64px 24px 56px;
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.badge {
  display: inline-block;
  background: rgba(201,146,42,0.18); border: 1px solid rgba(201,146,42,0.4);
  color: var(--gold-light); font-family: var(--font-display); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.12em; padding: 5px 14px; border-radius: 100px; margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.72); max-width: 640px; margin-bottom: 40px; line-height: 1.7; }
.hero-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.stat { padding: 0 32px 0 0; }
.stat-num { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--gold-light); line-height: 1; margin-bottom: 4px; }
.stat-label { display: block; font-size: 0.67rem; font-weight: 600; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); }
.stat-divider { width: 1px; height: 38px; background: rgba(255,255,255,0.15); margin-right: 32px; }

/* ─── TIP BAR ─── */
.tip-bar-section { padding: 0 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.tip-bar {
  display: flex; gap: 24px; flex-wrap: wrap;
  background: var(--navy); border-radius: var(--radius);
  padding: 18px 24px; margin-top: 24px;
}
.tip-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.84rem; color: rgba(255,255,255,0.72); flex: 1; min-width: 200px;
}
.tip-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.tip-item strong { color: #fff; }

/* ─── LEGEND ─── */
.legend-section { padding: 16px 24px 0; }
.legend {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 14px 20px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-top: 16px;
}
.legend-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 500; color: var(--text-primary); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-item.electric .legend-dot { background: var(--electric); }
.legend-item.gas      .legend-dot { background: var(--gas); }
.legend-item.water    .legend-dot { background: var(--water); }
.legend-item.trash    .legend-dot { background: var(--trash); }
.legend-item.internet .legend-dot { background: var(--internet); }

/* ─── COUNTY TABS ─── */
.county-section { padding: 32px 24px 64px; }

.tab-nav {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 28px; border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.tab-btn {
  font-family: var(--font-display); font-size: 0.875rem; font-weight: 600;
  padding: 10px 20px; border: none; background: transparent;
  color: var(--text-muted); cursor: pointer; border-radius: 8px 8px 0 0;
  transition: color 0.2s, background 0.2s; position: relative; bottom: -2px;
  border-bottom: 2px solid transparent;
}
.tab-btn:hover { color: var(--text-primary); background: var(--surface); }
.tab-btn.active {
  color: var(--gold); border-bottom: 2px solid var(--gold);
  background: var(--card-bg); font-weight: 700;
}

.county-panel { display: none; }
.county-panel.active { display: block; }

.county-header { margin-bottom: 20px; }
.county-header h2 {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.02em; margin-bottom: 4px;
}
.county-meta { font-size: 0.85rem; color: var(--text-muted); }

.county-note {
  background: var(--gold-pale); border: 1px solid rgba(201,146,42,0.25);
  border-left: 3px solid var(--gold); border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 0.875rem; color: var(--text-primary);
  margin-bottom: 24px; line-height: 1.6;
}
.county-note.small { font-size: 0.82rem; margin-top: 12px; margin-bottom: 0; }

/* ─── SERVICE BLOCKS ─── */
.service-block { margin-bottom: 32px; }

.service-heading {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.01em; padding: 10px 16px; border-radius: var(--radius-sm);
  margin-bottom: 14px; width: fit-content;
}
.service-heading.electric { background: rgba(245,158,11,0.12); color: #b45309; }
.service-heading.gas      { background: rgba(239,68,68,0.1);   color: #b91c1c; }
.service-heading.water    { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.service-heading.trash    { background: rgba(34,197,94,0.12);  color: #15803d; }
.service-heading.internet { background: rgba(139,92,246,0.12); color: #6d28d9; }

[data-theme="dark"] .service-heading.electric { background: rgba(245,158,11,0.15); color: #fbbf24; }
[data-theme="dark"] .service-heading.gas      { background: rgba(239,68,68,0.15);  color: #f87171; }
[data-theme="dark"] .service-heading.water    { background: rgba(59,130,246,0.15); color: #60a5fa; }
[data-theme="dark"] .service-heading.trash    { background: rgba(34,197,94,0.15);  color: #4ade80; }
[data-theme="dark"] .service-heading.internet { background: rgba(139,92,246,0.15); color: #a78bfa; }

/* ─── PROVIDER CARDS ─── */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.provider-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.provider-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.provider-name {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 5px;
}
.provider-territory {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5;
}
.provider-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.provider-actions a {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  padding: 5px 10px; border-radius: 6px; text-decoration: none;
  transition: background 0.15s, color 0.15s;
  background: var(--surface); color: var(--text-primary);
  border: 1px solid var(--border);
}
.provider-actions a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.provider-actions a.phone {
  background: rgba(201,146,42,0.12); color: var(--gold);
  border-color: rgba(201,146,42,0.25);
}
.provider-actions a.phone:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ─── MOVE-IN CHECKLIST ─── */
.checklist-section { padding: 64px 24px; background: var(--card-bg); }
.section-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; margin-bottom: 10px;
}
.section-sub { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 36px; max-width: 600px; }

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.checklist-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.check-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.check-title {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 6px;
}
.check-content p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ─── CTA ─── */
.cta-section { padding: 64px 24px; }
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 16px; padding: 48px 40px; text-align: center;
  max-width: 720px; margin: 0 auto; box-shadow: var(--shadow-lg);
}
.cta-icon { font-size: 2.5rem; margin-bottom: 16px; }
.cta-box h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.7; margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btn {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  padding: 13px 28px; border-radius: 8px; text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.cta-btn:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ─── FOOTER ─── */
.footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 24px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; font-size: 0.76rem; color: rgba(255,255,255,0.35);
}
.footer-inner a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-inner a:hover { color: var(--gold); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero { padding: 48px 20px 44px; }
  .hero-stats { flex-direction: column; gap: 14px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }
  .tip-bar { flex-direction: column; gap: 14px; }
  .tab-nav { gap: 4px; }
  .tab-btn { padding: 8px 12px; font-size: 0.8rem; }
  .provider-grid { grid-template-columns: 1fr; }
  .checklist-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 36px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .navbar-inner { padding: 0 16px; }
  .brand-sub { display: none; }
}

@media (max-width: 480px) {
  .county-section, .checklist-section, .cta-section { padding: 40px 16px; }
  .tip-bar-section, .legend-section { padding-left: 16px; padding-right: 16px; }
  .county-header h2 { font-size: 1.3rem; }
  .tab-btn { padding: 7px 10px; font-size: 0.75rem; }
}
