
:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:rgba(17,24,39,.10);

  --purple:#6D28D9;
  --purple2:#7C3AED;
  --green:#22C55E;
  --green2:#16A34A;
  --orange:#F97316;
  --red:#EF4444;

  --shadow:0 12px 40px rgba(17,24,39,.10);
  --shadow-sm:0 8px 24px rgba(17,24,39,.08);
  --radius:18px;
  --radius-lg:26px;
  --max:1160px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.92}

.container{max-width:var(--max);margin:0 auto;padding:0 20px}
.section{padding:72px 0}
.section-sm{padding:44px 0}

.nav{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding: 14px clamp(10px, 2vw, 24px)}
.brand{display:flex;align-items:center;gap:12px;min-width:180px}
.brand img{width:34px;height:34px;border-radius:10px;object-fit:cover}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand .name{font-weight:900;letter-spacing:-0.02em}
.brand .tag{font-size:12px;color:var(--muted);margin-top:-2px}

.nav-links{display:flex;gap:16px;align-items:center}
.nav-links a{
  padding:10px 12px;border-radius:12px;
  font-weight:650;color:rgba(17,24,39,.88);
  border:1px solid transparent;
}
.nav-links a.active{
  background:rgba(109,40,217,.08);
  border:1px solid rgba(109,40,217,.18);
}
.nav-cta{display:flex;gap:10px;align-items:center}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:14px;
  border:1px solid var(--border);
  background:#fff;font-weight:750;gap:10px;
  line-height:1;          /* removes vertical optical drift */
  text-align:center;
  box-sizing:border-box;
  transition:transform .08s ease, box-shadow .08s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.btn.primary{
  background:linear-gradient(135deg,var(--purple),var(--purple2));
  color:#fff;border-color:rgba(109,40,217,.35);

  /* center the text/content */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;

  /* use balanced padding instead of only right padding */
  padding: 10px 20px; /* adjust vertical/horizontal as you like */
}
.btn.green{
  background:linear-gradient(135deg,var(--green),var(--green2));
  color:#fff;border-color:rgba(34,197,94,.35);
}
.btn.ghost{
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(10px);
}

.hero{
  padding:56px 0 28px 0;
  background:
    radial-gradient(1000px 500px at 10% 10%, rgba(109,40,217,.16), transparent 60%),
    radial-gradient(900px 500px at 85% 25%, rgba(34,197,94,.14), transparent 60%),
    radial-gradient(800px 500px at 65% 95%, rgba(249,115,22,.10), transparent 60%);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:26px;
  align-items:center;
}
.hero h1{
  font-size:52px;line-height:1.08;
  margin:14px 0 12px 0;letter-spacing:-0.03em;
}
.hero p{
  margin:0;font-size:18px;
  color:rgba(17,24,39,.76);
  max-width:56ch;
}
.hero .actions{display:flex;gap:12px;margin-top:18px;flex-wrap:wrap}

.hero-media{
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  background:rgba(255,255,255,.7);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-media img{width:100%;display:block;object-fit:cover}

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.card-pad{padding:18px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}

.h2{font-size:30px;letter-spacing:-0.02em;margin:0 0 10px 0}
.sub{color:rgba(17,24,39,.70);margin:0}

.small{font-size:12px;color:var(--muted)}

/* Understand / Reduce / Prepare strip */
.trip-strip{
  margin-top:18px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow-sm);
  display:flex;
  overflow:hidden;
}
.trip-item{
  flex:1;
  display:flex;
  gap:12px;
  padding:14px 16px;
  align-items:center;
}
.trip-divider{width:1px;background:rgba(17,24,39,.10)}
.trip-ic{
  width:34px;height:34px;border-radius:12px;
  border:1px solid var(--border);
  background:linear-gradient(135deg, rgba(109,40,217,.10), rgba(34,197,94,.10));
  display:flex;align-items:center;justify-content:center;
}
.trip-ic img{width:18px;height:18px;opacity:.92}
.trip-txt .t{font-weight:850;line-height:1.1}
.trip-txt .d{font-size:13px;color:rgba(17,24,39,.70);margin-top:2px}

/* Disasters grid */
.disaster-grid{margin-top:18px}
.disaster-card img{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(17,24,39,.08);
  display:block;
}
.disaster-card h3{margin:12px 0 6px 0;font-size:16px}
.disaster-card p{margin:0;color:rgba(17,24,39,.72);font-size:14px}

