/* ========================================
   INUA EMPOWERMENT COLLECTIVE
   Shared Stylesheet — All Pages
   Brand Palette: Teal, Green, Gold
   ======================================== */

/* === Design Tokens === */
:root,
[data-theme='light'] {
  /* Brand Colors */
  --teal: #0D7C7C;
  --teal-dark: #0A5C5C;
  --teal-light: #1A9E9E;
  --teal-tint: #E8F4F4;
  --green: #3A8B3A;
  --green-dark: #2D6B2D;
  --green-tint: #EDF5ED;
  --gold: #D4A017;
  --gold-dark: #B0830F;
  --gold-light: #E8BC3A;
  --gold-tint: #FBF5E6;

  /* Surfaces */
  --color-bg: #FAFAF7;
  --color-surface: #FFFFFF;
  --color-surface-2: #F5F5F0;
  --color-surface-offset: #F0EFEA;
  --color-divider: #E0DED8;
  --color-border: #D4D2CC;

  /* Text */
  --color-text: #1F1E1A;
  --color-text-muted: #5A5852;
  --color-text-faint: #A8A69E;
  --color-text-inverse: #FAFAF7;

  /* Semantic */
  --color-primary: var(--teal);
  --color-primary-hover: var(--teal-dark);
  --color-accent: var(--gold);
  --color-accent-hover: var(--gold-dark);
  --color-success: var(--green);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(31, 30, 26, 0.06);
  --shadow-md: 0 4px 16px rgba(31, 30, 26, 0.08);
  --shadow-lg: 0 12px 40px rgba(31, 30, 26, 0.12);

  /* Content Widths */
  --content-narrow: 680px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --teal: #3DBDBD;
  --teal-dark: #2A9E9E;
  --teal-light: #5DCECE;
  --teal-tint: #1A2E2E;
  --green: #6DAE6D;
  --green-dark: #4E8E4E;
  --green-tint: #1A2A1A;
  --gold: #E8C03A;
  --gold-dark: #D4A017;
  --gold-light: #F0CC55;
  --gold-tint: #2A2618;

  --color-bg: #161513;
  --color-surface: #1C1B19;
  --color-surface-2: #22211D;
  --color-surface-offset: #1A1917;
  --color-divider: #2A2926;
  --color-border: #363431;

  --color-text: #E5E3DC;
  --color-text-muted: #9A988E;
  --color-text-faint: #6A6862;
  --color-text-inverse: #1F1E1A;

  --color-primary: var(--teal);
  --color-primary-hover: var(--teal-light);
  --color-accent: var(--gold);
  --color-accent-hover: var(--gold-light);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* === Base Styles === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.2;
  font-weight: 500;
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
  color: var(--color-primary-hover);
}

::selection {
  background: rgba(13, 124, 124, 0.25);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* === Layout Utilities === */
.container {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

.container-narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section-tight {
  padding-block: clamp(var(--space-8), 4vw, var(--space-16));
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.bg-tint { background: var(--color-surface-2); }
.bg-teal-tint { background: var(--teal-tint); }
.bg-green-tint { background: var(--green-tint); }
.bg-gold-tint { background: var(--gold-tint); }

/* === Header / Navigation === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 300ms ease;
}

[data-theme='dark'] .site-header {
  background: rgba(22, 21, 19, 0.92);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-bar {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-2) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.logo-mark {
  width: auto;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--teal);
}

.logo-sub {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: background 180ms ease, color 180ms ease;
}

.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 200ms ease;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold);
  color: #1F1E1A;
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-surface-2);
  border-color: var(--teal);
  color: var(--teal);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* === Hero Sections === */
.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 124, 124, 0.92), rgba(10, 92, 92, 0.85));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  max-width: 720px;
  color: #fff;
}

.hero h1 {
  font-size: var(--text-3xl);
  color: #fff;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  font-size: var(--text-2xl);
  color: #fff;
  margin-bottom: var(--space-4);
}

.page-hero p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  max-width: 60ch;
  margin: 0 auto;
}

/* === Cards === */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.card-icon-teal { background: var(--teal-tint); color: var(--teal); }
.card-icon-green { background: var(--green-tint); color: var(--green); }
.card-icon-gold { background: var(--gold-tint); color: var(--gold-dark); }

.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* === Grid Layouts === */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === Section Headings === */
.section-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-10);
}

.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-3);
  display: block;
}

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 5vw, var(--space-16));
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-4);
}

.cta-banner p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  max-width: 50ch;
  margin: 0 auto var(--space-8);
}

.cta-banner .btn-gold {
  background: var(--gold);
}

/* === Footer === */
.site-footer {
  background: #0A3D3D;
  color: rgba(255, 255, 255, 0.85);
  padding-block: var(--space-16) var(--space-8);
}

[data-theme='dark'] .site-footer {
  background: #0A2828;
}

.footer-grid {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-6);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
}

.footer-brand .logo-name {
  color: #fff;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-4);
  max-width: 40ch;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-3);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  max-width: var(--content-wide);
  margin: var(--space-12) auto 0;
  padding: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a,
.footer-contact a,
.footer-contact span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
}

/* === Forms === */
.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.form-group label .required {
  color: var(--gold-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 124, 124, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.form-success {
  background: var(--green-tint);
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  color: var(--green-dark);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  display: none;
}

.form-success.visible {
  display: block;
}

/* === Timeline === */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-divider);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--teal);
  border: 3px solid var(--color-bg);
}

.timeline-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal);
  margin-bottom: var(--space-2);
}

.timeline-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* === Table === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
  color: var(--color-text-muted);
}

.data-table td:first-child {
  color: var(--color-text);
  font-weight: 500;
}

/* === Feature List === */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* === Stats === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--teal);
  font-weight: 600;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* === Tag === */
.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--teal-tint);
  color: var(--teal-dark);
}

/* === Responsive === */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .logo-mark {
    height: 64px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    padding: var(--space-6);
    gap: var(--space-4);
    border-bottom: 1px solid var(--color-divider);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
