/* Hallmark · macrostructure: preserved (system refinement redesign) · genre: editorial
 * theme: custom — warm ivory paper + espresso ink + brand gold, dark bookend surfaces
 * design-system: design.md · designed-as-app
 * contrast: pass (46–50) · component: on-dark utility scopes text/surface tokens for dark sections
 */
/* ===========================================================================
   The Shidduch Lounge — warm editorial design system
   Ivory paper + espresso ink + brand gold, bookended by dark nav/footer/cards.
   Playfair Display / Cormorant Garamond / Inter.
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* ---- Warm paper (default surface — most of the site lives here) ----
     Base values below are the Shidduch Lounge Color Guide, verbatim where given. */
  --paper:          #fdfbf6; /* guide: Paper */
  --paper-2:        #faf5ea; /* guide: Paper Mid */
  --paper-3:        #f6efe1; /* guide: Paper Deep */
  --desk:           #e8e0d2; /* guide: Desk (outer backdrop) */
  --surf:           #fffefc; /* ponytail: derived — guide has no "brighter than Paper" step; used only for card-lift gradients */
  --surf-2:         #fdfbf6; /* = Paper, reused as the gradient's second stop */

  /* ---- Dark bookend (nav / footer / accent cards — used with intent, not everywhere) ---- */
  --dark:           #1a1510; /* = guide Ink — also the guide's own dark-band gradient start */
  --dark-2:         #282016; /* guide's dark-band gradient end stop */
  --dark-3:         #362b1c; /* ponytail: extrapolated third step (same delta as dark → dark-2) */
  --nav-glass:      rgba(26,21,16,.72);
  --nav-glass-on:   rgba(26,21,16,.90);

  /* ---- Ink (on paper) ---- */
  --ink-2:          #1a1510; /* guide: Ink — headings */
  --ink:            #3a3025; /* guide: Ink 2 — body */
  --muted-l:        #5a4f40; /* guide: Ink 3 — primary muted copy (7.7:1 on Paper) */
  --faint-l:        #8a7d6a; /* guide: Muted — tertiary/decorative labels only (guide's exact value; ~3.9:1, matches prior faint-label precedent) */
  --border-l:       rgba(180,150,90,.30); /* guide: Line */
  --border-soft-l:  rgba(40,30,10,.10);   /* guide: Line Soft */

  /* ---- Cream (on dark) ---- */
  --cream-d:        #fdfbf6; /* = Paper */
  --text-d:         #faf5ea; /* = Paper Mid */
  --muted-d:        #c4b49a; /* guide: Beige */
  --faint-d:        #947d57; /* ponytail: derived from Beige, darkened to clear 4.5:1 on Ink */
  --border-d:       rgba(196,180,154,.22); /* ponytail: Beige-tinted line for dark surfaces (guide only defines one for paper) */
  --border-soft-d:  rgba(196,180,154,.12);

  /* ---- Gold (single brand accent — tuned to the logo mark) ---- */
  --gold:           #d99a1c; /* guide: Gold */
  --gold-highlight: #f0b945; /* guide: Gold Soft */
  --gold-deep:      #ad7811; /* guide: Gold Deep */
  --gold-text:      #996a0f; /* ponytail: darkened past Gold Deep so small label/eyebrow text clears 4.5:1 AA (the guide's 3 golds top out at ~3.7:1) */
  --gold-ink:       #1a1510; /* = guide Ink, for text sitting on a gold fill */
  --gold-glow:      rgba(217,154,28,.16);
  --gold-t06:       rgba(217,154,28,.06);
  --gold-t07:       rgba(217,154,28,.07);
  --gold-t10:       rgba(217,154,28,.10);
  --gold-t12:       rgba(217,154,28,.12);
  --gold-t22:       rgba(217,154,28,.22);
  --gold-t25:       rgba(217,154,28,.25);
  --gold-t30:       rgba(217,154,28,.30);
  --gold-t35:       rgba(217,154,28,.35);

  /* ---- Role tokens — components read these. .on-dark flips them below. ---- */
  --bg:             var(--paper);
  --bg-2:           var(--paper-2);
  --surface:        var(--surf);
  --surface-2:      var(--surf-2);
  --border:         var(--border-l);
  --border-soft:    var(--border-soft-l);
  --cream:          var(--ink-2);
  --text:           var(--ink);
  --muted:          var(--muted-l);
  --faint:          var(--faint-l);
  --eyebrow-c:      var(--gold-text);
  --inline-gold:    var(--gold-text);
  --gold-soft:      var(--gold-text);
  --flow-fill:      var(--ink-2);
  --flow-text:      var(--paper);
  --focus:          #a54c00;
  --destructive:    #c2272a;

  --radius:         18px;
  --radius-sm:      12px;
  --radius-lg:      28px;
  --shadow:         0 24px 70px rgba(120,95,45,.16); /* guide: Shadow */
  --shadow-gold:    0 20px 54px -18px var(--gold-glow);
  --maxw:           1200px;
  --serif:          'Playfair Display', Georgia, serif;
  --display:        'Cormorant Garamond', Georgia, serif;
  --sans:           'Inter', system-ui, -apple-system, sans-serif;
  --ease:           cubic-bezier(.16,1,.3,1);
  --ease-in-out:    cubic-bezier(.65,0,.35,1);
  --icon-arrow:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* Dark-surface scope: nav, footer, hero-card, cta-band opt in via this class.
   Everything downstream keeps using the same token names — they just resolve dark. */
