/* CHAKRA — Charge Hub Association of Kairali for Renewable Advancement */
:root {
  --navy: #053A5B;
  --navy-dark: #032A42;
  --green: #1E7A36;
  --green-text: #17722F;
  --leaf: #7FD08F;
  --mist: #E7EEF3;
  --mint: #E5F2E8;
  --bg: #F4F7F9;
  --white: #FFFFFF;
  --line: #DDE6EC;
  --muted: #45606F;
  --radius: 20px;
  --max: 1240px;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--navy); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--green); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--white { background: var(--white); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--white); }
.section--tight-top { padding-top: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-text); }
.section--navy .eyebrow, .page-hero--navy .eyebrow, .page-hero--green .eyebrow { color: var(--leaf); }
.page-hero--green .eyebrow { color: #D3F0DA; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); }
.h3 { font-weight: 700; font-size: 21px; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.accent { color: var(--green); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); color: var(--white); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: #17662C; color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { color: var(--navy); }
.btn--leaf { background: var(--leaf); color: var(--navy-dark); }
.btn--leaf:hover { color: var(--navy-dark); }
.btn--outline { border-color: #C3D3DE; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); padding: 10px 14px; border-radius: 999px; }
.nav a:hover { color: var(--navy); background: var(--bg); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--mist); }
.nav .btn { color: var(--white); margin-left: 8px; padding: 10px 20px; min-height: 44px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .brand img { height: 40px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; box-shadow: 0 16px 32px rgba(5,58,91,0.08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 17px; }
  .nav .btn { margin: 8px 0 0; }
}

/* Hero */
.hero { background: var(--white); overflow: hidden; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(48px, 8vw, 104px); }
.hero__text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__badge { align-self: flex-start; background: var(--mint); color: var(--green-text); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 6vw, 76px); line-height: 1.03; letter-spacing: -0.025em; }
.hero__art { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.orb { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: 50%; background: var(--mist); display: flex; align-items: center; justify-content: center; }
.orb img { width: 72%; }
.chip { position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 18px rgba(5,58,91,0.08); white-space: nowrap; }
.chip--1 { top: 8%; left: 0; }
.chip--2 { top: 46%; right: 0; background: var(--green); color: var(--white); border-color: var(--green); }
.chip--3 { bottom: 6%; left: 8%; }

/* Page hero */
.page-hero { padding: clamp(56px, 8vw, 104px) 0; background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero .container { display: flex; flex-direction: column; gap: 20px; }
.page-hero h1 { font-weight: 800; font-size: clamp(36px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.025em; max-width: 920px; }
.page-hero--navy { background: var(--navy); color: var(--white); border: 0; }
.page-hero--navy .lead { color: #C9D8E2; }
.page-hero--green { background: var(--green); color: var(--white); border: 0; }
.page-hero--green .lead { color: #E1F2E5; }
.page-hero--plain { background: transparent; border: 0; }
.page-hero__split { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; flex-direction: row !important; }
.page-hero__split > div:first-child { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page-hero__emblem { flex: 1 1 200px; display: flex; justify-content: center; }
.page-hero__emblem span { background: var(--white); border-radius: 50%; padding: 28px; width: 100%; max-width: 240px; }

/* Strip */
.strip { background: var(--navy); color: var(--white); }
.strip .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 20px; padding-top: 28px; padding-bottom: 28px; }
.strip__item { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.strip__item::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); flex: none; }

/* Layout helpers */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split__main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.prose p { font-size: 18px; line-height: 1.7; color: var(--muted); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card p { font-size: 16px; color: var(--muted); }
.card--dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.card--dark p { color: #C9D8E2; }
.card--outline-dark { background: transparent; border-color: #2B5470; }
.card--outline-dark p { color: #C9D8E2; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; background: var(--mist); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.icon-box--green { background: var(--mint); color: var(--green-text); }
.icon-box svg { width: 26px; height: 26px; }

.letter { font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1; }
.letter--green { color: var(--green); }
.num { font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1; color: var(--green); }
.card--dark .num { color: var(--leaf); }

/* Steps */
.steps li { border-top: 3px solid var(--navy); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.steps h3 { font-family: var(--font-body); font-size: 20px; font-weight: 600; letter-spacing: 0; }
.steps p { color: var(--muted); }

/* Lists */
.numbered li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 19px; font-weight: 500; line-height: 1.5; }
.numbered li:last-child { border-bottom: 1px solid var(--line); }
.numbered li span { font-family: var(--font-head); font-weight: 800; color: var(--green); font-size: 18px; min-width: 32px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); column-gap: 40px; }
.checks li { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.checks svg { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: 2px; }
.checks h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.checks p { font-size: 15px; color: var(--muted); }

/* Pillars */
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 32px; }
.pillar + .pillar { margin-top: 24px; }
.pillar__intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pillar__intro h2 { font-weight: 800; font-size: clamp(26px, 3vw, 36px); }
.pillar__intro p { font-size: 17px; color: var(--muted); }
.pillar__list { flex: 999 1 420px; min-width: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pillar__list li { background: var(--bg); border-radius: 14px; padding: 18px; font-size: 16px; line-height: 1.5; }
.pillar__list strong { display: block; margin-bottom: 4px; }
.pillar__list span { color: var(--muted); }
.tag { font-family: var(--font-head); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; color: var(--green-text); }

/* Vision */
.vision { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 1040px; }
.vision img { width: 64px; }
blockquote { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 3.4vw, 42px); line-height: 1.25; letter-spacing: -0.015em; }
.vision-card { flex: 1 1 340px; min-width: 0; background: var(--navy); color: var(--white); border-radius: 24px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; justify-content: space-between; }
.vision-card .eyebrow { color: var(--leaf); }
.vision-card p { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; }

/* Team */
.person__photo { aspect-ratio: 1; border-radius: 14px; background: var(--mist); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); }
.person strong { font-size: 18px; }

/* CTA band */
.cta { border-radius: 28px; padding: clamp(32px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta > div { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-weight: 800; font-size: clamp(26px, 3.6vw, 44px); }
.cta--green { background: var(--green); color: var(--white); }
.cta--green p { color: #E1F2E5; font-size: 18px; }
.cta--mint { background: var(--mint); }
.cta--navy { background: var(--navy); color: var(--white); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* Contact */
.email-card .eyebrow { display: flex; align-items: center; gap: 10px; }
.email-big { color: var(--white); text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 4.4vw, 52px); line-height: 1.1; word-break: break-word; }
.email-big:hover { color: var(--leaf); }
.social-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-decoration: none; display: flex; align-items: center; gap: 14px; }
.social-card svg { width: 26px; height: 26px; flex: none; }
.social-card span { display: flex; flex-direction: column; line-height: 1.4; }
.social-card small { font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-dark); color: #E3ECF2; }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand span:first-child { background: var(--white); border-radius: 14px; padding: 6px; display: flex; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { font-family: var(--font-head); font-size: 24px; color: var(--white); letter-spacing: 0.04em; }
.site-footer p { color: #B7C8D4; font-size: 15px; }
.footer-title { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--leaf); margin-bottom: 8px; display: block; }
.footer-links a { display: block; color: #E3ECF2; text-decoration: none; padding: 6px 0; font-size: 15px; }
.footer-links a:hover, .site-footer a:hover { color: var(--leaf); }
.footer-email { color: var(--white); font-weight: 600; text-decoration: none; font-size: 16px; display: inline-block; padding: 6px 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { color: #E3ECF2; text-decoration: none; font-size: 14px; padding: 10px 14px; border: 1px solid #2B5470; border-radius: 999px; }
.footer-bottom { border-top: 1px solid #1D4762; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #9FB4C2; }
.footer-bottom a { color: #9FB4C2; }

/* Stations */
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; background: transparent; }
button.btn--outline { background: var(--white); }
.station-filters { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: end; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field select { font: inherit; font-size: 16px; font-weight: 400; color: var(--navy); min-height: 48px; padding: 10px 14px; border: 1px solid #C3D3DE; border-radius: 12px; background: var(--white); width: 100%; }
.station-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0 16px; }
.station-meta strong { font-family: var(--font-head); font-size: 20px; }
.station-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.station-map-wrap { flex: 1 1 420px; min-width: 0; position: sticky; top: 96px; }
#station-map { height: clamp(320px, 60vh, 620px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--mist); z-index: 0; }
.station-list { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.station-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.station-card h3 { font-size: 20px; font-weight: 700; }
.station-card p { color: var(--muted); font-size: 15px; }
.station-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.station-district { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-text); }
.station-power { font-size: 13px; font-weight: 600; background: var(--mint); color: var(--green-text); border-radius: 999px; padding: 4px 10px; }
.station-member { font-weight: 500; color: var(--navy) !important; }
.station-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.station-chip { font-size: 13px; font-weight: 600; background: var(--mist); border-radius: 8px; padding: 4px 10px; }
.station-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.near-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; }
.near-bar .btn svg { width: 20px; height: 20px; }
.near-bar .btn[disabled] { opacity: 0.7; cursor: wait; }
.near-status { font-size: 15px; color: var(--muted); }
.station-card--nearest { border: 2px solid var(--green); box-shadow: 0 8px 24px rgba(30,122,54,0.12); }
.station-nearest-badge { align-self: flex-start; background: var(--green); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; border-radius: 999px; padding: 4px 12px; }
.station-distance { font-weight: 600; color: var(--green-text) !important; }
.station-empty { background: var(--white); border: 1px dashed #C3D3DE; border-radius: var(--radius); padding: 28px; color: var(--muted); }
.station-pin span { display: block; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--green); border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(5,58,91,0.35); }
.leaflet-popup-content a { color: var(--green-text); font-weight: 600; }
@media (max-width: 860px) { .station-map-wrap { position: static; } }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }

@media (max-width: 560px) {
  .chip { font-size: 12px; padding: 8px 12px; }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
