@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --red: #C0392B;
  --red-dark: #96281B;
  --red-light: #E8635A;
  --black: #111111;
  --charcoal: #2C2C2C;
  --warm-gray: #F5F3F0;
  --mid-gray: #9A9A9A;
  --white: #FFFFFF;
  --border: #E2DDD8;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 6px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────── */
h1, h2, h3 { font-family: 'DM Serif Display', serif; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
p { font-size: 1.05rem; color: var(--charcoal); }

a { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--sm { padding: 52px 0; }

/* ── Navigation ─────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.nav__logo img { height: 48px; display: block; }
.nav__links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav__links > li { position: relative; }
.nav__links > li > a {
  display: block; padding: 8px 14px;
  font-size: 0.9rem; font-weight: 500; color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav__links > li > a:hover,
.nav__links > li > a.active { color: var(--red); background: #FDF1F0; }

/* Dropdown */
.nav__dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px;
  min-width: 220px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.2s;
  list-style: none;
}
.nav__links > li:hover .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; font-size: 0.88rem; color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav__dropdown a:hover { background: #FDF1F0; color: var(--red); }
.nav__dropdown .icon { font-size: 1rem; width: 20px; text-align: center; }

.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--black); border-radius: 2px;
  transition: all 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--white); z-index: 999; overflow-y: auto;
  padding: 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 0;
  font-size: 1.1rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--charcoal);
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu .sub { padding-left: 16px; font-size: 0.95rem; }

.page-offset { padding-top: var(--nav-h); }

/* ── Buttons ─────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none; line-height: 1;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(192,57,43,0.3); }
.btn--outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn--outline:hover { background: var(--red); color: var(--white); }
.btn--white { background: var(--white); color: var(--red); }
.btn--white:hover { background: var(--warm-gray); }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Hero ────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1a0a09 0%, #2d0f0d 50%, #3d1412 100%);
  color: var(--white); position: relative; overflow: hidden;
  padding: 100px 0 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner {
  position: relative; display: grid;
  grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px; padding: 6px 14px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red-light); margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.15rem; margin-bottom: 32px; max-width: 480px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual {
  display: flex; align-items: center; justify-content: center;
}
.hero__card-stack { position: relative; width: 320px; height: 280px; }
.hero__card {
  position: absolute; background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 24px;
}
.hero__card:nth-child(1) { width: 280px; top: 0; right: 0; }
.hero__card:nth-child(2) { width: 240px; bottom: 0; left: 0; }
.hero__card-icon { font-size: 2rem; margin-bottom: 10px; }
.hero__card h4 { color: var(--white); font-size: 0.85rem; margin-bottom: 4px; }
.hero__card p { color: rgba(255,255,255,0.6); font-size: 0.8rem; }

/* ── Stats bar ───────────────────── */
.stats-bar { background: var(--red); color: var(--white); padding: 28px 0; }
.stats-bar__inner { display: flex; justify-content: space-around; gap: 24px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat__num { font-family: 'DM Serif Display', serif; font-size: 2.2rem; display: block; }
.stat__label { font-size: 0.8rem; opacity: 0.85; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Survey ──────────────────────── */
.survey-section {
  background: var(--warm-gray);
  padding: 80px 0;
}
.survey-wrapper {
  max-width: 720px; margin: 0 auto;
  background: var(--white); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.survey-header {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 36px 40px; color: var(--white);
}
.survey-header h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 6px; }
.survey-header p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.survey-progress-bar {
  height: 4px; background: rgba(255,255,255,0.2);
  border-radius: 2px; margin-top: 20px;
}
.survey-progress-bar__fill {
  height: 100%; background: var(--white);
  border-radius: 2px; transition: width 0.4s ease;
}
.survey-body { padding: 40px; }
.survey-step { display: none; }
.survey-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.survey-q { font-size: 1.15rem; font-weight: 600; margin-bottom: 20px; color: var(--black); }
.survey-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.survey-options.single-col { grid-template-columns: 1fr; }

.survey-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.15s; position: relative;
}
.survey-option:hover { border-color: var(--red-light); background: #FDF1F0; }
.survey-option input { position: absolute; opacity: 0; }
.survey-option.checked { border-color: var(--red); background: #FDF1F0; }
.survey-option.checked .survey-option__check { background: var(--red); border-color: var(--red); }
.survey-option.checked .survey-option__check::after { display: block; }
.survey-option__check {
  width: 20px; height: 20px; min-width: 20px;
  border: 2px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; position: relative;
}
.survey-option__check::after {
  content: ''; display: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--white); position: absolute;
}
.survey-option--checkbox .survey-option__check { border-radius: 4px; }
.survey-option--checkbox.checked .survey-option__check::after {
  content: '✓'; display: block; width: auto; height: auto;
  background: none; color: var(--white); font-size: 0.7rem; font-weight: 700;
}
.survey-option__icon { font-size: 1.3rem; }
.survey-option__label { font-size: 0.92rem; font-weight: 500; }

.survey-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.survey-step-count { font-size: 0.85rem; color: var(--mid-gray); }

/* Survey Result */
.survey-result { display: none; padding: 40px; text-align: center; }
.survey-result.active { display: block; animation: fadeIn 0.4s ease; }
.survey-result__icon { font-size: 3.5rem; margin-bottom: 16px; }
.survey-result h3 { margin-bottom: 12px; }
.survey-result p { color: var(--mid-gray); margin-bottom: 28px; }
.survey-result__links { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto; }
.result-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); color: var(--charcoal);
  font-weight: 500; font-size: 0.92rem;
  transition: all 0.15s; text-align: left;
}
.result-link:hover { border-color: var(--red); color: var(--red); background: #FDF1F0; }
.result-link__icon { font-size: 1.2rem; }
.survey-restart { margin-top: 20px; background: none; border: none; color: var(--mid-gray); cursor: pointer; font-size: 0.88rem; text-decoration: underline; }

/* ── Resource Cards ──────────────── */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.resource-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.resource-card__category {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FDF1F0; color: var(--red);
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 14px; width: fit-content;
}
.resource-card h4 { font-size: 1.05rem; margin-bottom: 6px; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.resource-card__desc { font-size: 0.88rem; color: var(--mid-gray); margin-bottom: 16px; flex: 1; }
.resource-card__details { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.resource-card__detail {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.85rem; color: var(--charcoal);
}
.resource-card__detail span:first-child { min-width: 16px; margin-top: 1px; }
.resource-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Filter bar ──────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.filter-btn {
  padding: 7px 16px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: all 0.15s; color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }

.resource-search {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  outline: none; margin-bottom: 16px;
  transition: border-color 0.2s;
}
.resource-search:focus { border-color: var(--red); }

.loading-state { text-align: center; padding: 60px 0; color: var(--mid-gray); }
.loading-spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--red); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 0; color: var(--mid-gray); }
.empty-state__icon { font-size: 3rem; margin-bottom: 12px; }

/* ── Page hero (inner pages) ─────── */
.page-hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--charcoal) 100%);
  padding: 60px 0 52px; color: var(--white);
}
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 3rem); color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 520px; }
.page-hero__icon { font-size: 2.5rem; margin-bottom: 16px; }

