/* ── FONTS ── */
@font-face {
  font-family: 'Aboreto';
  src: url('../assets/aboreto_font/Aboreto-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ebebeb;
}

/* ── MOBILE WRAPPER ── */
.page-wrap {
  width: 100%;
  max-width: 430px;
  position: relative;
  background: #fff;
}

/* ── NAV ── */
.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 22px;
}

.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-btn {
  background: none;
  border: none;
  color: #787878;
  font-family: 'Assistant', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  padding: 4px 10px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.lang-btn.active { opacity: 1; font-weight: 700; }
.lang-btn:hover  { opacity: 0.85; }

.lang-sep {
  width: 1px;
  height: 11px;
  background: #78787855;
}

/* ── LANGUAGE SECTIONS ── */
.lang-fr-section { display: block; }
.lang-he-section { display: none; }
body.lang-he .lang-fr-section { display: none; }
body.lang-he .lang-he-section { display: block; }

/* ── INVITE IMAGE — full width, no crop ── */
.invite-wrap {
  overflow: hidden;
  display: flex;
  justify-content: center;
  position: relative;
}

.invite-waze-btn {
  position: absolute;
  top: 72%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  border: 1px solid #636363;
  background: transparent;
  color: #636363;
  font-family: 'Aboreto', serif;
  font-size: 9px;
  letter-spacing: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.invite-waze-btn:hover { background: rgba(255,255,255,0.3); }

.lang-he-section .invite-waze-btn { top: 77.5%; }

.invite-img {
  width: 132%;
  flex-shrink: 0;
  height: auto;
  display: block;
  opacity: 0.7;
}

/* ── FORM SECTION — asset 2 as bg, form overlaid ── */
.form-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.form-bg-img {
  width: 165%;
  flex-shrink: 0;
  height: auto;
  display: block;
  opacity: 0.7;
}

.form-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 53px;
}

.form-section-he .form-content {
  direction: rtl;
}

/* ── RSVP ── */
.section-title {
  text-align: center;
  font-family: 'Aboreto', serif;
  font-size: 33px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #777777;
  margin-bottom: 23px;
}

.form-section-he .section-title {
  font-family: 'Miriam Libre', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: #777777;
}

.form-field {
  margin-bottom: 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: calc(65% + 50px);
  margin-left: auto;
  margin-right: auto;
}

.field-label {
  font-family: 'Aboreto', serif;
  font-size: 0.83rem;
  font-weight: 700;
  color: #777777;
  letter-spacing: 0.5px;
  margin-bottom: 9px;
  text-align: left;
  white-space: nowrap;
}

.form-field input[type="text"],
.form-field input[type="number"] {
  width: 100%;
  border: none;
  border-bottom: 3px solid #d4d4d4;
  background: rgba(255,255,255,0.5);
  padding: 9px 23px;
  font-family: 'Aboreto', serif;
  font-size: 1rem;
  color: #777777;
  outline: none;
  letter-spacing: 1px;
}

.form-field input::placeholder { color: transparent; }
.form-field input:disabled { opacity: 0.4; cursor: not-allowed; }

.form-section-he .form-field {
  align-items: flex-end;
}

.form-section-he .field-label {
  font-family: 'Miriam Libre', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #777777;
  letter-spacing: 0;
  text-align: right;
  width: 100%;
}

.form-section-he .form-field input {
  font-family: 'Miriam Libre', sans-serif;
  font-size: 18px;
  text-align: right;
  color: #777777;
}

.date-badge {
  text-align: left;
  text-transform: uppercase;
  font-family: 'Aboreto', serif;
  font-size: 0.83rem;
  font-weight: 700;
  color: #777777;
  margin-bottom: 17px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  width: calc(65% + 50px);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.form-section-he .date-badge {
  font-family: 'Miriam Libre', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #777777;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
}

.choice-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  width: calc(65% + 50px);
}

.checkbox-row input[type="radio"] { display: none; }

.checkbox-box {
  width: 26px;
  height: 26px;
  border: 0.7px solid #777777;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.checkbox-row input:checked ~ .checkbox-box {
  background: #777777;
}

.checkbox-row input:checked ~ .checkbox-box::after {
  content: '';
  width: 7px;
  height: 11px;
  border: 1.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

.checkbox-label {
  font-family: 'Aboreto', serif;
  font-size: 0.66rem;
  color: #777777;
  letter-spacing: 0;
  white-space: nowrap;
}

.form-section-he .checkbox-label {
  font-family: 'Miriam Libre', sans-serif;
  font-size: 18px;
  color: #777777;
  letter-spacing: 0;
  white-space: nowrap;
}

.submit-btn {
  width: calc(65% + 50px);
  display: block;
  margin: 0 auto;
  background: #777777;
  color: #fff;
  border: none;
  padding: 20px;
  font-family: 'Aboreto', serif;
  font-size: 0.83rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 10px;
  transition: opacity 0.2s;
}

.submit-btn:hover { opacity: 0.8; }

.form-section-he .submit-btn {
  font-family: 'Miriam Libre', sans-serif;
  font-size: 18px;
  letter-spacing: 0;
}

/* ── FOOTER ── */
footer {
  padding: 20px 24px;
  text-align: center;
}

footer p {
  font-family: 'Assistant', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: #9a9a9a;
  text-transform: uppercase;
}

footer a { color: #9a9a9a; text-decoration: none; }
footer a:hover { color: #787878; }

/* ── WELCOME OVERLAY ── */
#welcome-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100vh;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: #ebebeb;
  transition: opacity 0.6s ease;
}

.welcome-bg {
  position: absolute;
  inset: 0;
}

.welcome-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0.7;
}

.welcome-buttons {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 0 48px;
}

.welcome-btn {
  flex: 1;
  max-width: 160px;
  padding: 16px 10px;
  font-family: 'Aboreto', serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid #959494;
  background: rgba(255,255,255,0.7);
  color: #636363;
  transition: background 0.2s, color 0.2s;
}

.welcome-btn:hover { background: #959494; color: #fff; }
.welcome-btn + .welcome-btn { border-left: none; }

/* ── MUTE BUTTON ── */
#mute-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 500;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(120,120,120,0.3);
  background: rgba(235,235,235,0.7);
  color: #9a9a9a;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: opacity 0.2s;
}

#mute-btn:hover { opacity: 0.7; }

/* ── RESPONSIVE DESKTOP ── */
@media (min-width: 500px) {
  .page-wrap { box-shadow: 0 0 80px rgba(0,0,0,0.15); }
}
