/* ===================================================================
   SHYREL & NOAM — LUXURY WEDDING INVITATION
   Shared Stylesheet — Sepia / Dior Typography / Haute Couture
   =================================================================== */

/* ===== CUSTOM FONTS ===== */
@font-face {
  font-family: 'BrittanySignature';
  src: url('fonts/BrittanySignature.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Versailles';
  src: url('fonts/Versailles-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --sepia-dark: #000000;
  --sepia-medium: #000000;
  --sepia-brown: #000000;
  --sepia-warm: #000000;
  --gold: #000000;
  --gold-light: #000000;
  --cream: #F5F0EB;
  --cream-dark: #EDE5DA;
  --beige: #E8DDD0;
  --white-warm: #FAF8F5;
  --shadow-sepia: rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Versailles', 'Cormorant Garamond', 'Georgia', serif;
  color: var(--sepia-dark);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.8;
  min-height: 100vh;
}

/* ===== FULL PAGE SECTION ===== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 60px 32px;
  overflow-x: clip;
  overflow-y: visible;
}

/* ===== BACKGROUND LAYER ===== */
.page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('Newback.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  z-index: 1;
}

.page > * {
  position: relative;
  z-index: 2;
}

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
  position: fixed;
  top: 28px;
  left: 28px;
  z-index: 1000;
  cursor: pointer;
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--sepia-dark);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(11.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-11.5px) rotate(-45deg);
}

/* ===== MENU OVERLAY ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: #F5F0EB;
  transition: opacity 0.3s ease;
}

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

.menu-overlay-bg {
  display: none;
}

.menu-nav {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px;
}

.menu-nav a {
  display: block;
  font-family: 'Versailles', 'Cormorant SC', serif;
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  font-weight: normal;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sepia-dark);
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.12);
  position: relative;
}

.menu-nav a:first-child {
  border-top: 0.5px solid rgba(0,0,0,0.12);
}

.menu-overlay.active .menu-nav a {
  opacity: 1;
}

.menu-nav a:hover {
  opacity: 0.6;
}

.menu-nav a.current {
  opacity: 0.45;
}

/* ===== HOME LINK (top right) ===== */
.home-link {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 100;
  font-family: 'Cormorant SC', serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sepia-warm);
  transition: color 0.4s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-link:hover {
  color: var(--gold);
}

.home-link-logo {
  width: auto;
  height: 84px;
  object-fit: contain;
}

.home-link-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-link-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
}

/* ===== COVER PAGE ===== */
.cover {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 10px;
  padding-bottom: 0;
  position: relative;
}

.cover::before {
  background-image: url('hoopa.jpeg');
  background-size: cover;
  background-position: center;
}

.cover-top {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
}

.cover-brittany {
  font-family: 'BrittanySignature', 'Cormorant', cursive;
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: normal;
  color: var(--sepia-dark);
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cover-bottom {
  position: absolute;
  bottom: 11%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.cover-logo-img {
  width: clamp(340px, 115vw, 1000px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
  margin-top: -70px;
}

.cover-open-btn {
  font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
  font-size: clamp(0.72rem, 2vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sepia-dark);
  transition: color 0.35s ease;
}

.cover-open-btn:hover {
  color: var(--gold);
}

@keyframes justLoveFloat {
  0%, 100% { transform: translateY(0px); opacity: 1; }
  50%       { transform: translateY(-6px); opacity: 0.85; }
}

.cover-just-love {
  font-family: 'BrittanySignature', 'Cormorant', cursive;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: 0.05em;
  text-transform: none;
  animation: justLoveFloat 3s ease-in-out infinite;
  display: inline-block;
}

.cover-date-lieu {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--sepia-brown);
}

.cover-open-btn::after {
  content: '';
  display: block;
  width: 50px;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--sepia-brown), transparent);
  margin: 12px auto 0;
}

.cover-ornament-top {
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.5em;
  margin-bottom: 20px;
  opacity: 1;
}

.cover-pretitle {
  font-family: 'Cormorant', serif;
  font-size: clamp(0.85rem, 2.2vw, 1.1rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sepia-warm);
  margin-bottom: 24px;
}

.cover-title {
  font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--sepia-dark);
  text-shadow: 0 2px 20px rgba(74, 55, 40, 0.08);
  margin-bottom: 8px;
}

.cover-ampersand {
  display: block;
  font-family: 'Cormorant', serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  line-height: 1.6;
  text-shadow: 0 2px 15px rgba(196, 162, 101, 0.15);
}