.on-dark {
  --bg: var(--dark); --bg-2: var(--dark-2); --surface: var(--dark-2); --surface-2: var(--dark-3);
  --border: var(--border-d); --border-soft: var(--border-soft-d);
  --cream: var(--cream-d); --text: var(--text-d); --muted: var(--muted-d); --faint: var(--faint-d);
  --eyebrow-c: var(--gold-highlight); --inline-gold: var(--gold-highlight); --gold-soft: var(--gold-highlight);
  --flow-fill: var(--paper); --flow-text: var(--ink-2);
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--desk); }
body {
  font-family: var(--sans);
  background: linear-gradient(168deg, var(--paper), var(--paper-2) 55%, var(--paper-3));
  color: var(--text);
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Ambient warm wash — guide's page-background radial, subtle on ivory paper */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(115% 70% at 88% -6%, var(--gold-t10), transparent 46%);
  pointer-events: none; z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--gold-ink); }

/* Focus-visible — instant, never animated, ≥3:1 on both paper and dark surfaces */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.filter-pill:focus-visible, .acc-head:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 96px 0; position: relative; z-index: 1; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.grid { display: grid; gap: 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--cream); letter-spacing: -.01em; overflow-wrap: anywhere; }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .74rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--eyebrow-c);
  display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before, .eyebrow.two-side::after {
  content: ""; width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.two-side::after { background: linear-gradient(90deg, var(--gold), transparent); }

.h-display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); font-weight: 300; max-width: 62ch; }
.center .lede, .lede.center { margin-left: auto; margin-right: auto; }
.gold { color: var(--inline-gold); }
.italic-accent { font-family: var(--display); font-weight: 500; color: var(--gold-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-weight: 500; font-size: .95rem; letter-spacing: .02em;
  padding: 14px 30px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), background .32s, color .32s,
              border-color .32s, border-radius .5s var(--ease), padding .5s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-highlight), var(--gold-deep));
  color: var(--gold-ink); font-weight: 600; box-shadow: var(--shadow-gold);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, oklch(100% 0 0 / 35%) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .55s var(--ease);
  pointer-events: none;
}
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 26px 70px -18px var(--gold-glow), 0 0 0 1px var(--gold-highlight); }

/* Flow style: two arrow glyphs (masked from --icon-arrow, tinted via currentColor)
   swap sides while the fill/radius morph in on hover — adapted from a pasted
   React/Tailwind reference component onto the site's plain CSS button system. */
