/* ============================================================
   IncluNorm Foundation — Stylesheet
   Design tokens derived from the brand wordmark:
   forest green (#1A8B57), warm cream (#F7F8E6), olive-charcoal (#5F6A48)
   ============================================================ */

:root {
  /* --- Color tokens (sampled from the logo files) --- */
  --green-900: #0F5C37;   /* deep forest — headings on cream, hover states */
  --green-700: #1A8B57;   /* brand green — primary actions, the wordmark color */
  --green-500: #1FA64A;   /* bright accent green — highlights, focus */
  --green-100: #E4EDDD;   /* soft sage — card backgrounds */
  --cream:      #F7F8E6;  /* brand cream — page background */
  --cream-dim:  #F0EEDD;  /* slightly deeper cream for section banding */
  --white:      #FFFFFF;
  --olive:      #5F6A48;  /* "FOUNDATION" wordmark color — secondary text/labels */
  --charcoal:   #24261C;  /* primary body text, near-black with warm undertone */
  --charcoal-60: rgba(36,38,28,0.64);
  --line:       rgba(36,38,28,0.12);

  /* --- Type --- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Layout --- */
  --wrap-max: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 2px 6px rgba(36,38,28,0.05), 0 14px 32px rgba(36,38,28,0.07);
  --shadow-card-hover: 0 6px 14px rgba(36,38,28,0.08), 0 24px 48px rgba(36,38,28,0.12);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol.stitch-line { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--green-900); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5vw + 1rem, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.9rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

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

/* ============ ACCESSIBILITY UTILITIES ============ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  background: var(--green-900); color: var(--cream);
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

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

/* ============ EYEBROW / LABEL ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--olive); margin-bottom: 14px;
}
.eyebrow.center { display: flex; justify-content: center; width: 100%; }
.plus-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-700); color: var(--cream);
  font-size: 0.72rem; font-weight: 800; line-height: 1;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-lede { margin-top: 14px; font-size: 1.08rem; color: var(--charcoal-60); }
.section-lede.center { margin-inline: auto; }
.section-head:has(.center) { max-width: 640px; margin-inline: auto; text-align: center; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-700); color: var(--white); }
.btn-primary:hover { background: var(--green-900); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,92,55,0.28); }
.btn-outline { background: transparent; color: var(--green-900); border-color: var(--green-900); }
.btn-outline:hover { background: var(--green-900); color: var(--cream); transform: translateY(-2px); }
.btn-ghost { color: var(--green-900); font-weight: 600; padding: 13px 14px; }
.btn-ghost:hover { color: var(--green-700); text-decoration: underline; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: 20px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,248,230,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--green-700); }
.brand-sub { font-family: var(--font-body); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; color: var(--olive); }

.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-weight: 600; font-size: 0.96rem; color: var(--charcoal); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-menu a:hover { color: var(--green-700); border-color: var(--green-500); }

.header-cta { display: flex; align-items: center; gap: 6px; }

.nav-toggle {
  display: none; background: none; border: none; padding: 10px;
  flex-direction: column; gap: 5px;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--green-900); border-radius: 2px;
}
.nav-toggle-bar::before { transform: translateY(-7px); }
.nav-toggle-bar::after { transform: translateY(5px); }

/* ============ HERO ============ */
.hero { padding-top: 64px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 560px; }
.hl { color: var(--green-700); font-style: italic; }
.hero-lede { margin-top: 22px; font-size: 1.15rem; color: var(--charcoal-60); max-width: 500px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stat-line { margin-top: 24px; font-size: 0.86rem; color: var(--olive); font-weight: 600; }

.hero-art { position: relative; }
.hero-illustration { width: 100%; height: auto; animation: floatSlow 7s ease-in-out infinite; }
@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-divider { margin-top: 56px; }
.hero-divider svg { width: 100%; height: 26px; }

/* ============ MISSION ============ */
.mission { padding-block: 88px; background: var(--green-900); }
.mission-inner { max-width: 780px; margin-inline: auto; text-align: center; }
.mission h2 { color: var(--cream); }
.mission-body { margin-top: 22px; font-size: 1.12rem; color: rgba(247,248,230,0.82); }
.eyebrow.center { color: rgba(247,248,230,0.75); }
.mission .plus-dot { background: var(--cream); color: var(--green-900); }

/* ============ CARD GRID / IMPACT ============ */
.impact { padding-block: 96px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.impact-card-wide { grid-column: span 3; }

.impact-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.impact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.impact-icon { width: 48px; height: 48px; margin-bottom: 6px; }
.impact-card p { color: var(--charcoal-60); flex-grow: 1; }
.card-link { font-weight: 700; color: var(--green-700); margin-top: 6px; }
.card-link:hover { color: var(--green-900); text-decoration: underline; }

/* ============ PROCESS / STITCH LINE (signature element) ============ */
.process { padding-block: 96px; background: var(--cream-dim); }
.stitch-line {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
  position: relative; counter-reset: step;
}
.stitch-line::before {
  content: ""; position: absolute; top: 17px; left: 5%; right: 5%; height: 2px;
  background-image: linear-gradient(90deg, var(--green-700) 0, var(--green-700) 6px, transparent 6px, transparent 18px);
  background-size: 18px 2px; background-repeat: repeat-x;
}
.stitch-line li { position: relative; padding-top: 56px; }
.stitch-node {
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--green-700);
  color: var(--green-700); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.stitch-line li:hover .stitch-node { background: var(--green-700); color: var(--cream); }
.stitch-line h3 { font-size: 1.05rem; margin-bottom: 6px; }
.stitch-line p { font-size: 0.92rem; color: var(--charcoal-60); }

/* ============ QUIZ FEATURE ============ */
.quiz-feature { padding-block: 96px; }
.quiz-inner { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center; }
.quiz-copy p { color: var(--charcoal-60); font-size: 1.08rem; margin-top: 16px; max-width: 480px; }
.quiz-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; margin: 32px 0; }
.quiz-stats li { display: flex; flex-direction: column; }
.quiz-stats strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--green-700); }
.quiz-stats span { font-size: 0.78rem; color: var(--olive); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.quiz-card-mock {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-card); max-width: 380px; margin-inline: auto;
}
.quiz-card-mock-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; font-weight: 700; color: var(--olive); margin-bottom: 18px; }
.quiz-progress-track { width: 120px; height: 6px; background: var(--green-100); border-radius: 999px; overflow: hidden; }
.quiz-progress-fill { display: block; width: 43%; height: 100%; background: var(--green-700); border-radius: 999px; }
.quiz-card-mock-q { font-family: var(--font-display); font-size: 1.2rem; color: var(--charcoal); margin-bottom: 20px; }
.quiz-card-mock-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-card-mock-opts span { padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); font-size: 0.92rem; }
.quiz-card-mock-opts span:first-child { border-color: var(--green-700); background: var(--green-100); color: var(--green-900); font-weight: 600; }