.cover-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cover-name {
  font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 1.15;
  color: #000000;\n  background: none;\n  -webkit-background-clip: unset;\n  -webkit-text-fill-color: #000000;\n  background-clip: unset;\n  animation: none;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cover-line {
  width: 60px;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 28px auto;
}

.cover-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--sepia-brown);
}

.cover-enter {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1.5s ease 1.5s both;
}

.cover-enter span {
  font-family: 'Cormorant', serif;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sepia-warm);
}

.cover-enter-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 0.8; transform: scaleY(1); }
}

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

/* ===== COVER RSVP BUTTON ===== */
.cover-rsvp-btn {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 40px;
  font-family: 'Cormorant SC', serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sepia-dark);
  border: 0.5px solid var(--gold-light);
  border-radius: 1px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.cover-rsvp-btn:hover {
  background: var(--sepia-dark);
  color: var(--cream);
  border-color: var(--sepia-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(74, 55, 40, 0.12);
}

/* ===== FAMILIES BLOCK ===== */
.families-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  margin-top: 90px;
  margin-bottom: 20px;
}

.families-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.family-name {
  font-family: 'Versailles', serif;
  font-size: clamp(0.65rem, 1.8vw, 0.78rem);
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.6;
  color: #000000;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.family-announce {
  font-family: 'Versailles', serif;
  font-size: clamp(0.58rem, 1.55vw, 0.7rem);
  font-weight: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: #000000;
  margin: 48px 0 4px;
  line-height: 1.8;
}

/* ===== HOUPA BRITTANY TITLE ===== */
.houpa-brittany {
  font-family: 'BrittanySignature', 'Cormorant', cursive;
  font-size: clamp(2.8rem, 11vw, 5rem);
  font-weight: normal;
  color: var(--sepia-dark);
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
}

.houpa-logo-img {
  width: clamp(240px, 72vw, 380px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
  margin: 50px auto 50px;
}

.houpa-phrase {
  font-family: 'Versailles', serif;
  font-size: clamp(0.58rem, 1.55vw, 0.7rem);
  font-weight: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--sepia-dark);
  line-height: 1.8;
  margin: 0;
}

/* ===== CEREMONY DETAILS ===== */
.couple-names {
  font-family: 'Cormorant SC', serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #000000;
  margin: 0 0 8px;
  text-align: center;
}

.thin-rule {
  width: 30px;
  height: 0.5px;
  background: #000000;
  opacity: 0.25;
  margin: 14px auto;
}

.ceremony-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.06em;
  color: #000000;
  margin: 0;
  text-align: center;
}

.ceremony-date {
  font-family: 'Cormorant SC', serif;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #000000;
  margin: 10px 0 4px;
  text-align: center;
}

.ceremony-time {
  font-family: 'Cormorant SC', serif;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #000000;
  margin: 0 0 4px;
  text-align: center;
}

.ceremony-venue {
  font-family: 'Cormorant SC', serif;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #000000;
  margin: 0;
  text-align: center;
}

.ceremony-address {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #000000;
  margin: 6px 0 0;
  line-height: 1.6;
  text-align: center;
}

