/* =========================================================
   AllWeatherUpdates — main stylesheet
   ========================================================= */

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

:root {
  --navy: #0a1f44;
  --navy-2: #12306b;
  --brand: #1a6ff2;
  --brand-dark: #1257c4;
  --accent: #f5a524;

  --bg: #f2f5fa;
  --surface: #ffffff;
  --text: #0f1b2d;
  --text-2: #3d4b5f;
  --muted: #6b7a90;
  --border: #e3e9f1;
  --rain: #1a6ff2;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.04), 0 6px 24px rgba(15, 27, 45, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 27, 45, 0.12);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Lucide icons render as <svg class="lucide"> */
.lucide { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }

/* =========================================================
   Header
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 70px; }

.logo { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.logo img { width: 40px; height: 40px; margin: -4px -2px; }
.logo b { color: var(--accent); font-weight: 800; }

/* Thin bar above the header with small page links */
.utility-bar { background: #061532; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 13px; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; }
.utility-note { color: rgba(255, 255, 255, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  color: rgba(255, 255, 255, 0.7); font-weight: 500;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav a.active { color: var(--accent); }

.search { position: relative; flex: 1; max-width: 480px; margin-left: auto; }
.search input::-webkit-search-decoration,
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search > .lucide { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8a9bb5; pointer-events: none; }
.search input {
  width: 100%; height: 42px; padding: 0 16px 0 42px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08); color: #fff;
  font: inherit; font-size: 15px; outline: none;
  transition: background 0.15s, border-color 0.15s;
}
.search input::placeholder { color: #8a9bb5; }
.search input:focus { background: #fff; color: var(--text); border-color: #fff; }

.suggestions {
  position: absolute; top: 50px; left: 0; right: 0; z-index: 60;
  list-style: none; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.suggestions li { padding: 11px 16px; cursor: pointer; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); }
.suggestions li:last-child { border-bottom: 0; }
.suggestions li strong { font-weight: 600; }
.suggestions li small { color: var(--muted); }
.suggestions li:hover, .suggestions li.active { background: #f0f5ff; }

.actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.08);
  color: #fff; cursor: pointer; transition: background 0.15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); }

.unit-toggle { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.unit-toggle button {
  background: transparent; color: rgba(255, 255, 255, 0.75); border: 0;
  height: 34px; padding: 0 13px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.unit-toggle button.active { background: #fff; color: var(--navy); }

/* =========================================================
   Hero (home) — background follows the current sky
   ========================================================= */
.hero {
  --sky: linear-gradient(135deg, #1460d6 0%, #2f8af5 55%, #63b3ff 100%);
  background: var(--sky);
  color: #fff;
  padding: 44px 0 110px;
  position: relative;
  overflow: hidden;
  transition: background 0.6s ease;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% auto;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 65%);
  pointer-events: none;
}
.hero[data-sky="night"]  { --sky: linear-gradient(135deg, #0a1633 0%, #172b5a 55%, #2b4580 100%); }
.hero[data-sky="cloudy"] { --sky: linear-gradient(135deg, #46576e 0%, #64788f 55%, #8ea1b6 100%); }
.hero[data-sky="rainy"]  { --sky: linear-gradient(135deg, #23364d 0%, #3b5574 55%, #5b7896 100%); }
.hero[data-sky="snowy"]  { --sky: linear-gradient(135deg, #4d6f96 0%, #7f9fc2 55%, #b3c8de 100%); }
.hero[data-sky="stormy"] { --sky: linear-gradient(135deg, #1b1830 0%, #332e4f 55%, #4f4872 100%); }

.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand);
}
.hero .eyebrow { color: rgba(255, 255, 255, 0.8); }
.eyebrow .lucide { width: 15px; height: 15px; }

.now h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.25; }
.now-meta { color: rgba(255, 255, 255, 0.75); font-size: 14px; margin-top: 2px; }

.now-main { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.now-main img { width: 128px; height: 128px; margin-left: -14px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15)); }
.now-temp { font-size: 88px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.now-cond { font-size: 22px; font-weight: 600; margin-top: 6px; }
.now-hilo { color: rgba(255, 255, 255, 0.8); font-size: 15px; margin-top: 2px; white-space: pre; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stat .lucide {
  grid-row: span 2; width: 38px; height: 38px; padding: 9px;
  border-radius: 10px; background: rgba(255, 255, 255, 0.16);
}
.stat span { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.stat strong { font-size: 17px; font-weight: 600; }

.status {
  display: inline-flex; margin-bottom: 18px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); font-size: 14px; font-weight: 500;
}
.status.error { background: #fde8e8; color: #b42318; }

/* Content pulled up over the hero */
.overlap { margin-top: -70px; position: relative; z-index: 2; padding-bottom: 72px; }

/* =========================================================
   Cards & sections
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.card-head h2 .lucide { width: 22px; height: 22px; color: var(--brand); }
.card-sub { font-size: 14px; color: var(--muted); }

.loading { color: var(--muted); font-size: 15px; padding: 24px 0; }

.section { margin-top: 64px; }
.section:first-child { margin-top: 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-top: 6px; }
.section-head p:not(.eyebrow) { color: var(--text-2); font-size: 17px; margin-top: 10px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature h3 { font-size: 17px; font-weight: 650; margin: 14px 0 6px; }
.feature p { color: var(--text-2); font-size: 15px; }
.feature .months { color: var(--brand); font-size: 13px; font-weight: 600; margin: -2px 0 8px; }
.feature-row { display: flex; gap: 16px; align-items: flex-start; }
.feature-row h3 { margin-top: 0; }

.num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: #e8f0fe; color: var(--brand); font-weight: 700; font-size: 15px;
}

/* Icon chips */
.chip {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 12px;
  background: #e8f0fe; color: var(--brand);
}
.chip .lucide { width: 22px; height: 22px; }
.chip-lg { width: 60px; height: 60px; border-radius: 16px; }
.chip-lg .lucide { width: 28px; height: 28px; }
.c-orange { background: #fff1e6; color: #e8590c; }
.c-blue   { background: #e8f0fe; color: #1a6ff2; }
.c-sky    { background: #e3f6fd; color: #0b8ac4; }
.c-teal   { background: #e1f7f1; color: #0c8f6f; }
.c-yellow { background: #fff7db; color: #c48a00; }
.c-purple { background: #f1ebff; color: #6d3fe0; }
.c-red    { background: #fdeaea; color: #d92d20; }

/* =========================================================
   Hourly
   ========================================================= */
.hourly {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 6px 4px 14px; scroll-snap-type: x mandatory; /* room for the hover lift */
}
.hourly::-webkit-scrollbar { height: 6px; }
.hourly::-webkit-scrollbar-thumb { background: #d3dbe6; border-radius: 3px; }
.hour {
  flex: 0 0 84px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 6px; border-radius: 14px;
  border: 1px solid var(--border); background: #fafcff;
  cursor: default;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hour img { transition: transform 0.2s; }
.hour:not(.now):hover {
  transform: translateY(-4px);
  background: #eef4ff;
  border-color: #b9d2fb;
  box-shadow: 0 8px 18px rgba(26, 111, 242, 0.15);
}
.hour:not(.now):hover img { transform: scale(1.1); }
.hour:not(.now):hover .h-time { color: var(--brand); }
/* First hour of the next day in the "next 24 hours" view */
.hour.midnight { border-left: 3px solid var(--brand); }
.hour.midnight .h-time { color: var(--brand); font-weight: 700; }

/* Day picker above the hourly strip */
.day-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  margin: -4px 0 12px; padding: 4px 2px 8px;
}
.day-tabs::-webkit-scrollbar { height: 0; }
.day-tabs button {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  min-width: 70px; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  font: inherit; color: var(--text); cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.day-tabs button strong { font-size: 14px; font-weight: 600; }
.day-tabs button small { font-size: 12px; color: var(--muted); }
.day-tabs button:hover { border-color: #b9d2fb; background: #f4f8ff; }
.day-tabs button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.day-tabs button.active small { color: rgba(255, 255, 255, 0.7); }
.hour.now { background: var(--brand); border-color: var(--brand); color: #fff; }
.hour .h-time { font-size: 13px; color: var(--muted); font-weight: 500; }
.hour.now .h-time { color: rgba(255, 255, 255, 0.85); }
.hour img { width: 48px; height: 48px; }
.hour .h-temp { font-size: 17px; font-weight: 700; }
.hour .h-rain { font-size: 12px; color: var(--muted); }
.hour .h-rain.wet { color: var(--rain); font-weight: 600; }
.hour.now .h-rain { color: rgba(255, 255, 255, 0.85); }

/* =========================================================
   10 day
   ========================================================= */
.day-row {
  display: grid;
  grid-template-columns: 96px 48px 1.2fr 64px 2fr;
  align-items: center; gap: 16px;
  padding: 12px 8px; border-radius: 12px;
  border-bottom: 1px solid var(--border);
}
.day-row:last-child { border-bottom: 0; }
.day-row { cursor: pointer; transition: background 0.15s; }
.day-row:hover { background: #f6f9fd; }
.day-row.selected { background: #eef4ff; box-shadow: inset 3px 0 0 var(--brand); }
.day-row:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.d-name strong { display: block; font-weight: 650; }
.d-name small { color: var(--muted); font-size: 13px; }
.d-icon { width: 44px; height: 44px; }
.d-cond span { display: block; font-weight: 500; font-size: 15px; }
.d-cond small { color: var(--muted); font-size: 13px; }
.d-rain { font-size: 14px; color: var(--muted); text-align: center; }
.d-rain.wet { color: var(--rain); font-weight: 600; }
.d-temps { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.d-temps .lo { color: var(--muted); width: 38px; text-align: right; }
.d-temps .hi { font-weight: 700; width: 38px; }
.range { flex: 1; height: 6px; border-radius: 3px; background: #e8edf4; position: relative; }
.range span { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #4fb3ff, #ffc53d, #ff7a45); }

/* =========================================================
   Promo cards, FAQ, CTA
   ========================================================= */
.promo {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 30px; border-radius: var(--radius); color: #fff;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.promo-guide  { background: linear-gradient(135deg, #1257c4, #2f8af5); }
.promo-safety { background: linear-gradient(135deg, #0a1f44, #24427f); }
.promo .chip { background: rgba(255, 255, 255, 0.16); color: #fff; }
.promo h3 { font-size: 21px; font-weight: 700; }
.promo p { color: rgba(255, 255, 255, 0.85); margin: 6px 0 14px; }
.promo .link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.promo:hover .link .lucide { transform: translateX(3px); }
.promo .link .lucide { transition: transform 0.2s; }

.faq { padding: 8px 28px; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: #eef3fa; color: var(--brand);
  font-size: 18px; font-weight: 500; transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin-top: 10px; max-width: 760px; }

.cta {
  margin-top: 64px; padding: 36px 40px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cta h2 { font-size: 24px; font-weight: 700; }
.cta p { color: rgba(255, 255, 255, 0.75); margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--accent); color: var(--navy);
  font-weight: 700; padding: 13px 24px; border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.header-cta { margin-left: auto; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245, 165, 36, 0.4); }

/* =========================================================
   Inner pages
   ========================================================= */
.page-hero { color: #fff; padding: 40px 0 120px; }
.hero-guide  { background: linear-gradient(135deg, #1257c4 0%, #2f8af5 60%, #5fb0ff 100%); }
.hero-safety { background: linear-gradient(135deg, #0a1f44 0%, #1b3a78 60%, #2c5aa8 100%); }
.page-hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin-top: 14px; }
.page-hero > .wrap > p { font-size: 18px; color: rgba(255, 255, 255, 0.85); max-width: 620px; margin-top: 8px; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .lucide { width: 14px; height: 14px; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a {
  color: #fff; font-size: 14px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.15s;
}
.toc a:hover { background: rgba(255, 255, 255, 0.24); }

.prose > p { color: var(--text-2); font-size: 16px; max-width: 760px; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.t-step { padding: 20px; border-radius: 14px; background: #f7f9fc; border: 1px solid var(--border); }
.t-step h3 { font-size: 16px; font-weight: 650; margin: 12px 0 4px; }
.t-step p { font-size: 14px; color: var(--text-2); }

.note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 22px;
  padding: 16px 18px; border-radius: 12px;
  background: #fff8e6; border: 1px solid #fde7b0; color: #6b4e00;
}
.note .lucide { color: #c48a00; margin-top: 2px; }

.cloud-list { display: grid; gap: 4px; margin-top: 16px; }
.cloud-row { display: flex; gap: 18px; align-items: center; padding: 12px; border-radius: 12px; }
.cloud-row:hover { background: #f6f9fd; }
.cloud-row img { width: 64px; height: 64px; flex-shrink: 0; background: linear-gradient(135deg, #3d8bf2, #8cc3ff); border-radius: 14px; }
.cloud-row h3 { font-size: 17px; font-weight: 650; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cloud-row p { color: var(--text-2); font-size: 15px; }
.tag { font-size: 12px; font-weight: 600; color: var(--brand); background: #e8f0fe; padding: 2px 10px; border-radius: 999px; }

.icon-list { list-style: none; display: grid; gap: 18px; margin-top: 18px; }
.icon-list li { display: flex; gap: 16px; align-items: flex-start; }
.icon-list strong { font-size: 16px; }
.icon-list p { color: var(--text-2); font-size: 15px; }

/* Safety page */
.hazard-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.hazard-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.hazard-head p { color: var(--text-2); margin-top: 4px; max-width: 760px; }

.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.phase { border-radius: 14px; padding: 20px; border: 1px solid var(--border); border-top: 4px solid; }
.phase h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.phase h3 .lucide { width: 16px; height: 16px; }
.phase ul { padding-left: 18px; display: grid; gap: 8px; }
.phase li { font-size: 15px; color: var(--text-2); }
.phase-before { border-top-color: #1a6ff2; background: #f7faff; }
.phase-before h3 { color: #1a6ff2; }
.phase-during { border-top-color: #e8590c; background: #fffaf6; }
.phase-during h3 { color: #e8590c; }
.phase-after  { border-top-color: #0c8f6f; background: #f6fcfa; }
.phase-after h3 { color: #0c8f6f; }

.checklist { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin-top: 18px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.checklist .lucide {
  width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: #e1f7f1; color: #0c8f6f; stroke-width: 3;
}

.helpline {
  display: flex; gap: 16px; align-items: center; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.helpline:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.helpline strong { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.helpline div span { color: var(--muted); font-size: 14px; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 44px; }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.footer a { color: rgba(255, 255, 255, 0.7); transition: color 0.15s; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: rgba(255, 255, 255, 0.7); transition: color 0.15s;
}
.link-btn:hover { color: #fff; }

/* =========================================================
   Cookie consent
   ========================================================= */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 100;
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 20px 24px; border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: 0 16px 48px rgba(15, 27, 45, 0.22);
  animation: cookie-in 0.35s ease-out;
}
@keyframes cookie-in { from { transform: translateY(24px); opacity: 0; } }
.cookie-banner h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; }
.cookie-banner h2 .lucide { width: 20px; height: 20px; color: var(--accent); }
.cookie-banner p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.cookie-banner a, .cookie-modal a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.cbtn {
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap;
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cbtn-primary { background: var(--navy); color: #fff; }
.cbtn-primary:hover { background: var(--navy-2); }
.cbtn-outline { background: #fff; color: var(--navy); border-color: #c9d3e0; }
.cbtn-outline:hover { border-color: var(--navy); }
.cbtn-ghost { background: transparent; color: var(--brand); padding-left: 10px; padding-right: 10px; }
.cbtn-ghost:hover { text-decoration: underline; }

.cookie-modal {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px);
  margin: auto; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.cookie-modal::backdrop { background: rgba(6, 21, 50, 0.55); }
.cookie-modal form { padding: 24px; }
.cookie-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-modal-head h2 { font-size: 20px; font-weight: 700; }
.cookie-close {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: #f0f3f8; color: var(--text);
}
.cookie-close:hover { background: #e3e9f1; }
.cookie-modal-intro { color: var(--text-2); font-size: 14px; margin-top: 8px; }

.cookie-cats { margin-top: 18px; border: 1px solid var(--border); border-radius: 12px; }
.cookie-cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; }
.cookie-cat + .cookie-cat { border-top: 1px solid var(--border); }
.cookie-cat h3 { font-size: 15px; font-weight: 650; }
.cookie-cat p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.always-on { font-size: 13px; font-weight: 600; color: #0c8f6f; white-space: nowrap; }

.switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slider { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; transition: background 0.2s; pointer-events: none; }
.slider::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s;
}
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--brand); outline-offset: 2px; }

.cookie-modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Privacy policy table */
.policy-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.policy-table th, .policy-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.policy-table th { background: #f7f9fc; font-weight: 600; }
.policy-table code { font-size: 13px; background: #eef3fa; padding: 1px 6px; border-radius: 4px; }
.table-wrap { overflow-x: auto; }
.prose h3 { font-size: 17px; font-weight: 650; margin: 18px 0 6px; }
.prose ul.bullets { padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; margin-top: 8px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .grid-4, .timeline { grid-template-columns: repeat(2, 1fr); }
  .topbar-inner { gap: 16px; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-3, .phases { grid-template-columns: 1fr 1fr; }
  .phases .phase:last-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .day-row { grid-template-columns: 80px 44px 1fr 48px 1.6fr; gap: 10px; }

  /* Header: logo + actions on top, search below */
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 12px 20px; row-gap: 12px; }
  .topbar-inner .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .topbar-inner .actions { margin-left: auto; }
  html { scroll-padding-top: 130px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .utility-note { display: none; }
  .nav { margin: 0 auto; }
  .topbar-inner { padding: 12px 16px; }
  .logo { font-size: 17px; gap: 6px; }
  .logo img { width: 34px; height: 34px; }
  .topbar-inner .actions { gap: 6px; }
  .unit-toggle button { padding: 0 10px; }
  .card { padding: 20px; }
  .faq { padding: 4px 20px; }
  .section { margin-top: 48px; }
  .section-head h2 { font-size: 24px; }
  .grid-2, .grid-3, .grid-4, .timeline, .phases, .checklist { grid-template-columns: 1fr; }
  .phases .phase:last-child { grid-column: auto; }

  .hero { padding: 28px 0 96px; }
  .now h1 { font-size: 24px; }
  .now-main img { width: 100px; height: 100px; }
  .now-temp { font-size: 68px; }
  .stats { gap: 10px; }
  .stat { padding: 12px; column-gap: 10px; }
  .stat .lucide { width: 34px; height: 34px; padding: 8px; }
  .stat strong { font-size: 15px; }

  .day-row { grid-template-columns: 64px 40px 1fr; gap: 8px; padding: 10px 4px; }
  .d-icon { width: 40px; height: 40px; }
  .d-cond, .d-rain { display: none; }
  .d-temps { font-size: 15px; gap: 8px; }

  .page-hero { padding: 28px 0 100px; }
  .page-hero h1 { font-size: 32px; }
  .page-hero > .wrap > p { font-size: 16px; }
  .hazard-head { flex-direction: column; gap: 12px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 28px; }
  .promo { flex-direction: column; padding: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .footer-brand { grid-column: auto; }

  .cookie-banner { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .cookie-actions { flex-wrap: wrap; }
  .cookie-actions .cbtn-outline, .cookie-actions .cbtn-primary { flex: 1; }
  .cookie-actions .cbtn-ghost { order: 3; width: 100%; }
  .cookie-modal form { padding: 18px; }
  .cookie-modal-actions .cbtn { flex: 1; }
}

@media (max-width: 400px) {
  .topbar-inner { column-gap: 10px; }
  .logo { font-size: 15px; }
  .logo img { width: 30px; height: 30px; }
  .icon-btn { width: 38px; height: 38px; }
  .unit-toggle button { height: 30px; padding: 0 9px; font-size: 13px; }
  .header-cta { padding: 8px 12px; font-size: 13px; }
  .header-cta .lucide { display: none; }
}