.btn-ghost {
  background: transparent; color: var(--cream); border-color: var(--border);
  padding-left: 22px; padding-right: 38px;
}
.btn-ghost::before, .btn-ghost::after {
  content: ""; position: absolute; top: 50%; width: 15px; height: 15px;
  transform: translateY(-50%);
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  background-color: currentColor; pointer-events: none;
  transition: left .5s var(--ease), right .5s var(--ease), background-color .32s;
}
.btn-ghost::before { left: -24px; }
.btn-ghost::after { right: 18px; }
/* .btn-sm's padding shorthand would otherwise win the cascade (same specificity,
   later rule) and eat the right-side room the resting arrow above needs. */
.btn-ghost.btn-sm { padding-right: 36px; }
.btn-ghost:hover {
  border-color: transparent; color: var(--flow-text); background: var(--flow-fill);
  border-radius: 12px; padding-left: 38px; padding-right: 22px;
}
.btn-ghost:hover::before { left: 18px; }
.btn-ghost:hover::after { right: -24px; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn-gold::after { display: none; }
  .btn-ghost::before, .btn-ghost::after { display: none; }
  .btn-ghost, .btn-ghost:hover { transition: background .32s, color .32s, border-color .32s; }
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: var(--nav-glass);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.nav.scrolled { border-bottom-color: var(--border-soft); background: var(--nav-glass-on); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--gold-highlight), var(--gold-deep));
  color: var(--gold-ink); font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 0 0 1px var(--gold-t25), 0 8px 20px -8px var(--gold-glow);
}
.brand-name { font-family: var(--serif); font-size: 1.16rem; color: var(--cream); font-weight: 600; letter-spacing: .01em; }
.brand-name small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold-soft); font-weight: 500; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .9rem; color: var(--muted); padding: 8px 14px; border-radius: 8px;
  transition: color .25s; position: relative; font-weight: 400;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.nav-cta { margin-left: 10px; }
.nav-links a.nav-cta { color: var(--gold-ink); }
.nav-links a.nav-login { color: var(--cream); margin-left: 10px; }
.nav-links a.nav-login:hover { color: var(--gold-soft); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 42px; cursor: pointer; color: var(--cream); }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; margin: 4px auto; transition: .3s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 12px 20px 24px; transform: translateY(-140%); transition: transform .4s var(--ease);
    box-shadow: var(--shadow); max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav.open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--border-soft); font-size: 1rem; }
  .nav-links a.active::after { display: none; }
  .nav-cta, .nav-login { margin: 14px 0 0; }
  .brand-logo { height: 34px; }
}

/* ---------- Brand logo ---------- */
.brand-logo { height: 44px; width: auto; display: block; transition: opacity .25s; }
.brand:hover .brand-logo { opacity: .85; }
.brand-logo--footer { height: 58px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(80px, 13vh, 150px) 0 clamp(70px, 10vh, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -8%; top: 8%; width: 56%; height: 90%;
  background: radial-gradient(closest-side, var(--gold-t12), transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero .lede { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.stat .num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-text); line-height: 1; }
.stat .lbl { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }

/* Hero visual — the dark "lounge card", the one recurring accent surface */
.hero-visual { position: relative; }
.hero-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 34px; aspect-ratio: 4/4.4; display: flex; flex-direction: column; justify-content: space-between;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 20 172 148 28 148Z M100 180 28 52 172 52Z' fill='none' stroke='rgba(217,154,28,.16)' stroke-width='1.5'/%3E%3C/svg%3E"),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  background-repeat: no-repeat, no-repeat;
  background-position: right -60px bottom -60px, center;
  background-size: 300px 300px, cover;
}
.hero-card::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(80% 50% at 70% 0%, var(--gold-glow), transparent 60%);
}
.hero-card > div { position: relative; }
.hero-card.photo {
  background-image:
    linear-gradient(200deg, rgba(26,21,16,.10), rgba(26,21,16,.72)),
    url('lounge-hero.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.hero-card .monogram {
  width: 96px; height: 96px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold-soft);
  display: grid; place-items: center; font-family: var(--serif); font-size: 2.6rem;
  box-shadow: inset 0 0 30px var(--gold-t12);
}
.hero-card h3 { font-size: 1.7rem; }
.hero-card .card-meta { color: var(--muted); font-size: .95rem; }
.hero-card .divider { height: 1px; background: linear-gradient(90deg, var(--gold-deep), transparent); margin: 8px 0; }
.hero-badge {
  position: absolute; z-index: 2; background: var(--surf); border: 1px solid var(--border-l);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .82rem;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 10px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-deep); box-shadow: 0 0 0 4px var(--gold-t22); }