/* ===== MAP LINK ===== */
.map-link {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Cormorant SC', serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000000 !important;
  border-bottom: 0.5px solid #000000;
  padding-bottom: 2px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.map-link:visited {
  color: #000000 !important;
}

.map-link:hover {
  color: var(--sepia-dark) !important;
  border-bottom-color: var(--sepia-dark);
}

/* ===== CONTENT SECTIONS ===== */
.section-content {
  text-align: center;
  max-width: 750px;
  width: 100%;
  overflow: visible;
}

.section-label {
  font-family: 'Cormorant SC', serif;
  font-size: clamp(0.65rem, 1.8vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-label::before {
  right: calc(100% + 18px);
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-label::after {
  left: calc(100% + 18px);
  background: linear-gradient(270deg, transparent, var(--gold));
}

.section-heading {
  font-family: 'Versailles', 'Cormorant SC', serif;
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  font-weight: normal;
  letter-spacing: 0.2em;
  color: var(--sepia-dark);
  margin-bottom: 10px;
  margin-top: 10px;
  line-height: 1.2;
}

.shabbat-page .section-heading {
  font-size: clamp(1.625rem, 5vw, 2.675rem);
}

.section-subheading {
  font-family: 'Cormorant', serif;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.15em;
  color: var(--sepia-brown);
  margin-bottom: 40px;
}

.section-divider {
  width: 40px;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 20px;
}

.section-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 400;
  line-height: 2;
  color: var(--sepia-medium);
  letter-spacing: 0.04em;
}

.section-text .highlight {
  font-weight: 500;
  color: var(--sepia-dark);
  letter-spacing: 0.08em;
}

.section-text .venue {
  display: block;
  font-family: 'Cormorant SC', serif;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--sepia-dark);
  margin: 12px 0;
}

.section-text .time {
  display: inline-block;
  font-family: 'Cormorant SC', serif;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin: 8px 0;
}

.section-text .address {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.9rem, 2.3vw, 1.05rem);
  color: var(--sepia-warm);
  letter-spacing: 0.06em;
}

.section-text .spacer {
  display: block;
  height: 18px;
}

/* ===== MAIRIE PAGE SPECIFIC ===== */
.mairie-page {
  justify-content: flex-start;
  padding-top: 90px;
  padding-bottom: 60px;
}

/* ===== HOUPA PAGE SPECIFIC ===== */
.houpa-page {
  justify-content: flex-start;
  padding-top: 130px;
  padding-bottom: 60px;
}

.mairie-brittany {
  font-family: 'BrittanySignature', cursive !important;
  font-size: clamp(2.8rem, 11vw, 5rem);
  font-weight: normal;
  color: var(--sepia-dark);
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
  margin: 90px 0 36px;
  padding: 10px 20px;
  overflow: visible;
}

.mairie-logo-img {
  width: clamp(240px, 72vw, 380px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
  margin: 140px auto 6px;
}

.mairie-subtitle {
  font-family: 'Versailles', serif;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia-dark);
  margin-bottom: 0;
}

.mairie-spacer {
  height: 14px;
}

.mairie-date {
  font-family: 'Versailles', serif;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  font-weight: bold;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia-dark);
  margin-bottom: 4px;
}

.mairie-time {
  font-family: 'Versailles', serif;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  font-weight: bold;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia-dark);
  margin-bottom: 0;
}

.mairie-venue {
  display: block;
  font-family: 'Versailles', serif;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia-dark);
  margin-bottom: 6px;
}

.mairie-address {
  display: block;
  font-family: 'Versailles', serif;
  font-style: normal;
  font-size: clamp(0.58rem, 1.55vw, 0.7rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia-dark);
  line-height: 1.9;
  text-align: center;
  margin-top: 20px;
}

/* ===== ORNAMENT DIAMOND ===== */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}

.ornament-line {
  width: 30px;
  height: 0.5px;
  background: var(--gold-light);
  opacity: 1;
}

.ornament-diamond {
  width: 5px;
  height: 5px;
  border: 0.5px solid var(--gold);
  transform: rotate(45deg);
  opacity: 1;
}

/* ===== PREV / NEXT NAVIGATION ===== */
.page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.page-nav a {
  font-family: 'Cormorant SC', serif;
  font-size: clamp(0.7rem, 1.8vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sepia-warm);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 4px;
}

.page-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.page-nav a:hover::after {
  transform: scaleX(1);
}

.page-nav-arrow {
  font-size: 0.6em;
  opacity: 1;
}

.page-nav-separator {
  width: 4px;
  height: 4px;
  border: 0.5px solid var(--gold-light);
  transform: rotate(45deg);
  opacity: 1;
}

/* ===== MIKVÉ SPECIAL LAYOUT ===== */
.mikve-block {
  margin-top: 20px;
  padding-top: 20px;
  position: relative;
}

.mikve-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }
.reveal-delay-5 { transition-delay: 0.75s; }

/* ===== PAGE TRANSITION ===== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              visibility 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.page-transition.hidden {
  opacity: 0;
  visibility: hidden;
}

.page-transition-monogram {
  font-family: 'Cormorant SC', serif;
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--sepia-dark);
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.page-transition-logo {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===== CLOSING TEXT ===== */
.closing-text {
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  letter-spacing: 0.15em;
  color: var(--sepia-warm);
  text-align: center;
  margin-top: 30px;
}

/* ===== SHABBAT PAGE ===== */
.shabbat-page {
  justify-content: flex-start;
  padding-top: 70px;
  padding-bottom: 40px;
}

.shabbat-invite {
  font-family: 'Versailles', serif;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia-dark);
  line-height: 1.9;
  margin-top: 90px;
  margin-bottom: 0;
  text-align: center;
}