/* ── About ───────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img img { width: 100%; height: 380px; object-fit: cover; display: block; }
.mission-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.mission-card {
  background: var(--warm-gray); border-radius: var(--radius);
  padding: 28px; border-left: 4px solid var(--red);
}
.mission-card h4 { font-size: 0.78rem; color: var(--red); margin-bottom: 8px; }
.mission-card p { font-size: 0.92rem; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-align: center;
}
.team-card img { width: 100%; height: 240px; object-fit: cover; object-position: top; }
.team-card__info { padding: 20px; }
.team-card__info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-card__role { color: var(--red); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; display: block; }
.team-card__bio { font-size: 0.88rem; color: var(--mid-gray); }

/* ── Contact ─────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 24px; color: var(--mid-gray); }
.contact-detail {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: var(--warm-gray);
  border-radius: var(--radius-sm); margin-bottom: 12px;
}
.contact-detail__icon { font-size: 1.2rem; width: 36px; height: 36px; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 8px; min-width: 36px; }
.contact-form { background: var(--warm-gray); border-radius: 20px; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--charcoal); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  background: var(--white); outline: none; transition: border-color 0.2s;
  color: var(--black);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-msg { padding: 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; display: none; }
.form-msg.success { background: #EFF9F0; color: #27AE60; border: 1px solid #A9DFBF; }
.form-msg.error { background: #FDEEEE; color: var(--red); border: 1px solid #F5C6C6; }

/* ── Help category page ──────────── */
.help-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 40px; }
.help-cat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  text-align: center; transition: all 0.2s;
  display: block; color: var(--charcoal);
}
.help-cat-card:hover { border-color: var(--red); color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow); }
.help-cat-card__icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.help-cat-card__label { font-size: 0.9rem; font-weight: 600; }

/* ── Video pitch ─────────────────── */
.video-wrapper {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ── Footer ──────────────────────── */
.footer { background: var(--black); color: rgba(255,255,255,0.7); padding: 52px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand img { height: 44px; margin-bottom: 14px; filter: brightness(10); }
.footer__brand p { font-size: 0.88rem; max-width: 260px; }
.footer__col h4 { color: var(--white); font-size: 0.78rem; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer__col a { display: block; color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 9px; transition: color 0.2s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.82rem; gap: 16px; flex-wrap: wrap; }
.footer__bottom a { color: rgba(255,255,255,0.5); }
.footer__bottom a:hover { color: var(--white); }

/* ── Utilities ───────────────────── */
.text-red { color: var(--red); }
.text-center { text-align: center; }
.text-gray { color: var(--mid-gray); }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.chip {
  display: inline-block; padding: 4px 12px;
  background: #FDF1F0; color: var(--red);
  border-radius: 100px; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-intro { max-width: 580px; margin: 0 auto 48px; text-align: center; }
.section-intro p { font-size: 1.05rem; color: var(--mid-gray); margin-top: 10px; }

/* ── Responsive ──────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .mission-cards { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .survey-options { grid-template-columns: 1fr; }
  .survey-body { padding: 24px; }
  .survey-header { padding: 24px; }
  .stats-bar__inner { gap: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .help-categories { grid-template-columns: 1fr 1fr; }
}
