/* ==========================================================================
   SDG Networking - styles
   Single stylesheet, no external dependencies, no web fonts.
   ========================================================================== */

:root {
  --navy: #0a1220;
  --navy-2: #101d33;
  --ink: #0b1524;
  --ink-soft: #4a5773;
  --ink-mute: #6d7a92;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --line: #e2e8f1;
  --line-dark: rgba(255, 255, 255, 0.12);
  --brand: #1f6feb;
  --brand-dark: #1657bd;
  --brand-light: #5aa2ff;
  --ok: #3ddc97;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1140px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 36, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(11, 21, 36, 0.18);
  --shadow-lg: 0 30px 70px -30px rgba(11, 21, 36, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Utilities ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

/* grid children default to min-width:auto and can overflow on long words */
.hero-copy,
.contact-copy { min-width: 0; }

.accent { color: var(--brand-light); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(31, 111, 235, 0.9);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(31, 111, 235, 0.95);
}

.btn-ghost {
  background: transparent;
  color: #dbe6f6;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-sm { padding: 11px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 18, 32, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: #fff; }

.brand-mark { width: 30px; height: 30px; flex: none; color: var(--brand-light); }

.brand-text {
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-text-alt { color: #9db0c9; font-weight: 500; margin-left: 4px; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: #c3d0e2;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover { color: #fff; }

.nav .nav-cta {
  color: #fff;
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #dbe6f6;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(31, 111, 235, 0.34), transparent 62%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #eaf1fb;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
  scroll-margin-top: 80px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 65% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 65% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { color: #fff; }

.hero .eyebrow { color: var(--brand-light); }

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: #b9c8dd;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.9rem;
  color: #9db0c9;
}
.hero-points li {
  position: relative;
  padding-left: 20px;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16);
}

/* Hero status card */
.hero-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
  font-size: 0.88rem;
}

.hc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #b9c8dd;
}
.hc-row:last-of-type { border-bottom: 0; }

.hc-head {
  padding-top: 0;
  padding-bottom: 14px;
}
.hc-title { color: #fff; font-weight: 600; margin-right: auto; }

.hc-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  color: #b8f5d8;
  background: rgba(61, 220, 151, 0.13);
  border: 1px solid rgba(61, 220, 151, 0.28);
  white-space: nowrap;
}

.mono { font-family: var(--mono); font-size: 0.82rem; color: #dbe6f6; }
.mono.ok { color: var(--ok); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.dot-green {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16);
}

.hc-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin: 16px 0 12px;
  overflow: hidden;
}
.hc-bar span {
  display: block;
  height: 100%;
  width: 96%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ok), #7ef0bd);
}

.hc-foot {
  font-size: 0.78rem;
  color: #8fa2bb;
  margin: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(56px, 7.5vw, 96px) 0;
  scroll-margin-top: 76px;
}
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 62ch;
  margin-bottom: 44px;
}

.section-lede {
  font-size: 1.04rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cfdcee;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #eaf2ff, #dfeafc);
  color: var(--brand-dark);
}
.card-icon svg { width: 24px; height: 24px; }

.card p { color: var(--ink-soft); font-size: 0.96rem; }

.card-list {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.card-list li {
  position: relative;
  padding-left: 22px;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.52em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(31, 111, 235, 0.14);
  box-shadow: inset 0 0 0 1.5px rgba(31, 111, 235, 0.55);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
}
.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}

.why-copy { position: sticky; top: 96px; }

.why-list {
  display: grid;
  gap: 4px;
}
.why-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.why-list li:first-child { padding-top: 0; }
.why-list li:last-child { border-bottom: 0; }
.why-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}
.why-list span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
.about-grid p { color: var(--ink-soft); }

.about-facts {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px 22px;
  box-shadow: var(--shadow-sm);
}
.fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.fact:last-child { border-bottom: 0; }
.fact-k { color: var(--ink-mute); flex: none; }
.fact-v { text-align: right; font-weight: 600; }

/* Credential chips */
.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
}
.creds li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.cred-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: #eaf2ff;
  border-radius: 999px;
  padding: 4px 9px;
}

/* ---------- Contact ---------- */

.contact { background: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 56px);
  align-items: start;
}

.contact-list {
  margin-top: 28px;
  display: grid;
  gap: 0;
}
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.cl-k {
  flex: none;
  width: 110px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cl-v {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
a.cl-v:hover { color: var(--brand); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfdae8;
  border-radius: 9px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.16);
}

.field textarea { resize: vertical; min-height: 96px; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.14);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.form-note.is-error { color: #b93232; font-weight: 600; }
.form-note.is-ok { color: #18794e; font-weight: 600; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin-inline: auto;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 18, 32, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lbFade 0.2s ease;
}

@keyframes lbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease;
  z-index: 1001;
}

.lightbox-close:hover { opacity: 1; }

@media (max-width: 600px) {
  .lightbox img { max-width: 95vw; max-height: 80vh; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #93a6c0;
  padding: 46px 0 34px;
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  gap: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.footer-name { margin: 0; font-weight: 700; color: #fff; }
.footer-tag { margin: 0; font-size: 0.85rem; color: #8fa2bb; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-nav a {
  color: #b9c8dd;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; }

.footer-legal {
  margin: 0;
  font-size: 0.82rem;
  color: #7387a2;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner,
  .why-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .why-copy { position: static; }
  .hero-card { order: 2; max-width: 460px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--navy);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.7);
    display: none;
  }
  .nav.is-open { display: flex; }

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav .nav-cta {
    margin: 14px 0 0;
    border-bottom: 0;
    justify-content: center;
  }

  .contact-form { grid-template-columns: 1fr; padding: 22px 20px; }
  .contact-list li { flex-wrap: wrap; gap: 4px 14px; }
  .cl-k { width: auto; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .btn { padding: 13px 18px; font-size: 0.92rem; }
}

/* ---------- Motion / print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header, .hero-card, .contact-form, .site-footer nav { display: none; }
  body { color: #000; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lede { color: #000; }
}