.shabbat-logo-img {
  width: clamp(240px, 72vw, 380px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
  margin: 44px auto 44px;
}

.shabbat-names {
  font-family: 'BrittanySignature', cursive !important;
  font-size: clamp(2.8rem, 11vw, 5rem);
  font-weight: normal;
  color: var(--sepia-dark);
  line-height: 1.5;
  margin: 44px 0 44px;
  text-align: center;
  padding: 10px 20px;
  overflow: visible;
}

.shabbat-date {
  font-family: 'Versailles', serif;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  font-weight: bold;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia-dark);
  margin-bottom: 0;
  text-align: center;
  line-height: 1.8;
}

.shabbat-sub {
  font-family: 'Versailles', serif;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia-dark);
  margin-top: 28px;
  margin-bottom: 0;
  line-height: 1.8;
  text-align: center;
}

.shabbat-venue {
  font-family: 'Versailles', serif;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia-dark);
  margin-top: 28px;
  margin-bottom: 0;
  line-height: 1.8;
  text-align: center;
  display: block;
}

.shabbat-city {
  display: block;
  font-family: 'Versailles', serif;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.shabbat-contact {
  font-family: 'Versailles', serif;
  font-size: clamp(0.60rem, 1.6vw, 0.72rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia-dark);
  margin-top: 28px;
  line-height: 1.8;
  text-align: center;
}

.shabbat-whatsapp {
  color: var(--sepia-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(0,0,0,0.3);
  font-family: 'Versailles', serif;
  letter-spacing: 0.22em;
}

/* ===== FOOTER EHBH ===== */
.ehbh-footer {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.ehbh-footer a {
  font-family: 'Versailles', 'Cormorant Garamond', serif;
  font-size: clamp(0.48rem, 1.3vw, 0.6rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.7);
  text-decoration: none;
  pointer-events: all;
  transition: color 0.3s ease;
}

.ehbh-footer a:hover {
  color: rgba(0,0,0,1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .page {
    padding: 50px 28px;
  }

  .cover {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .cover-top {
    padding-top: 3vh;
  }

  .cover-brittany {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }

  .menu-toggle {
    top: 20px;
    left: 20px;
    width: 26px;
    height: 20px;
  }

  .menu-nav {
    padding: 30px 20px;
  }

  .menu-nav a {
    font-size: 1rem;
    padding: 16px 0;
    letter-spacing: 0.28em;
  }

  .home-link {
    top: 22px;
    right: 20px;
    font-size: 0.65rem;
  }

  .section-label::before,
  .section-label::after {
    width: 25px;
  }

  .page-nav {
    gap: 24px;
  }

  .page-nav a {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
  }
}

@media (min-width: 1024px) {
  .page {
    padding: 80px 60px;
  }
}

/* ===================================================================
   RSVP FORM — Luxury Editorial Style
   =================================================================== */

@keyframes rsvpFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rsvp-page {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
  height: auto;
  justify-content: flex-start;
}

.rsvp-content {
  max-width: 480px;
  text-align: center;
}

/* ===== FORM ===== */
.rsvp-form {
  margin-top: 18px;
  text-align: left;
}

/* ===== TEXT FIELDS ===== */
.rsvp-field {
  margin-bottom: 32px;
}

.rsvp-label {
  display: block;
  font-family: 'Versailles', serif;
  font-size: clamp(0.6rem, 1.7vw, 0.72rem);
  font-weight: normal;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.85);
  margin-bottom: 10px;
}

.rsvp-required {
  color: rgba(0,0,0,0.7);
}

.rsvp-input {
  width: 100%;
  padding: 10px 0;
  font-family: 'Versailles', serif;
  font-size: clamp(0.78rem, 2.2vw, 0.92rem);
  font-weight: normal;
  letter-spacing: 0.12em;
  color: var(--sepia-dark);
  background: transparent;
  border: none;
  border-bottom: 0.8px solid rgba(0,0,0,0.18);
  outline: none;
  transition: border-color 0.4s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.rsvp-input:focus {
  border-bottom-color: rgba(0,0,0,0.6);
}

.rsvp-input-number {
  width: 80px;
  text-align: center;
}

.rsvp-guest-names {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rsvp-guest-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rsvp-guest-num {
  font-family: var(--font-versailles);
  font-size: 0.75rem;
  color: var(--sepia-mid);
  letter-spacing: 0.08em;
  min-width: 18px;
  text-align: right;
}

.rsvp-guest-inputs {
  display: flex;
  gap: 8px;
  flex: 1;
}

.rsvp-guest-inputs .rsvp-input-bubble {
  flex: 1;
  min-width: 0;
  font-size: 0.7rem;
  padding: 10px 14px;
}

.rsvp-input-bubble {
  padding: 14px 18px;
  background: #ffffff;
  border: 0.8px solid rgba(0,0,0,0.1);
  border-radius: 18px 18px 18px 4px;
  border-bottom: 0.8px solid rgba(0,0,0,0.1);
}

.rsvp-input-bubble:focus {
  border-color: rgba(0,0,0,0.22);
  background: #ffffff;
  border-bottom-color: rgba(0,0,0,0.22);
}

/* ===== EVENT BLOCKS ===== */
.rsvp-event-block {
  border-top: 0.5px solid rgba(0,0,0,0.1);
  padding: 28px 0 8px;
  margin-bottom: 0;
}

.rsvp-event-question {
  font-family: 'Versailles', serif;
  font-size: clamp(0.6rem, 1.65vw, 0.72rem);
  font-weight: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia-dark);
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: left;
}

/* ===== RADIO BUTTONS ===== */
.rsvp-radio-row {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
}

.rsvp-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.rsvp-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rsvp-radio-btn {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 0.8px solid rgba(0,0,0,0.6);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.3s ease;
}

.rsvp-radio-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--sepia-dark);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.rsvp-radio-label input:checked + .rsvp-radio-btn {
  border-color: var(--sepia-dark);
}

.rsvp-radio-label input:checked + .rsvp-radio-btn::after {
  width: 8px;
  height: 8px;
}

.rsvp-radio-text {
  font-family: 'Versailles', serif;
  font-size: clamp(0.6rem, 1.65vw, 0.72rem);
  font-weight: normal;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sepia-dark);
}

/* ===== NOMBRE DE PERSONNES FIELD ===== */
.rsvp-guests-field {
  margin-bottom: 20px;
  animation: rsvpFadeIn 0.4s ease;
}

/* ===== MESSAGE BUBBLE ===== */
.rsvp-message-block {
  border-top: 0.5px solid rgba(0,0,0,0.1);
  padding: 28px 0 8px;
}

.rsvp-bubble-wrap {
  position: relative;
  margin-top: 12px;
}

.rsvp-bubble {
  width: 100%;
  padding: 16px 18px;
  font-family: 'Versailles', serif;
  font-size: clamp(0.75rem, 2vw, 0.88rem);
  font-weight: normal;
  letter-spacing: 0.08em;
  color: var(--sepia-dark);
  background: #ffffff;
  border: 0.8px solid rgba(0,0,0,0.1);
  border-radius: 18px 18px 18px 4px;
  outline: none;
  resize: none;
  line-height: 1.8;
  transition: border-color 0.4s ease;
  -webkit-appearance: none;
  appearance: none;
}

.rsvp-bubble::placeholder {
  color: rgba(0,0,0,0.5);
  font-style: italic;
}

.rsvp-bubble:focus {
  border-color: rgba(0,0,0,0.22);
  background: #ffffff;
}

/* ===== SUBMIT BUTTON ===== */
.rsvp-submit {
  display: block;
  width: 100%;
  margin-top: 40px;
  padding: 16px 0;
  font-family: 'Versailles', serif;
  font-size: clamp(0.65rem, 1.8vw, 0.78rem);
  font-weight: normal;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--sepia-dark);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.rsvp-submit:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.rsvp-submit:disabled {
  cursor: default;
  opacity: 0.6;
}

/* ===== CONFIRMATION ===== */
.rsvp-confirmation {
  margin-top: 20px;
  text-align: center;
}

.rsvp-confirm-text {
  font-family: 'Versailles', serif;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia-dark);
  line-height: 2;
  margin: 0 0 8px;
}

.rsvp-back-link {
  display: inline-block;
  margin-top: 28px;
  font-family: 'Versailles', serif;
  font-size: clamp(0.6rem, 1.7vw, 0.72rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(0,0,0,0.2);
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

.rsvp-back-link:hover {
  color: var(--sepia-dark);
}

/* ===== RSVP RESPONSIVE ===== */
@media (max-width: 480px) {
  .rsvp-page {
    padding-top: 70px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .rsvp-radio-row {
    gap: 24px;
  }

  .rsvp-submit {
    padding: 15px 0;
  }
}
