:root {
  --blue-dark: #1e3a8a;
  --blue-primary: #1d4ed8;
  --blue-light: #3b82f6;
  --sky-light: #e0f2fe;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

a { color: var(--blue-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* NAV */
.site-header {
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.nav-container {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem;
  color: var(--blue-dark); text-decoration: none;
}
.logo-icon { font-size: 1.5rem; }
.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  color: var(--text-muted); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all 0.3s; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0ea5e9 100%);
  position: relative; overflow: hidden;
  padding: 80px 20px 100px;
  text-align: center;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: white; margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.hero-highlight { color: #bfdbfe; }
.hero-subtitle { color: rgba(255,255,255,0.88); font-size: 1.15rem; margin-bottom: 2.5rem; }

/* SNOWFLAKES */
.snowflakes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.snowflake {
  position: absolute; top: -30px;
  color: rgba(255,255,255,0.6); font-size: 1rem;
  animation: snowfall linear infinite;
}
@keyframes snowfall {
  0%   { transform: translateY(-30px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0.2; }
}

/* FORM CARD */
.prediction-form-card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  max-width: 700px; margin: 0 auto 2.5rem;
}
.prediction-form .form-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.88rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input, .form-group select {
  padding: 12px 16px; border: 2px solid var(--border-color);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: var(--blue-light); }
.input-hint { font-size: 0.78rem; color: var(--text-muted); }

.btn-predict {
  display: block; width: 100%;
  background: linear-gradient(135deg, var(--blue-primary), #0ea5e9);
  color: white; border: none; border-radius: var(--radius);
  padding: 16px 32px; font-size: 1.1rem; font-weight: 600;
  font-family: 'Poppins', sans-serif; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(29,78,216,0.4);
  text-decoration: none; text-align: center;
}
.btn-predict:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,78,216,0.5); text-decoration: none; }
.btn-predict:active { transform: translateY(0); }

.hero-stats {
  display: flex; justify-content: center; gap: 3rem; margin-top: 2rem; flex-wrap: wrap;
}
.stat-item { text-align: center; color: white; }
.stat-number { display: block; font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 700; }
.stat-label { font-size: 0.85rem; opacity: 0.8; }

/* HOW IT WORKS */
.how-it-works { padding: 80px 0; background: white; }
.section-title { font-size: 2rem; text-align: center; color: var(--blue-dark); margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 3rem; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.step-card {
  background: var(--bg); border-radius: var(--radius); padding: 2rem;
  text-align: center; transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.step-card h3 { color: var(--blue-dark); margin-bottom: 0.75rem; }
.step-card p { color: var(--text-muted); }

/* FACTORS */
.factors-section { padding: 60px 0; background: var(--sky-light); }
.factors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 2rem; }
.factor-card {
  background: white; border-radius: var(--radius); padding: 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-align: center; font-weight: 600; box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.factor-card:hover { transform: translateY(-3px); }
.factor-icon { font-size: 1.8rem; }

/* CTA */
.cta-section { padding: 80px 0; }
.cta-card {
  background: linear-gradient(135deg, var(--blue-dark), #0ea5e9);
  border-radius: 24px; padding: 4rem 2rem; text-align: center;
  color: white;
}
.cta-card h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.cta-card p { opacity: 0.88; margin-bottom: 2rem; }
.cta-card .btn-predict { max-width: 300px; margin: 0 auto; }

/* RESULT PAGE */
.result-page { padding: 40px 0 80px; }
.demo-banner {
  background: #fef3c7; border: 1px solid #f59e0b; border-radius: var(--radius);
  padding: 12px 20px; margin-bottom: 24px; font-size: 0.9rem;
}
.result-header { margin-bottom: 2rem; }
.back-link { color: var(--blue-primary); font-weight: 600; display: inline-block; margin-bottom: 1rem; }
.result-city { font-size: clamp(1.5rem, 4vw, 2.5rem); color: var(--blue-dark); }
.result-meta { color: var(--text-muted); margin-top: 0.5rem; }

.result-main { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }

.gauge-card, .weather-card, .forecast-card {
  background: var(--card-bg); border-radius: 20px; padding: 2rem;
  box-shadow: var(--shadow); border: 1px solid var(--border-color);
}
.gauge-label-top { text-align: center; color: var(--text-muted); font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.gauge-wrapper { position: relative; width: 200px; height: 200px; margin: 0 auto 1rem; }
.gauge-svg { width: 200px; height: 200px; }
.gauge-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  text-align: center;
}
.gauge-percent { font-family: 'Poppins', sans-serif; font-size: 2.8rem; font-weight: 700; color: var(--text-dark); }
.gauge-pct-sign { font-size: 1.2rem; color: var(--text-muted); }
.gauge-label { font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 700; text-align: center; margin-bottom: 0.5rem; }
.gauge-sublabel { text-align: center; color: var(--text-muted); font-size: 0.9rem; }

.card-title { font-size: 1.2rem; color: var(--blue-dark); margin-bottom: 1.25rem; }
.weather-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.weather-item { text-align: center; }
.weather-icon-emoji { font-size: 1.5rem; display: block; margin-bottom: 0.25rem; }
.weather-val { display: block; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem; }
.weather-key { font-size: 0.8rem; color: var(--text-muted); }

.forecast-card { margin-bottom: 2rem; }
.forecast-scroll { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.forecast-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  min-width: 80px; padding: 1rem; background: var(--bg); border-radius: var(--radius);
  font-size: 0.85rem; flex-shrink: 0;
}
.forecast-time { color: var(--text-muted); font-size: 0.75rem; }
.forecast-icon { font-size: 1.5rem; }
.forecast-temp { font-weight: 700; }
.forecast-snow { color: var(--blue-light); font-size: 0.78rem; }

.result-actions { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.btn-secondary {
  padding: 12px 24px; border: 2px solid var(--blue-primary); color: var(--blue-primary);
  border-radius: var(--radius); font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block; transition: all 0.2s;
  font-family: inherit; background: transparent;
}
.btn-secondary:hover { background: var(--blue-primary); color: white; text-decoration: none; }
.btn-share {
  padding: 12px 24px; background: var(--success); color: white;
  border: none; border-radius: var(--radius); font-weight: 600;
  cursor: pointer; font-family: inherit; font-size: 1rem; transition: all 0.2s;
}
.btn-share:hover { filter: brightness(0.9); }

.disclaimer-box {
  background: var(--sky-light); border-left: 4px solid var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem;
  font-size: 0.88rem; color: var(--text-muted);
}

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
  padding: 60px 20px; text-align: center; color: white;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.88; font-size: 1.1rem; }

.page-content { padding: 60px 0; }
.content-section { max-width: 820px; margin: 0 auto 3.5rem; }
.content-section h2 { color: var(--blue-dark); font-size: 1.6rem; margin-bottom: 1rem; border-bottom: 2px solid var(--sky-light); padding-bottom: 0.5rem; }
.content-section p { color: var(--text-muted); margin-bottom: 1rem; }

.info-list { list-style: none; padding: 0; margin: 1rem 0; }
.info-list li { padding: 0.75rem 1rem; border-left: 3px solid var(--blue-light); margin-bottom: 0.75rem; background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }

/* ABOUT */
.factors-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.factor-detail-card { background: white; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.factor-detail-card h3 { color: var(--blue-dark); margin-bottom: 0.75rem; font-size: 1.05rem; }
.factor-detail-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.weight-bar { height: 6px; background: var(--border-color); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.weight-fill { height: 100%; background: linear-gradient(to right, var(--blue-primary), #0ea5e9); border-radius: 999px; }
.weight-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border-color); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.faq-q { padding: 1.25rem 1.5rem; background: white; font-size: 1rem; color: var(--blue-dark); cursor: pointer; }
.faq-a { padding: 0 1.5rem 1.25rem; color: var(--text-muted); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.contact-form-wrap, .contact-info-card { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-card h3 { color: var(--blue-dark); margin-bottom: 1rem; }
.contact-details { list-style: none; padding: 0; }
.contact-details li { padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; }
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form input, .contact-form textarea {
  padding: 12px 16px; border: 2px solid var(--border-color);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
  width: 100%; transition: border-color 0.2s; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue-light); }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.88rem; color: var(--text-muted); }
.req { color: var(--danger); }
.contact-form .btn-predict { width: auto; min-width: 180px; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert-success { background: #dcfce7; border: 1px solid var(--success); color: #166534; }
.alert-danger { background: #fee2e2; border: 1px solid var(--danger); color: #991b1b; }

/* CITY DESC */
.chart-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.chart-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.chart-card .card-title {
  color: var(--blue-dark);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.chart-container {
  position: relative;
  height: 280px;
}
@media (max-width: 768px) {
  .chart-section { grid-template-columns: 1fr; }
  .chart-container { height: 220px; }
}

.city-description { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.city-description h2 { color: var(--blue-dark); margin-bottom: 1rem; }
.city-description p { color: var(--text-muted); }

/* FOOTER */
.site-footer {
  background: var(--blue-dark); color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}
.footer-container {
  max-width: 1100px; margin: 0 auto; padding: 0 20px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 3rem;
}
.footer-brand .logo-text { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.2rem; color: white; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 0.5rem; }
.footer-links h4, .footer-disclaimer h4 {
  color: white; font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-disclaimer p { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 20px; text-align: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: white; padding: 1rem 20px; border-bottom: 1px solid var(--border-color); gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 0.75rem 0; display: block; border-bottom: 1px solid var(--border-color); }
  .nav-toggle { display: flex; }
  .nav-container { position: relative; }

  .result-main { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .weather-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-container { grid-template-columns: 1fr; }
  .prediction-form .form-row { grid-template-columns: 1fr; }
}

/* Cities Section */
.cities-section { padding: 4rem 0; background: var(--bg); }
.city-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; justify-content: center; }
.city-tab {
  padding: 0.7rem 2rem; border: 2px solid var(--blue-primary); border-radius: 50px;
  background: transparent; color: var(--blue-primary); font-weight: 600;
  font-size: 1rem; cursor: pointer; transition: all 0.2s;
}
.city-tab.active, .city-tab:hover {
  background: var(--blue-primary); color: white;
}
.city-list-panel { display: none; }
.city-list-panel.active { display: block; }
.state-group {
  margin-bottom: 1.25rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.state-group:last-child { border-bottom: none; }
.state-name {
  font-size: 1rem; color: var(--blue-dark); margin-bottom: 0.5rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.state-cities { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.city-link {
  color: var(--text-dark); font-size: 0.92rem; padding: 0.2rem 0;
  transition: color 0.2s; text-decoration: none;
}
.city-link:hover { color: var(--blue-primary); text-decoration: underline; }
.city-zip {
  display: inline-block; font-size: 0.75rem; color: #94a3b8; margin-left: 0.25rem;
  background: #f1f5f9; padding: 0.05rem 0.35rem; border-radius: 4px; font-weight: 500;
  vertical-align: middle; letter-spacing: 0.02em;
}
.weather-val-sub {
  display: block; font-size: 0.85rem; color: #64748b; font-weight: 500; margin-top: 0.1rem;
}
.temp-celsius {
  display: block; font-size: 0.75rem; color: #94a3b8; margin-top: 0.15rem;
}
.zip-badge {
  display: inline-block; background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  color: #1e40af; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 6px;
  font-size: 0.95rem; letter-spacing: 0.03em;
}

.today-weather-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
  border-radius: 16px; padding: 1.75rem; margin-bottom: 1.5rem;
  border: 1px solid #bae6fd; box-shadow: 0 4px 15px rgba(14,165,233,0.1);
}
.today-weather-card .card-title { color: #0369a1; }
.today-desc {
  text-align: center; color: #0c4a6e; font-weight: 500; margin-top: 1rem;
  font-size: 1.05rem; background: rgba(255,255,255,0.5); padding: 0.5rem 1rem;
  border-radius: 8px; display: inline-block; width: 100%;
}
.weather-val-sub {
  font-size: 0.85rem; color: #64748b; margin-top: -0.25rem;
}

.community-vote-card {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #ede9fe 100%);
  border-radius: 16px; padding: 2rem; margin-bottom: 1.5rem; text-align: center;
  border: 1px solid #d8b4fe; box-shadow: 0 4px 15px rgba(139,92,246,0.1);
}
.community-vote-card .card-title { color: #6d28d9; margin-bottom: 0.25rem; }
.vote-subtitle { color: #7c3aed; font-size: 1.1rem; font-weight: 500; margin-bottom: 1.5rem; }

.vote-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.vote-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.25rem 2rem; border-radius: 16px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.3s ease; min-width: 130px;
  font-family: inherit;
}
.vote-btn:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.vote-btn:active { transform: translateY(-1px); }
.vote-emoji { font-size: 2.5rem; line-height: 1; }
.vote-label { font-weight: 700; font-size: 0.95rem; }

.vote-no {
  background: linear-gradient(135deg, #fef3c7, #fde68a); border-color: #f59e0b;
  color: #92400e;
}
.vote-no:hover { background: linear-gradient(135deg, #fde68a, #fcd34d); }

.vote-maybe {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd); border-color: #38bdf8;
  color: #0c4a6e;
}
.vote-maybe:hover { background: linear-gradient(135deg, #bae6fd, #7dd3fc); }

.vote-yes {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0); border-color: #34d399;
  color: #064e3b;
}
.vote-yes:hover { background: linear-gradient(135deg, #a7f3d0, #6ee7b7); }

.vote-results { max-width: 420px; margin: 0 auto; text-align: left; }
.vote-bar-group { margin-bottom: 1rem; }
.vote-bar-label {
  display: flex; justify-content: space-between; font-size: 0.95rem;
  font-weight: 600; color: #4c1d95; margin-bottom: 0.35rem;
}
.vote-bar {
  height: 28px; background: rgba(255,255,255,0.6); border-radius: 14px;
  overflow: hidden; border: 1px solid #d8b4fe;
}
.vote-bar-fill {
  height: 100%; border-radius: 14px; transition: width 0.8s ease;
  min-width: 2px;
}
.bar-no { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.bar-maybe { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.bar-yes { background: linear-gradient(90deg, #34d399, #10b981); }

.vote-total {
  text-align: center; color: #7c3aed; font-weight: 600; margin-top: 1rem;
  font-size: 0.95rem;
}
.vote-hint {
  color: #6b21a8; font-size: 0.9rem; margin-top: 1rem; font-style: italic;
}

@media (max-width: 600px) {
  .vote-buttons { flex-direction: column; align-items: center; }
  .vote-btn { width: 100%; max-width: 260px; flex-direction: row; padding: 1rem 1.5rem; }
  .vote-emoji { font-size: 2rem; }
}

/* === ENHANCED RESPONSIVE & MOBILE === */
img, video, svg { max-width: 100%; height: auto; }
input, select, textarea, button { font: inherit; }
input, select, textarea { font-size: 16px; } /* prevents iOS zoom on focus */

@media (max-width: 1024px) {
  .nav-container, .container, .footer-container { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 768px) {
  .hero-title { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
  .calc-hero { padding: 32px 16px 28px !important; }
  .quick-search-card { padding: 14px !important; }
  .qs-row { flex-direction: column; }
  .qs-row input, .qs-btn { width: 100%; }
  .prediction-form-card { padding: 16px !important; }
  .prediction-form .form-row { grid-template-columns: 1fr !important; gap: 12px; }
  .ir-stats { grid-template-columns: 1fr 1fr !important; }
  .ir-head h2 { font-size: 1.2rem; }
  .ir-cta { flex-direction: column; }
  .ir-cta .btn-full, .ir-cta .btn-reset { width: 100%; text-align: center; }
  .city-tabs { flex-wrap: wrap; }
  .city-tab { padding: 0.55rem 1.25rem; font-size: 0.9rem; }
  .state-cities { gap: 0.3rem 0.75rem; }
  .city-link { font-size: 0.88rem; }
  .rich-content, .city-description { padding: 1.25rem !important; }
  .rich-content h2 { font-size: 1.3rem; }
  .rich-content h3 { font-size: 1.1rem; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-logo .logo-text { font-size: 1rem; }
  .faq-item { padding: 12px 14px !important; }
  .ir-gauge svg { max-width: 180px; height: auto; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.35rem !important; }
  .calc-intro { font-size: 0.95rem !important; }
  .qs-label { font-size: 0.9rem; }
  .ir-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ir-stat { padding: 10px 12px; font-size: 0.9rem; }
  .vote-buttons { gap: 0.5rem; }
}
@media (hover: none) {
  .city-link:hover, .vote-btn:hover, .qs-btn:hover { transform: none; }
}

/* === SMOOTHNESS & PERCEIVED PERFORMANCE === */
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-overflow-scrolling: touch; }
body { overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Smoother tap targets on iOS/Android */
a, button, .city-tab, .vote-btn { -webkit-tap-highlight-color: rgba(29,78,216,.15); touch-action: manipulation; }

/* GPU-accelerate common transforms to keep scrolling jank-free */
.vote-btn, .city-tab, .qs-btn, .btn-full, .btn-reset, .city-link {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Skip rendering of below-the-fold heavy sections until scrolled near */
.cities-section,
.faq-section,
.rich-content,
.chart-section,
.community-vote-card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

/* Top progress bar shown during navigation for instant-feel */
.nav-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8 60%, #60a5fa);
  z-index: 9999; transition: width .35s ease, opacity .25s ease;
  border-radius: 0 3px 3px 0; box-shadow: 0 0 8px rgba(59,130,246,.6);
  pointer-events: none; opacity: 0;
}
.nav-progress.show { opacity: 1; }

/* Subtle entrance for cards once visible */
@keyframes sd-fade-up {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.quick-search-card, .prediction-form-card, .today-weather-card, .community-vote-card {
  animation: sd-fade-up .35s ease-out both;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .nav-progress { display: none; }
}

/* === BLOG === */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.blog-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid #e2e8f0;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.blog-card-img {
  width: 100%; aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  background-color: #e0f2fe;
}
.blog-card-placeholder {
  display:flex; align-items:center; justify-content:center;
  font-size: 4rem; background: linear-gradient(135deg,#dbeafe,#bae6fd);
}
.blog-card-body { padding: 18px 20px 20px; flex:1; display:flex; flex-direction:column; }
.blog-card-title { font-family:'Poppins',sans-serif; font-size:1.15rem; color:#0f172a; margin-bottom:8px; line-height:1.3; }
.blog-card-excerpt { color:#475569; font-size:.95rem; line-height:1.55; flex:1; margin-bottom: 14px; }
.blog-card-meta { font-size:.8rem; color:#94a3b8; display:flex; gap:6px; align-items:center; }
.blog-post-hero {
  background: linear-gradient(135deg,#1e3a8a,#1d4ed8 60%,#3b82f6);
  color: #fff; padding: 56px 0 36px;
}
.blog-back { color: rgba(255,255,255,.8); text-decoration: none; font-size:.92rem; display:inline-block; margin-bottom:14px; }
.blog-back:hover { color: #fff; }
.blog-post-title { font-family:'Poppins',sans-serif; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.blog-post-meta { color: rgba(255,255,255,.85); font-size: .92rem; display:flex; gap:10px; flex-wrap:wrap; }
.blog-cover-wrap { padding: 24px 20px 0; max-width: 900px; margin: 0 auto; }
.blog-cover { width:100%; max-height: 460px; object-fit: cover; border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.blog-content { max-width: 760px; margin: 32px auto; background:#fff; padding: 32px; border-radius: 12px; box-shadow: var(--shadow); }
.blog-content h1, .blog-content h2, .blog-content h3 { font-family: 'Poppins', sans-serif; color:#0f172a; margin: 1.5em 0 .5em; line-height: 1.25; }
.blog-content h1 { font-size: 1.75rem; }
.blog-content h2 { font-size: 1.4rem; }
.blog-content h3 { font-size: 1.15rem; }
.blog-content p { margin-bottom: 1em; color:#334155; line-height: 1.75; font-size: 1.02rem; }
.blog-content ul, .blog-content ol { margin: 0 0 1em 1.5em; color:#334155; }
.blog-content li { margin-bottom: 0.4em; }
.blog-content a { color: var(--blue-primary); text-decoration: underline; }
.blog-content blockquote {
  border-left: 4px solid var(--blue-primary); padding: 8px 16px; margin: 1em 0;
  background: #f8fafc; color: #475569; font-style: italic;
}
.blog-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1em 0; }
.blog-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.blog-content pre { background: #0f172a; color: #f8fafc; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 1em 0; }
.blog-content pre code { background: transparent; padding: 0; color: inherit; }
@media (max-width: 768px) {
  .blog-content { padding: 20px; margin: 20px auto; }
  .blog-post-hero { padding: 36px 0 24px; }
  .blog-cover-wrap { padding: 16px 16px 0; }
}

/* === City autocomplete === */
.city-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15,23,42,.15);
  z-index: 1000;
  max-height: 280px;
  overflow-y: auto;
}
.city-suggest-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
  transition: background .12s;
  font-size: .95rem;
  color: #0f172a;
}
.city-suggest-item:last-child { border-bottom: none; }
.city-suggest-item:hover, .city-suggest-item.active { background: #eff6ff; }
.csi-name { font-weight: 600; }
.csi-state { color: #64748b; font-size: .85rem; }

/* Breadcrumb navigation */
.breadcrumb-nav { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 12px 0; }
.breadcrumb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; color: #64748b; }
.breadcrumb-list li { display: flex; align-items: center; }
.breadcrumb-list li + li::before { content: "›"; margin: 0 8px; color: #cbd5e1; font-weight: 600; }
.breadcrumb-list a { color: #1d4ed8; text-decoration: none; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list [aria-current="page"] { color: #0f172a; font-weight: 600; }
