/* ============================================================
   SG Dujos — Organic Biophilic + Climate Tech Design System
   Palette: Climate Tech (skill row 96) — Earth Green + Solar Gold
   Typography: Space Grotesk (headings) + DM Sans (body)
   ============================================================ */

:root {
  /* ── Palette ── */
  --bg:            #F7FBF2;
  --bg-elevated:   #FFFFFF;
  --bg-raised:     #EBF5E4;
  --bg-section:    #E3EFD9;
  --bg-deep:       #0A2912;

  --border:        rgba(10, 41, 18, 0.08);
  --border-mid:    rgba(10, 41, 18, 0.13);
  --border-strong: rgba(10, 41, 18, 0.20);

  --text:          #0F2B15;
  --text-muted:    #3D5E42;
  --text-dim:      #7A9B7E;

  --accent:        #059669;
  --accent-strong: #047857;
  --accent-deep:   #065F46;
  --accent-dim:    rgba(5, 150, 105, 0.12);
  --accent-glow:   rgba(5, 150, 105, 0.28);
  --accent-on:     #FFFFFF;

  --warm:          #FBBF24;
  --warm-strong:   #D97706;
  --warm-dim:      rgba(251, 191, 36, 0.16);
  --warm-glow:     rgba(251, 191, 36, 0.35);

  /* ── Shadows (tinted with forest green) ── */
  --shadow-xs: 0 1px 3px rgba(10, 41, 18, 0.05);
  --shadow-sm: 0 2px 8px rgba(10, 41, 18, 0.06), 0 1px 2px rgba(10, 41, 18, 0.04);
  --shadow-md: 0 8px 28px -6px rgba(10, 41, 18, 0.16), 0 3px 10px -3px rgba(10, 41, 18, 0.08);
  --shadow-lg: 0 24px 60px -16px rgba(10, 41, 18, 0.22), 0 8px 20px -8px rgba(10, 41, 18, 0.10);
  --shadow-xl: 0 40px 90px -24px rgba(10, 41, 18, 0.28);

  /* ── Geometry ── */
  --radius-sm:   10px;
  --radius-md:   18px;
  --radius-lg:   26px;
  --radius-xl:   34px;
  --radius-full: 999px;
  --max-w:       1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Base ── */
body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle organic dot-grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(5,150,105,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: -2;
}

/* Soft radial ambient light */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 90% -5%, rgba(251,191,36,0.18), transparent 60%),
    radial-gradient(ellipse 75% 55% at 5% 8%, rgba(5,150,105,0.14), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 115%, rgba(5,150,105,0.09), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

body.modal-open { overflow: hidden; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.024em;
  margin: 0;
  color: var(--text);
}

h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); letter-spacing: -0.03em; margin-bottom: 22px; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); margin-bottom: 10px; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
h4 { font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

::selection { background: var(--accent-dim); color: var(--accent-deep); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.28s; }
.reveal[data-delay="4"] { transition-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 20px;
  background: rgba(247, 251, 242, 0.82);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  max-width: var(--max-w);
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-strong);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}
.brand:hover { transform: translateY(-1px); }
.brand-logo { display: block; height: 52px; width: auto; filter: brightness(0.78) saturate(1.05); }
.brand-logo--footer { height: 52px; width: auto; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background 180ms, color 180ms;
}
.nav-links a:hover { background: var(--accent-dim); color: var(--accent-deep); }
.nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  background: rgba(255,255,255,0.75);
  color: var(--accent-deep);
  border: 1px solid rgba(5,150,105,0.3);
  border-radius: var(--radius-full);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  animation: dot-pulse 2.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-dim); }
  50% { box-shadow: 0 0 0 7px rgba(5,150,105,0.06); }
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-eyebrow--light { color: rgba(255,255,255,0.7); }
.section-eyebrow--light::before { background: rgba(255,255,255,0.5); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  min-height: 48px;
  transition: background 200ms, color 200ms, border-color 200ms, box-shadow 220ms, transform 200ms cubic-bezier(.2,.8,.2,1);
  letter-spacing: -0.005em;
  text-decoration: none;
}

