/* ===========================================
   We Deserve Better — site styles
   Brand palette carried over from the original site:
     cream  #efebdf  (page background)
     teal   #48B4B7
     red    #FA3549
     ink    #1A1A1A
   =========================================== */

:root {
  --teal: #48B4B7;
  --teal-dark: #2E8E91;
  --red: #FA3549;
  --red-dark: #C8273A;
  --ink: #1A1A1A;
  --ink-soft: #444;
  --cream: #EFEBDF;
  --cream-deep: #E5DFCC;
  --mist: #EFEBDF;
  --line: #D9D3BE;
  --paper: #EFEBDF;
  --card: #FFFFFF;
  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0,0,0,0.07);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--red); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239,235,223,0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .brand img {
  height: 56px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}
.site-nav a:hover { color: var(--red); }
.site-nav .nav-cta {
  background: var(--teal);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.15s;
}
.site-nav .nav-cta:hover { background: var(--teal-dark); color: white; }
.site-nav .nav-cta-red {
  background: var(--red);
}
.site-nav .nav-cta-red:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 12px 24px;
    width: 100%;
  }
  .site-nav .nav-cta {
    margin: 8px 24px;
    text-align: center;
    width: calc(100% - 48px);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 .accent-teal { color: var(--teal); }
.hero h1 .accent-red { color: var(--red); }
.hero p.lead {
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-logo {
  display: flex;
  justify-content: flex-end;
}
.hero-logo img {
  width: 100%;
  max-width: 560px;
  height: auto;
}
@media (max-width: 860px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { justify-content: center; }
  .hero-logo img { max-width: 460px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.08s, background 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red);
  color: white;
}
.btn-primary:hover { background: var(--red-dark); color: white; }
.btn-secondary {
  background: var(--teal);
  color: white;
}
.btn-secondary:hover { background: var(--teal-dark); color: white; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: white; }

/* ---------- Section blocks ---------- */
.section {
  padding: 72px 0;
}
.section.tight { padding: 48px 0; }
.section.mist { background: var(--cream-deep); }
.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section h2 .accent-red { color: var(--red); }
.section h2 .accent-teal { color: var(--teal); }
.section p { margin: 0 0 16px; }
.section p.lead { font-size: 20px; color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.prose { max-width: 720px; }
.prose p { margin: 0 0 18px; }

/* ---------- Two-column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Video embed ---------- */
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Signup form ---------- */
.signup-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.signup-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
}
.signup-card p.sub {
  margin: 0 0 22px;
  color: var(--ink-soft);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(63,182,186,0.18);
}
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 10px 0 0;
}
.form-success, .form-error {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}
.form-success {
  background: rgba(63,182,186,0.12);
  color: var(--teal-dark);
}
.form-error {
  background: rgba(239,63,79,0.12);
  color: var(--red-dark);
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .signup-card { padding: 24px; }
}

/* ---------- Committee cards ---------- */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.committee-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.committee-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.committee-card .body {
  padding: 22px 24px 26px;
}
.committee-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
}
.committee-card .handle {
  font-size: 14px;
  color: var(--teal-dark);
  margin: 0 0 12px;
  display: inline-block;
  text-decoration: none;
}
.committee-card .handle:hover { color: var(--red); }
.committee-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }

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

/* ---------- Donate page ---------- */
.donate-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.donorbox-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 685px;
}
.donorbox-wrap iframe {
  width: 100%;
  border: 0;
  display: block;
}
.disclaimer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.disclaimer-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}
.disclaimer-list li:last-child { border-bottom: 0; }
.disclaimer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 860px) {
  .donate-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d6d8da;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.site-footer a { color: white; }
.site-footer a:hover { color: var(--teal); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 13px;
  color: #9aa0a4;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Root & Branch section logo ---------- */
.rb-logo {
  max-width: 360px;
  width: 100%;
  height: auto;
  margin: 0 0 20px;
  display: block;
}

.founders-line {
  color: var(--teal-dark);
  font-weight: 600;
  font-style: italic;
}

.rb-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.rb-features li {
  position: relative;
  padding: 6px 0 6px 44px;
  min-height: 32px;
  background-image: url("/assets/images/rb_icon.png");
  background-repeat: no-repeat;
  background-position: 0 6px;
  background-size: 30px 30px;
  font-size: 17px;
  line-height: 1.5;
}

.rb-closer {
  margin-top: 28px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.rb-closer a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.rb-closer a:hover { color: var(--red-dark); }

/* ---------- Privacy / long-form ---------- */
.longform {
  max-width: 760px;
  margin: 0 auto;
}
.longform h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.longform h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
}
.longform p, .longform li { font-size: 16px; line-height: 1.7; }
.longform a { color: var(--teal-dark); }
.longform ul { padding-left: 22px; }
.longform li { margin: 6px 0; }

/* ---------- Misc utilities ---------- */
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
