/* ============================================================
   David Shiro's Bar Mitzvah — shared styles
   Palette sampled from the original site.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Pinyon+Script&family=Mulish:wght@300;400;500&family=Frank+Ruhl+Libre:wght@400;500&display=swap');

:root {
  --cream:      #f7f3ec;
  --cream-soft: #fbf8f2;
  --periwinkle: #e3e9ee;
  --periwinkle-dark: #dbe3eb;
  --sage:       #e5e3be;
  --gold:       #bf9447;
  --gold-text:  #c4a05c;
  --gold-soft:  #d8c08a;
  --slate:      #6c8196;
  --slate-dark: #5a6f84;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ============================================================
   SCROLL-REVEAL ANIMATIONS
   Recreated from the original (fadeIn, slideIn, revealFromTop/Right).
   Elements start hidden + offset and ease into place as they
   scroll into view. Classes are applied automatically by reveal.js.
   Respects users who prefer reduced motion.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* The `.js` prefix means these only hide when JavaScript is running,
     so the site still shows all content if JS is disabled. */
  .js .reveal,
  .js .reveal-left,
  .js .reveal-right {
    opacity: 0;
    transition: opacity 1s cubic-bezier(.22,.61,.36,1),
                transform 1s cubic-bezier(.22,.61,.36,1);
    will-change: opacity, transform;
  }
  .js .reveal       { transform: translateY(36px); }
  .js .reveal-left  { transform: translateX(-46px); }
  .js .reveal-right { transform: translateX(46px); }

  .js .reveal.is-visible,
  .js .reveal-left.is-visible,
  .js .reveal-right.is-visible {
    opacity: 1;
    transform: none;
  }
}

html, body { overflow-x: hidden; }   /* safety net against any horizontal scroll on mobile */
body {
  font-family: 'Mulish', 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--slate);
  background: var(--cream);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Long display words (script headings, the hero title) must be allowed
   to break instead of forcing the page wider than the screen. */
.title, .script, .heb-name { overflow-wrap: break-word; word-break: break-word; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Two-tone display headings ---------- */
.title { font-family: 'Marcellus', serif; line-height: 1.1; }
.script { font-family: 'Pinyon Script', cursive; }
.t-gold  { color: var(--gold); }
.t-slate { color: var(--slate); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--periwinkle);
  border-bottom: 1px solid rgba(108,129,150,0.12);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 26px;
}
.brand { display: flex; align-items: center; gap: 12px; }
/* Logo: multiply blends the watercolor's light interior into the periwinkle
   bar (no more white box), and the contrast/saturate keeps the gold vivid. */
.brand img {
  height: 42px; width: auto;
  mix-blend-mode: multiply;
  filter: saturate(1.3) contrast(1.08);
}
.brand .heb {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 22px;
  color: var(--slate-dark);
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-family: 'Marcellus', serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--slate);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); border-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  position: relative;
  width: 30px; height: 22px;
  font-size: 0;            /* hide the fallback glyph; we draw bars instead */
  padding: 0;
}
/* three-bar hamburger drawn in CSS so it renders in every browser */
.nav-toggle::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 3px;
  height: 2px; border-radius: 2px;
  background: var(--slate-dark);
  box-shadow: 0 7px 0 var(--slate-dark), 0 14px 0 var(--slate-dark);
}

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--periwinkle);
    border-bottom: 1px solid rgba(108,129,150,0.15);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { text-align: center; border-top: 1px solid rgba(108,129,150,0.12); }
  .nav-links a { display: block; padding: 14px; border: none; }
}

/* ============================================================
   SECTIONS & LAYOUT
   ============================================================ */
section { padding: 80px 26px; }
.band-periwinkle { background: var(--periwinkle); }
.band-sage       { background: var(--sage); }
.band-cream      { background: var(--cream); }
.wrap   { max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }
.center { text-align: center; }

/* heading sizes */
.h-hero   { font-size: clamp(38px, 6vw, 70px); }
.h-script-hero { font-size: clamp(46px, 7vw, 82px); }
.h-section{ font-size: clamp(34px, 5vw, 52px); }
.h-script { font-size: clamp(40px, 6vw, 62px); line-height: 0.9; }
.h-sub    { font-family: 'Marcellus', serif; font-size: 22px; color: var(--gold); letter-spacing: .5px; margin-bottom: 4px; }

p { margin: 0 0 16px; }
.lead { font-size: 17px; }
.gold-body { color: var(--gold-text); }
.slate-body { color: var(--slate); }