.btn-arrow { transition: transform 220ms cubic-bezier(.2,.8,.2,1); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(175deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 28px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-primary:hover {
  background: linear-gradient(175deg, var(--accent-strong) 0%, var(--accent-deep) 100%);
  box-shadow: 0 16px 36px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translateY(-2px);
}
.btn-primary:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }

.btn-ghost {
  background: rgba(255,255,255,0.85);
  color: var(--text);
  border-color: var(--border-mid);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: var(--accent-deep);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.18);
}
.btn-light:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(0,0,0,0.22);
}

.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.36);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 136px 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 52px;
  margin-bottom: 40px;
}

.hero-inner { position: relative; z-index: 2; }

h1 .accent {
  background: linear-gradient(118deg, var(--accent-deep) 0%, var(--accent) 45%, var(--warm-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Organic blob decoration ── */
.hero-leaf {
  position: absolute;
  top: -60px;
  right: -100px;
  width: 480px;
  height: 480px;
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
  color: var(--accent);
}
.hero-leaf svg { width: 100%; height: 100%; fill: currentColor; }

.hero-glow {
  position: absolute;
  top: 0;
  right: -6%;
  width: 680px;
  height: 680px;
  background:
    radial-gradient(circle at 35% 35%, var(--warm-glow) 0%, transparent 58%),
    radial-gradient(circle at 68% 68%, var(--accent-glow) 0%, transparent 52%);
  filter: blur(96px);
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

/* ── Hero visual card ── */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-visual-card {
  width: 100%;
  max-width: 420px;
  padding: 26px 24px 22px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

/* organic blob inside card */
.hero-visual-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.hero-visual-grid { display: flex; flex-direction: column; gap: 18px; }

.hero-visual-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
}

.hv-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 0;
}

.hv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  flex-shrink: 0;
}
.hv-dot--mid { background: var(--accent-strong); box-shadow: 0 0 0 3px rgba(4,120,87,0.16); }
.hv-dot--warm { background: var(--warm-strong); box-shadow: 0 0 0 3px var(--warm-dim); }

.hv-track {
  height: 7px;
  background: rgba(10, 41, 18, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  width: 100px;
}
.hv-fill {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-radius: var(--radius-full);
  animation: hv-grow 1.5s cubic-bezier(.2,.8,.2,1) 0.6s both;
}
.hv-fill--mid { background: linear-gradient(90deg, var(--accent-strong), var(--accent-deep)); }
.hv-fill--warm { background: linear-gradient(90deg, var(--warm), var(--warm-strong)); }
@keyframes hv-grow { from { width: 0; } to { width: var(--w); } }

.hv-val {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.hero-visual-row:nth-child(3) .hv-val { color: var(--warm-strong); }

.hero-visual-tags {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-mid);
}
.hv-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.hv-tag--gold {
  background: rgba(251,191,36,0.10);
  border-color: rgba(251,191,36,0.28);
  color: var(--warm-strong);
}
.hv-tag svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Stats bento grid ── */
.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin-bottom: 28px;
}

.stat {
  padding: 20px 20px 18px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  overflow: hidden;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms, border-color 200ms;
}

.stat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.55) 0%, transparent 55%);
  pointer-events: none;
}

.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* bento positions */
.stat:nth-child(1) { grid-column: 1; grid-row: 1; }
.stat:nth-child(2) { grid-column: 2; grid-row: 1; }
.stat--wide       { grid-column: 1 / 3; grid-row: 2; flex-direction: row; align-items: center; gap: 16px; }
.stat--tall       { grid-column: 3; grid-row: 1 / 3; }

.stat-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stat-icon svg { width: 17px; height: 17px; }
.stat--warm .stat-icon { background: var(--warm-dim); color: var(--warm-strong); }
.stat--card .stat-icon { background: var(--accent); color: #fff; box-shadow: 0 6px 14px -4px var(--accent-glow); }

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.028em;
}
.stat--warm .stat-num { color: var(--warm-strong); }
.stat--wide .stat-num { font-size: 2.2rem; }

.stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.stat--wide .stat-label { font-size: 0.9rem; }

/* ── Stat card (kortelė) ── */
.stat--card {
  appearance: none;
  border: 1px solid rgba(5,150,105,0.28);
  background: linear-gradient(160deg, rgba(255,255,255,0.92) 0%, rgba(235,245,228,0.9) 100%);
  cursor: pointer;
  text-align: left;
  justify-content: flex-start;
}

.stat--card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat--card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.stat-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.stat-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.0rem;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.stat-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.stat-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent-deep);
  letter-spacing: 0.01em;
}
.stat-cta-arrow { transition: transform 220ms cubic-bezier(.2,.8,.2,1); }
.stat--card:hover .stat-cta-arrow { transform: translateX(4px); }

/* ── Map section ── */
.map-section {
  position: relative;
  padding: 90px 24px 110px;
  background: linear-gradient(180deg, var(--bg-section) 0%, #D5E9C8 100%);
  margin-top: 60px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.map-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
}

.map-section-inner { max-width: var(--max-w); margin: 0 auto; }

.map-header { margin-bottom: 32px; max-width: 640px; }
.map-header p { color: var(--text-muted); font-size: 1.05rem; margin-top: 6px; }

.map-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl);
  background: #EBF5E4;
}

#map {
  width: 100%;
  height: 70vh;
  min-height: 540px;
  max-height: 800px;
  background: #EBF5E4;
}

.map-legend {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.legend-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-dim);
}

/* ── Leaflet overrides ── */
.leaflet-container { background: #EBF5E4; font-family: 'DM Sans', sans-serif; }

.leaflet-control-zoom {
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  margin-right: 18px !important;
  margin-bottom: 18px !important;
}
.leaflet-control-zoom a {
  background: rgba(255,255,255,0.96) !important;
  color: var(--text) !important;
  border: none !important;
  backdrop-filter: blur(10px);
  transition: background 200ms, color 200ms;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
}
.leaflet-control-zoom a:hover { background: var(--accent-dim) !important; color: var(--accent-deep) !important; }
.leaflet-control-zoom-in { border-bottom: 1px solid var(--border) !important; }
.leaflet-control-attribution {
  background: rgba(255,255,255,0.88) !important;
  color: var(--text-muted) !important;
  border-top-left-radius: 8px;
  padding: 4px 10px !important;
  font-size: 10px !important;
  backdrop-filter: blur(10px);
}
.leaflet-control-attribution a { color: var(--accent-deep) !important; }

/* ── Custom marker ── */
.sg-marker { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; }

.sg-marker-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: sg-pulse 2.5s ease-out infinite;
}

.sg-marker-core {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-strong), var(--accent-deep) 75%);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.95), 0 4px 14px rgba(10,41,18,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms;
}

.sg-marker:hover .sg-marker-core {
  transform: scale(1.18);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.98), 0 8px 22px rgba(5,150,105,0.48);
}
.sg-marker-core svg { width: 14px; height: 14px; color: #fff; }

@keyframes sg-pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ── Popup ── */
.sg-popup .leaflet-popup-content-wrapper {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0;
}
.sg-popup .leaflet-popup-content {
  margin: 0;
  padding: 20px 22px;
  width: auto !important;
  min-width: 260px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.sg-popup .leaflet-popup-tip { background: var(--bg-elevated); box-shadow: var(--shadow-md); }
.sg-popup .leaflet-popup-close-button { color: var(--text-muted) !important; font-size: 22px !important; padding: 8px 10px 0 0 !important; transition: color 200ms; }
.sg-popup .leaflet-popup-close-button:hover { color: var(--text) !important; }

.popup-city { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; letter-spacing: -0.015em; }
.popup-address { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.popup-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--warm-dim); color: var(--warm-strong);
  border: 1px solid rgba(251,191,36,0.32);
  border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600; margin-bottom: 14px;
}
.popup-chip svg { width: 12px; height: 12px; }
.sg-popup .popup-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(175deg, var(--accent), var(--accent-deep));
  color: #fff; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.88rem;
  transition: box-shadow 200ms, transform 200ms;
  text-decoration: none;
  min-height: 44px;
}
.sg-popup .popup-btn:hover { box-shadow: 0 10px 22px -8px var(--accent-glow); transform: translateY(-1px); }
.sg-popup .popup-btn svg { width: 14px; height: 14px; }

