/* ═══════════════════════════════════════════════════════
   Youth CollaborAction — Public Site Styles
   Light, clean, calm — blue tones (client brief)
   ═══════════════════════════════════════════════════════ */

:root {
  --navy: #0f2a5c;          /* headings, buttons */
  --navy-dark: #0a1e42;
  --blue: #2563b0;          /* links, accents */
  --blue-light: #e8f1fb;    /* background blocks */
  --blue-pale: #f4f8fd;
  --text: #2d3748;
  --muted: #5d6b80;
  --white: #ffffff;
  --gray-bg: #f7f9fb;
  --border: #dde6f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 42, 92, 0.07);
  --shadow-hover: 0 10px 32px rgba(15, 42, 92, 0.13);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
}
.brand-logo { width: 58px; height: 58px; border-radius: 50%; }
.brand-name { font-size: 1.2rem; font-weight: 500; letter-spacing: 0.01em; }
.brand-name strong { font-weight: 800; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: var(--navy); background: var(--blue-light); }
.site-nav .nav-cta {
  background: var(--navy);
  color: var(--white);
  margin-left: 0.5rem;
}
.site-nav .nav-cta:hover { background: var(--navy-dark); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--blue-pale) 0%, var(--blue-light) 60%, #dcebfa 100%);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem 6.5rem;
  max-width: 820px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.hero-decoration {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 176, 0.12) 0%, transparent 70%);
}
.hero-network {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: min(34vw, 460px);
  height: auto;
  pointer-events: none;
}
@media (max-width: 1020px) {
  .hero-network { opacity: 0.35; right: -8%; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ─── Stats (compact numbers grid) ─── */
.stats {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0;
}
.stats-head {
  margin-bottom: 2rem;
}
.stat-title-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ec8f5;
  margin-bottom: 0.5rem;
}
.stats-head h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.stat {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.stat-value {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #9ec8f5;
  line-height: 1;
}
.stat-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.6rem;
}
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ─── Sections ─── */
.section { padding: 7rem 0; }
.section-alt { background: var(--gray-bg); }
.about-grid, .services-grid, .team-grid { margin-top: 0.5rem; }

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  max-width: 720px;
}
.section-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  margin: -1.75rem 0 1.25rem;
  max-width: 720px;
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.about-card {
  background: var(--blue-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.about-icon svg { width: 100%; height: 100%; }
.about-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}
.about-card p { color: var(--muted); font-size: 0.95rem; }

/* ─── Initiatives ─── */
.direction-text {
  max-width: 780px;
  margin-bottom: 3rem;
}
.direction-text p { margin-bottom: 1rem; color: var(--muted); }

.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.initiative-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 3px solid var(--blue);
}
.initiative-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.initiative-card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.75rem; }
.initiative-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.initiative-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
  text-decoration: none;
}
.initiative-link:hover { text-decoration: underline; }

.objective-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a4080 100%);
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  font-size: 1.08rem;
  font-weight: 500;
  max-width: 900px;
}

/* ─── Services (strong visual section) ─── */
.section-services {
  background: linear-gradient(170deg, #12305f 0%, var(--navy) 50%, #0c2148 100%);
}
.section-services .section-eyebrow.light { color: #8fc0f0; }
.section-services .section-title.light { color: var(--white); }
.section-services .section-subtitle { color: #b9d4f0; }
.services-intro {
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
  margin-bottom: 3rem;
  font-size: 0.98rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  counter-reset: service;
}
.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background 0.25s, transform 0.2s, border-color 0.25s;
}
.service-card::before {
  counter-increment: service;
  content: "0" counter(service);
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(158, 200, 245, 0.32);
  letter-spacing: -0.02em;
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(143, 192, 240, 0.45);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(143, 192, 240, 0.16);
  color: #9ec8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { color: var(--white); font-size: 1.08rem; margin-bottom: 0.7rem; }
.service-card p { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }

.services-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.services-footer-card {
  background: rgba(232, 241, 251, 0.97);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 3px solid var(--blue);
}
.services-footer-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 0.7rem; }
.services-footer-card p { color: var(--muted); font-size: 0.93rem; }

/* ─── Team ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.team-photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--blue-light);
}
.team-card h3 { color: var(--navy); font-size: 1.08rem; margin-bottom: 0.3rem; }
.team-role {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.team-bio { color: var(--muted); font-size: 0.88rem; text-align: left; }

/* ─── Contacts ─── */
.contact-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}
.contact-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.badge-green { background: #e3f5e9; color: #1d7a3e; }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.contact-card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.75rem; }
.contact-card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 1.25rem; }
.contact-email {
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  word-break: break-all;
}
.contact-email:hover { text-decoration: underline; }

.contact-bottom {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
}
.contact-direct {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 2.25rem;
}
.contact-direct h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 1rem; }
.contact-direct-name { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.contact-direct-role { color: var(--muted); font-size: 0.88rem; margin-bottom: 1rem; }
.contact-direct a { color: var(--blue); text-decoration: none; font-weight: 500; }
.contact-direct a:hover { text-decoration: underline; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.social-link svg { width: 18px; height: 18px; }
.contact-closing {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  font-style: italic;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}
.contact-form h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 1.25rem; }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--blue-pale);
  transition: border-color 0.2s, background 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.stats a:focus-visible,
.section-services a:focus-visible,
.section-services button:focus-visible,
.site-footer a:focus-visible {
  outline-color: #9ec8f5;
}
.form-sent {
  background: #e3f5e9;
  color: #1d7a3e;
  border: 1px solid #b7e4c7;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 1rem 0 1.25rem;
  cursor: pointer;
}
.form-consent input { margin-top: 0.2rem; }

/* ─── Footer ─── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 600;
}
.footer-logo { width: 42px; height: 42px; border-radius: 50%; }
.site-footer a { color: #9ec8f5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-credit { font-size: 0.78rem; opacity: 0.7; }

/* ─── Reveal animation ─── */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ─── */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.85rem 1rem; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }

  .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-inner { padding: 4rem 1.5rem; }
  .section { padding: 3.5rem 0; }
  .contact-bottom { grid-template-columns: 1fr; }
  .objective-banner { padding: 1.75rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-network circle { animation: nodePulse 4s ease-in-out infinite; }
  .hero-network circle:nth-child(2n) { animation-delay: 1.3s; }
  .hero-network circle:nth-child(3n) { animation-delay: 2.6s; }
  @keyframes nodePulse { 50% { opacity: 0.55; } }
}
