/* ================================================
   Heritage Coast Fiji — climate.css
   Climate Risk page styles + homepage teaser
   ================================================ */

:root {
  --climate-dark:   #040C18;
  --climate-deep:   #071828;
  --climate-mid:    #0C2840;
  --climate-accent: #0891B2;
  --climate-bright: #22D3EE;
  --extreme-color:  #F97316;
  --extreme-dark:   #C2410C;
}

/* ================================================
   CLIMATE PAGE — GLOBAL
   ================================================ */
.climate-page { background: var(--white); }

/* ================================================
   HEADER OVERRIDE
   ================================================ */
.climate-header { background: rgba(4, 12, 24, 0.85); }
.climate-header.scrolled {
  background: rgba(4, 12, 24, 0.97);
  box-shadow: 0 1px 16px rgba(0,0,0,0.35);
}

/* ================================================
   HERO — deep ocean storm
   ================================================ */
.climate-hero {
  background: linear-gradient(160deg, #040C18 0%, #0C2840 50%, #040C18 100%);
}

.climate-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(8, 145, 178, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.climate-page .cr-h1 {
  text-shadow: 0 0 80px rgba(34, 211, 238, 0.35);
}

.climate-page .cr-eyebrow {
  color: var(--climate-bright);
}

.climate-page .cr-btn-scroll {
  border-color: rgba(34, 211, 238, 0.4);
  color: rgba(34, 211, 238, 0.85);
}

.climate-page .cr-btn-scroll:hover {
  border-color: rgba(34, 211, 238, 0.7);
  color: var(--white);
  background: rgba(8, 145, 178, 0.2);
}

/* ================================================
   EXTREME BADGE — inline label
   ================================================ */
.cr-extreme-badge {
  display: inline-block;
  background: var(--extreme-color);
  color: white;
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: middle;
  line-height: 1;
}

/* ================================================
   CLIMATE DOWNLOAD BUTTON OVERRIDE
   ================================================ */
.climate-page .cr-btn-download-sm {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--climate-bright);
}
.climate-page .cr-btn-download-sm:hover {
  border-color: var(--climate-bright);
  background: rgba(8, 145, 178, 0.15);
  color: var(--white);
}

/* ================================================
   SUMMARY TABLE SECTION
   ================================================ */
.climate-summary {
  background: #04101E;
  padding: 4rem 0;
  text-align: center;
}

.climate-summary .cr-draft-label {
  color: var(--climate-bright);
}

.climate-summary .cr-draft-head {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}

.climate-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  max-width: 760px;
  margin: 0 auto;
}

.climate-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  overflow: hidden;
}

.climate-table thead th {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.climate-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  vertical-align: top;
}

.climate-table tbody tr:last-child td { border-bottom: none; }

.climate-table tbody tr:hover td { background: rgba(255,255,255,0.03); }

.climate-fail  { color: #FF8A8A !important; font-weight: 500; }
.climate-warn  { color: #FCA04A !important; font-weight: 700; }
.climate-ok    { color: #88D4A0 !important; font-weight: 500; }

/* ================================================
   THREE-WAY CONTRADICTION TABLE
   ================================================ */
.climate-contradiction-section {
  background: #04101E;
  padding: 4rem 0;
}

.climate-contradiction-section .cr-bl-head {
  text-align: center;
  margin-bottom: 0.75rem;
}

.climate-contradiction-section .cr-bl-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.climate-contradiction-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  max-width: 860px;
  margin: 0 auto;
}

.climate-contradiction {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
  background: rgba(255,255,255,0.04);
}

.climate-contradiction thead th {
  background: rgba(8, 145, 178, 0.12);
  color: rgba(255,255,255,0.55);
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.climate-contradiction tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
  vertical-align: top;
}

.climate-contradiction tbody tr:last-child td { border-bottom: none; }
.climate-contradiction tbody tr:hover td { background: rgba(255,255,255,0.03); }

/* ================================================
   ASH PAGE — CLIMATE BRIDGE SECTION
   ================================================ */
.ash-climate-bridge {
  background: #04101E;
  padding: 5rem 0;
}

.ash-climate-bridge-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #22D3EE;
  margin-bottom: 0.75rem;
}

.climate-bridge-head {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.climate-bridge-quote {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid #22D3EE;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.climate-bridge-quote p {
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.72;
  margin: 0;
}

.climate-bridge-body {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.78;
  margin-bottom: 1rem;
  max-width: 680px;
}

.ash-climate-bridge .climate-teaser-cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.9rem 1.8rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.ash-climate-bridge .climate-teaser-cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

/* ================================================
   HOMEPAGE — CLIMATE TEASER SECTION
   ================================================ */
.section-climate-teaser {
  background: linear-gradient(160deg, #040C18 0%, #0C2840 60%, #050E1C 100%);
  color: var(--white);
  padding: 4.5rem 0;
}

.climate-teaser-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #22D3EE;
  margin-bottom: 0.75rem;
}

.climate-teaser-head {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.12;
}

.climate-teaser-body {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.78;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.climate-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.climate-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid #0891B2;
  border-radius: var(--radius, 8px);
  padding: 1.25rem 1rem;
}

.climate-stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: #22D3EE;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.climate-stat-num.extreme { color: #FB923C; }

.climate-stat-lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.45;
  display: block;
}

.climate-teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.88);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.9rem 1.8rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.climate-teaser-cta:hover {
  background: rgba(255,255,255,0.17);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

@media (min-width: 640px) {
  .climate-stat-row { grid-template-columns: repeat(3, 1fr); }
}
