/* ============================================================
   TEMPLATE-19 — BAR/BAT MITZVAH
   CelebraPlume · Premium Digital Invitation
   ============================================================ */

/* ----------------------------------------------------------
   DESIGN TOKENS
---------------------------------------------------------- */
:root {
  --navy:        #1a2456;
  --navy-deep:   #121a3e;
  --gold:        #c9a96e;
  --gold-light:  #e8c98a;
  --gold-dark:   #a88a50;
  --ivory:       #fdf9f0;
  --white:       #ffffff;
  --charcoal:    #2c2c2c;
  --silver:      #d4d4d4;
  --deep-purple: #2d1b5e;
  --text-dark:   #1a1a2e;
  --text-muted:  #6b7280;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans:   'Jost', system-ui, sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-gold: 0 8px 40px rgba(201,169,110,0.25);
  --shadow-soft: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-deep: 0 16px 64px rgba(0,0,0,0.35);

  --transition-fast: 0.2s ease;
  --transition-med:  0.4s ease;
  --transition-slow: 0.7s ease;
}

/* ----------------------------------------------------------
   RESET & BASE
---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--ivory);
  overflow-x: hidden;
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hidden { display: none !important; }

/* ----------------------------------------------------------
   INTRO SCREEN
---------------------------------------------------------- */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--deep-purple) 60%, #1a0d3d 100%);
  overflow: hidden;
}

#stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 560px;
  animation: intro-fade-in 1s ease 0.3s both;
}

@keyframes intro-fade-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Star of David circle */
.star-of-david-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 30px rgba(201,169,110,0.5), 0 0 60px rgba(201,169,110,0.2);
  animation: pulse-glow 3s ease-in-out infinite;
}

.star-of-david-svg {
  width: 60px;
  height: 60px;
}

.star-of-david-svg polygon {
  stroke: var(--gold);
  fill: none;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(201,169,110,0.5), 0 0 60px rgba(201,169,110,0.2); }
  50%       { box-shadow: 0 0 50px rgba(201,169,110,0.8), 0 0 90px rgba(201,169,110,0.4); }
}

.intro-hebrew {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.intro-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.intro-subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--silver);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.intro-name {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--gold-light);
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 20px rgba(201,169,110,0.4);
}

.btn-reveal {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  transition: all var(--transition-med);
}

.btn-reveal:hover {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 40px rgba(201,169,110,0.5);
  transform: translateY(-2px);
}

.btn-star {
  font-size: 0.8em;
  opacity: 0.8;
}

.intro-dissolve {
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
  z-index: 3;
}

.intro-dissolve.active {
  opacity: 1;
}

/* ----------------------------------------------------------
   MAIN CONTENT
---------------------------------------------------------- */
#main-content {
  opacity: 0;
  transition: opacity 0.6s ease;
}

#main-content.visible {
  opacity: 1;
}

/* ----------------------------------------------------------
   AUDIO WIDGET
---------------------------------------------------------- */
.audio-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
}

.audio-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(26, 36, 86, 0.85);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.audio-btn:hover {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.audio-btn svg {
  width: 20px;
  height: 20px;
}

/* ----------------------------------------------------------
   NAVIGATION
---------------------------------------------------------- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  padding: 1rem 2rem;
  transition: background var(--transition-med), box-shadow var(--transition-med);
}

.main-nav.scrolled {
  background: rgba(26, 36, 86, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.nav-links a:hover { color: var(--gold-light); }

.nav-cta {
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--gold) !important;
  border-radius: 40px;
  color: var(--gold-light) !important;
  transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.25rem;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--navy-deep);
  z-index: 600;
  transition: right var(--transition-med);
  padding: 5rem 2rem 2rem;
  border-left: 1px solid rgba(201,169,110,0.2);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-link {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  display: block;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201,169,110,0.15);
  transition: color var(--transition-fast);
}

.drawer-link:hover { color: var(--white); }

.drawer-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.4rem;
  padding: 0.25rem;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ----------------------------------------------------------
   HERO
---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-purple) 55%, #1a0d3d 100%);
}

/* Star of David pattern overlay */
.hero-star-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a96e' stroke-width='0.8' opacity='0.08'%3E%3Cpolygon points='40,6 50,24 70,24 54,36 60,54 40,43 20,54 26,36 10,24 30,24'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 80px 80px;
  opacity: 1;
  pointer-events: none;
}

