/* ================================================
   LOKI FOUNDATION - GLOBAL STYLES
   Fonts: Poppins (headings) + Open Sans (body)
   ================================================ */

:root {
  --primary:      #F29F00;   /* golden orange */
  --secondary:    #E76F51;   /* rust orange   */
  --primary-dark: #9c6500;   /* dark amber    */
  --heading:      #2D3748;   /* dark blue-grey */
  --text:         #151515;
  --bg-light:     #f8f8f8;
  --bg-white:     #ffffff;
  --bg-dark:      #2D3748;
  --font-head:    'Poppins', sans-serif;
  --font-body:    'Open Sans', sans-serif;
  --max-w:        1200px;
  --radius:       8px;
  --shadow:       0 2px 16px rgba(0,0,0,0.08);
  --transition:   0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.75;
  font-size: 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.25;
  font-weight: 600;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); text-decoration: underline; }
img, video { max-width: 100%; display: block; }

/* ── Utility ─────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

/* ================================================
   NAVIGATION
   ================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo img {
  height: 52px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
}
.nav-logo:hover { text-decoration: none; }
.nav-logo:hover .nav-logo-text { color: var(--secondary); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--heading);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
  border-color: var(--secondary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--heading);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.8rem 1.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    width: 100%;
  }
  .nav-links a.active,
  .nav-links a:hover {
    border-left-color: var(--secondary);
    border-bottom: none;
    background: var(--bg-light);
  }
}

/* ================================================
   HERO (home page)
   ================================================ */

.hero {
  background: var(--bg-dark);
  color: var(--bg-white);
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 {
  color: var(--bg-white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 0.75rem;
}
.hero .hero-sub {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.hero > .container > p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 0.5rem;
}
.hero-video-wrap {
  margin: 2.5rem auto 0;
  max-width: 800px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.45);
}
.hero-video-wrap video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

/* ================================================
   PAGE HERO (sub-pages)
   ================================================ */

.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a2535 100%);
  color: var(--bg-white);
  padding: 4.5rem 0 4rem;
  text-align: center;
}
.page-hero h1 {
  color: var(--bg-white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ================================================
   BUTTONS
   ================================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--primary);
  color: var(--heading);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--bg-white);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--bg-white);
  border-color: var(--bg-white);
}
.btn-outline:hover {
  background: var(--bg-white);
  color: var(--heading);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: var(--heading);
  text-decoration: none;
}

/* ================================================
   SECTIONS - SHARED
   ================================================ */

.section { padding: 5rem 0; }
.section-white { background: var(--bg-white); }
.section-light { background: var(--bg-light); }
.section-dark  { background: var(--bg-dark); color: var(--bg-white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--bg-white); }
.section-dark p { color: rgba(255,255,255,0.82); }

.section-header { margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 0.75rem; }
.section-header p  { font-size: 1.05rem; color: #444; max-width: 700px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,0.75); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}
.section-dark .eyebrow { color: rgba(255,255,255,0.5); }

/* ================================================
   PULLQUOTE
   ================================================ */

.pullquote {
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.75rem;
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.75rem 0;
}
.pullquote p {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--heading);
  line-height: 1.55;
}
.pullquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #666;
  font-style: normal;
}

.mission-quote {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0;
}
.mission-quote p {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--bg-white);
  line-height: 1.45;
}

/* ================================================
   TWO-COLUMN LAYOUT
   ================================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.two-col p  { margin-bottom: 1rem; color: #333; }
.two-col p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.cta-row-centered { justify-content: center; margin-top: 2.5rem; }
.two-col-top { align-items: start; }

/* ================================================
   STEPS GRID (The Loki Approach)
   ================================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}
.step-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step-card h3 { font-size: 0.975rem; font-weight: 600; margin-bottom: 0.4rem; }
.step-card p  { font-size: 0.875rem; color: #555; }

/* ================================================
   AUDIENCE CARDS (Is Loki for me?)
   ================================================ */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .audience-grid { grid-template-columns: 1fr; } }

.audience-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.audience-card-video video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
}
.audience-card-body { padding: 1.5rem; }
.audience-card-body h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.audience-card-body ul { list-style: none; padding: 0; }
.audience-card-body ul li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.audience-card-body ul li::before {
  content: "→";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ================================================
   OUTCOME LIST (The Loki Ambition)
   ================================================ */

.outcome-list { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 1rem; }
.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.outcome-item p { color: rgba(255,255,255,0.88); margin: 0; font-size: 0.975rem; }

/* ================================================
   STATS GRID (Why Loki Matters)
   ================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr; } .stats-grid-2col { grid-template-columns: 1fr !important; } .rights { display: block; } .footer-bottom { flex-direction: column; align-items: center; text-align: center; } }

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--primary);
}
.stat-number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-card p     { font-size: 0.9rem; color: #444; line-height: 1.5; }
.stat-source     { font-size: 0.75rem; color: #999; margin-top: 0.5rem; font-style: italic; }

/* ================================================
   FEATURE / DIFFERENTIATION CARDS
   ================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}
.feature-icon   { font-size: 2rem; margin-bottom: 0.875rem; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.feature-card p  { font-size: 0.875rem; color: #555; }

/* ================================================
   TEAM BIOS
   ================================================ */

.leadership-photo {
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 480px;
}
.leadership-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 680px) { .team-grid { grid-template-columns: 1fr; } }

.bio-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}
.bio-card h3 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.bio-role {
  font-size: 0.82rem;
  color: var(--secondary);
  font-weight: 700;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  display: block;
}
.bio-card p { font-size: 0.92rem; color: #444; line-height: 1.7; }

/* ================================================
   WAYS TO GET INVOLVED
   ================================================ */

.involve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 680px) { .involve-grid { grid-template-columns: 1fr; } }

.involve-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.involve-icon  { font-size: 2rem; flex-shrink: 0; }
.involve-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.involve-card p  { font-size: 0.875rem; color: #555; }

/* ================================================
   AUDIENCE TILES (Get Involved)
   ================================================ */

.audience-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .audience-tiles { grid-template-columns: 1fr; } }

.tile {
  border-radius: var(--radius);
  padding: 2rem;
}
.tile h3 { color: var(--bg-white); font-size: 1.1rem; margin-bottom: 1rem; }
.tile ul { list-style: none; padding: 0; }
.tile ul li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.tile ul li::before { content: "✓"; flex-shrink: 0; color: rgba(255,255,255,0.6); }
.tile-individuals { background: var(--secondary); }
.tile-orgs        { background: var(--heading); }
.tile-funders     { background: var(--primary-dark); }

/* ================================================
   CONTACT FORM
   ================================================ */

.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--heading);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-white);
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(242,159,0,0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.5;
}
.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.form-status {
  display: none;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  text-align: center;
}
.form-status.success { background: #d4edda; color: #155724; display: block; }
.form-status.error   { background: #f8d7da; color: #721c24; display: block; }
.required-note { font-size: 0.8rem; color: #888; margin-bottom: 1.5rem; }

/* ================================================
   META-SKILL PILLS
   ================================================ */

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.skill-pill {
  background: var(--bg-white);
  border: 2px solid var(--primary);
  color: var(--heading);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ================================================
   FOOTER
   ================================================ */

.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
}

.footer-logo {
  height: 140px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-contact a {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.footer-contact a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--primary); text-decoration: none; }

/* ================================================
   RESPONSIVE - GLOBAL
   ================================================ */

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .page-hero { padding: 3rem 0 2.5rem; }
  .form-wrap { padding: 1.5rem; }
}