/* ── Stations section ── */
.stations-section { padding: 90px 24px 110px; max-width: var(--max-w); margin: 0 auto; }

.section-header { margin-bottom: 40px; max-width: 580px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; margin-top: 8px; }

.stations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.station-card {
  position: relative;
  padding: 22px 22px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  font-family: inherit;
  color: inherit;
  width: 100%;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: background 200ms, border-color 200ms, transform 230ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms;
  min-height: 44px;
}
.station-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}
.station-card:hover { background: #FAFEF6; border-color: rgba(5,150,105,0.38); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.station-card:hover::before { transform: scaleX(1); }
.station-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.station-num { font-family: 'Space Grotesk', sans-serif; font-size: 0.76rem; color: var(--accent-deep); font-weight: 700; letter-spacing: 0.1em; }
.station-city { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--text); letter-spacing: -0.018em; }
.station-address { color: var(--text-muted); font-size: 0.91rem; line-height: 1.45; }
.station-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--warm-dim); color: var(--warm-strong);
  border: 1px solid rgba(251,191,36,0.32);
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
  align-self: flex-start; margin-top: 2px;
}
.station-chip svg { width: 11px; height: 11px; }
.station-arrow { position: absolute; top: 22px; right: 22px; color: var(--text-dim); transition: color 200ms, transform 230ms cubic-bezier(.2,.8,.2,1); }
.station-card:hover .station-arrow { color: var(--accent-deep); transform: translate(3px,-3px); }
.station-arrow svg { width: 20px; height: 20px; }

/* ── About section ── */
.about-section { padding: 90px 24px 110px; max-width: var(--max-w); margin: 0 auto; }
.about-inner h2 { margin-bottom: 12px; }
.about-intro { color: var(--text-muted); font-size: 1.08rem; max-width: 660px; margin-bottom: 42px; line-height: 1.7; }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.about-card {
  padding: 30px 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform 230ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms, border-color 200ms;
}
.about-card:hover { transform: translateY(-3px); border-color: rgba(5,150,105,0.3); box-shadow: var(--shadow-md); }

.about-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: linear-gradient(160deg, var(--accent-dim), rgba(5,150,105,0.04));
  color: var(--accent-deep);
  border: 1px solid rgba(5,150,105,0.2);
  border-radius: 14px;
  margin-bottom: 20px;
}
.about-icon--warm { background: linear-gradient(160deg, var(--warm-dim), rgba(251,191,36,0.04)); color: var(--warm-strong); border-color: rgba(251,191,36,0.28); }
.about-icon svg { width: 24px; height: 24px; }
.about-card h3 { margin-bottom: 10px; }
.about-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ── Impact section ── */
.impact-section {
  position: relative;
  background: var(--bg-deep);
  padding: 100px 24px 110px;
  overflow: hidden;
}

/* organic shapes in dark section */
.impact-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.impact-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.impact-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
}

.impact-header {
  max-width: 640px;
  margin-bottom: 64px;
}
.impact-header h2 { color: #fff; margin-bottom: 12px; }
.impact-header p { color: rgba(255,255,255,0.6); font-size: 1.08rem; line-height: 1.7; margin-top: 8px; }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
}

.impact-stat {
  padding: 40px 32px;
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 250ms;
}
.impact-stat:last-child { border-right: none; }
.impact-stat:hover { background: rgba(255,255,255,0.07); }

.impact-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--warm);
  line-height: 1;
  letter-spacing: -0.035em;
}

.impact-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  max-width: 160px;
}

.impact-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Footer ── */
.footer {
  background: var(--bg-raised);
  padding: 70px 24px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-mid);
}

.footer-col--brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; grid-column: 1; }

.footer-brand-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 300px;
}