/* Floating stars (CSS animated) */
.floating-star {
  position: absolute;
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  animation: star-float linear infinite;
}

.fs-1 { left: 12%; bottom: -2rem; animation-duration: 9s; animation-delay: 0s;   font-size: 1rem; }
.fs-2 { left: 28%; bottom: -2rem; animation-duration: 11s; animation-delay: 2s;  font-size: 0.7rem; color: var(--gold-light); }
.fs-3 { left: 68%; bottom: -2rem; animation-duration: 8s;  animation-delay: 1s;  font-size: 1.3rem; }
.fs-4 { left: 82%; bottom: -2rem; animation-duration: 13s; animation-delay: 3.5s; font-size: 0.6rem; color: var(--gold-light); }

@keyframes star-float {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  10%  { opacity: 0.6; }
  80%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-110vh) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 2rem 4rem;
  max-width: 780px;
}

.hero-hebrew {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--white);
  line-height: 1.12;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.hero-title-name {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.hero-script {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold-light);
  margin: 0.75rem 0 1.5rem;
  text-shadow: 0 2px 20px rgba(201,169,110,0.3);
}

.hero-intro {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  min-width: 80px;
  backdrop-filter: blur(8px);
}

.cd-value {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.cd-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-top: 0.35rem;
}

.cd-sep {
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0.6;
  padding-top: 0.5rem;
}

/* Hero CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Gold button (shared) */
.btn-gold {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 50px;
  border: none;
  transition: all var(--transition-med);
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 32px rgba(201,169,110,0.5);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scroll-bounce 2.5s ease-in-out infinite;
}

.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ----------------------------------------------------------
   SECTION SHARED STYLES
---------------------------------------------------------- */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-label--light {
  color: var(--gold-light);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.section-title em {
  color: var(--gold);
  font-style: italic;
}

.section-title--light {
  color: var(--white);
}

/* ----------------------------------------------------------
   CEREMONY SECTION
---------------------------------------------------------- */
.ceremony {
  background: var(--ivory);
  padding: 6rem 0;
}

.ceremony-intro {
  max-width: 660px;
  margin: -1rem auto 3.5rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.9;
}

.ceremony-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.ceremony-text {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  line-height: 1.85;
  color: #4a4a5a;
}

.ceremony-text p {
  margin-bottom: 1.2rem;
}

.ceremony-text [lang="he"] {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1.05em;
}

/* Torah card */
.ceremony-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--gold);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.torah-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.ceremony-card-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.ceremony-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.ceremony-card-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
}

.ceremony-card-quote {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 500;
}

.ceremony-card-quote-fr {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.06em;
}