/* ============ ADAPTIVE FASHION ============ */
.fashion { padding-block: 96px; background: var(--green-100); }
.fashion-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.fashion-illustration { border-radius: var(--radius-lg); }
.fashion-copy p { margin-top: 18px; color: var(--charcoal-60); font-size: 1.08rem; max-width: 520px; }
.fashion-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ============ ADVOCACY ============ */
.advocacy { padding-block: 96px; }
.advocacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.advocacy-card {
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 10px;
}
.advocacy-card-live { background: var(--green-900); color: var(--cream); }
.advocacy-card-live h3 { color: var(--cream); }
.advocacy-card-live p { color: rgba(247,248,230,0.78); }
.advocacy-card-future { background: var(--white); border: 1.5px dashed var(--line); }
.advocacy-card-future p { color: var(--charcoal-60); }
.tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  background: var(--green-500); color: var(--green-900);
}
.tag-future { background: var(--cream-dim); color: var(--olive); }

/* ============ VISION ============ */
.vision { padding-block: 96px; background: var(--cream-dim); }
.vision-inner .section-head { text-align: center; }
.vision-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.vision-item {
  background: var(--white); border-radius: var(--radius-md); padding: 24px;
  border: 1px solid var(--line);
}
.vision-item h3 { font-size: 1rem; margin-bottom: 6px; }
.vision-item p { font-size: 0.9rem; color: var(--charcoal-60); }

