/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0f0f0f;
  --surface:      #1a1a1a;
  --surface-2:    #222222;
  --border:       #2a2a2a;
  --text:         #fbf5f3;
  --text-muted:   #777777;
  --accent:       #e8622a;
  --accent-dim:   rgba(232, 98, 42, 0.10);
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;
  --max:          720px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.nav-logo span { color: var(--accent); }

.nav-login {
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

/* ─── Inner wrapper ────────────────────────────────────────── */
.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 96px 24px 80px;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
}

/* ─── Divider ──────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── Mission ──────────────────────────────────────────────── */
.mission {
  padding: 72px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.mission-text {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.01em;
}

.mission-text p + p {
  margin-top: 20px;
}

/* ─── Value props ──────────────────────────────────────────── */
.value {
  padding: 0 24px 72px;
  max-width: var(--max);
  margin: 0 auto;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 580px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  background: var(--surface);
  padding: 28px 24px;
}

.value-card:first-child {
  border-right: 1px solid var(--border);
}

@media (max-width: 580px) {
  .value-card:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.value-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.value-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.value-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Clients / Partners ───────────────────────────────────── */
.clients {
  padding: 0 24px 72px;
  max-width: var(--max);
  margin: 0 auto;
}

.clients-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.clients-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  min-width: 120px;
}

/* ─── Map ──────────────────────────────────────────────────── */
.map-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.map-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 20px;
}

.map-city {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

#map {
  width: 100%;
  height: 340px;
}

/* ─── Close / CTA ──────────────────────────────────────────── */
.cta-section {
  padding: 80px 24px 88px;
  max-width: var(--max);
  margin: 0 auto;
}

.cta-headline {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cta-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.cta-link-primary {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.12s;
}

.cta-link-primary:hover { color: var(--accent); }

.cta-link-secondary {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s;
}

.cta-link-secondary:hover { color: var(--text); }

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--border);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s;
}

.footer-link:hover { color: var(--text); }

/* ─── Leaflet overrides — dark theme ──────────────────────── */
.leaflet-container {
  background: #0f0f0f !important;
}

.leaflet-control-attribution {
  background: rgba(15,15,15,0.8) !important;
  color: #555 !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: #666 !important;
}

.leaflet-control-zoom a {
  background: #1a1a1a !important;
  color: #777 !important;
  border-color: #2a2a2a !important;
}

.leaflet-control-zoom a:hover {
  background: #222 !important;
  color: #fbf5f3 !important;
}

/* Hide native Leaflet attribution bar — replaced by custom i icon */
#map .leaflet-control-attribution {
  display: none !important;
}

/* ─── Hero background slideshow ───────────────────────────── */
#hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #000;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) brightness(0.55);
  transform: scale(1.08);
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,15,15,0.55) 0%, rgba(15,15,15,0.92) 60%, #0f0f0f 100%);
}

/* ─── Hero photo credit ────────────────────────────────────── */
#hero-credit {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
}

.hero {
  position: relative;
}

#hero-credit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.32);
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

#hero-credit-btn:hover,
#hero-credit-btn[aria-expanded='true'] {
  background: rgba(0,0,0,0.65);
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.4);
}

#hero-credit-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  background: rgba(15,15,15,0.92);
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 5px 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

#hero-credit-tip:not([hidden]) {
  display: flex;
}

.hero-credit-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #777;
  text-transform: uppercase;
}

.hero-credit-plain {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #777;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}