/* =========================
   GLOBAL RESET & VARIABLES
========================= */

:root {
  --color-bg-dark: #0f1b17;
  --color-bg-overlay: rgba(15, 27, 23, 0.55);
--color-text-main: #eae7df;
  --color-text-muted: rgba(245, 245, 245, 0.75);
  --color-accent: #c9b37e;

  --font-body: "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif;
  --font-hero: "Parisienne", cursive;

  --max-width: 1100px;
  --section-padding: 120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg-dark);
  color: var(--color-text-main);
  font-family: var(--font-body);
}

a { color: var(--color-text-main); text-decoration: none; }
a:hover { opacity: 0.9; }

/* =========================
   TOP NAV
========================= */

/* Stack countdown under logo — no other layout changes */
.nav-left {
  display: flex;
  flex-direction: column;
  align-items: center; /* keeps it visually clean */
} 

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;

  display: flex;
  align-items: center;
  gap: 16px;

  padding: 14px 40px;
  background: rgba(15, 27, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.logo {
  display: flex;
flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-text {
  font-family: var(--font-hero);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: left;
  margin-left: 40px; 

  flex-wrap: wrap;
}

.nav button {
  background: none;
  border: none;
  color: var(--color-text-main);
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0.85;
  padding: 6px 2px;
  white-space: nowrap;
}
.nav button:hover { opacity: 1; }
.nav button.active {
  opacity: 1;
  border-bottom: 1px solid rgba(255,255,255,0.7);
}

.lang { display: flex; gap: 8px; }
.lang button {
  background: none;
  border: none;
  color: var(--color-text-main);
  cursor: pointer;
  padding: 6px 6px;
  opacity: 0.75;
}
.lang button.active { opacity: 1; }

/* =========================
   GLOBAL RESET & VARIABLES
========================= */

:root {
  --color-bg-dark: #0f1b17;
  --color-bg-overlay: rgba(15, 27, 23, 0.55);
--color-text-main: #eae7df;
  --color-text-muted: rgba(245, 245, 245, 0.75);
  --color-accent: #c9b37e;

  --font-body: "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif;
  --font-hero: "Parisienne", cursive;

  --max-width: 1100px;
  --section-padding: 120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg-dark);
  color: var(--color-text-main);
  font-family: var(--font-body);
}

a { color: var(--color-text-main); text-decoration: none; }
a:hover { opacity: 0.9; }

/* =========================
   TOP NAV
========================= */

/* Stack countdown under logo — no other layout changes */
.nav-left {
  display: flex;
  flex-direction: column;
  align-items: center; /* keeps it visually clean */
} 

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;

  display: flex;
  align-items: center;
  gap: 16px;

  padding: 14px 40px;
  background: rgba(15, 27, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.logo {
  display: flex;
flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-text {
  font-family: var(--font-hero);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: left;
margin-left: 40px;
  flex-wrap: wrap;
}

.nav button {
  background: none;
  border: none;
  color: var(--color-text-main);
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0.85;
  padding: 6px 2px;
  white-space: nowrap;
}
.nav button:hover { opacity: 1; }
.nav button.active {
  opacity: 1;
  border-bottom: 1px solid rgba(255,255,255,0.7);
}

.lang { display: flex; gap: 8px; }
.lang button {
  background: none;
  border: none;
  color: var(--color-text-main);
  cursor: pointer;
  padding: 6px 6px;
  opacity: 0.75;
}
.lang button.active { opacity: 1; }


/* =========================
   COUNTDOWN (TOP NAV)
========================= */
.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
margin-left: 0;
margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0.75;
  white-space: nowrap;
}

.countdown span {
  font-weight: 500;
}

.cd-sep {
  opacity: 0.5;
}

/* =========================
   SECTIONS
========================= */

.section {
  position: relative;
  min-height: 100vh;
  padding: var(--section-padding) 24px;
  display: flex;
  align-items: center;
}

.hero.section {
  height: 100vh;
  min-height: 100vh;
  padding: 0;
}

#story {
  align-items: flex-start;
}

#story .content {
  margin-top: 200px; /* ← adjust this value */
}

