/* =========================================================
   REN & REMY’S — FULL SITE STYLES (2025-10 Revision)
   ---------------------------------------------------------
   Goals:
   • Reliable backdrop blur header across all pages
   • Predictable z-index and stacking order
   • Clean responsive consolidation
   ========================================================= */

/* ========== 0) BASE / RESET ========== */
:root {
  --pink: #E899F2;
  --cyan: #9BE2F2;
  --ink: #0d0d0d;
  --ink-2: #1a1a1a;
  --ink-70: rgba(0, 0, 0, 0.70);
  --ink-50: rgba(0, 0, 0, 0.50);
  --white: #f2f2f2;
  /* Header height variable used by per-page styles */
  --site-header-height: 64px;
}

html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: #0d0d0d;
  background: none;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2; /* content above background & overlay */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Headings + rhythm */
h1, h2, h3, h4, h5, h6 {
  margin-top: .75em;
  margin-bottom: .6em;
  line-height: 1.35;
  text-align: center;
}
h1 { font-family: 'Sigmar', cursive; font-size: 2.5rem; color: var(--pink); }
h2 { font-size: 1.8rem; color: var(--cyan); }
h3 { font-size: 1.4rem; color: #fff; }
h4 { font-size: 1.1rem; color: #fff; }
h1 + h2, h2 + h3, h3 + h4, h1 + .underline, h2 + .underline, h3 + .underline { margin-bottom: .3em; }
h1 + p, h2 + p, h3 + p { margin-top: 0; }

p {
  max-width: 60%;
  margin: .6em auto 1.2em;
  line-height: 1.6;
  text-align: center;
}

/* Underlines */
.underline, .underline-tight {
  width: 80vw;
  max-width: 900px;
  height: 1px;
  background: var(--white);
}
.underline { margin: 22px auto 6px; }
h2.tight { margin: 0; }

/* ========== 1) PAGE BACKGROUNDS & OVERLAYS ========== */
.blur-0  { filter: none !important; -webkit-filter: none !important; }
.blur-2  { filter: blur(2px) !important; -webkit-filter: blur(2px) !important; }
.blur-5  { filter: blur(5px) !important; -webkit-filter: blur(5px) !important; }
.blur-10 { filter: blur(10px) !important; -webkit-filter: blur(10px) !important; }
.blur-15 { filter: blur(15px) !important; -webkit-filter: blur(15px) !important; }
.overlay-bg.overlay-25 {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  z-index: 2;
}

/* Overlay tint sits above bg, below content */
body.overlay-0::after,
body.overlay-10::after,
body.overlay-25::after,
body.overlay-50::after,
body.overlay-80::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
body.overlay-0::after  { background: rgba(0,0,0,0.00); }
body.overlay-10::after { background: rgba(0,0,0,0.10); }
body.overlay-25::after { background: rgba(0,0,0,0.25); }
body.overlay-50::after { background: rgba(0,0,0,0.50); }
body.overlay-80::after { background: rgba(0,0,0,0.80); }

/* ========== 2) HEADER / LOGO / NAV ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  padding: 15px 0 0px 0;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header.scrolled::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 5px;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  z-index: 1;
}
/* Logo wrapper */
.logo-banner-wrapper {
  position: relative;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.logo-banner-wrapper .logo-link { position: relative; z-index: 1; display: inline-block; }
.site-header .logo-link, .site-header .logo { position: relative; z-index: 1; }

/* Unified logo scaling */
.logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 95vw;
  max-height: min(12vh);
  margin: 0 auto;
  object-fit: contain;
  transition: max-height .3s ease;
}

/* header icons (small default, overruled by per-site styles if needed) */
/* Header icons: compact square buttons to match main-nav submenu aesthetics */
.header-icons { position: absolute; top: 12px; right: 18px; display:flex; gap:8px; z-index: 15; }
.header-icons .icon-link { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; background: transparent; border-radius:4px; padding:6px; position:relative; }
.header-icons svg { width:18px; height:18px; fill: #fff; display:block; }

/* Cart badge */
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, #E899F2, #9BE2F2);
  color: #0d0d0d;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
  display: none;
}

.cart-icon-link:hover .cart-badge {
  transform: scale(1.1);
}

/* Cart badge pulse animation when item added */
@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.cart-badge.badge-pulse {
  animation: badgePulse 0.6s ease-in-out;
}

/* Account dropdown — canonical single definition (main-nav is master; account-dropdown reuses submenu rules)
   Kept minimal here; desktop/mobile behaviors are defined in the media queries below so the dropdown
   inherits the same spacing/animation as .main-nav .submenu. */
.account-menu { position: relative; display: inline-block; }
.account-menu .account-toggle { background: transparent; border: none; padding: 6px; cursor: pointer; }
.account-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; pointer-events: auto; white-space: nowrap; }
.account-dropdown a { color: #fff; text-decoration: none; display: block; padding: 6px 8px; border-radius: 6px; }
.account-dropdown a:focus { outline: 2px solid rgba(155,226,242,0.25); outline-offset: 2px; }
.account-dropdown a:hover, .account-dropdown a:focus, .account-dropdown a.active { background: #f2f2f2; color: #0d0d0d; transform: translateY(-1px); }
.account-dropdown::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; pointer-events: auto; }

/* Desktop nav */
.main-nav .nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 5px 0;
  padding: 0;
}

.main-nav .nav-item a,
.main-nav a {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.1rem;
  padding: 2px 12px;          /* consistent padding */
  line-height: 1.4;           /* keeps vertical rhythm */
  transition: color 0.4s ease, background 0.4s ease; /* no size change */
}

/* Hover + Active States */
.main-nav a:hover,
.main-nav a.active {
  color: #6D33A6;
  background: var(--white);
}

/* Desktop dropdowns */
@media (min-width: 993px) {
  .main-nav .nav-list { margin-top: 13px !important; }
  .main-nav .nav-item { position: relative; }
  .main-nav .submenu {
    position: absolute;
    /* Sit slightly below the bottom edge of the parent element to avoid overlap */
    top: calc(100% + 1px);
    left: 0;
    z-index: 40; /* ensure submenu renders above nearby content */
    flex-direction: column;
    background: #0d0d0d;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .2s ease, opacity .2s ease;
  }
  .main-nav .nav-item:hover > .submenu { max-height: 300px; opacity: 1; }
  .main-nav .submenu a {
    display: block;
    padding: 4px 20px;
    font-size: .9rem;
    text-align: left; /* desktop: left-align submenu text */
    color: var(--white);
    text-transform: uppercase;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
  }
  .main-nav .submenu a:hover,
  .main-nav .submenu a.active { background: var(--white); color: #6D33A6; }
  .caret { display: none !important; }
}

/* Ensure any submenu used outside of .main-nav (e.g., account/search) inherits desktop submenu behavior */
@media (min-width: 993px) {
  .account-dropdown.submenu {
    position: absolute;
    top: calc(100% - 1px); /* nudge slightly so the submenu edge is 1px lower relative to the parent icon */
    right: 0; /* align to right for header dropdowns */
    left: auto;
    flex-direction: column;
    background: #0d0d0d;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .2s ease, opacity .2s ease, transform 180ms ease;
  pointer-events: none; /* avoid hidden overlays intercepting hover */
    border-radius: 0; /* square corners to match main-nav */
  }
  .account-menu:hover > .account-dropdown.submenu,
  .account-menu:focus-within > .account-dropdown.submenu { max-height: 300px; opacity: 1; display: block; pointer-events: auto; }
  /* Use exact same anchor rules as .main-nav .submenu */
  .account-dropdown.submenu .nav-item { padding: 0; margin: 0; }
  .account-dropdown.submenu a {
    display: block;
    padding: 4px 20px;
    font-size: .9rem;
    text-align: left; /* desktop: left-align submenu text */
    color: var(--white);
    text-transform: uppercase;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0; /* ensure rectangular highlight */
  }
  .account-dropdown.submenu a:hover, .account-dropdown.submenu a.active { background: var(--white); color: #6D33A6; }

  /* When dropdown contains a direct form (search), ensure form fills the dropdown width */
  .account-dropdown.submenu form { padding: 8px 12px; box-sizing: border-box; }
  .account-dropdown.submenu input[type="search"] { width: calc(100% - 70px); margin-right: 8px; display: inline-block; }
  .account-dropdown.submenu button[type="submit"] { display: inline-block; }

  /* Ensure JS-driven open class shows the dropdown (matches .main-nav .submenu.open behaviour) */
  .account-dropdown.submenu.open,
  .account-menu .account-dropdown.submenu.open,
  .header-icons .account-dropdown.submenu.open {
    max-height: 300px !important;
    opacity: 1 !important;
    display: block !important;
  }

  /* Desktop-specific: search dropdown should be a clean light box that opens to the left
     of the search icon (right edge aligned with icon). Keep mobile behavior unchanged. */
  .search-menu.account-menu .account-dropdown.submenu {
    right: 0;                /* align right edge to the icon's right edge */
    left: auto;
    top: 0;                  /* overlay the icon again (original behavior) */
    transform: translate(-5px, 0); /* small left nudge only */
  /* reduce min/ideal/max by another 80px */
  width: clamp(120px, calc(30vw - 160px), 260px); /* responsive width */
    background: #ffffff;     /* solid white minimal box */
    color: #0d0d0d;
    border-radius: 0;        /* perfectly rectangular */
  padding: 0;              /* no extra space to the left/right */
    box-shadow: none;        /* minimalistic: no shadow */
    z-index: 12000;         /* ensure it sits above header icons */
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
    pointer-events: none;
  }
  .search-menu.account-menu .account-dropdown.submenu form {
    display: flex;
    gap: 0;               /* no gap between input and button unless required */
    align-items: center;
    margin: 0;
    padding: 0;
  }
  .search-menu.account-menu .account-dropdown.submenu input[type="search"] {
    width: 100%;
    background: rgba(242,242,242,0.5); /* 50% opaque #f2f2f2 per site palette */
    border: none !important;
    padding: 0 !important;   /* remove padding to avoid zoom */
    border-radius: 0 !important;    /* perfectly rectangular */
    color: var(--ink) !important; /* #0d0d0d */
    margin: 0 !important;
    box-shadow: none !important;
    font-size: 16px !important; /* prevent iOS zoom-on-focus */
    box-sizing: border-box !important;
    line-height: 1.2 !important; /* slightly more compact */
  }
  /* icon-only submit button next to input */
  .search-menu.account-menu .account-dropdown.submenu .icon-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 6px;
    margin: 0;
    cursor: pointer;
  }
  .search-menu.account-menu .account-dropdown.submenu .icon-submit svg {
    display: block;
    width: 18px; height: 18px; stroke: #0d0d0d; fill: none;
  }
  /* Ensure icon-submit button has no decorative background or :before bars */
  .search-menu.account-menu .account-dropdown.submenu .icon-submit,
  .search-menu.account-menu .account-dropdown.submenu .icon-submit svg {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
  }
  /* desktop submit icon is styled separately; remove purple boxed buttons */
  .search-menu.account-menu .account-dropdown.submenu button[type="submit"] {
    background: transparent;
    color: #0d0d0d;
    border: none;
    padding: 6px;
    border-radius: 0;
    cursor: pointer;
  }

  /* Previously we hid the visible search icon when the search overlay was open.
    That breaks touch on some iOS Safari versions because elements with opacity:0
    can become non-interactive. Keep it visually hidden but still tappable. */
  .search-toggle[aria-expanded="true"] { opacity: 0.02 !important; pointer-events: auto !important; }

  /* When dropdown is opened via JS (.open) make it animate into view */
  .search-menu.account-menu .account-dropdown.submenu.open {
    opacity: 1 !important;
    transform: translate(4px, 0) !important; /* small right nudge to align right edge with icon */
    display: block !important;
  }

/* =========================================================
   Cookie consent banner styles (copied from auth.css to ensure
   the banner uses the beautiful login styles across the main site)
   ========================================================= */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.75));
  color: #fff;
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  z-index: 120000;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  pointer-events: auto;
}
.cookie-consent .consent-text { flex: 1 1 480px; font-size: 0.95rem; line-height: 1.3; }
.cookie-consent .consent-actions { display:flex; gap:8px; align-items:center; }
.cookie-consent .consent-actions .auth-btn { padding: 10px 12px; }
.cookie-consent .consent-actions .btn-decline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.12); padding: 10px 12px; border-radius:8px; cursor:pointer; }
.cookie-consent .consent-actions .consent-accept { padding: 10px 12px; }
.cookie-consent .consent-actions .consent-decline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.12); padding: 10px 12px; border-radius:8px; cursor:pointer; }
.cookie-consent.pl-consent-fade { opacity: 0; transition: opacity .28s ease; pointer-events: none; }

