/* RENACER — shared styles. Self-contained: no external fonts, no CDN. */

:root {
  --paper:      #faf6f0;
  --card:       #ffffff;
  --ink:        #26232e;
  --muted:      #6b6577;
  --night:      #232946;
  --night-soft: #eceef6;
  --dawn:       #d95f38;
  --dawn-dark:  #b84a27;
  --dawn-soft:  #fbe7da;
  --teal:       #2a6f63;
  --teal-dark:  #1f574d;
  --teal-soft:  #ddefe9;
  --line:       #e8e0d6;
  --danger:     #b3362b;
  --danger-soft:#fbe3e0;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ── Venezuelan identity (people, not government) ───── */
.flag-inline { display: inline-block; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.hearts { letter-spacing: 0.15em; }
.trust-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 28px;
}
.trust-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  background: var(--night);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(15, 20, 45, 0.25);
}

/* Anchored sections must clear the sticky header when jumped to */
section[id] { scroll-margin-top: 72px; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.brand .sun { flex: 0 0 auto; }
/* ── Hamburger menu ─────────────────────────────────── */
.menu-btn {
  background: none;
  border: 0;
  padding: 10px;
  margin: -10px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  margin: 5.5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-header .wrap { position: relative; }
.menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  right: 20px;
  width: min(260px, calc(100vw - 40px));
  background: var(--night);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 20, 45, 0.4);
  padding: 4px 0;
  z-index: 50;
}
.menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 13px;
  height: 13px;
  background: var(--night);
  transform: rotate(45deg);
  border-radius: 2px;
}
.menu.open { display: block; animation: menu-in 0.16s ease; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.menu a:first-child { border-top: 0; }
.menu a svg { flex: 0 0 auto; opacity: 0.65; }
.menu a:hover, .menu a.active { color: #f0a35e; }
.menu a:hover svg, .menu a.active svg { opacity: 1; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, var(--dawn-soft) 0%, rgba(251,231,218,0) 60%),
    linear-gradient(180deg, var(--night-soft) 0%, var(--paper) 100%);
  padding: 56px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.9rem);
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--night);
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 30px;
}

/* ── Buttons ────────────────────────────────────────── */
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 12px;
  border: 0;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  min-width: 220px;
}
.btn-dawn { background: var(--dawn); color: #fff; }
.btn-dawn:hover { background: var(--dawn-dark); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost {
  background: transparent;
  color: var(--night);
  border: 2px solid var(--night);
}
.btn-ghost:hover { background: var(--night-soft); }

/* ── Sections ───────────────────────────────────────── */
section { padding: 48px 0; }

/* Full-bleed section bands — each section gets its own background so the
   page reads as distinct blocks while scrolling. */
.band-white  { background: #ffffff; }
.band-dawn   { background: #fbeee2; }
.band-teal   { background: #e9f3ee; }
.band-indigo { background: #edeff7; }
.band-white details { background: var(--paper); }
.band-teal h2 { color: var(--teal-dark); }
.band-teal .section-volunteer { background: transparent; padding: 0; margin: 0; }
section h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  color: var(--night);
  margin: 0 0 18px;
}
section p { max-width: 680px; }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.cards-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--night); }
.card p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--dawn);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--night); }
.step p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.section-volunteer {
  background: var(--teal-soft);
  border-radius: 18px;
  padding: 36px 26px;
  margin: 10px 0 20px;
}
.section-volunteer h2 { color: var(--teal-dark); }

/* ── Share & social ─────────────────────────────────── */
.card-wide { grid-column: 1 / -1; }
.social-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn-social {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--night);
  color: var(--night);
  text-decoration: none;
  font-weight: 700;
}
.btn-social:hover { background: var(--night-soft); }
.share-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.share-block h3 { margin: 0 0 10px; font-size: 1.02rem; color: var(--night); }
.share-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;  /* long URLs must break, or they widen the page on mobile */
  word-break: break-word;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px;
  margin: 0 0 12px;
}
.copy-btn {
  padding: 10px 22px;
  border-radius: 10px;
  border: 0;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.copy-btn:hover { background: var(--teal-dark); }
.copy-btn.copied { background: var(--dawn); }

/* ── Notices ────────────────────────────────────────── */
.notice {
  background: var(--night-soft);
  border-left: 4px solid var(--night);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 18px 0;
}
.notice-danger {
  background: var(--danger-soft);
  border-left-color: var(--danger);
}
.error-banner {
  display: none;
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 20px;
  font-weight: 600;
}
.error-banner.show { display: block; }

/* ── FAQ ────────────────────────────────────────────── */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--night);
}
details p { margin: 10px 0 2px; color: var(--muted); font-size: 0.96rem; }

/* ── Forms ──────────────────────────────────────────── */
/* Longhand only — the shorthand was zeroing .wrap's 20px side padding. */
.form-page { padding-top: 36px; padding-bottom: 60px; }
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 22px;
  max-width: 640px;
  margin: 0 auto;
}
@media (min-width: 640px) { .form-card { padding: 34px 34px; } }

.form-card h1 { font-size: 1.5rem; color: var(--night); margin: 0 0 6px; }
.form-card .sub { color: var(--muted); margin: 0 0 24px; font-size: 0.98rem; }

label { display: block; font-weight: 600; margin: 18px 0 6px; font-size: 0.98rem; }
label .opt { font-weight: 400; color: var(--muted); font-size: 0.88rem; }

input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--dawn);
  outline-offset: 1px;
  border-color: var(--dawn);
}

.choice-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.choice-stack { display: grid; gap: 10px; margin-top: 6px; }
.choice-stack .choice { align-items: flex-start; font-weight: 400; }
.choice-stack .choice input { margin-top: 3px; flex: 0 0 auto; }
.choice-stack .choice strong { display: block; }
.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  background: #fff;
  font-weight: 500;
  font-size: 0.98rem;
}
.choice input { width: 18px; height: 18px; accent-color: var(--dawn); }
.choice:has(input:checked) { border-color: var(--dawn); background: var(--dawn-soft); }

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 0.93rem;
  font-weight: 400;
}
.check-line input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--dawn); }

.form-card .btn { width: 100%; margin-top: 26px; }
.privacy-line { font-size: 0.85rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* Honeypot — hidden from humans, visible to bots */
.field-web { position: absolute; left: -9999px; top: -9999px; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--night);
  color: rgba(255,255,255,0.85);
  padding: 34px 0;
  margin-top: 30px;
  font-size: 0.9rem;
}
.site-footer a { color: #fff; }
.site-footer .crisis {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

/* ── Thank-you page ─────────────────────────────────── */
.thanks {
  text-align: center;
  padding: 70px 0 60px;
  max-width: 560px;
  margin: 0 auto;
}
.thanks h1 { color: var(--night); font-size: 1.7rem; }
.thanks p { color: var(--muted); }