.hero-badge.b1 { top: -14px; right: 24px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-deep); box-shadow: var(--shadow); }
.card-top-accent::before {
  content:""; position: absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity:0; transition: opacity .4s;
}
.card-top-accent:hover::before { opacity: 1; }

.feature-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-t22), var(--gold-t06));
  border: 1px solid var(--gold-t22); color: var(--gold-text); margin-bottom: 20px;
  transition: transform .4s var(--ease);
}
.feature-icon svg { width: 26px; height: 26px; }
.card:hover .feature-icon { transform: translateY(-2px); }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- Event cards ---------- */
.event-card { display: flex; flex-direction: column; gap: 18px; }
.event-date {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--serif); color: var(--gold-text);
}
.event-date .day { font-size: 2.4rem; line-height: 1; }
.event-date .mo { font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.event-card h3 { font-size: 1.35rem; }
/* Sits between the title and the date/time row. --gold-soft is a role token, so
   this follows the card into .on-dark without an override. */
.event-segment { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); margin-top: 6px; font-weight: 600; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .88rem; margin-top: 4px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 15px; height: 15px; color: var(--gold-deep); opacity: .85; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-text); padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--gold-t30); background: var(--gold-t07); font-weight: 600; width: max-content;
}

/* An event at a pop-up venue flips to the dark palette so it stands out in a
   grid of paper cards. .on-dark already IS that inversion — it swaps the role
   tokens every component reads — so the card carries it and needs no colours
   of its own. The two golds below are the exception: --gold-text and
   --gold-deep are not role tokens, they were darkened to clear AA on paper,
   which is exactly backwards on ink. .event-date and .chip read them directly. */
.event-card--popup { --gold-text: var(--gold-highlight); --gold-deep: var(--gold-highlight); }

/* Filter pills */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-pill {
  font-family: var(--sans); font-size: .85rem; padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--pill, var(--border)); background: transparent; color: var(--muted); cursor: pointer;
  transition: .25s var(--ease); font-weight: 400;
}
/* --pill is set inline per location (events.html); "All Locations" has none and falls back to gold. */
.filter-pill:hover { color: var(--cream); border-color: var(--pill, var(--gold-deep)); }
.filter-pill.active { background: var(--pill, var(--gold)); color: var(--gold-ink); border-color: var(--pill, var(--gold)); font-weight: 600; }
/* The pop-up pill is the inverse of the others: they sit transparent on paper
   and fill only when chosen, so this one arrives filled with ink and gives that
   up on selection. A temporary venue reads as different at a glance, and the
   pill matches the inverted card it filters to. */