.content {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 3;
}


h1, h2, h3 { margin: 0 0 14px; }
p { margin: 0 0 16px; color: var(--color-text-muted); }

/* =========================
   BACKGROUND SECTIONS
========================= */

.bg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.6);
  transform: scale(1.1);
  z-index: 0;
}

.bg-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.bg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.6);
  transform: scale(1.1);
  z-index: 0;
}

.bg-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* ✅ ADD THIS RIGHT HERE */
.bg-section::before,
.bg-section::after {
  pointer-events: none;
}

/* ✅ ALSO ADD THIS (keeps RSVP above everything) */
#rsvp .content {
  position: relative;
  z-index: 5;
}
#rsvp button[type="submit"] {
  position: relative;
  z-index: 6;
}

#story    { --bg-image: url("assets/images/bg-story.jpg"); }
#events   { --bg-image: url("assets/images/bg-events.jpg"); }
#rsvp     { --bg-image: url("assets/images/bg-rsvp.jpg"); }
#travel   { --bg-image: url("assets/images/bg-travel.jpg"); }
#gallery  { --bg-image: url("assets/images/bg-gallery.jpg"); }
#messages { --bg-image: url("assets/images/bg-messages.jpg"); }
#contact  { --bg-image: url("assets/images/bg-contact.jpg"); }

/* =========================
   HERO
========================= */

.hero {
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 100vh;

  background:
    radial-gradient(circle at center, rgba(15,27,23,0.15) 0%, rgba(15,27,23,0.85) 75%),
    linear-gradient(to bottom, #0f1b17 0%, #0a1411 100%);
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 100vw;
  height: 100vh;

  min-width: 100%;
  min-height: 100%;

  transform: translate(-50%, -50%);
  object-fit: cover;
 cursor: pointer;
z-index: 0;
-webkit-tap-highlight-color: transparent;

}

/* Mobile video optimization */
@media (max-width: 768px) {
  .hero video {
    object-fit: contain;
    object-position: center center;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-bg-overlay);
  z-index: 1;
pointer-events: none;
}

.hero-overlay {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}
/* ADD HERE — fullscreen hint */
.video-hint {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.65;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.video-hint:hover {
  opacity: 1;
}
.hero-title {
  font-family: var(--font-hero);
  font-size: 56px;
  font-weight: 400;
  margin: 0;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

/* Default: hide Arabic title */
.hero-title[data-lang-group="arabic"] {
  display: none;
}
.hero-title:hover { opacity: 1; }

.hero-ar {
  font-family: "Amiri", serif;
  font-size: 52px;
}

/* =========================
   MUTE BUTTON
========================= */
.mute-pill {
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.mute-pill:hover {
  background: rgba(0,0,0,0.45);
  transform: translateY(-1px);
}

.mute-pill .mute-icon { display: none;
}

/* =========================
   SCROLL ARROW (TOP ONLY)
========================= */

.scroll-cue {
  position: fix;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  Z-index:500 ;
  cursor: pointer;
  opacity: 0.7;
}

.scroll-cue span {
  display: block;
  width: 18px;
  height: 18px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* =========================
   BUTTONS
========================= */

.btn-outline,
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--color-text-main);
}

.btn-solid {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
  .hero-title { font-size: 42px; }
  .hero-ar { font-size: 40px; }
  .nav { gap: 12px; }
}

/* =========================
   RSVP – EDITORIAL LUXURY LAYOUT
========================= */

#rsvp .content {
  max-width: 900px;
}

/* Field blocks spacing */
#rsvp fieldset {
  border: none;
  padding: 40px 0;
}

/* Section titles (MAIN GUEST, ATTENDANCE, etc.) */
#rsvp legend {
  font-size: 14px;
  letter-spacing: 0.18em;
  margin-bottom: 28px;
  opacity: 0.9;
}

/* LABEL + INPUT SIDE-BY-SIDE */
#rsvp label {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}

/* Label text */
#rsvp label span {
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

