/* =========================================================
   Scharff · Mitchel Wedding — stylesheet
   Warm, candlelit manor vibe. Mobile-first.
   Edit COLORS and TYPE below; you rarely need to touch the rest.
   ========================================================= */

/* ---- 1. COLOR & TYPE VARIABLES (tweak these first) ---- */
:root {
  --bg:        #14100d;   /* near-black warm background */
  --bg-soft:   #1e1813;   /* slightly lighter panel */
  --ink:       #f2e9dd;   /* cream body text */
  --ink-soft:  #c9bda9;   /* muted cream for secondary text */
  --gold:      #c2a06a;   /* candlelight gold accent */
  --gold-deep: #9c7c48;   /* darker gold for hovers */
  --line:      rgba(194,160,106,0.28); /* thin gold divider */

  --font-en: 'Cormorant Garamond', Georgia, serif;
  --font-he: 'Frank Ruhl Libre', 'Cormorant Garamond', serif;

  --maxw: 640px;          /* content column width */
}

/* ---- 2. RESET ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-deep); }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Hebrew: any element marked lang="he" flips font + direction automatically */
:lang(he) { font-family: var(--font-he); direction: rtl; }

/* ---- 3. LAYOUT HELPERS ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.center { text-align: center; }
.divider { width: 60px; height: 1px; background: var(--gold); opacity: 0.6; margin: 28px auto; border: 0; }

.eyebrow {
  font-size: 15px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}

/* ---- 4. NAV (commented out in HTML for now — uncomment when you add pages) ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20,16,13,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; justify-content: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.nav a { font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.nav a:hover, .nav a.active { color: var(--gold); }

/* ---- 5. HERO ---- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  background: #0f0b08; /* fallback shown while photos load */
}
/* Slideshow layers */
.hero__slides, .hero__overlay { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay { background: linear-gradient(rgba(15,11,8,0.55), rgba(15,11,8,0.75)); }
.hero__content { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }
.hero__names {
  font-size: clamp(48px, 12vw, 92px);
  font-weight: 500; font-style: italic; line-height: 1.05;
  letter-spacing: 0.01em;
}
.hero__save { margin-top: 22px; }
.hero__meta {
  margin-top: 18px; font-size: clamp(17px, 4vw, 21px);
  letter-spacing: 0.12em; color: var(--ink-soft); text-transform: uppercase;
}
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-size: 24px; color: var(--gold); animation: float 2.4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---- 6. TEXT SECTIONS ---- */
.message p { font-size: clamp(21px, 5vw, 26px); font-style: italic; color: var(--ink); }
.ask h2 { font-size: clamp(30px, 7vw, 40px); font-weight: 500; margin-bottom: 8px; }
.ask p  { color: var(--ink-soft); }
.fineprint { font-size: 15px; color: var(--ink-soft); margin-top: 16px; letter-spacing: 0.02em; }

/* ---- 6b. LANGUAGE TOGGLE (plain text; selected gets a double underline) ---- */
.lang-toggle { display: flex; justify-content: center; gap: 28px; margin-bottom: 32px; }
.lang-btn {
  font-family: var(--font-en);
  font-size: 20px;
  color: var(--ink-soft); background: transparent; border: 0; padding: 4px 2px;
  cursor: pointer; transition: color 0.2s ease;
  text-underline-offset: 7px;
}
.lang-btn:lang(he) { font-family: var(--font-he); }
.lang-btn:hover { color: var(--gold); }
.lang-btn.active {
  color: var(--ink);
  text-decoration: underline double;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
}
.is-hidden { display: none; }

/* ---- 7. TYPEFORM EMBED ---- */
.form-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px;
}
.form-panel__placeholder {
  min-height: 480px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--ink-soft); border: 1px dashed var(--line); border-radius: 4px;
  padding: 32px; font-size: 16px; letter-spacing: 0.04em;
}
.form-panel .tf {
  width: 100%; height: 620px; border: 0; display: block; border-radius: 3px;
}
@media (min-width: 768px) { .form-panel .tf { height: 640px; } }

/* ---- 8. FOOTER ---- */
.footer { border-top: 1px solid var(--line); padding: 48px 0; text-align: center; color: var(--ink-soft); }
.footer .names { font-size: 26px; font-style: italic; color: var(--ink); }
.footer .small { font-size: 15px; letter-spacing: 0.06em; margin-top: 10px; }

/* ---- 9. TABLET ---- */
@media (min-width: 768px) {
  body { font-size: 21px; }
  .section { padding: 96px 0; }
  :root { --maxw: 680px; }
}

/* ---- 9b. DESKTOP / LARGE SCREENS ---- */
@media (min-width: 1200px) {
  .section { padding: 128px 0; }
  .hero__names { font-size: clamp(72px, 8vw, 108px); }
  .hero__meta { font-size: 22px; }
  .message p { font-size: 28px; }
  /* Give the address form a little more room on wide screens
     while keeping the text column narrow and readable. */
  #form .wrap { max-width: 760px; }
}