/* Reuse the auth button look so cookie banner buttons match the login page */
.auth-btn, .btn-primary {
  width: auto;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
  color: var(--ink);
  transition: transform 80ms ease, box-shadow 120ms ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}
.auth-btn:hover, .btn-primary:hover {
  box-shadow: 0 0 16px var(--pink);
}
.auth-btn:active, .btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

/* Generic actions wrapper used by auth and cookie banner */
.auth-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

/* Make cookie banner compact: text clamps to 2 lines, buttons to the right */
.cookie-consent {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}
.cookie-consent .consent-text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
  overflow: hidden;
  /* simpler, compatible clamp: limit height to ~2 lines */
  display: block;
  white-space: normal;
  max-height: calc(1.3em * 2);
}
.cookie-consent .consent-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: 12px;
}

@media (max-width: 520px) {
  .cookie-consent { flex-wrap: wrap; padding: 10px; }
  .cookie-consent .consent-text { -webkit-line-clamp: 3; line-clamp: 3; max-height: calc(1.3em * 3); }
  .cookie-consent .consent-actions { width: 100%; justify-content: flex-end; margin-top: 8px; }
}

  /* remove any decorative top/left bars for the search overlay */
  .search-menu.account-menu .account-dropdown.submenu::before { display: none !important; background: none !important; }
  .search-menu.account-menu .account-dropdown.submenu,
  .search-menu.account-menu .account-dropdown.submenu * {
    border-left: none !important;
    background: none !important;
    box-shadow: none !important;
    background-image: none !important;
  }
  /* Re-apply the desired input bg in case the generic background:none cleared it */
  .search-menu.account-menu .account-dropdown.submenu input[type="search"] { background: rgba(242,242,242,0.5) !important; }
  /* Ensure submenu anchors still display their intended text color when we removed backgrounds above */
  .search-menu.account-menu .account-dropdown.submenu a { color: #0d0d0d !important; }

  /* Also open the search overlay on hover/focus of the search menu (desktop UX) */
  .search-menu.account-menu:hover > .account-dropdown.submenu,
  .search-menu.account-menu:focus-within > .account-dropdown.submenu {
    opacity: 1;
    transform: translateY(0);
    display: block;
    pointer-events: auto;
  }

  /* Mobile: position the search dropdown to the left of the search icon so input
     appears just left of the icon (tap-to-open behavior uses the same dropdown) */
  @media (max-width: 992px) {
    /* Mobile: make the search dropdown stretch full viewport width and sit below the header.
       Keep it a simple translucent bar (50% opaque of #f2f2f2) and avoid borders/padding
       to prevent the browser zoom-on-focus behavior (font-size is set to 16px). */
    .search-menu.account-menu .account-dropdown.submenu {
      position: fixed !important;
      left: 0 !important;
      right: 0 !important;
      top: calc(var(--header-height, 56px)) !important;
      width: 100vw !important;
      margin: 0 !important;
      background: rgba(242,242,242,0.5) !important; /* f2f2f2 @ 50% */
      color: #0d0d0d !important;
      border-radius: 0 !important;
      padding: 0 !important; /* user requested no padding */
      box-shadow: none !important;
      z-index: 7000 !important;
      display: none; /* toggled via .open */
    }
    .search-menu.account-menu .account-dropdown.submenu.open { display: block !important; }

    /* The form inside is a simple full-width input area */
    .search-menu.account-menu .account-dropdown.submenu form { margin: 0; display: block; }
    .search-menu.account-menu .account-dropdown.submenu input[type="search"] {
      width: 100% !important;
      background: transparent !important;
      border: none !important;
      padding: 0 !important; /* user requested no padding */
      margin: 0 !important;
      box-shadow: none !important;
      font-size: 16px !important; /* prevents iOS zoom-on-focus */
      line-height: 1.2 !important;
      color: #0d0d0d !important;
    }
  }

  /* Ensure hover/focus will show dropdown even if markup contains the boolean [hidden] attribute
     (CSS can override the display for visual hover-accessibility without requiring JS to remove [hidden]) */
  .account-menu:hover > .account-dropdown.submenu[hidden],
  .account-menu:focus-within > .account-dropdown.submenu[hidden],
  .search-menu.account-menu:hover > .account-dropdown.submenu[hidden],
  .search-menu.account-menu:focus-within > .account-dropdown.submenu[hidden] {
    display: block !important;
    max-height: 300px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  /* Remove visual button chrome but keep an accessible focus-visible outline */
  .header-icons .icon-link,
  .header-icons .icon-link:hover {
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .header-icons .icon-link:focus { outline: none; }
  .header-icons .icon-link:focus-visible {
    outline: 2px solid rgba(155,226,242,0.35);
    outline-offset: 2px;
    border-radius: 6px;
  }
  /* Ensure header icon hover doesn't get a purple fill */
  .header-icons .icon-link:hover, .header-icons .icon-link:active { background: transparent !important; }

  /* Ensure header icons are perfectly aligned horizontally */
  .header-icons { display: flex; align-items: center; gap: 8px; }
  .header-icons .account-menu { display: inline-flex; align-items: center; }
  .header-icons .icon-link { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
}

/* Desktop: hide hamburger-injected mobile-only items so they're not duplicated in main-nav */
@media (min-width: 993px) {
  .main-nav .mobile-only { display: none !important; }
}

/* Mobile: show mobile-only nav items (they live inside the hamburger) */
@media (max-width: 992px) {
  /* Ensure header sits above any page-specific overlays (hero/scroll-zone) */
  .site-header { z-index: 10050 !important; }

  /* If JS sets aria-expanded to true (hides the visible icon), keep the toggle clickable
     so document-level handlers can detect taps and allow closing/opening on mobile. */
  .header-icons .search-toggle[aria-expanded="true"] { pointer-events: auto !important; }
  /* iOS Safari: ensure the search toggle remains tappable and visible in all states */
  .header-icons .search-toggle {
    -webkit-touch-callout: none; /* prevent long-press menu on iOS */
    touch-action: manipulation; /* ensure taps are handled as taps */
    -webkit-tap-highlight-color: rgba(0,0,0,0);
  }
  .main-nav .mobile-only { display: block; }
}

/* Mobile hamburger + menu */
.menu-toggle {
  display: none;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3000;
}

@media (max-width: 992px) {
  /* Mobile hamburger sizing & offsets (used to position the mobile menu) */
  :root {
    --mobile-hamburger-top: 12px; /* distance from safe-area top to top edge of hamburger */
    --mobile-hamburger-height: 40px; /* hamburger height */
    --mobile-hamburger-right: 12px; /* right offset used by hamburger */
  }

  .menu-toggle { display: flex; align-items: center; justify-content: center; width: var(--mobile-hamburger-height); height: var(--mobile-hamburger-height); padding: 0; font-size: 18px; line-height: 1; top: var(--mobile-hamburger-top); right: var(--mobile-hamburger-right); }
  .main-nav {
    display: none;
    position: absolute;
    /* position the menu so its top edge sits flush with the hamburger's bottom edge
       and the right edges are aligned. Use safe-area inset for devices with notches. */
    top: calc(env(safe-area-inset-top, 0px) + var(--mobile-hamburger-top) + var(--mobile-hamburger-height));
    right: var(--mobile-hamburger-right);
    left: auto;
    background: var(--ink);
    border-radius: 8px;
    padding: 6px 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    z-index: 4000;
    width: auto;
    min-width: 140px;
    max-width: calc(100vw - 40px);
    white-space: nowrap;
  }

/* iOS-specific visual/tap fixes */
@supports (-webkit-touch-callout: none) {
  /* Safari on iOS sometimes requires higher z-index to accept touch for fixed/floating elements */
  .site-header, .header-icons, .menu-toggle { -webkit-transform: translateZ(0); transform: translateZ(0); }

  /* If the search menu is positioned fixed, ensure it has a minimal margin from the safe-area to avoid occlusion by the gesture bar */
  .account-dropdown.submenu[style] {
    padding-bottom: max(env(safe-area-inset-bottom), 8px) !important;
  }

  /* Some iOS webviews ignore pointer-events when opacity=0; keep pointer-events available when aria-expanded is true */
  .header-icons .search-toggle[aria-expanded="true"] { opacity: 0.02 !important; }
}
    .site-header {
      padding-bottom: 5px;
    }
  /* Show header icons on mobile (cart + search). We'll hide account-menu visually
     since My Account is surfaced inside the hamburger menu itself. */
  /* header-icons positioning set below using calculated offset from hamburger */
  /* hide only the full account/menu icon on mobile and hide the cart icon in header */
  .header-icons .header-account { display: none !important; }
  .header-icons .cart-menu { display: none !important; }
  /* Ensure the hamburger remains the right-most element */
  .menu-toggle { right: var(--mobile-hamburger-right); z-index: 5000; position: absolute; top: var(--mobile-hamburger-top); }
  /* header-icons positioned relative to the hamburger using --mobile-hamburger variables */
  /* Order icons: left-to-right within `.header-icons` we want [cart][search] visually. Use order on their containers if necessary. */
  .header-icons .cart-menu { order: 1; }
  .header-icons .search-menu { order: 2; }
  /* Keep hamburger to the rightmost visual position */
  .menu-toggle { order: 3; }
  /* Ensure the search icon is visible on mobile even if attractions header rules hide icons */
  .header-icons .search-menu { display: inline-flex !important; }
  /* Ensure header icons are fully visible on mobile (override attractions opacity rules) */
  .site-header .header-icons { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  /* === Global mobile tweaks: remove search icon box and align hamburger + icons === */
  /* Remove visible border/background from icon buttons for a cleaner chrome */
  .header-icons .icon-link,
  .menu-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px !important;
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Vertically center hamburger and header icons within the header bar */
  .site-header { display: flex; align-items: center; }
  .logo-banner-wrapper { flex: 1 1 auto; }
  /* Put the hamburger and header-icons into a right-side cluster */
  .menu-toggle { position: absolute; right: var(--mobile-hamburger-right); top: var(--mobile-hamburger-top); }
  /* move header icons slightly closer to hamburger for a snug fit */
  .header-icons { position: absolute; right: calc(var(--mobile-hamburger-right) + 40px); top: var(--mobile-hamburger-top); }
  /* Ensure visual alignment: same line-height and icon sizes */
  .menu-toggle, .header-icons .icon-link { line-height: 1; }
  /* Make header svgs block-level and centered to avoid subpixel vertical shift */
  .menu-toggle svg, .header-icons .icon-link svg { display: block; margin: 0; }
  /* Global mobile search dropdown: show a compact, focused search bar when opened */
  .header-icons .search-menu .account-dropdown.submenu {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 56px);
    right: 12px;
    left: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    display: none;
    background: #fff;
    color: #0d0d0d;
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 9000;
  }
  .header-icons .search-menu .account-dropdown.submenu.open { display: block; }
  .header-icons .search-menu .account-dropdown.submenu form { display:flex; gap:8px; align-items:center; margin:0; }
  .header-icons .search-menu .account-dropdown.submenu input[type="search"] { flex:1 1 auto; background:#fff; color:#0d0d0d; border:1px solid rgba(0,0,0,0.08); padding:8px 10px; border-radius:6px; }
  .header-icons .search-menu .account-dropdown.submenu .icon-submit { background: transparent; border: none; padding:6px; }
  .main-nav.open { display: block; }
  .main-nav .nav-list { margin: 0; padding: 0; flex-direction: column; width: auto; }
  .main-nav .nav-item { position: static; width: auto; }

  .main-nav > .nav-list > .nav-item > a:not(.parent-link) {
    display: block;
    padding: 10px 20px;
    text-align: right;
    color: var(--white);
    text-transform: uppercase;
  }
  .main-nav > .nav-list > .nav-item > a:not(.parent-link):hover,
  .main-nav > .nav-list > .nav-item > a:not(.parent-link).active {
    color: #6D33A6; background: var(--white);
  }

  /* Mobile parent-link styling: when the parent is active/open, keep dark bg and light font
     so injected search row doesn't look like a main active link */
  .main-nav .mobile-only .parent-row .parent-link,
  .main-nav .mobile-only .parent-row .parent-link:link,
  .main-nav .mobile-only .parent-row .parent-link:visited {
    color: var(--white);
    background: transparent;
  }
  .main-nav .mobile-only .parent-row .parent-link.active,
  .main-nav .mobile-only .parent-row .parent-link:hover {
    color: var(--white);
    background: var(--ink-2);
  }

  .has-submenu { width: 100%; }
  .parent-row { display: flex; align-items: center; justify-content: flex-end; }
  .parent-row .caret {
    display: block; font-size: 1.2rem; padding: 10px 8px;
    cursor: pointer; color: var(--white); background: none; border: none;
    min-width: 44px; min-height: 44px; order: 1;
  }
  .parent-row .parent-link {
    padding: 10px 20px 10px 0;
    color: var(--white);
    text-transform: uppercase;
    white-space: nowrap;
    text-align: right;
    order: 2;
  }
  .main-nav .submenu {
    display: block !important;
    background: var(--ink-2);
    border-left: 3px solid #333;
    margin: 0 0 0 10px;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease;
  }
  .main-nav .submenu.open { max-height: 500px; }
  .main-nav .submenu a {
    display: block;
    padding: 8px 20px;
    font-size: .9rem;
    text-align: right;
    color: var(--white);
    text-transform: uppercase;
  }

  /* Mobile search: field-only and full width inside submenu; matches submenu dark theme */
  .main-nav .mobile-only .submenu input[type="search"],
  .main-nav .mobile-only .submenu .search-menu input[type="search"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--ink-2); /* dark submenu background */
    color: var(--white); /* f2f2f2 for text */
    border: 1px solid rgba(255,255,255,0.06);
    padding: 10px 12px;
    margin: 0;
    border-radius: 4px;
  }

  /* Show search submit icon on mobile (we prefer the compact icon like desktop) */
  .search-menu.account-menu .account-dropdown.submenu .icon-submit { display: none !important; }
  /* But allow icon-submit inside the mobile menu's own search row */
  .main-nav .mobile-search .icon-submit { display: inline-flex !important; align-items:center; justify-content:center; }

  /* Reduce vertical padding between mobile nav items for dense layout */
  .main-nav > .nav-list > .nav-item > a:not(.parent-link) {
    padding: 8px 16px; /* slightly smaller than desktop mobile baseline */
  }
  .main-nav .submenu a {
    padding: 6px 16px; /* tighter submenu rows */
    font-size: .9rem;
  }
  .parent-row .parent-link { padding: 8px 12px 8px 0; }

  /* Shop + Cart on the same line to save vertical space */
  .main-nav .shop-cart-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
  }
  .main-nav .shop-cart-row a { text-transform: uppercase; color: var(--white); }

  /* Prevent submenu/account links from showing the desktop 'active' purple highlight
     on mobile — only top-level nav items should use that treatment on mobile */
  .main-nav .submenu a.active,
  .account-dropdown.submenu a.active {
    background: transparent !important;
    color: var(--white) !important;
  }

  /* Mobile search row styling: input + icon inline and readable on dark background */
  .main-nav .mobile-search form { display: flex; gap: 8px; align-items: center; }
  .main-nav .mobile-search input[type="search"] {
    flex: 1 1 auto;
    background: rgba(242,242,242,0.95);
    color: #0d0d0d;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 1rem;
  }
  .main-nav .mobile-search .icon-submit { background: transparent; border: none; padding: 6px; cursor: pointer; }
  .main-nav .mobile-search .icon-submit svg { stroke: #0d0d0d; }
}

/* Attractions-specific header overrides removed.
   Mobile/desktop header and search-dropdown styling is centralized
   in the global rules above (search-menu.account-menu and
   header-icons selectors). Keeping a single source of truth avoids
   divergent behavior between pages such as attractions.php.
*/

/* ========== 3) HERO ========== */
.hero {
  text-align: center;
  max-width: 80%;
  margin: calc(20vh + 1.5vh) auto 0;
}
.hero-subhead{display:flex; flex-direction:column; align-items:center; gap:8px;}
.hero h1{margin:0 0 -2px;}
.hero h2{color:var(--cyan); font-size:1.8rem; margin:0;}
.hero h2.and-line{color:#f2f2f2; font-size:1.2rem; font-weight:400; margin:-8px 0;}
.hero h3{margin:8px 0 0;}
.scalable{white-space:nowrap; font-size:clamp(1rem,5vw,2rem)!important;}

/* ========== 4) VIDEO CAROUSEL ========== */
.videos{padding:10px 0; display:flex; flex-direction:column; align-items:center;}

.video-carousel{
  position:relative; width:80vw; max-width:900px; margin:10px auto; overflow:hidden;
  -webkit-mask-image:linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image:linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-repeat:no-repeat; -webkit-mask-size:100% 100%; mask-repeat:no-repeat; mask-size:100% 100%;
}
.video-track{display:flex; transition:transform .5s ease; touch-action:pan-x;}
.video-thumb{flex:0 0 500px; width:500px; margin-right:20px; cursor:pointer; text-align:center; position:relative;}
.video-thumb img{width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:12px; box-shadow:0 0 15px rgba(0,0,0,.7); transition:transform .3s cubic-bezier(.4,0,.2,1);}
.video-thumb:hover img{transform:scale(1.05);}
.video-thumb::before{
  content:''; position:absolute; top:calc(50% - 10px); left:50%; transform:translate(-50%,-50%);
  width:0; height:0; border-left:30px solid rgba(255,255,255,.9); border-top:18px solid transparent; border-bottom:18px solid transparent; z-index:10; transition:all .3s ease; pointer-events:none;
}
.video-thumb:hover::before{border-left-color:rgba(255,255,255,1); transform:translate(-50%,-50%) scale(1.1);}
.video-thumb h4{
  position:absolute; left:0; right:0; top:calc(55% + 10px); transform:none; margin:0;
  font-size:.9rem; letter-spacing:1px; text-transform:uppercase; color:#fff; padding:8px 0; text-align:center; background:var(--pink); z-index:5; transition:transform .3s cubic-bezier(.4,0,.2,1);
}
.video-thumb:hover h4{transform:scale(1.05) translateY(4.5%);}

/* Carousel arrows */
.carousel-arrow{
  position:absolute; top:40%; transform:translateY(-50%); font-size:2rem; color:#fff;
  background:var(--ink-50); border:none; border-radius:50%; cursor:pointer; padding:8px 14px; z-index:20;
  width:50px; height:50px; display:flex; align-items:center; justify-content:center;
}
.carousel-arrow.left{left:0;} .carousel-arrow.right{right:0;}

/* Mobile carousel */
.mobile-controls{display:none; justify-content:center; align-items:center; gap:30px; margin:6px 0 10px;}
.mobile-controls button{
  width:44px; height:44px; border-radius:50%; border:none; font-size:1.6rem; background:rgba(0,0,0,.70); color:#fff; cursor:pointer; align-items:center; justify-content:center; line-height:1;
}

/* ========== 4.1) VIDEO SECTION (single video embed) ========== */
.video-section {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.video-wrapper {
  position: relative;
  width: 80vw;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border: none;
  border-radius: 10px;
}

@media (max-width:768px){
  .video-carousel{width:90vw; max-width:none; padding:0 10px;}
  .carousel-arrow{display:none;}
  .mobile-controls{display:flex;}
  .video-thumb{flex:0 0 80vw; width:80vw; max-width:880px; margin-right:4vw;}
  .video-thumb h4{font-size:.8rem;}
  /* Lightbox mobile stacking */
  .lightbox-content{flex-direction:column;}
}

/* ========== 5) LIGHTBOXES ========== */
.lightbox{
  display:none; position:fixed; inset:0; background:var(--ink-70);
  justify-content:center; align-items:center; z-index:5000;
}
.lightbox.open{display:flex;}
.lightbox-content{width:80vw; max-width:900px; position:relative; display:flex; justify-content:center; align-items:center;}
.lightbox iframe{width:80vw; height:45vw; max-width:900px; max-height:506px; border:none; border-radius:10px;}
.close-btn,.arrow{position:absolute; color:#fff; cursor:pointer; font-size:2rem;}
.close-btn{top:-40px; right:0;}
.arrow.left{left:-32px; top:50%; transform:translateY(-50%);}
.arrow.right{right:-32px; top:50%; transform:translateY(-50%);}

.reward-lightbox{
  display:none!important; position:fixed!important; inset:0!important;
  background:var(--ink-70)!important; justify-content:center; align-items:center; z-index:5000;
}
.reward-lightbox.open{display:flex!important;}
.reward-lightbox-content{
  background:#0d0d0d!important; border-radius:10px; padding:40px; max-width:85vw; max-height:85vh;
  position:relative; text-align:center; overflow-y:auto; box-shadow:0 10px 30px rgba(0,0,0,.5);
}
.reward-lightbox-content img{width:100%; height:auto; max-width:650px; border-radius:8px; margin-bottom:25px;}
.reward-description{color:var(--white)!important; font-size:1rem; line-height:1.6; max-width:650px; margin:0 auto;}
.reward-close{
  position:absolute; top:10px; right:15px; background:none; border:none; color:var(--white); font-size:2rem; cursor:pointer;
  width:30px; height:30px; display:flex; justify-content:center; align-items:center; z-index:10;
}
.reward-close:hover{color:var(--pink);}

/* ========== 6) SOCIAL (floating) ========== */
.floating-social{
  position:fixed; right:20px; top:40%; transform:translateY(-40%); display:flex; flex-direction:column; gap:15px; z-index:9999;
}
.floating-social a{color:#fff; font-size:1.6rem; transition:all .3s ease; text-shadow:0 0 8px rgba(0,255,255,.5);}
.floating-social a:hover{color:var(--pink); transform:scale(1.2); text-shadow:0 0 15px rgba(255,0,255,.7);}
@media (max-width:768px){
  .floating-social{right:10px; gap:12px;}
  .floating-social a{font-size:1.3rem; opacity:.85;}
}

/* ========== 7) FOOTER ========== */
.site-footer {
  width: 100%;
  text-align: center;
  background: var(--ink-70);
  color: var(--white);
  font-size: 0.9rem;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* centers all child elements horizontally */
  justify-content: center;
  z-index: 5;
  text-align: center;
  background: var(--ink-70);
  color: var(--white);
  font-size: 0.9rem;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* centers all child elements horizontally */
  justify-content: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  line-height: 1.2;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-copyright {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
  width: 100%;
}

/* ========== 8) PLEDGE GRID ========== */
.pledge-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:15px; width:75%; margin:0 auto;
}
.pledge-tier{
  background:var(--ink-70); border-radius:10px; overflow:hidden; text-align:center; transition:transform .08s ease, box-shadow .08s ease;
}
.pledge-tier img{width:100%; height:auto; display:block;}
.pledge-tier h3{margin:8px 0; font-size:clamp(.8rem,1.8vw,1.0rem);}
.pledge-tier:hover{transform:scale(1.02); box-shadow:0 0 25px var(--pink);}

/* ========== 9) REWARDS GALLERY (marquee) ========== */
.rewards-gallery{position:relative; width:75%; margin:20px auto; overflow:hidden;}
.gallery-track{
  overflow:hidden;
  -webkit-mask-image:linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image:linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-repeat:no-repeat; -webkit-mask-size:100% 100%; mask-repeat:no-repeat; mask-size:100% 100%;
}
.gallery-inner{display:flex; align-items:center; gap:15px; animation:scrollRewards 60s linear infinite;}
.gallery-inner img{
  height:200px; width:auto; flex-shrink:0; border-radius:6px; box-shadow:0 0 10px rgba(0,0,0,.5);
  transition:transform .3s ease, box-shadow .3s ease;
}
.gallery-inner img:hover{transform:scale(1.05); box-shadow:0 0 25px var(--pink);}
.gallery-inner .reward-image{height:200px; width:auto; flex-shrink:0; border-radius:6px; box-shadow:0 0 10px rgba(0,0,0,.5); transition:transform .3s ease, box-shadow .3s ease; cursor:pointer;}
.gallery-inner .reward-image:hover{transform:scale(1.05);}

@keyframes scrollRewards {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========== GALLERY CONTROLS ========== */
  .gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.2s ease;
  }

  .gallery-arrow.left {
    left: 0;
  }

  .gallery-arrow.right {
    right: 0;
  }

  .gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
  }

  .gallery-toggle {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.2s ease;
  }

  .gallery-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateX(-50%) scale(1.05);
  }

/* ========== 10) EVENTS / PLAIN LAYOUTS ========== */

.event-booking-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px;
}

/* Row structure */
.event-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 10px; /* ← 5px space on each side of content effectively */
}

/* Reverse layout for alternating pattern */
.event-row.reverse {
  flex-direction: row-reverse;
}

/* Image wrappers */
.event-image-left,
.event-image-right {
  flex: 0 0 40%; /* Image takes up 40% */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px; /* 5px internal buffer */
  box-sizing: border-box;
}

.event-image-left img,
.event-image-right img {
  width: auto;
  height: 300px;
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-image-left img:hover,
.event-image-right img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px var(--pink);
}

/* Content areas */
.event-content-right,
.event-content-left {
  flex: 1 1 auto; /* Automatically fills remaining space */
  padding: 0 5px; /* 5px horizontal padding on each side */
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  box-sizing: border-box;
  min-width: 0; /* Prevent overflow from long words */
}

.event-content-right {
  text-align: left;
}

.event-content-left {
  text-align: right;
}

/* Headings + text inside event content */
.event-content-right h3,
.event-content-left h3 {
  color: var(--cyan);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 12px;
  text-align: center;
}

.event-content-right p,
.event-content-left p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 10px;
  text-align: justify;
  max-width: 100% !important;
}

/* Mobile adjustments */
@media (max-width: 700px) {
  .event-row,
  .event-row.reverse {
    flex-direction: column !important;
    align-items: center;
    gap: 20px;
  }

  .event-image-left,
  .event-image-right {
    flex: none;
    width: 90%;
    margin: 0 auto 15px;
    padding: 0;
  }

  .event-content-right,
  .event-content-left {
    width: 90%;
    padding: 0 10px;
    text-align: center;
  }

  .event-content-right h3,
  .event-content-left h3 {
    text-align: center;
  }

  .event-image-left img,
  .event-image-right img {
    width: 100%;
    height: auto;
    max-height: 220px;
  }
}

/* ========== 11) RESPONSIVE TUNING ========== */
@media (max-width:900px){
  .plain-row, .plain-row.reverse{flex-direction:column!important; gap:10px;}
  .plain-image-left, .plain-image-right, .plain-content-left, .plain-content-right{max-width:100%; width:100%; flex:none;}
}

/*
// Deprecated plain-* responsive rules
@media (max-width:900px){
  .plain-row, .plain-row.reverse{flex-direction:column!important; gap:10px;}
  .plain-image-left, .plain-image-right, .plain-content-left, .plain-content-right{max-width:100%; width:100%; flex:none;}
}
*/

@media (max-width:768px){
  .event-image-left img,
  .event-image-right img {
    height: 200px;
  }
  .event-row, .event-row.reverse{flex-direction:column!important; align-items:center; text-align:center;}
  .event-row.reverse .event-image-right{order:-1; margin-bottom:15px;}
  .event-row.reverse .event-content-left{order:1;}
  .event-row .event-image-left, .event-row.reverse .event-image-right{flex:0 0 250px; height:auto; margin-bottom:15px;}
  .event-row .event-image-left img, .event-row.reverse .event-image-right img{width:250px; height:250px;}
  .event-image-left img:hover, .event-image-right img:hover{transform:scale(1.02); box-shadow:0 0 25px var(--pink);}
  .event-row .event-content-right, .event-row.reverse .event-content-left{flex:1 1 auto; height:auto; padding:0 10px; text-align:center;}
  .event-booking-content{padding:5px;}

  /* Pledge & Rewards on mobile */
  .pledge-grid{grid-template-columns:1fr; width:90%;}
  .pledge-tier{transform:none!important; box-shadow:none!important;}
  .pledge-tier h3{font-size:clamp(1rem,4vw,1.2rem);}
  .rewards-gallery{width:90%;}
  .gallery-inner img{height:140px;}
  .gallery-inner img:hover{transform:none!important; box-shadow:0 0 10px rgba(0,0,0,.4)!important;}

  /* Paragraph width */
  p{max-width:90%;}
}

@media (max-width:600px){
  h1{font-size:2rem;}
  h2{font-size:1.5rem;}
  h3{font-size:1.2rem;}
  h4{font-size:1rem;}
  .lightbox iframe{width:90vw;}
  /* Hero gap slightly reduced for small screens */
  .hero{margin:calc(17vh + 1vh) auto 0;}
}

/* ========== MENU PLACEHOLDER ========== */
.menu-placeholder-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  text-align: center;
}

.menu-placeholder {
  width: 8.5in;
  height: 11in;
  max-width: 90vw;
  max-height: 90vh;
  background: rgba(38,38,38,.5);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-placeholder h1 {
/* CONTACT FORM STYLES */
.contact-form-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
  padding: 0;
}

.contact-form {
  width: 100%;
  max-width: 900px;
  background: rgba(38,38,38,.5);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto;
}

.contact-form label {
  color: #E899F2;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: left;
}

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 12px 10px;
  margin-bottom: 18px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #E899F2;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  outline: none;
}
.contact-form select:focus {
  background: rgba(232,153,242,0.12);
  color: #fff;
}
.contact-form textarea {
  width: 100%;
  padding: 12px 10px;
  margin-bottom: 18px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #E899F2;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(232,153,242,0.12);
  color: #fff;
}

.contact-form button {
  background: #6D33A6;
  color: #F2F2F2;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}
font-size: 2.5rem;
font-weight: 700;
color: #F2F2F2;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
margin: 0;
}

/* ========== CONTACT FORM STYLES (2025-10 Consolidated) ========== */
.contact-form-wrapper {
  width: 80vw;
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-form {
  width: 100%;
  background: rgba(38, 38, 38, 0.55);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

/* Grid layout for rows */
.contact-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}

.contact-form .form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form .form-row.full {
  flex-direction: column;
}

/* Labels */
.contact-form label {
  color: var(--cyan);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: left;
}

/* Inputs, selects, textarea */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 10px;
  margin-bottom: 0; /* spacing handled by .form-row */
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #E899F2;
  font-size: 1.05rem;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  outline: none;
  resize: vertical;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Placeholder and focus states */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(232, 153, 242, 0.15);
  color: #fff;
}

/* Button */
.contact-form button {
  background: #6D33A6;
  color: #F2F2F2;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.25s ease, transform 0.15s ease;
}

.contact-form button:hover {
  background: var(--pink);
  transform: scale(1.02);
}

/* reCAPTCHA centering */
.g-recaptcha {
  margin: 15px auto 25px;
  display: flex;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-form-wrapper {
    width: 92vw;
    padding: 0 10px;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .contact-form label {
    font-size: 1rem;
  }

  .contact-form button {
    font-size: 1.1rem;
  }

  /* Stack fields vertically on mobile */
  .contact-form .form-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* ======= Thank You Page Enhancements ======= */
.thankyou-hero {
  max-width: 900px;
  margin: calc(20vh + 2rem) auto 0;
  text-align: center;
  animation: fadeUp 0.9s ease forwards;
}

.thankyou-hero h1 {
  color: var(--pink);
  font-size: 2.8rem;
  margin-bottom: 0.2em;
}

.thankyou-hero h2 {
  color: var(--cyan);
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 0.8em;
}

.thankyou-hero p {
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 auto 2em;
  max-width: 700px;
}

/* Action buttons */
.thankyou-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-home,
.btn-alt {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-home {
  background: #6D33A6;
  color: #fff;
}

.btn-home:hover {
  background: var(--pink);
  transform: scale(1.05);
}

.btn-alt {
  background: rgba(255,255,255,0.08);
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.btn-alt:hover {
  background: var(--cyan);
  color: var(--ink);
  transform: scale(1.05);
}

/* Simple entry animation */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ========== TEXT LAYOUT OVERRIDES ========== */
.legal-content {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content p {
  text-align: left;
  margin: 0 0 1.2em;
  max-width: 100%;
  line-height: 1.7;
}

/* --- iPhone safe area fix (footer + full-height sections) --- */
html, body {
  height: auto;
  overflow-y: auto;
}

.scroll-zone {
  /* must have scrollable content height */
  min-height: 120vh;
  overflow-y: auto;
}

/* Allow the footer to fill behind the browser’s bottom bar */
.site-footer {
  padding-bottom: calc(10px + env(safe-area-inset-bottom)); /* keep text visible */
  background-color: #0d0d0d;
}

/* For sections or videos meant to fill screen */
.attractions-hero,
.video-container {
  height: 100dvh; /* dynamic viewport height includes Safari UI area */
}

/* Ensure the global search input never falls below 16px to prevent iOS zoom */
#global-search-input {
  font-size: 16px !important;
  padding: 0 !important;
  border: none !important;
  height: 44px !important;
  box-sizing: border-box !important;
}

/* Reset Safari's native search box styling and apply custom design */
input[type="search"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  border-radius: 0 !important;
  border: none !important;
  outline: none !important;
  background-color: rgba(242, 242, 242, 0.3) !important; /* f2f2f2 @ 30% */
  color: #f2f2f2 !important;
  font-size: 16px !important;
  padding: 10px 14px !important;
  width: 100% !important;
  height: 44px !important;
  box-shadow: none !important;
}

/* Optional: remove Safari's 'x' clear icon inside search boxes */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none !important;
}

/* Style placeholder color for visibility */
input[type="search"]::placeholder {
  color: rgba(242, 242, 242, 0.6) !important;
}

/* For dark mode consistency */
@supports (-webkit-appearance:none) {
  input[type="search"] {
    background-clip: padding-box !important;
  }
}