.footer-col-title {
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links li { font-size: 0.95rem; color: var(--text-muted); }
.footer-links a {
  color: var(--text-muted);
  transition: color 180ms;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
}
.footer-links a:hover { color: var(--text); }

.footer-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 11px 16px;
  background: transparent;
  border: 1.5px solid rgba(5,150,105,0.5);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 44px;
  transition: background 200ms, border-color 200ms, color 200ms;
}
.footer-card-btn:hover { background: rgba(5,150,105,0.12); border-color: var(--accent); color: var(--accent-deep); }
.footer-card-btn svg { width: 16px; height: 16px; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-bottom p { font-size: 0.84rem; color: var(--text-dim); }

/* ── Modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; pointer-events: auto; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 41, 18, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 32px 30px 28px;
  transform: translateY(16px) scale(0.98);
  transition: transform 280ms cubic-bezier(.2,.8,.2,1);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.modal.is-open .modal-panel { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: rgba(10,41,18,0.04);
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms, color 180ms;
}
.modal-close:hover { background: rgba(10,41,18,0.08); color: var(--text); }
.modal-close svg { width: 16px; height: 16px; }

.modal-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 10px;
  background: var(--accent-dim); color: var(--accent-deep);
  border-radius: var(--radius-full);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 14px;
}

.modal h3 { font-size: 1.45rem; margin-bottom: 8px; }
.modal-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 22px; line-height: 1.55; }
.modal-desc strong { color: var(--text); font-weight: 600; }

.card-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 0.84rem; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.field-required { color: var(--accent-strong); font-weight: 700; }
.field-optional { color: var(--text-dim); font-size: 0.74rem; font-weight: 500; }

.field input {
  padding: 12px 14px;
  font-family: 'DM Sans', inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #F7FBF2;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  transition: border-color 180ms, box-shadow 180ms, background 180ms;
  min-height: 48px;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-dim); }

.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.form-actions .btn { padding: 11px 20px; font-size: 0.92rem; }

.form-status { margin: 0; font-size: 0.85rem; color: var(--text-muted); min-height: 1.1em; }
.form-status--error { color: var(--warm-strong); }
.form-status--ok { color: var(--accent-deep); font-weight: 500; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-top { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; max-width: 440px; }

  .stats {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .stat:nth-child(1) { grid-column: 1; grid-row: 1; }
  .stat:nth-child(2) { grid-column: 2; grid-row: 1; }
  .stat--wide { grid-column: 1 / 3; grid-row: 2; }
  .stat--tall { grid-column: 1 / 3; grid-row: 3; flex-direction: row; gap: 16px; align-items: flex-start; }

  .stations-grid, .about-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  #map { height: 64vh; min-height: 480px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / 3; }
}

@media (max-width: 768px) {
  .hero { padding: 120px 18px 60px; }
  .navbar { padding: 8px 10px 8px 16px; }
  .navbar .brand-logo { height: 40px; width: auto; }
  .nav-links a { padding: 6px 10px; font-size: 0.85rem; }

  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(1) { grid-column: 1; grid-row: auto; }
  .stat:nth-child(2) { grid-column: 1; grid-row: auto; }
  .stat--wide { grid-column: 1; grid-row: auto; flex-direction: row; }
  .stat--tall { grid-column: 1; grid-row: auto; flex-direction: column; }

  .stations-grid, .about-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  #map { height: 60vh; min-height: 440px; }

  .map-section, .stations-section, .about-section { padding-left: 18px; padding-right: 18px; }
  .impact-section { padding: 70px 18px 80px; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-col--brand { grid-column: 1; }

  .modal-panel { padding: 26px 20px 22px; }
}

@media (max-width: 480px) {
  .nav-links a:nth-child(2) { display: none; }
  h1 { font-size: 2.05rem; }
  .lead { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  #map { height: 56vh; min-height: 380px; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-stat { padding: 28px 24px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-marker-pulse { animation: none; opacity: 0.18; }
  .hv-fill { animation: none; width: var(--w, 50%); }
  .eyebrow-dot { animation: none; }
}