/* INPUT STYLE — LONG, TRANSPARENT */
#rsvp input,
#rsvp select,
#rsvp textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 16px 18px;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
}

/* Focus glow (matches screenshot) */
#rsvp input:focus,
#rsvp select:focus,
#rsvp textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}

/* Remove white dropdown look */
#rsvp select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, white 50%),
    linear-gradient(135deg, white 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

#rsvp select option {
  background: #0f1b17;
  color: #fff;
}

/* RADIO BUTTONS — LEFT ALIGNED */
#rsvp fieldset label:has(input[type="radio"]) {
  grid-template-columns: auto 1fr;
  gap: 14px;
}

#rsvp input[type="radio"] {
  width: auto;
  accent-color: white;
}

/* Note text */
#rsvp .muted {
  margin-top: 12px;
  opacity: 0.75;
}

/* MESSAGE FIELD FULL WIDTH */
#rsvp textarea {
  min-height: 120px;
}

/* MOBILE — STACKED */
@media (max-width: 768px) {
  #rsvp label {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 34px;
  color: white;
  cursor: pointer;
}

/* =========================
   EVENT PAGE – VENUE IMAGE
========================= */
.event-images {
  margin: 80px auto 40px; /* pushed down slightly */
  max-width: 460px;  /* controls overall size */
  text-align: center;
}

.event-images img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* =========================
   MESSAGES BOX
========================= */

.messages-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
}

#messageInput {
  width: 100%;
  min-height: 140px;
  resize: vertical;

  /* ✅ TEXT BEHAVIOR */
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;

  /* ✅ TOP-LEFT START */
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;

  color: #fff;
  font-size: 15px;

  /* IMPORTANT */
  box-sizing: border-box;
}

/* =========================
   RTL — Arabic Message Input
========================= */
html[dir="rtl"] #messageInput {
  direction: rtl;
  text-align: right;
}

/* =========================
   COUNTDOWN (TOP NAV)
========================= */
.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
margin-left: 0;
margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0.75;
  white-space: nowrap;
}

.countdown span {
  font-weight: 500;
}

.cd-sep {
  opacity: 0.5;
}

/* =========================
   SECTIONS
========================= */

.section {
  position: relative;
  min-height: 100vh;
  padding: var(--section-padding) 24px;
  display: flex;
  align-items: center;
}

#story {
  align-items: flex-start;
}

#story .content {
  margin-top: 200px; /* ← adjust this value */
}

.content {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 3;
}

h1, h2, h3 { margin: 0 0 14px; }
p { margin: 0 0 16px; color: var(--color-text-muted); }

/* =========================
   BACKGROUND SECTIONS
========================= */

.bg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.6);
  transform: scale(1.1);
  z-index: 0;
}

.bg-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: min(120%, 90vh);
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

#story    { --bg-image: url("assets/images/bg-story.jpg"); }
#events   { --bg-image: url("assets/images/bg-events.jpg"); }
#rsvp     { --bg-image: url("assets/images/bg-rsvp.jpg"); }
#travel   { --bg-image: url("assets/images/bg-travel.jpg"); }
#gallery  { --bg-image: url("assets/images/bg-gallery.jpg"); }
#messages { --bg-image: url("assets/images/bg-messages.jpg"); }
#contact  { --bg-image: url("assets/images/bg-contact.jpg"); }

/* =========================
   HERO
========================= */

.hero {
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-bg-overlay);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}

.video-hint {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.7;
  color: rgba(255,255,255,0.8);
}

