:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --ink: #0e1726;          /* near-black navy */
  --ink-soft: #2b3647;
  --muted: #5a6473;
  --line: #e5e8ec;
  --accent: #1e50c7;       /* corporate blue */
  --accent-ink: #163d99;
  --radius: 12px;
  --max: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 999px;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(30, 80, 199, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(30, 80, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 80, 199, 0); }
}

/* Hero */
.hero {
  padding: clamp(64px, 11vw, 132px) 0 clamp(40px, 6vw, 72px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 22px;
}

.headline {
  font-weight: 800;
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  max-width: 16ch;
  text-wrap: balance;
  margin-bottom: 26px;
}

.subhead {
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  margin-bottom: 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}
.btn-ghost:hover { border-color: #c8cdd6; transform: translateY(-1px); }

/* Presence / locations */
.presence { padding: clamp(56px, 8vw, 96px) 0; }

.section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.015em;
  margin-bottom: 36px;
  max-width: 22ch;
  text-wrap: balance;
}

.locations {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.locations li {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 22px;
}
.flag {
  width: 30px;
  height: 20px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(14, 23, 38, 0.08);
  flex: 0 0 auto;
}
.locations strong {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}
.loc-city {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 44px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.footer-tag { color: var(--muted); font-size: 0.9rem; }

.footer-mail {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.footer-mail:hover { text-decoration: underline; }

.copyright {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Blog ---------- */
.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.page-hero p { color: var(--muted); max-width: 60ch; font-size: 1.06rem; }

.post-list { padding: clamp(40px, 6vw, 72px) 0; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: #cfd5de;
  box-shadow: 0 10px 30px rgba(14, 23, 38, 0.06);
}

.post-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.post-cat {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent);
}
.post-card h2 {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.post-card p { color: var(--muted); font-size: 0.97rem; }
.post-readmore {
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Single article */
.article { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.article-body {
  max-width: 70ch;
  margin: 0 auto;
}
.article-body h2 {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}
.article-body h3 {
  font-weight: 700;
  font-size: 1.18rem;
  margin: 28px 0 10px;
}
.article-body p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.05rem; }
.article-body ul { color: var(--ink-soft); margin: 0 0 18px 1.2em; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--accent); }
.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.back-link:hover { text-decoration: underline; }

/* ---------- Join / intake form ---------- */
.form-page { padding: clamp(48px, 7vw, 88px) 0; }

.form-welcome {
  max-width: 560px;
  margin: 0 auto 28px;
  text-align: center;
}
.form-welcome h1 {
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
  text-wrap: balance;
}
.form-welcome p { color: var(--muted); font-size: 1.05rem; }

.form-card {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(28px, 5vw, 44px);
  box-shadow: 0 10px 40px rgba(14, 23, 38, 0.05);
}
.form-card h1 {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}
.form-intro { color: var(--muted); margin-bottom: 28px; }

.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
}
.field input {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 80, 199, 0.15);
}
.field-hint { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 6px 0 22px;
  cursor: pointer;
}
.consent input { margin-top: 3px; flex: 0 0 auto; }

.cf-turnstile { margin-bottom: 22px; }

.form-card .btn-primary { width: 100%; }

.form-msg {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #9b1c1c;
  font-size: 0.92rem;
}

.form-success { text-align: center; padding: 12px 0; }
.success-check {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e8f0ff;
  color: var(--accent);
  font-size: 1.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success h2 { font-weight: 700; font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 42ch; margin: 0 auto; }

/* Simple top nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--accent); }

/* Focus visibility */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(14, 23, 38, 0.16);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 60;
}
.cookie-text { margin: 0; color: var(--muted); font-size: 0.88rem; flex: 1 1 300px; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-banner .btn { padding: 9px 20px; font-size: 0.9rem; }
.cookie-prefs { color: var(--muted); text-decoration: underline; font-size: 0.82rem; }
.cookie-prefs:hover { color: var(--accent); }
@media (max-width: 560px) {
  .cookie-actions { width: 100%; }
  .cookie-banner .btn { flex: 1; }
}

/* Responsive */
@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr; }
  .locations { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
