/* ESA / Love INC — Donate prototype
   Brand: navy #0d0f60 · gold #edae26 · blue #1e7ad5 · white */

:root {
  --navy: #12156e;
  --navy-deep: #0d0f60;
  --navy-card: #161a78;
  --navy-elevated: #1c2288;
  --gold: #edae26;
  --gold-bright: #f5c040;
  --gold-dim: rgba(237, 174, 38, 0.16);
  --blue: #1e7ad5;
  --blue-soft: #4a9ae8;
  --white: #ffffff;
  --muted: #b8c4e0;
  --muted-2: #8e9cbf;
  --line: rgba(237, 174, 38, 0.28);
  --line-soft: rgba(255, 255, 255, 0.1);
  --on-accent: #0d0f60;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 720px;
  --max-wide: 960px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(30, 122, 213, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 25%, rgba(74, 154, 232, 0.18), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 90%, rgba(237, 174, 38, 0.08), transparent 50%),
    linear-gradient(rgba(30, 122, 213, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 122, 213, 0.04) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

/* —— Prototype bar —— */
.proto-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a1040;
  border-bottom: 1px solid rgba(237, 174, 38, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.proto-bar-inner {
  width: min(100% - 1.5rem, 1100px);
  margin: 0 auto;
  padding: 0.65rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.proto-bar-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  flex: 1 1 280px;
  min-width: 0;
}

.proto-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-accent);
}

.proto-msg {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.proto-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.proto-btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--on-accent);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.proto-btn:hover {
  background: var(--gold-bright);
  color: var(--on-accent);
}

.proto-btn-ghost {
  background: transparent;
  color: var(--gold-bright);
}

.proto-btn-ghost:hover {
  background: var(--gold-dim);
  color: var(--white);
}

.proto-btn[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* Discussion notes (hidden until toggled) */
.note,
[data-note-section] {
  display: none;
}

body.show-notes .note {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(237, 174, 38, 0.55);
  background: rgba(237, 174, 38, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

body.show-notes .note strong {
  color: var(--gold-bright);
}

body.show-notes [data-note-section] {
  display: block;
}

/* —— Header (esali.org-style) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #0a1a4a;
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header-inner {
  width: min(100% - 1.25rem, 1180px);
  margin: 0 auto;
  padding: 0.7rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 64px;
}

.logo {
  flex-shrink: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  line-height: 0;
}

/* Wide wordmark: size by height so proportions stay correct */
.logo img {
  height: 42px;
  width: auto;
  max-width: min(230px, 48vw);
  display: block;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 480px) {
  .logo img {
    height: 34px;
    max-width: min(180px, 52vw);
  }
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  width: 42px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem 0.15rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  appearance: none;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-chevron {
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.15s ease;
}

.nav-dropdown-btn[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

/* About dropdown */
.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #0d224f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 100;
}

.nav-dropdown[hidden] {
  display: none;
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

/* Donate pill — white outline like live site */
.nav-item-donate {
  margin-left: 0.35rem;
}

.nav-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background: transparent;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-donate:hover,
.nav-donate:focus-visible {
  background: #fff;
  color: #0a1a4a;
  outline: none;
}

/* Mobile / tablet: collapse nav */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .header-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0a1a4a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .site-header.nav-open .header-nav {
    max-height: 80vh;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1.25rem;
    gap: 0.15rem;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0.65rem;
    font-size: 0.95rem;
  }

  .nav-dropdown {
    position: static;
    margin: 0 0 0.35rem;
    border-radius: 8px;
    box-shadow: none;
    min-width: 0;
  }

  .nav-item-donate {
    margin: 0.5rem 0 0;
  }

  .nav-donate {
    width: 100%;
    padding: 0.7rem 1rem;
  }
}

/* —— Hero —— */
.hero {
  padding: 2.75rem 0 2.5rem;
}

.hero-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr minmax(340px, 420px);
    gap: 2.5rem;
    align-items: start;
  }

  .hero-copy {
    padding-top: 0.25rem;
  }
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.hero-alt-links {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted-2);
}

.hero-alt-links a {
  color: var(--gold-bright);
}

/* Special ways — nested under mission copy */
.hero-special {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.hero-special-title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-special-lead {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.5;
}

.special-panel-in-hero {
  max-width: none;
  padding: 1.15rem 1.1rem 1.25rem;
  margin-top: 0.25rem;
}

.hero-special .special-label {
  font-size: 0.8rem;
}

.hero-special .select-wrap select {
  font-size: 0.95rem;
  padding: 0.8rem 2.5rem 0.8rem 0.9rem;
}

.primary-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

/* —— Donation box (reference-style chooser, ESALI brand) —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Official Zeffy embed shell */
.donate-box,
.donate-box-zeffy {
  background: #ffffff;
  color: #1a1f36;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.zeffy-embed-wrap {
  width: 100%;
  min-height: 450px;
  background: #f0f0ff;
}

/* Zeffy injects content into [data-zeffy-embed]; give it room */
.zeffy-embed-wrap [data-zeffy-embed] {
  width: 100%;
  min-height: 450px;
}

.zeffy-fallback-frame {
  position: relative;
  overflow: hidden;
  height: 450px;
  width: 100%;
}

.zeffy-fallback-iframe {
  position: absolute;
  border: 0;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .donate-box-zeffy {
    max-width: 100%;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-primary {
  background: var(--gold);
  color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(237, 174, 38, 0.25);
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--on-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--line-soft);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: var(--gold-dim);
}

.btn-lg {
  padding: 0.95rem 1.4rem;
  min-width: 11rem;
}

.btn-sub {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.8;
}

/* —— Sections —— */
.section {
  padding: 2.25rem 0 2.75rem;
}

.section-alt {
  background: rgba(18, 21, 110, 0.55);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* —— Cards —— */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--navy-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.card-featured {
  border-color: rgba(237, 174, 38, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(237, 174, 38, 0.12);
}

.card-icon {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card .btn {
  width: 100%;
  align-items: center;
  text-align: center;
}

.mail-block {
  font-style: normal;
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line-soft);
}

.contact-lines {
  margin: 0 !important;
  font-weight: 600;
}

.contact-lines a {
  text-decoration: none;
  color: var(--gold-bright);
}

.contact-lines a:hover {
  text-decoration: underline;
}

/* —— Special giving dropdown —— */
.special-panel {
  background: var(--navy-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.6rem;
  max-width: 640px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.special-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  width: 100%;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy-deep);
  border: 1px solid rgba(30, 122, 213, 0.45);
  border-radius: 12px;
  padding: 0.95rem 2.75rem 0.95rem 1rem;
  cursor: pointer;
  outline: none;
}

.select-wrap select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.select-wrap select option {
  background: var(--navy-deep);
  color: var(--white);
}

.select-chevron {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
}

.special-detail {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.special-detail h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--gold-bright);
}

.special-body {
  color: var(--muted);
  font-size: 0.98rem;
}

.special-body p {
  margin: 0 0 0.75rem;
}

.special-body p:last-child {
  margin-bottom: 0;
}

.special-cta {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.special-hint {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted-2);
}

.special-hint[hidden] {
  display: none;
}

/* —— Trust —— */
.trust-card {
  background: linear-gradient(145deg, var(--navy-elevated), var(--navy-card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  max-width: 720px;
}

.trust-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.trust-card > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.trust-meta {
  margin: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .trust-meta {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 0.25rem;
}

.trust-meta dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}

/* —— Discussion guide —— */
.section-discuss {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid var(--line);
}

.discuss-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--muted);
  max-width: 62ch;
}

.discuss-list li {
  margin-bottom: 0.85rem;
}

.discuss-list strong {
  color: var(--white);
}

.discuss-foot {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-2);
  max-width: 58ch;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 1.75rem 0 2.5rem;
  margin-top: 0.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.footer-logo {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted-2);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

/* Print: hide proto chrome, keep content */
@media print {
  .proto-bar {
    position: static;
    box-shadow: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  .hero-lead,
  .card p,
  .section-head p,
  .special-body,
  .trust-card > p {
    color: #333;
  }

  .card,
  .special-panel,
  .trust-card {
    break-inside: avoid;
    border-color: #ccc;
    background: #f8f8f8;
    box-shadow: none;
  }
}