.hero-title {
  font-family: var(--font-hero);
  font-size: 56px;
  font-weight: 400;
  margin: 0;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

/* Default: hide Arabic title */
.hero-title[data-lang-group="arabic"] {
  display: none;
}
.hero-title:hover { opacity: 1; }

.hero-ar {
  font-family: "Amiri", serif;
  font-size: 52px;
}

/* =========================
   MUTE BUTTON
========================= */
.mute-pill {
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.mute-pill:hover {
  background: rgba(0,0,0,0.45);
  transform: translateY(-1px);
}

.mute-pill .mute-icon { display: none;
}

/* =========================
   SCROLL ARROW (TOP ONLY)
========================= */

.scroll-cue {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  cursor: pointer;
  opacity: 0.7;
}

.scroll-cue span {
  display: block;
  width: 18px;
  height: 18px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* =========================
   BUTTONS
========================= */

.btn-outline,
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--color-text-main);
}

.btn-solid {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
  .hero-title { font-size: 42px; }
  .hero-ar { font-size: 40px; }
  .nav { gap: 12px; }
}

/* =========================
   RSVP – EDITORIAL LUXURY LAYOUT
========================= */

#rsvp .content {
  max-width: 900px;
}

/* Field blocks spacing */
#rsvp fieldset {
  border: none;
  padding: 40px 0;
}

/* Section titles (MAIN GUEST, ATTENDANCE, etc.) */
#rsvp legend {
  font-size: 14px;
  letter-spacing: 0.18em;
  margin-bottom: 28px;
  opacity: 0.9;
}

/* LABEL + INPUT SIDE-BY-SIDE */
#rsvp label {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}

/* Label text */
#rsvp label span {
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

/* INPUT STYLE — LONG, TRANSPARENT */
#rsvp input,
#rsvp select,
#rsvp textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 16px 18px;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
}

/* Focus glow (matches screenshot) */
#rsvp input:focus,
#rsvp select:focus,
#rsvp textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}

/* Remove white dropdown look */
#rsvp select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, white 50%),
    linear-gradient(135deg, white 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

#rsvp select option {
  background: #0f1b17;
  color: #fff;
}

/* RADIO BUTTONS — LEFT ALIGNED */
#rsvp fieldset label:has(input[type="radio"]) {
  grid-template-columns: auto 1fr;
  gap: 14px;
}

#rsvp input[type="radio"] {
  width: auto;
  accent-color: white;
}

/* Note text */
#rsvp .muted {
  margin-top: 12px;
  opacity: 0.75;
}

/* MESSAGE FIELD FULL WIDTH */
#rsvp textarea {
  min-height: 120px;
}

/* MOBILE — STACKED */
@media (max-width: 768px) {
  #rsvp label {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 34px;
  color: white;
  cursor: pointer;
}

/* =========================
   EVENT PAGE – VENUE IMAGE
========================= */
.event-images {
  margin: 80px auto 40px; /* pushed down slightly */
  max-width: 460px;  /* controls overall size */
  text-align: center;
}

.event-images img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* =========================
   MESSAGES BOX
========================= */

.messages-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
}

#messageInput {
  width: 100%;
  min-height: 140px;
  resize: vertical;

  /* ✅ TEXT BEHAVIOR */
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;

  /* ✅ TOP-LEFT START */
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;

  color: #fff;
  font-size: 15px;

  /* IMPORTANT */
  box-sizing: border-box;
}

/* =========================
   RTL — Arabic Message Input
========================= */
html[dir="rtl"] #messageInput {
  direction: rtl;
  text-align: right;
}

/* =========================
   HAMBURGER MENU (MOBILE ONLY)
========================= */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 900px) {

  /* Show hamburger */
  .hamburger {
    display: block;
  }

  /* Hide nav by default */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    flex-direction: column;
    align-items: center;
    gap: 18px;

    background: rgba(15, 27, 23, 0.95);
    backdrop-filter: blur(12px);

    padding: 24px 0;
    display: none;
  }

  /* Open state */
  .nav.open {
    display: flex;
  }

  /* Animate hamburger → X */
  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* =========================
   HERO VIDEO MODAL (FULLSCREEN PLAYER)
========================= */

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;

  font-size: 36px;
  color: white;
  background: none;
  border: none;

  cursor: pointer;
  z-index: 100000;
}

/* =========================
   HERO VIDEO MODAL ACTION BUTTONS
========================= */

.video-modal-actions {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  gap: 10px;
  z-index: 100000;
}

.video-modal-btn {
  width: 44px;
  height: 44px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);

  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);

  color: #fff;
  font-size: 22px;
  line-height: 1;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.18s ease;
}