.filter-pill--popup { background: var(--dark); color: var(--gold-highlight); border-color: var(--dark); font-weight: 600; }
.filter-pill--popup:hover { color: var(--gold-highlight); border-color: var(--gold); }
.filter-pill--popup.active { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

/* ---------- Steps / timeline ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 20px; }
.step-num {
  font-family: var(--serif); font-size: 1rem; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-text);
  border: 1px solid var(--gold-t35); background: var(--surface); margin-bottom: 18px;
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; }
.step:not(:last-child)::before {
  content:""; position: absolute; top: 43px; left: 58px; right: -13px; height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), transparent);
}
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2,1fr); } .step::before { display:none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Marquee (engagements) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scroll-x 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.mazal-pill {
  display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); white-space: nowrap;
  transition: border-color .3s, transform .3s var(--ease);
}
.mazal-pill:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.mazal-pill .ring { color: var(--gold-deep); }
.mazal-pill .names { font-family: var(--serif); color: var(--cream); font-size: 1.02rem; }
.mazal-pill .amp { color: var(--gold-text); font-family: var(--display); font-style: italic; margin: 0 2px; }

/* ---------- Shadchan cards ---------- */
.leader-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.avatar {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.7rem; color: var(--gold-text);
  background: linear-gradient(150deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--gold-t30);
}
.leader-card h3 { font-size: 1.3rem; }
.leader-card .role { color: var(--gold-text); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin: 3px 0 12px; }
.leader-card p { font-size: .93rem; color: var(--muted); }
.committee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; }
.committee-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); transition: .3s var(--ease);
}
.committee-item:hover { border-color: var(--gold-deep); background: var(--surface-2); transform: translateY(-2px); }
.committee-item .avatar { width: 42px; height: 42px; font-size: 1rem; }
.committee-item .nm { font-size: .92rem; color: var(--cream); }
.committee-item .rl { font-size: .74rem; color: var(--faint); }

/* ---------- Accordion (glossary/faq) ---------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.acc-item { border-bottom: 1px solid var(--border-soft); }
.acc-item:last-child { border-bottom: none; }
.acc-head {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: var(--cream);
  padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--serif); font-size: 1.12rem; transition: color .25s;
}
.acc-head:hover { color: var(--gold-text); }
.acc-head .ico { color: var(--gold-deep); transition: transform .35s var(--ease); flex-shrink: 0; }
.acc-item.open .acc-head .ico { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc-body-inner { padding: 0 26px 24px; color: var(--muted); white-space: pre-line; }

/* ---------- Pricing / donation tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 20px; }
.tier { display: flex; flex-direction: column; }
.tier.popular { border-color: var(--gold-deep); box-shadow: var(--shadow-gold); }
/* Badge sits in the flow, not floated over the name — absolute positioning
   collided with any tier name long enough to wrap. Every tier renders the
   .t-flag slot so names stay aligned across the row. */
.tier .t-flag { display: flex; align-items: center; height: 22px; margin-bottom: 8px; }
.tier .badge-pop { font-size: .66rem; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.tier .t-name { font-family: var(--serif); font-size: 1.15rem; color: var(--cream); }
.tier .t-amt { font-family: var(--serif); font-size: 2.6rem; color: var(--gold-text); margin: 10px 0 4px; }
.tier .t-desc { color: var(--muted); font-size: .88rem; min-height: 42px; }
.tier ul { list-style: none; margin: 20px 0 24px; display: grid; gap: 10px; }
.tier li { font-size: .88rem; color: var(--text); display: flex; gap: 10px; align-items: flex-start; }
.tier li svg { color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }
.tier .btn { margin-top: auto; }

/* ---------- Testimonials ---------- */
.quote-card { position: relative; }
.quote-card .qmark { font-family: var(--serif); font-size: 4rem; color: var(--gold-deep); line-height: .6; opacity: .5; }
.quote-card p { color: var(--text); font-style: italic; font-family: var(--display); font-size: 1.15rem; line-height: 1.6; margin: 10px 0 18px; }
.quote-card .who { font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.stars { color: var(--gold-deep); letter-spacing: 2px; margin-bottom: 6px; }

/* ---------- CTA band (dark accent surface, same family as hero-card) ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: clamp(44px, 7vw, 80px); text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border);
}
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 90% at 50% 0%, var(--gold-glow), transparent 65%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 18px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--cream); font-family: var(--sans); font-size: .96rem; transition: .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px var(--gold-t22); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* PayEngine SecureFields (assets/donate-core.js) renders each card field as an
   iframe carrying no width or height of its own, so the browser applies its
   300x150 default: ~110px of dead space under every field and a CVC wider than
   its own column. The input *inside* the frame is styled from donate-core.js;
   these rules size the frame around it to match .field input. */
#card-name, #card-number, #card-expiry, #card-cvc { min-height: 46px; }
#card-name iframe, #card-number iframe, #card-expiry iframe, #card-cvc iframe {
  display: block;
  width: 100%;
  height: 46px;
  border: 0;
}
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }

