/* =============================================
   Perigos Alimentares — App CSS
   Mobile-first PWA
   ============================================= */

:root {
  --bg: #0f172a;
  --bg2: #1e293b;
  --bg3: #334155;
  --surface: #1e293b;
  --surface2: #273549;
  --border: #334155;
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-dark: #b91c1c;
  --purple: #8b5cf6;

  --risk1: #10b981;
  --risk2: #84cc16;
  --risk3: #f59e0b;
  --risk4: #ef4444;
  --risk5: #7f1d1d;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --nav-h: 64px;
  --header-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ============ LIGHT MODE ============ */
body.light {
  --bg: #f1f5f9;
  --bg2: #ffffff;
  --bg3: #e2e8f0;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #cbd5e1;
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
  font-size: 16px;
  line-height: 1.5;
}

/* ============ LAYOUT ============ */
#app { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }

.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  flex-shrink: 0;
}

.header-btn {
  background: none; border: none; color: var(--text2);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; transition: background 0.15s;
}
.header-btn:hover { background: var(--bg3); }

.header-title { flex: 1; font-size: 18px; font-weight: 700; color: var(--text); }
.header-subtitle { font-size: 12px; color: var(--text3); font-weight: 400; }

.main-content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 16px);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.page { display: none; animation: fadeIn 0.2s ease; }
.page.active { display: block; }

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

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  color: var(--text3); font-size: 10px; font-family: var(--font);
  transition: color 0.15s; padding: 8px 4px;
}
.nav-item .nav-icon { font-size: 22px; line-height: 1; transition: transform 0.15s; }
.nav-item.active { color: var(--primary); }
.nav-item.active .nav-icon { transform: scale(1.15); }
.nav-item:hover { color: var(--text); }

/* ============ HOME PAGE ============ */
.home-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  padding: 28px 20px 24px;
  position: relative; overflow: hidden;
}
.home-hero::before {
  content: '🛡️';
  position: absolute; right: -10px; top: -10px;
  font-size: 120px; opacity: 0.08; line-height: 1;
}
.home-hero h1 { font-size: 24px; font-weight: 800; color: #fff; line-height: 1.2; }
.home-hero p { font-size: 14px; color: #93c5fd; margin-top: 8px; max-width: 280px; }

.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 50px; padding: 10px 16px; margin: 16px 16px 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 15px;
}
.search-bar input::placeholder { color: var(--text3); }
.search-bar .search-icon { color: var(--text3); font-size: 18px; }

.section-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text3);
  padding: 20px 16px 10px;
}

.category-filters {
  display: flex; gap: 8px; padding: 0 16px 12px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.category-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 50px; white-space: nowrap;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text2); transition: all 0.15s;
}
.filter-chip.active, .filter-chip:hover {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

.hazards-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 0 16px;
}

.hazard-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 14px;
  cursor: pointer; transition: all 0.18s; position: relative;
  overflow: hidden; text-decoration: none; display: block;
}
.hazard-card:hover, .hazard-card:focus {
  background: var(--surface2); border-color: var(--primary);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.hazard-card .card-icon { font-size: 36px; line-height: 1; margin-bottom: 10px; display: block; }
.hazard-card .card-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.hazard-card .card-summary { font-size: 11px; color: var(--text3); margin-top: 4px; line-height: 1.4; }
.hazard-card .risk-badge {
  position: absolute; top: 10px; right: 10px;
  width: 10px; height: 10px; border-radius: 50%;
}

.risk-1 { background: var(--risk1); }
.risk-2 { background: var(--risk2); }
.risk-3 { background: var(--risk3); }
.risk-4 { background: var(--risk4); }
.risk-5 { background: var(--risk5); box-shadow: 0 0 8px var(--risk4); }

.quick-links {
  display: flex; gap: 10px; padding: 0 16px; flex-wrap: wrap;
}
.quick-link {
  flex: 1; min-width: 140px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  cursor: pointer; transition: all 0.15s; text-decoration: none;
}
.quick-link:hover { background: var(--surface2); border-color: var(--primary); }
.quick-link .ql-icon { font-size: 28px; }
.quick-link .ql-text { font-size: 13px; font-weight: 600; color: var(--text); }
.quick-link .ql-sub { font-size: 11px; color: var(--text3); }

/* ============ DETAIL PAGE ============ */
.detail-header {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%);
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}
.detail-icon { font-size: 56px; line-height: 1; margin-bottom: 12px; display: block; }
.detail-name { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.2; }
.detail-category { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 4px; }
.detail-summary { font-size: 14px; color: var(--text2); margin-top: 10px; line-height: 1.6; }

.risk-bar {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
}
.risk-label { font-size: 12px; color: var(--text3); font-weight: 600; }
.risk-dots { display: flex; gap: 5px; }
.risk-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg3); transition: background 0.2s;
}
.risk-dot.filled { }