/* Gold divider */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-star {
  color: var(--gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   PROGRAMME SECTION
---------------------------------------------------------- */
.programme {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 50%, #1e1248 100%);
  padding: 6rem 0;
}

.timeline {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-left: 3px solid rgba(201,169,110,0.25);
  padding-left: 2.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 2.4rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201,169,110,0.6);
}

.timeline-item + .timeline-item {
  border-top: 1px solid rgba(201,169,110,0.08);
}

.tl-time {
  display: flex;
  align-items: flex-start;
  padding-top: 0.15rem;
}

.tl-time-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(201,169,110,0.15);
  border: 1px solid rgba(201,169,110,0.35);
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tl-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.tl-desc {
  font-size: 0.88rem;
  color: var(--silver);
  line-height: 1.7;
  font-weight: 300;
}

/* ----------------------------------------------------------
   DETAILS SECTION
---------------------------------------------------------- */
.details {
  background: var(--ivory);
  padding: 6rem 0;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--navy);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.detail-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.detail-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.detail-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.detail-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Kasher note */
.kasher-note {
  background: linear-gradient(135deg, #fef7e0 0%, #fdf9f0 100%);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
}

.kasher-note-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.kasher-star {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.kasher-note p {
  font-size: 0.93rem;
  color: var(--navy);
  line-height: 1.7;
}

.kasher-note strong {
  font-weight: 600;
}

/* ----------------------------------------------------------
   RSVP SECTION
---------------------------------------------------------- */
.rsvp-section {
  background: linear-gradient(155deg, var(--navy) 0%, var(--deep-purple) 60%, #1a0d3d 100%);
  padding: 6rem 0;
}

.rsvp-card {
  background: var(--ivory);
  border-radius: var(--radius-xl);
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(201,169,110,0.2);
}

.rsvp-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-purple) 100%);
  padding: 2.5rem 2.5rem 2rem;
  text-align: center;
}

.rsvp-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.rsvp-subtitle {
  font-size: 0.88rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

.rsvp-form {
  padding: 2.5rem;
}

/* Form elements */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.required {
  color: var(--gold-dark);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid rgba(26,36,86,0.2);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #bbb;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231a2456' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Radio cards */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.radio-card {
  cursor: pointer;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid rgba(26,36,86,0.2);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: all var(--transition-fast);
}

.radio-inner:hover {
  border-color: var(--gold);
  background: rgba(201,169,110,0.05);
}

.radio-card input[type="radio"]:checked + .radio-inner {
  border-color: var(--gold);
  background: rgba(201,169,110,0.1);
  color: var(--navy);
  box-shadow: 0 0 0 2px rgba(201,169,110,0.2);
}

.radio-icon {
  font-size: 1.1em;
}

/* Guest rows */
.guest-rows {
  padding: 1.5rem;
  background: rgba(26,36,86,0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(26,36,86,0.08);
  margin-bottom: 1.5rem;
  animation: slide-down 0.35s ease;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Number inputs */
.number-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid rgba(26,36,86,0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

.num-btn {
  width: 42px;
  height: 44px;
  background: rgba(26,36,86,0.06);
  border: none;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.num-btn:hover { background: rgba(201,169,110,0.15); color: var(--gold-dark); }

.num-input {
  flex: 1;
  border: none;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0;
  min-width: 0;
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
}

.num-input::-webkit-inner-spin-button,
.num-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Captcha */
.captcha-group { }

.captcha-input {
  max-width: 120px;
}

/* Submit */
.form-submit {
  text-align: center;
  margin-top: 0.5rem;
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.1rem;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* RSVP messages */
.rsvp-success {
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-purple) 100%);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  text-align: center;
  margin: 0 2.5rem 2rem;
}

.success-star {
  font-size: 3rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

.success-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-light);
  line-height: 1.6;
}

.rsvp-error {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(220,53,69,0.08);
  border: 1px solid rgba(220,53,69,0.25);
  color: #c0392b;
  font-size: 0.9rem;
  text-align: center;
}

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  padding: 3.5rem 2rem;
  text-align: center;
}

.footer-star {
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-sub {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--silver);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  opacity: 0.5;
}

.footer-brand {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}

.footer-brand a {
  color: var(--gold);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-brand a:hover { opacity: 1; }

/* ----------------------------------------------------------
   REVEAL ANIMATIONS
---------------------------------------------------------- */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings */
.reveal-item:nth-child(2) { transition-delay: 0.1s; }
.reveal-item:nth-child(3) { transition-delay: 0.2s; }
.reveal-item:nth-child(4) { transition-delay: 0.3s; }
.reveal-item:nth-child(5) { transition-delay: 0.4s; }

/* ----------------------------------------------------------
   RESPONSIVE — 768px
---------------------------------------------------------- */
@media (max-width: 768px) {

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-content {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-intro br { display: none; }

  .countdown { gap: 0.5rem; }
  .cd-unit { padding: 0.8rem 0.9rem; min-width: 64px; }
  .cd-value { font-size: 1.8rem; }

  .ceremony-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-left: 2rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .rsvp-form { padding: 1.5rem; }
  .rsvp-header { padding: 2rem 1.5rem 1.5rem; }
  .rsvp-success { margin: 0 1.5rem 1.5rem; }

  .kasher-note-inner { flex-direction: column; gap: 0.75rem; }

  .ceremony { padding: 4rem 0; }
  .programme { padding: 4rem 0; }
  .details  { padding: 4rem 0; }
  .rsvp-section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .countdown { gap: 0.35rem; }
  .cd-unit { min-width: 56px; padding: 0.7rem 0.7rem; }
  .cd-value { font-size: 1.5rem; }
  .cd-label { font-size: 0.55rem; }

  .btn-gold { padding: 0.9rem 2rem; font-size: 0.95rem; }

  .timeline-item {
    padding-left: 1.5rem;
  }
}
