/* NC Youth Tech Collective — landing page styles */

/* Palette sampled from the logo: navy #112546, blue #267dc4, orange #fe742b, teal #2eaead */
:root {
  --navy: #112546;
  --brand: #1f6cad;
  --brand-2: #112546;
  --accent: #f26a1f;
  --teal: #1f8f8e;
  --on-brand: #ffffff;
  --brand-hover: #112546;
  --band-from: #112546;
  --band-to: #1f6cad;
  --band-text: #ffffff;
  --bg: #f8fafc;
  --bg-alt: #edf3f9;
  --surface: #ffffff;
  --text: #13213a;
  --muted: #4a5873;
  --border: #d8e1ec;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 37, 70, .06), 0 8px 24px rgba(17, 37, 70, .08);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5aa8e6;
    --brand-2: #2b5f99;
    --accent: #fe8a4a;
    --teal: #4cc4c2;
    --on-brand: #0b1730;
    --brand-hover: #8cc4f0;
    --band-from: #173563;
    --band-to: #1f5a96;
    --bg: #0b1730;
    --bg-alt: #0f1f3d;
    --surface: #142848;
    --text: #e8eef7;
    --muted: #a9b7cc;
    --border: #22385c;
    --shadow: none;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
img, svg { max-width: 100%; display: block; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--brand); color: var(--on-brand);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

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

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  padding: .8em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--brand);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-small { padding: .45em 1em; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--brand); border-color: var(--brand); }
.btn-light { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }
.btn-light:hover { background: var(--bg-alt); border-color: var(--bg-alt); }
.btn-ghost-light { background: transparent; color: var(--on-brand); border-color: var(--on-brand); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: var(--on-brand); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.center-row { justify-content: center; }

.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .6em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  color: var(--text); text-decoration: none;
}
.brand-accent { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-links a:not(.btn):hover { color: var(--brand); }

@media (max-width: 760px) {
  .nav-links li:not(:last-child) { display: none; }
  .brand { font-size: 1rem; }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 48px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.lead strong { color: var(--text); }
.hero-art img {
  width: 100%; height: auto;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(17, 37, 70, .25);
}
.brand-mark { border-radius: 10px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; margin-inline: auto; }
}

/* Topics */
.topics { padding-bottom: 32px; }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.topic {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; font-weight: 600;
}
.topic-icon {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; flex: none;
  border-radius: 10px; background: var(--bg-alt); color: var(--brand);
  font-family: var(--font-head); font-size: .95rem;
}
@media (max-width: 760px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { font-size: 1.125rem; color: var(--muted); max-width: 44em; }
.center .section-lead { margin-inline: auto; }
.note { color: var(--muted); margin-top: 1.5rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 2rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.card p { color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 14px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Feature workshop */
.feature {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); margin-top: 1.5rem;
}
.feature h3 { font-size: 1.6rem; }
.feature-body p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.chips li {
  background: var(--bg-alt); color: var(--brand);
  font-size: .88rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}
.feature-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; align-content: start; }
.feature-facts div { background: var(--bg-alt); border-radius: 12px; padding: 16px; }
.feature-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.feature-facts dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* Partners */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 2rem 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.panel-brand { background: linear-gradient(135deg, var(--band-from), var(--band-to)); color: var(--band-text); border-color: transparent; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
#about .two-col { margin-block: 0; margin-inline: auto; gap: 48px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 1.5rem; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Contact */
.contact { background: linear-gradient(135deg, var(--band-from), var(--band-to)); color: var(--band-text); }
.contact .section-lead { color: var(--band-text); opacity: .9; }
.contact .btn-light { background: #ffffff; color: #112546; border-color: #ffffff; }
.contact .btn-light:hover { background: #edf3f9; border-color: #edf3f9; }
.contact-email { color: var(--band-text); font-weight: 600; text-underline-offset: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }
