/* ==========================================================================
   thirdPlace · Advocacy Site Stylesheet
   Rich color system · Responsive (tablet/phone) · Mobile nav
   ========================================================================== */

/* ===== RESET & COLOR TOKENS ===== */
:root {
  --ink: #1a1730;
  --muted: #57546f;
  --cream: #faf7f1;
  --paper: #ffffff;

  --brand: #ff5a33;          /* vivid coral-orange */
  --brand-dark: #d63f1e;
  --violet: #7c3aed;         /* deep purple */
  --blue: #2f6bff;           /* punchy blue */
  --teal: #14b8a6;           /* fresh teal */
  --pink: #f43f8e;

  --tint-violet: #efe9ff;
  --tint-teal: #dcfaf4;
  --tint-peach: #ffece0;
  --dark: #1a1730;

  --grad-hero: linear-gradient(135deg, #ffe0d0 0%, #f3e8ff 45%, #ddf6ff 100%);
  --grad-brand: linear-gradient(90deg, #ff5a33, #f43f8e 60%, #7c3aed);

  --shadow: 0 12px 30px rgba(26, 23, 48, 0.14);
  --radius: 18px;
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 23, 48, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.5rem;
}
.brand span { color: var(--brand); }

.nav { display: flex; gap: 26px; align-items: center; }
.nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink); transition: color 0.2s; }
.nav a:hover { color: var(--brand); }
.nav .nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav .nav-cta:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s;
}

/* ===== HERO ===== */
.hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 90, 51, 0.18), transparent 45%),
    radial-gradient(circle at 88% 20%, rgba(124, 58, 237, 0.20), transparent 45%),
    radial-gradient(circle at 60% 90%, rgba(20, 184, 166, 0.18), transparent 50%),
    linear-gradient(135deg, #ffe6da 0%, #f4eaff 48%, #dff3ff 100%);
  padding: 90px 0 70px;
  border-bottom: 1px solid rgba(26, 23, 48, 0.06);
}

.hero-inner { max-width: 800px; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand);
  background: linear-gradient(90deg, rgba(255, 90, 51, 0.15), rgba(124, 58, 237, 0.15));
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow.center { display: table; margin-left: auto; margin-right: auto; margin-bottom: 16px; }
.eyebrow.light { background: rgba(255, 255, 255, 0.14); color: #ffd7c7; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 span {
  color: var(--brand);   /* solid coral-orange #ff5a33 */
  background: none;
}

.hero-sub { font-size: 1.15rem; color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-tagline {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--paper);
  padding: 18px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 640px;
  font-size: 0.98rem;
}
.hero-tagline span { font-size: 1.6rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--brand);        /* solid coral-orange #ff5a33 */
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 90, 51, 0.4);
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-block { width: 100%; text-align: center; }

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }

/* colored section bands */
.section-tinted {
  background:
    radial-gradient(circle at 10% 10%, rgba(20, 184, 166, 0.12), transparent 40%),
    linear-gradient(180deg, #e6fbf7 0%, #eaf3ff 100%);
}

.section-dark {
  background: linear-gradient(135deg, #221f3a, #3a2468);
  color: var(--cream);
}

.section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; letter-spacing: -0.01em; }
.section h2 em { color: var(--brand); font-style: italic; }
.section .lead { color: var(--muted); max-width: 680px; font-size: 1.08rem; }
.section-dark .lead { color: #cfc9e8; }

/* centering helper for headings and leads */
.center, .center + h2, .center + p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.lead.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ===== SPACE GRID (cards) ===== */
.space-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0;
}

.space-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.space-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(26, 23, 48, 0.18); }
.space-card .space-icon { font-size: 2rem; }
.space-card h3 { font-size: 1.25rem; }
.space-card p { color: var(--muted); font-size: 0.96rem; flex-grow: 1; }

.space-card .tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--tint-violet);
  color: var(--violet);
  padding: 5px 11px;
  border-radius: 999px;
}

/* highlighted "closest / top pick" cards */
.space-card-star,
.spaced-card-star {
  border: 2px solid var(--brand);
  background: linear-gradient(160deg, #fff1ea, #fff7ff);
}
.space-card-star .star,
.spaced-card-star .star {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-top: 4px;
}

/* ===== CALLOUTS ===== */
.callout { padding: 28px 30px; border-radius: var(--radius); margin-top: 10px; }
.callout h3 { font-size: 1.5rem; margin-bottom: 8px; }

.callout-coral {
  background: linear-gradient(135deg, #ffe3d3, #ffedf3);
  border-left: 6px solid var(--brand);
}
.callout-light {
  background: linear-gradient(135deg, #ffffff, #f0ecff);
  border-left: 6px solid var(--violet);
  box-shadow: var(--shadow);
}
.callout-gradient {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 18px 40px rgba(255, 90, 51, 0.35);
}
.callout-gradient h3, .callout-gradient p { color: #fff; }

/* ===== BENEFITS ===== */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0; }
.benefit { padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 0.2s; }
.benefit:hover { transform: translateY(-4px); }
.benefit h3 { font-size: 1.25rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); }

.b-violet { background: linear-gradient(160deg, #efe9ff, #f7f3ff); border-top: 5px solid var(--violet); }
.b-teal   { background: linear-gradient(160deg, #dcfaf4, #eafdf9); border-top: 5px solid var(--teal); }
.b-peach  { background: linear-gradient(160deg, #ffece0, #fff6ee); border-top: 5px solid var(--brand); }
.b-blue   { background: linear-gradient(160deg, #e3ecff, #f0f5ff); border-top: 5px solid var(--blue); }

/* ===== REFERENCES ===== */
.ref-list { display: grid; gap: 16px; margin-top: 28px; }
.ref-list li { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s; }
.ref-list a { display: block; padding: 20px 22px; }
.ref-list a:hover { background: var(--tint-violet); transform: translateX(5px); }
.ref-title { display: block; font-weight: 700; color: var(--blue); font-size: 1.05rem; margin-bottom: 4px; }
.ref-desc { color: var(--muted); font-size: 0.95rem; }

/* ===== SURVEY ===== */
.survey-container { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }

.survey {
  background: var(--paper);
  color: var(--ink);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}
.survey label { display: block; margin-bottom: 18px; }
.survey label > span { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.95rem; }
.survey select, .survey textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d3e6;
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.survey textarea { resize: vertical; }
.survey select:focus, .survey textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}
.form-note { margin-top: 14px; font-size: 0.95rem; font-weight: 600; min-height: 1.4em; }

/* ===== FOOTER ===== */
.site-footer { background: var(--ink); color: var(--cream); padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.footer-tag { color: #b9b4d6; }
.footer-meta { color: #8f8aa8; font-size: 0.85rem; }
.site-footer .brand span { color: var(--brand); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ---- Tablet (≤ 820px) ---- */
@media (max-width: 820px) {
  .space-grid { grid-template-columns: repeat(2, 1fr); }
  .survey-container { grid-template-columns: 1fr; }
}

/* ---- Phone (≤ 600px) ---- */
@media (max-width: 600px) {
  .hero { padding: 60px 0 50px; }
  .section { padding: 54px 0; }
  .space-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }

  /* Mobile hamburger menu */
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--cream);
    padding: 18px 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(26, 23, 48, 0.1);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }
  .nav.open { transform: translateY(0); }

  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}