/* Tables */
.table-wrap{
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow-sm);
  overflow:hidden; /* keep rounded corners */
}

/* NEW: inner scroller for narrow screens */
.table-wrap{
  /* create a scrolling context without breaking radius */
  position: relative;
}

.table-wrap > table{
  width:100%;
  border-collapse:collapse;
}

/* Narrow screens: allow sideways scroll */
@media (max-width: 980px){
  .table-wrap{
    overflow-x:auto;                 /* scroll horizontally */
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
  }

  .table-wrap > table{
    min-width: 720px;                /* forces scroll instead of squishing */
  }

  th, td{
    white-space: nowrap;             /* prevent wrapping columns */
  }
}
table{width:100%;border-collapse:collapse}
th,td{padding:12px 14px;border-bottom:1px solid rgba(17,24,39,.08);text-align:left;font-size:14px}
th{font-size:12px;letter-spacing:.02em;text-transform:uppercase;color:rgba(17,24,39,.55);background:rgba(109,40,217,.05)}
tr:last-child td{border-bottom:0}

/* Comfort toolbar + toggle */
.comfort-toolbar{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin:0 0 10px 0;
}

/* Unit toggle: keep original look, ensure no clipping */
.unit-toggle{
  display:inline-flex;
  align-items:center;
  gap:0;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;            /* keeps the pill shape clean */
  background:#fff;
  flex:0 0 auto;
}

/* Each unit button */
.unit-toggle .unit-btn{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  background:transparent;
  cursor:pointer;

  /* key: enough horizontal space so °C never clips */
  padding:10px 12px;
  min-width:44px;

  font-weight:750;
  line-height:1;
  white-space:nowrap;

  /* avoid native highlight quirks */
  -webkit-tap-highlight-color: transparent;
}

/* Pressed/active state */
.unit-toggle .unit-btn[aria-pressed="true"]{
  background:rgba(109,40,217,.10);
  color:rgba(17,24,39,.95);
}

/* Hover (desktop) */
@media (hover:hover){
  .unit-toggle .unit-btn:hover{
    background:rgba(109,40,217,.06);
  }
}

/* Focus: remove ugly default outline, replace with subtle ring that matches your design */
.unit-toggle .unit-btn:focus{ outline:none; }
.unit-toggle .unit-btn:focus-visible{
  outline:2px solid rgba(109,40,217,.35);
  outline-offset:-2px; /* keeps ring inside the pill, looks clean */
}


/* Footer */
.footer{
  padding:34px 0;border-top:1px solid var(--border);
  background:
    radial-gradient(900px 400px at 10% 40%, rgba(109,40,217,.08), transparent 60%),
    radial-gradient(900px 400px at 85% 10%, rgba(34,197,94,.08), transparent 60%);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr .6fr .6fr;
  gap:16px;
  align-items:start;
}
.footer h4{margin:0 0 10px 0}
.footer a{display:block;padding:6px 0;color:rgba(17,24,39,.76)}

/* helps transition it to mobile view */
@media (max-width:980px){
  header.nav .nav-cta a.btn.primary {
  padding-left: 7px !important;
  padding-right: 7px !important;

  /* keep vertical padding as-is or shrink a bit */
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  font-size: 14px;       /* optional: smaller text */
 /*  gap: 8px;              if you ever add an icon */
  }
  header.nav .container.nav-inner {
  padding-left: 7px !important;
  padding-right: 7px !important;
  box-sizing: border-box;
  }
  .hero-grid{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .nav-links{display:none}
  .hero h1{font-size:42px}
  .footer-grid{grid-template-columns:1fr}
  .trip-strip{flex-direction:column}
  .trip-divider{height:1px;width:100%}

  header.nav .nav-mobile {
    display: block !important;
    flex: 0 0 auto;
  }
  header.nav .nav-links { display: none !important; }
}

/* --- Mobile dropdown navigation --- */
.nav-mobile { display: none; position: relative; }

/* button */
.nav-menu-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

/* dropdown panel */
.nav-dropdown{
  display: none;
  position: absolute;
  right: 0;              /* aligns with the button */
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  z-index: 9999;
}

.nav-dropdown a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(17,24,39,.88);
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 650;
}

.nav-dropdown a:hover{
  background: rgba(109,40,217,.08);
  border: 1px solid rgba(109,40,217,.18);
}

/* open state */
.nav-mobile.is-open .nav-dropdown{ display: block; }

/* Mobile behavior */
/* Hamburger hidden by default */
header.nav .nav-mobile { display: none; }