.eyebrow {
  font-family: 'Marcellus', serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 10px;
}

/* Hebrew accents */
.heb-name {
  font-family: 'Frank Ruhl Libre', serif;
  color: var(--gold);
}

/* ---------- Two-column image+text rows ---------- */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}
.row .col-img { text-align: center; }
.row .col-img img { margin: 0 auto; max-height: 360px; width: auto; }
@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; gap: 24px; }
  .row.reverse .col-img { order: -1; }
  .row .col-img img { max-height: 260px; }
}

/* ---------- Pill button ---------- */
.btn {
  display: inline-block;
  font-family: 'Mulish', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--slate);
  border: 1px solid var(--slate);
  border-radius: 30px;
  padding: 13px 38px;
  margin-top: 18px;
  background: transparent;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--slate); color: var(--cream); }

/* ---------- Divider / ornament ---------- */
.divider-star {
  text-align: center;
  padding: 26px 0 6px;
}
.divider-star img { height: 46px; width: auto; margin: 0 auto; opacity: .9; }

/* ---------- Cards / detail blocks ---------- */
.detail-label {
  font-family: 'Marcellus', serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--gold);
  margin-top: 18px;
}

/* boxed note */
.note-box {
  background: var(--periwinkle);
  border-radius: 18px;
  padding: 40px 46px;
  margin-top: 24px;
  color: var(--gold-text);
}

/* schedule day blocks */
.day-block { margin-top: 34px; }
.day-block h3 {
  font-family: 'Marcellus', serif;
  font-size: 26px;
  color: var(--slate-dark);
  margin-bottom: 8px;
}
.day-block ul { list-style: none; }
.day-block li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(108,129,150,0.12);
  color: var(--gold-text);
}
.day-block li .time {
  font-family: 'Marcellus', serif;
  color: var(--slate);
  margin-right: 8px;
}

/* hero block */
.hero { text-align: center; padding: 70px 26px 60px; position: relative; }
.hero .bh {
  font-family: 'Frank Ruhl Libre', serif;
  color: var(--gold);
  font-size: 18px;
  position: absolute; top: 24px; right: 36px;
}
.hero .monogram { max-height: 220px; width: auto; margin: 0 auto 10px; }
.hero .welcome { max-width: 660px; margin: 22px auto 0; color: var(--slate); }

/* sub-page hero (periwinkle banner with big title) */
.page-hero {
  background: var(--periwinkle);
  text-align: center;
  padding: 90px 26px;
}

/* footer */
.site-footer {
  background: var(--periwinkle);
  text-align: center;
  padding: 46px 26px;
  color: var(--slate);
}
.site-footer .heb { font-family: 'Frank Ruhl Libre', serif; color: var(--gold); font-size: 22px; display:block; margin-bottom: 8px; }
.site-footer .small { font-family: 'Marcellus', serif; font-size: 13px; letter-spacing: 1px; }

/* contact list */
.contact-list { line-height: 2; color: var(--gold-text); }
.contact-list .name { font-family: 'Marcellus', serif; color: var(--slate-dark); font-size: 20px; }
.contact-list a:hover { color: var(--gold); }

/* ============================================================
   MOBILE / PHONE TUNING
   ============================================================ */
@media (max-width: 600px) {
  body { line-height: 1.7; }

  section, .hero { padding-left: 22px; padding-right: 22px; }
  section { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 52px; padding-bottom: 46px; }
  .page-hero { padding: 60px 22px; }

  /* tighter display sizes so headings wrap nicely on a phone */
  .h-hero        { font-size: 33px; }
  .h-script-hero { font-size: 38px; }
  .h-section     { font-size: 30px; }
  .h-script      { font-size: 34px; line-height: 1; }

  .hero .monogram { max-height: 150px; }

  /* ב"ה sits inline at the top instead of floating into the corner */
  .hero .bh { position: static; display: block; text-align: center; margin-bottom: 10px; }

  .hero .welcome { font-size: 16px; }
  .lead { font-size: 16px; }

  .row { gap: 22px; }
  .row .col-img img { max-height: 220px; }

  .note-box { padding: 26px 22px; }

  /* schedule rows stack the time above the description for readability */
  .day-block h3 { font-size: 23px; }
  .day-block li .time { display: block; margin-right: 0; margin-bottom: 2px; font-size: 14px; }

  .nav-links a { font-size: 15px; }

}