/* ============ STATS ============ */
.stats { padding-block: 80px; background: var(--green-700); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-number { font-family: var(--font-display); font-size: clamp(2.2rem, 3vw, 3.2rem); font-weight: 600; color: var(--cream); }
.stat-label { font-size: 0.82rem; font-weight: 600; color: rgba(247,248,230,0.8); text-transform: uppercase; letter-spacing: 0.04em; }

/* ============ SUPPORT ============ */
.support { padding-block: 96px; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.support-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-card); text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.support-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.support-icon { width: 44px; height: 44px; margin-bottom: 14px; }
.support-card p { color: var(--charcoal-60); margin-top: 6px; }

/* ============ STORIES / TESTIMONIALS ============ */
.stories { padding-block: 96px; background: var(--green-100); }
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px;
  border-left: 4px solid var(--green-700);
}
.story-card blockquote p { font-family: var(--font-display); font-size: 1.08rem; font-style: italic; color: var(--charcoal); }
.story-card figcaption { margin-top: 16px; font-size: 0.85rem; font-weight: 600; color: var(--olive); }

/* ============ PARTNERS ============ */
.partners { padding-block: 64px; }
.partner-logos {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; margin-top: 24px;
}
.partner-logos li {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  color: var(--charcoal-60); opacity: 0.7;
}

/* ============ NEWS ============ */
.news { padding-block: 96px; background: var(--cream-dim); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); }
.news-date { font-size: 0.78rem; font-weight: 700; color: var(--olive); text-transform: uppercase; letter-spacing: 0.06em; }
.news-card h3 { margin-top: 10px; font-size: 1.1rem; }
.news-card p { margin-top: 8px; color: var(--charcoal-60); font-size: 0.94rem; }

/* ============ FAQ / ACCORDION ============ */
.faq { padding-block: 96px; }
.faq-inner { max-width: 760px; margin-inline: auto; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; text-align: left;
  padding: 22px 4px; font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--charcoal);
}
.accordion-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--green-700); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(135deg); background: var(--green-700); color: var(--cream);
}
.accordion-panel { padding: 0 4px 22px; color: var(--charcoal-60); max-width: 640px; }

/* ============ NEWSLETTER ============ */
.newsletter { padding-block: 80px; background: var(--green-900); }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { color: var(--cream); }
.newsletter p { margin-top: 10px; color: rgba(247,248,230,0.78); }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.newsletter-form input {
  flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 999px;
  border: 2px solid transparent; background: var(--cream); color: var(--charcoal);
}
.newsletter-form input:focus { border-color: var(--green-500); outline: none; }
.form-message { width: 100%; font-size: 0.88rem; font-weight: 600; color: var(--green-500); margin-top: 4px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--charcoal); color: rgba(247,248,230,0.85); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 48px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; max-width: 340px; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--cream); font-weight: 600; }
.footer-brand-tagline { margin-top: 8px; font-size: 0.9rem; color: rgba(247,248,230,0.6); }
.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h3 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,248,230,0.5); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; color: rgba(247,248,230,0.85); }
.footer-col a:hover { color: var(--green-500); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(247,248,230,0.14); padding-block: 22px; font-size: 0.82rem; color: rgba(247,248,230,0.55); }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--green-700); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(15,92,55,0.32);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--green-900); }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-card-wide { grid-column: span 2; }
  .stitch-line { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .stitch-line::before { display: none; }
  .quiz-inner, .fashion-inner, .newsletter-inner { grid-template-columns: 1fr; }
  .fashion-visual { order: 2; }
  .vision-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .support-grid, .stories-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

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

  .nav-toggle { display: flex; }
  .main-nav { position: relative; }
  .nav-menu {
    position: absolute; top: calc(100% + 14px); right: 0; left: auto;
    background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card-hover);
    flex-direction: column; gap: 4px; padding: 12px; min-width: 200px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); border-bottom: none; }
  .nav-menu a:hover { background: var(--green-100); }
  .header-cta .btn-ghost { display: none; }

  .card-grid { grid-template-columns: 1fr; }
  .impact-card-wide { grid-column: span 1; }
  .stitch-line { grid-template-columns: repeat(2, 1fr); }
  .vision-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid, .stories-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .quiz-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .hero-actions, .fashion-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .fashion-actions .btn { width: 100%; }
}
