/* ClimateBase site — shared chrome + page styles
 * Imports the locked ReFlow design tokens.
 */
@import url("./colors_and_type.css");

/* ─────────── Reset / base ─────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface);
  color: var(--fg-2);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* ─────────── Layout primitives ─────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--wide { max-width: 1320px; }
.container--narrow { max-width: 880px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow--navy { color: var(--navy); }
.eyebrow--green { color: #1f5c5a; }

.section-rule {
  height: 1px;
  background: var(--line-1);
  margin: 0;
  border: 0;
}

/* ─────────── Header ─────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-1);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg-1);
}
.site-header__brand img { height: 22px; }
.site-header__brand-divider {
  width: 1px;
  height: 18px;
  background: var(--line-1);
}
.site-header__product {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.site-header__product sup {
  font-size: 9px;
  font-weight: 600;
  margin-left: 2px;
  color: var(--grey-600);
  vertical-align: top;
  position: relative;
  top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  letter-spacing: 0;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.site-nav a:hover { background: var(--fill-soft); color: var(--navy); }
.site-nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--fill-navy-soft);
}

.site-header__cta { display: flex; align-items: center; gap: 8px; }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}
.btn i, .btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn--primary {
  background: var(--green);
  color: var(--navy);
  border-color: #95c8c7;
}
.btn--primary:hover { background: #94cfcd; }
.btn--navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn--navy:hover { background: #0d2e4d; }
.btn--secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--grey-200);
}
.btn--secondary:hover { background: var(--grey-50); border-color: var(--navy); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--fill-soft); }
.btn--lg { padding: 14px 22px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* ─────────── Footer ─────────── */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 64px 0 28px;
  margin-top: 96px;
}
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__brand img { height: 22px; }
.site-footer__brand p {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 320px;
  margin: 16px 0 0;
}
.site-footer__col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 16px;
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col li { font-family: var(--font-ui); font-size: 13px; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer__bottom .legal { display: flex; gap: 24px; }

/* ─────────── Generic page heads (inner pages) ─────────── */
.page-head {
  background: var(--surface-warm);
  border-bottom: 1px solid var(--line-1);
  padding: 64px 0 48px;
}
.page-head .eyebrow { margin-bottom: 16px; display: block; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg-1);
  margin: 0 0 16px;
  max-width: 820px;
  line-height: 1.1;
}
.page-head .lede {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 680px;
  margin: 0;
}

/* ─────────── Section helpers ─────────── */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--warm { background: var(--surface-warm); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: rgba(255,255,255,0.55); }

.section__head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}
.section__head h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 16px 0 0;
  line-height: 1.15;
}
.section__head .eyebrow { display: block; }
.section__head p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-3);
  margin: 0;
  max-width: 520px;
}
@media (max-width: 880px) {
  .section__head { grid-template-columns: 1fr; gap: 16px; }
}

/* ─────────── Cards & rules ─────────── */
.card {
  background: #fff;
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.card--padded { padding: 32px; }
.card--flat { background: var(--grey-50); }

/* ─────────── Chips & badges ─────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--grey-200);
  background: #fff;
  color: var(--navy);
}
.chip--green { background: var(--fill-green-soft); border-color: #95c8c7; color: #1f5c5a; }
.chip--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip--soft { background: var(--fill-soft); border-color: var(--line-1); color: var(--fg-3); }
.chip__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ─────────── Tabular ─────────── */
.num-tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.ui-font { font-family: var(--font-ui); }

/* ─────────── Marquee / logo strip ─────────── */
.logo-strip {
  display: flex;
  gap: 64px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.logo-strip span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--grey-600);
  opacity: 0.75;
}

/* ─────────── Forms ─────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-1);
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy);
  box-shadow: var(--shadow-focus);
}
.field .hint {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--fg-3);
}

/* ─────────── Tables ─────────── */
table.data { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 13px; }
table.data thead tr { text-align: left; color: var(--fg-3); border-bottom: 1px solid var(--line-strong); }
table.data th { padding: 10px 12px 10px 0; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; color: var(--fg-3); }
table.data th.num, table.data td.num { text-align: right; }
table.data tbody td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-1); color: var(--fg-2); }
table.data tbody td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--fg-1); }
table.data tbody tr:hover { background: var(--fill-navy-soft); }

/* ─────────── Smooth in-page scroll ─────────── */
html { scroll-behavior: smooth; }

/* ─────────── Mobile (lo-fi, just don't break) ─────────── */
@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .page-head h1 { font-size: 32px; }
}