.video-modal-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.08);
}

/* Mobile: move Arabic language under others */
@media (max-width: 900px) {

  .lang {
    flex-wrap: wrap;
    max-width: 90px; /* forces wrap after 3 letters */
  }

  .lang button[data-lang="ar"] {
    width: 100%;
    text-align: center;
  }

}

/* =========================
   EVENTS — NEW PROFESSIONAL LAYOUT
========================= */

.event-block {
  margin-bottom: 26px;
}

.event-title {
  margin: 18px 0 4px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
}

.event-time {
  margin: 0;
  opacity: 0.9;
}

.event-location {
  margin: 4px 0 0;
  opacity: 0.7;
  font-style: italic;
}

.event-location.tbd {
  opacity: 0.5;
}

/* MOBILE FIX — Back button always visible */
@media (max-width: 768px) {

  .btn-outline {
    display: inline-block;
    width: auto;
    max-width: 100%;
    white-space: normal;
  }

  .content {
    padding-bottom: 60px;
  }

}

/* MOBILE FIX — prevent bottom buttons from getting cut off */
@media (max-width: 768px) {
  body:not(.page) .section {
    padding-top: 120px;
  }
}

/* Always-visible Back button (mobile) */
@media (max-width: 768px) {
  .back-fixed {
    position: fixed;
    top: 78px;                 /* adjust if it overlaps your top nav */
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    margin: 0 !important;
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 999px;

    /* helps readability over backgrounds */
    background: rgba(15, 27, 23, 0.85);
    backdrop-filter: blur(10px);
  }

  /* If you switch to Arabic (RTL), keep it centered correctly */
  html[dir="rtl"] .back-fixed {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

/* Smooth show/hide for RSVP sections */
#rsvp fieldset.collapsible {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 280ms ease, opacity 220ms ease, transform 220ms ease;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

#rsvp fieldset.collapsible.is-open {
  max-height: 900px; /* big enough for the content */
  opacity: 1;
  transform: translateY(0);
  padding-top: 40px;   /* match your existing fieldset padding */
  padding-bottom: 40px;
  margin-top: 0;
  margin-bottom: 0;
}

/* Make all Events page h3 match the civil title style */
#events h3 {
  margin: 18px 0 4px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
}

/* =========================
   SUBPAGES (events/travel/gallery pages)
   - long pages should start from top, not vertically centered

.page .section {
  padding-top: calc(140px + env(safe-area-inset-top));
}
========================= */
.page .section {
  min-height: 100vh;     /* was auto */
  align-items: flex-start;
  padding-top: 140px;
  padding-bottom: 80px;
}

/* =========================
   EVENTS PAGE — CONSISTENT SPACING
========================= */

#events .event-section-title {
  margin: 34px 0 12px;     /* space before each section */
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
}

#events .event-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

#events .event-divider {
  margin: 44px 0;
  opacity: 0.25;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.25);
}

#events .event-back {
  margin-top: 40px;
}

/* =========================
   CONFIRMATION MODAL (RSVP + Messages)
========================= */
.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
}

.confirm-modal.active {
  display: flex;
}

.confirm-card {
  width: min(520px, 100%);
  background: rgba(15,27,23,0.92);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 22px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.confirm-title {
  margin: 0 0 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
}

.confirm-msg {
  margin: 0 0 18px;
  color: rgba(245,245,245,0.85);
  line-height: 1.55;
  font-size: 15px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.scroll-cue.section-down{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 250px;   /* <-- change this number */
  z-index: 10;
  pointer-events: auto;
}


@media (max-width: 768px) {
  .page .section {
    padding-top: calc(250px + env(safe-area-inset-top));
  }
}

/* Disable hidden scroll cue on hero */
#hero .scroll-cue.section-down {
  display: none;
}
/* Highlight all readable text (except hero, nav, buttons, inputs) */
.page .content h1,
.page .content h2,
.page .content h3,
.page .content p {
  background: rgba(80, 80, 80, 0.20);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}