/* ═══════════════════════════════════════════════════════════
   Yaldeinu — shared brand styles
   Used by: index.html, hall.html, packages.html, faq.html, contact.html
   (pledges.html keeps its own inline CSS for the app-shell screens)
═══════════════════════════════════════════════════════════ */

:root {
  --ink: #0A1628;
  --ink2: #3D4A5C;
  --ink3: #8993A4;
  --ink4: #C2C8D2;
  --bg: #F8F6F1;
  --bg-2: #F2EFE7;
  --surface: #FFFFFF;
  --surface-2: #FBFAF6;
  --border: #E8E3D8;
  --border-2: #F0EBDE;
  --navy: #0A1628;
  --navy-2: #122B4E;
  --navy-3: #1B3A6B;
  --gold: #C89B3C;
  --gold-2: #E2B85C;
  --gold-lt: #FBF3DE;
  --gold-soft: #FCF7E8;
  --green: #2F6E4B;
  --green-lt: #E6F1EB;
  --red: #B23A2A;
  --red-lt: #FBEAE6;
  --amber: #B55A00;
  --amber-lt: #FFF4E5;
  --blue: #1D4ED8;
  --blue-lt: #EEF3FF;
  --r-sm: 8px; --r: 12px; --r-md: 14px; --r-lg: 18px; --r-xl: 22px;
  --shadow-xs: 0 1px 2px rgba(10,22,40,.06);
  --shadow-sm: 0 2px 8px rgba(10,22,40,.06);
  --shadow: 0 8px 24px rgba(10,22,40,.08);
  --shadow-lg: 0 24px 60px rgba(10,22,40,.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: 'Sora', sans-serif; font-weight: 700;
  letter-spacing: -0.02em; margin: 0; color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1rem; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.muted { color: var(--ink3); }
.label {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink3); font-weight: 600;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-lt);
  padding: 8px 16px; border-radius: 100px;
}
.dot-gold { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { color: var(--ink); border: 1px solid var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink3); }
.btn-ghost-dark { color: white; border: 1px solid rgba(255,255,255,0.25); background: transparent; }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.08); }
.btn-lg { padding: 15px 28px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ─── Demo banner ─── */
.demo-banner {
  background: #FBF3DE; color: #6B4F1A; text-align: center;
  padding: 9px 16px; font-size: 0.82rem; font-weight: 500;
  border-bottom: 1px solid #E2B85C;
}
.demo-banner button {
  background: none; border: none; color: #6B4F1A;
  font-weight: 600; margin-left: 8px; cursor: pointer;
}

/* ─── Top Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 241, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand-mark {
  font-family: 'Sora'; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 9px; color: var(--ink);
  text-decoration: none;
}
.brand-mark.white { color: white; }
.brand-mark img {
  display: block;
  height: 42px; width: auto;
  max-height: 42px;
}
@media (max-width: 640px) {
  .brand-mark img { height: 36px; max-height: 36px; }
}
.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 0.93rem; font-weight: 500; color: var(--ink2);
  transition: color 0.15s; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -26px; left: 0; right: 0; height: 2px;
  background: var(--gold);
}
.nav-cta { display: flex; gap: 10px; align-items: center; }

.mobile-menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
}
.mobile-menu-btn svg { width: 22px; height: 22px; color: var(--ink); }

#mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 100; padding: 24px; overflow-y: auto;
}
#mobile-menu.open { display: block; }
#mobile-menu .mm-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px;
}
#mobile-menu a {
  display: block; padding: 18px 0; font-family: 'Sora'; font-weight: 600; font-size: 1.4rem;
  color: var(--ink); border-bottom: 1px solid var(--border);
}
#mobile-menu .mm-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
}
@media (max-width: 640px) {
  .nav-cta .btn-ghost { display: none; }
}

/* ─── Hero ─── */
.hero {
  padding: 80px 0 70px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(200,155,60,0.10), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
  font-size: 1.15rem; color: var(--ink2);
  max-width: 600px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Section ─── */
section { padding: 70px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { color: var(--ink2); font-size: 1.05rem; margin-top: 14px; }
.section-tinted { background: linear-gradient(180deg, transparent, rgba(200,155,60,0.05)); }
.section-cream { background: var(--bg-2); }

/* ─── Cards ─── */
.cards { display: grid; gap: 18px; }
.cards.two { grid-template-columns: 1fr; }
.cards.three { grid-template-columns: 1fr; }
.cards.four { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .cards.two { grid-template-columns: 1fr 1fr; }
  .cards.three { grid-template-columns: repeat(2, 1fr); }
  .cards.four { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.four { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.2s ease;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ─── Track cards (two-up CTA blocks) ─── */
.tracks {
  display: grid; gap: 20px;
}
@media (min-width: 880px) { .tracks { grid-template-columns: 1fr 1fr; } }
.track {
  position: relative;
  border-radius: 22px;
  padding: 44px 36px;
  color: white;
  overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: all 0.25s ease;
}
.track:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.track-hall { background: linear-gradient(160deg, #122B4E 0%, #0A1628 100%); }
.track-pledge { background: linear-gradient(160deg, #C89B3C 0%, #8B6A1E 100%); }
.track::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(40% 40% at 80% 20%, rgba(255,255,255,0.12), transparent 70%);
  pointer-events: none;
}
.track .tag {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.75; margin-bottom: 14px;
}
.track h2 { color: white; margin-bottom: 14px; }
.track p { color: rgba(255,255,255,0.85); margin-bottom: 24px; max-width: 380px; }
.track .btn {
  background: white; color: var(--ink); align-self: flex-start;
}
.track .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

/* ─── Stats / Pledge progress ─── */
.bignum {
  font-family: 'Sora'; font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em; color: var(--navy); line-height: 1;
}
.bignum .of { color: var(--ink3); font-weight: 500; font-size: 0.42em; margin-left: 8px; }
.progress {
  height: 12px; background: var(--gold-lt); border-radius: 100px;
  overflow: visible; margin: 18px 0 10px; position: relative;
}
.progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2));
  border-radius: 100px; position: relative; width: 0;
}
.progress-bar::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 18px; height: 18px; background: white; border: 3px solid var(--gold);
  border-radius: 50%; box-shadow: 0 2px 8px rgba(200,155,60,0.5);
}
.progress-meta {
  display: flex; justify-content: space-between;
  font-size: 0.88rem; color: var(--ink2);
}

/* ─── Generic photo placeholder ─── */
.photo-ph {
  background: linear-gradient(135deg, #122B4E, #0A1628);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  font-family: 'Sora'; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  min-height: 200px;
}
.photo-ph.gold { background: linear-gradient(135deg, #5c4a1e, #C89B3C); color: rgba(255,255,255,0.5); }
.photo-ph.green { background: linear-gradient(135deg, #2f6e4b, #1d4a32); color: rgba(255,255,255,0.5); }
.photo-ph.warm { background: linear-gradient(135deg, #8a7456, #5a4836); color: rgba(255,255,255,0.5); }

/* ─── Pills / Badges ─── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.74rem; font-weight: 600;
}
.pill.green { background: var(--green-lt); color: var(--green); }
.pill.amber { background: var(--amber-lt); color: var(--amber); }
.pill.gold { background: var(--gold-lt); color: var(--gold); }
.pill.gray { background: var(--bg); color: var(--ink2); }

/* ─── Footer ─── */
footer.pub-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 32px;
  margin-top: 60px;
}
.foot-grid { display: grid; gap: 36px; margin-bottom: 40px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
footer h4 { color: white; font-size: 0.95rem; margin-bottom: 14px; }
footer a {
  color: rgba(255,255,255,0.7); font-size: 0.92rem;
  display: block; padding: 4px 0;
}
footer a:hover { color: white; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}
.foot-brand {
  font-family: 'Sora'; font-weight: 700; font-size: 1.5rem;
  color: white; margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 9px;
}
.foot-tag { font-size: 0.9rem; max-width: 280px; }

/* ─── Common utilities ─── */
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }

/* ─── Forms ─── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink2); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 0.95rem; background: var(--surface); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,22,40,0.08);
}
.textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 520px) {
  .field-row.two { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Mobile polish — added 2026-05-25
   Targets ≤640px (phones) and ≤768px (small tablets/large phones)
═══════════════════════════════════════════════════════════ */

/* Tablet & below — modest reductions */
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .hero { padding: 60px 0 50px; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 1rem; }
  .hero p.lead { font-size: 1.05rem; margin-bottom: 28px; }
  h1 { font-size: clamp(1.8rem, 7vw, 2.4rem) !important; line-height: 1.1; }
  h2 { font-size: clamp(1.4rem, 5vw, 1.9rem) !important; line-height: 1.2; }
  h3 { font-size: 1.15rem; }
  .card { padding: 24px; }
}

/* Phones — generous breathing room within elements */
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
  section { padding: 48px 0; }
  .hero { padding: 50px 0 40px; }

  /* Hero actions: stack as full-width on phones */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn { width: 100%; }

  /* Section spacing — give each section room to breathe */
  .section-head { margin-bottom: 30px; }
  .section-head h2 { margin-bottom: 10px; }

  /* Cards: looser internal spacing, less crowded */
  .card { padding: 22px; }
  .card-hover:hover { transform: none; } /* no hover lift on touch */

  /* Tracks (two-up CTAs) */
  .track { padding: 32px 26px; min-height: 240px; }
  .track h2 { margin-bottom: 10px; }
  .track p { margin-bottom: 20px; font-size: 0.96rem; }

  /* Trust tiles + features */
  .trust-tile { padding: 22px; }
  .trust-tile p { line-height: 1.6; }

  /* Pill, eyebrow — slightly tighter */
  .eyebrow { padding: 7px 14px; font-size: 0.72rem; margin-bottom: 14px; }

  /* Forms */
  .field { margin-bottom: 16px; }
  .input, .select, .textarea { padding: 14px 14px; font-size: 16px; }
  /* font-size: 16px prevents iOS auto-zoom on focus */

  /* Footer */
  .pub-footer { padding: 44px 0 28px; }
  .foot-grid { gap: 28px; margin-bottom: 32px; }
  .foot-bottom { padding-top: 20px; }
}

/* Tiny phones (iPhone SE etc) */
@media (max-width: 380px) {
  .container, .container-narrow { padding: 0 16px; }
  .card { padding: 20px; }
  .track { padding: 28px 20px; }
}