.sections-nav {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--border); background: var(--bg2);
  position: sticky; top: var(--header-h); z-index: 50;
}
.sections-nav::-webkit-scrollbar { display: none; }
.section-tab {
  padding: 12px 16px; font-size: 13px; font-weight: 600;
  color: var(--text3); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: all 0.15s;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--font);
}
.section-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.content-section { padding: 20px 16px; }

.info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.info-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.info-card p, .info-card li { font-size: 14px; color: var(--text2); line-height: 1.7; }
.info-card ul { padding-left: 18px; }
.info-card li { margin-bottom: 4px; }

.highlight-box {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px;
}
.highlight-box.warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); }
.highlight-box.success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); }
.highlight-box.info { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); }
.highlight-box p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.highlight-box strong { color: var(--text); }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: var(--bg3); color: var(--text2); font-weight: 600;
  text-align: left; padding: 10px 12px; font-size: 12px;
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface2); }

.safe-yes { color: var(--success); font-weight: 700; }
.safe-no { color: var(--danger); font-weight: 700; }
.safe-partial { color: var(--warning); font-weight: 700; }

/* Risk chips */
.risk-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700;
}
.risk-chip.muito_alto, .risk-chip.critico { background: rgba(127,29,29,0.3); color: #fca5a5; border: 1px solid rgba(239,68,68,0.4); }
.risk-chip.alto { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.risk-chip.medio { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.risk-chip.baixo { background: rgba(16,185,129,0.1); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.risk-chip.muito_baixo { background: rgba(16,185,129,0.08); color: #a7f3d0; border: 1px solid rgba(16,185,129,0.2); }

/* Fish table */
.fish-table .fish-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-bottom: 1px solid var(--border);
}
.fish-table .fish-row:last-child { border-bottom: none; }
.fish-name { flex: 1; font-size: 14px; color: var(--text); font-weight: 500; }
.fish-note { font-size: 12px; color: var(--text3); }

/* Evidence stars */
.evidence-stars { display: flex; gap: 4px; }
.star { font-size: 18px; opacity: 0.25; }
.star.filled { opacity: 1; }

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 50px; padding: 4px 12px;
  font-size: 12px; color: var(--text2);
}

/* ============ SEARCH PAGE ============ */
.search-page { padding: 16px; }
.search-results { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.search-result-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; transition: all 0.15s;
}
.search-result-card:hover { background: var(--surface2); border-color: var(--primary); }
.src-icon { font-size: 32px; line-height: 1; flex-shrink: 0; }
.src-body { flex: 1; }
.src-name { font-size: 15px; font-weight: 700; color: var(--text); }
.src-summary { font-size: 13px; color: var(--text3); margin-top: 4px; line-height: 1.5; }
.src-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

.empty-state {
  text-align: center; padding: 48px 24px;
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 17px; font-weight: 700; color: var(--text2); }
.empty-state p { font-size: 14px; color: var(--text3); margin-top: 8px; line-height: 1.6; }

/* ============ FOOD SEARCH ============ */
.food-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.12s;
}
.food-item:hover { background: var(--surface); }
.food-emoji { font-size: 28px; }
.food-name { font-size: 15px; font-weight: 600; color: var(--text); }
.food-risks { font-size: 12px; color: var(--text3); margin-top: 2px; }
.food-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* ============ MYTHS PAGE ============ */
.myths-list { display: flex; flex-direction: column; gap: 12px; padding: 16px; }

.myth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.myth-header {
  padding: 14px 16px; display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer;
}
.myth-verdict-badge {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; margin-top: 1px;
}
.myth-verdict-badge.falso { background: rgba(239,68,68,0.2); color: #ef4444; }
.myth-verdict-badge.verdadeiro { background: rgba(16,185,129,0.2); color: #10b981; }
.myth-verdict-badge.depende { background: rgba(245,158,11,0.2); color: #f59e0b; }

.myth-text { flex: 1; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5; font-style: italic; }
.myth-chevron { color: var(--text3); font-size: 16px; transition: transform 0.2s; margin-left: auto; }
.myth-card.open .myth-chevron { transform: rotate(180deg); }
.myth-body { display: none; padding: 0 16px 14px 60px; }
.myth-card.open .myth-body { display: block; }
.myth-explanation { font-size: 14px; color: var(--text2); line-height: 1.7; }
.myth-source { font-size: 11px; color: var(--text3); margin-top: 8px; }

.verdict-label {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700;
  margin-bottom: 8px;
}
.verdict-label.falso { background: rgba(239,68,68,0.15); color: #ef4444; }
.verdict-label.verdadeiro { background: rgba(16,185,129,0.15); color: #10b981; }
.verdict-label.depende { background: rgba(245,158,11,0.15); color: #f59e0b; }

/* ============ CHECKLIST PAGE ============ */
.checklist-page { padding: 16px; }
.checklist-intro {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 20px;
}
.checklist-intro h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.checklist-intro p { font-size: 14px; color: var(--text2); line-height: 1.6; }

.checklist-questions { display: flex; flex-direction: column; gap: 10px; }
.question-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  transition: border-color 0.15s;
}
.question-card.answered-yes { border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.04); }
.question-card.answered-no { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.04); }

.question-text { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5; margin-bottom: 12px; }
.question-btns { display: flex; gap: 8px; }
.q-btn {
  flex: 1; padding: 9px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--bg3);
  color: var(--text2); transition: all 0.15s; font-family: var(--font);
}
.q-btn.yes { border-color: rgba(239,68,68,0.5); color: #ef4444; }
.q-btn.no { border-color: rgba(16,185,129,0.4); color: #10b981; }
.q-btn.yes.active { background: rgba(239,68,68,0.2); }
.q-btn.no.active { background: rgba(16,185,129,0.15); }

.question-advice {
  margin-top: 10px; padding: 10px 12px;
  background: rgba(239,68,68,0.1); border-radius: var(--radius-sm);
  font-size: 13px; color: #fca5a5; line-height: 1.5;
  display: none;
}
.question-card.answered-yes .question-advice { display: block; }

.checklist-result {
  margin-top: 20px; padding: 20px; border-radius: var(--radius);
  text-align: center; display: none;
}
.checklist-result.show { display: block; }
.checklist-result.safe {
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
}
.checklist-result.caution {
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3);
}
.checklist-result.danger {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
}
.result-icon { font-size: 48px; margin-bottom: 12px; }
.result-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.result-desc { font-size: 14px; color: var(--text2); line-height: 1.6; }

.reset-btn {
  margin-top: 20px; padding: 12px 32px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 50px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: var(--font); transition: background 0.15s;
}
.reset-btn:hover { background: var(--primary-dark); }

/* ============ TEMPERATURES PAGE ============ */
.temp-page { padding: 16px; }
.temp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 10px;
}
.temp-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.temp-row:last-child { border-bottom: none; }
.temp-icon { font-size: 28px; flex-shrink: 0; }
.temp-info { flex: 1; }
.temp-situation { font-size: 14px; font-weight: 700; color: var(--text); }
.temp-note { font-size: 12px; color: var(--text3); margin-top: 2px; line-height: 1.4; }
.temp-value {
  font-size: 15px; font-weight: 800; text-align: right;
  white-space: nowrap;
}
.temp-value.cold { color: #60a5fa; }
.temp-value.freeze { color: #93c5fd; }
.temp-value.danger { color: #f87171; }
.temp-value.hot { color: #fb923c; }
.temp-value.cook { color: #fbbf24; }

/* ============ PROFILES PAGE ============ */
.profiles-page { padding: 16px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.profile-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px; cursor: pointer;
  transition: all 0.15s; text-align: center;
}
.profile-card.active { border-color: var(--primary); background: rgba(59,130,246,0.08); }
.profile-card:hover { background: var(--surface2); }
.profile-icon { font-size: 40px; margin-bottom: 8px; }
.profile-name { font-size: 13px; font-weight: 700; color: var(--text); }
.profile-alerts { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.profile-alert {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; gap: 12px;
}
.alert-severity { width: 4px; border-radius: 2px; flex-shrink: 0; }
.alert-body h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.alert-body p { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ============ RECALLS PAGE ============ */
.recalls-page { padding: 16px; }
.recall-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
}
.recall-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.recall-name { font-size: 14px; font-weight: 700; color: var(--text); }
.recall-status {
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 50px; flex-shrink: 0;
}
.recall-status.ativo { background: rgba(239,68,68,0.2); color: #ef4444; }
.recall-status.resolvido { background: rgba(16,185,129,0.15); color: #10b981; }
.recall-reason { font-size: 13px; color: var(--text2); margin-top: 6px; line-height: 1.5; }
.recall-date { font-size: 11px; color: var(--text3); margin-top: 6px; }

/* ============ LOADING & TOAST ============ */
.loading { display: flex; justify-content: center; padding: 40px; }
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--primary);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; bottom: calc(var(--nav-h) + 12px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg3); color: var(--text);
  padding: 10px 20px; border-radius: 50px; font-size: 14px;
  box-shadow: var(--shadow); opacity: 0; transition: all 0.25s;
  pointer-events: none; z-index: 300; white-space: nowrap; max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ ACRILAMIDA COLOR SCALE ============ */
.color-scale { display: flex; gap: 8px; }
.color-scale-item {
  flex: 1; border-radius: var(--radius-sm); overflow: hidden;
  text-align: center;
}
.color-swatch { height: 40px; }
.color-label { font-size: 11px; color: var(--text3); padding: 6px 4px; font-weight: 600; }
.color-verdict { font-size: 10px; color: var(--text3); padding: 0 4px 6px; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ============ RESPONSIVE (larger screens) ============ */
@media (min-width: 480px) {
  .hazards-grid { grid-template-columns: repeat(3, 1fr); }
  .home-hero h1 { font-size: 28px; }
}

@media (min-width: 768px) {
  .hazards-grid { grid-template-columns: repeat(4, 1fr); }
  .main-content { max-width: 600px; margin: 0 auto; }
  .bottom-nav { max-width: 600px; left: 50%; transform: translateX(-50%); }
  .header { max-width: 600px; margin: 0 auto; left: auto; right: auto; }
}