/* ---------- Contact info cards ---------- */
.info-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: .3s var(--ease); }
.info-row:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.info-row .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-t10); color: var(--gold-text); flex-shrink: 0; }
.info-row > div { min-width: 0; }
.info-row .k { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.info-row .v { color: var(--cream); font-size: 1rem; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 70px 0 34px; margin-top: 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; font-weight: 600; }
.footer a, .footer p { color: var(--muted); font-size: .92rem; display: block; margin-bottom: 11px; transition: color .25s; }
.footer a:hover { color: var(--gold-soft); }
.footer .about-blurb { max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.footer-bottom p { font-size: .82rem; color: var(--faint); margin: 0; }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); transition: .3s var(--ease); margin: 0; }
.social-row a:hover { color: var(--gold-soft); border-color: var(--gold); transform: translateY(-2px); }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 460px){ .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */
.page-head { padding: clamp(70px, 11vh, 120px) 0 20px; text-align: center; }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin: 20px 0 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; }
  .marquee-track { animation: none; }
  * { scroll-behavior: auto; }
}

/* ---------- Welcome dialog (first visit, retires itself — see app.js) ----------
   Paper card on a dimmed desk, the same family as .card and .modal in admin.css
   but built here because the public stylesheet had no dialog of its own. Every
   colour is a role token, so it inherits the palette rather than fixing one. */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(26,21,16,.62); opacity: 0; transition: opacity .3s var(--ease);
}
.welcome-overlay.show { opacity: 1; }
.welcome-card {
  position: relative; width: 100%; max-width: 470px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px 34px 32px; text-align: center;
  transform: translateY(14px) scale(.98); transition: transform .35s var(--ease);
}
.welcome-overlay.show .welcome-card { transform: none; }
.welcome-card:focus { outline: none; } /* focused only to move the reader in; it is not a control */
.welcome-card h2 {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 1.85rem); line-height: 1.15;
  color: var(--ink-2); margin: 0 0 16px;
}
.welcome-card h2 em { color: var(--gold-deep); font-style: italic; }
.welcome-card p { font-size: .97rem; line-height: 1.65; color: var(--muted); margin: 0 0 14px; }
.welcome-card p strong { color: var(--ink-2); font-weight: 600; }
.welcome-card .btn { margin-top: 10px; }
.welcome-fine {
  font-size: .8rem; line-height: 1.55; color: var(--faint); margin: 20px 0 0;
  padding-top: 16px; border-top: 1px solid var(--border-soft);
}
.welcome-fine a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 2px; }
.welcome-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; line-height: 1;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  background: none; border: 0; border-radius: 50%; color: var(--faint); cursor: pointer;
  transition: .2s var(--ease);
}
.welcome-x:hover { background: var(--gold-t07); color: var(--ink-2); }
@media (max-width: 480px) { .welcome-card { padding: 36px 22px 26px; } }
@media (prefers-reduced-motion: reduce) {
  .welcome-overlay, .welcome-card { transition: none; }
  .welcome-card { transform: none; }
}

/* ---------- Utility ---------- */
.two-col { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.four-col { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width: 900px){ .three-col, .four-col, .two-col { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .three-col, .four-col, .two-col { grid-template-columns: minmax(0,1fr); } }
.mt-s{margin-top:14px}.mt-m{margin-top:28px}.mt-l{margin-top:48px}.mb-l{margin-bottom:48px}
.section-head { margin-bottom: 52px; }
.divider-dot { display:flex; align-items:center; justify-content:center; gap:14px; color:var(--gold-deep); margin: 8px 0; }
.divider-dot::before, .divider-dot::after { content:""; height:1px; width:60px; background:linear-gradient(90deg,transparent,var(--gold-deep)); }
.divider-dot::after { background:linear-gradient(90deg,var(--gold-deep),transparent); }
.empty-note { text-align:center; color:var(--muted); padding: 40px; border:1px dashed var(--border); border-radius: var(--radius); }
