/* ==========================================================================
   RAYUDU RESORT'S — LAMBASINGI
   style.css — custom theme, glassmorphism helpers, slider & motion
   Loaded after Tailwind CDN. Tailwind handles layout; this file handles
   brand typography, glass surfaces and the cinematic motion.
   ========================================================================== */

:root{
  --slate:#020617;
  --slate-2:#0f172a;
  --amber:#f59e0b;
  --amber-soft:#fbbf24;
  --emerald:#10b981;
  --ink:#e2e8f0;
  --muted:#94a3b8;
  --glass:rgba(15,23,42,.85);
  --glass-line:rgba(245,158,11,.22);
  --shadow-lux:0 24px 60px -20px rgba(0,0,0,.75);
  --nav-h:72px;
}

*{ -webkit-tap-highlight-color:transparent; }

html{ scroll-behavior:smooth; scroll-padding-top:calc(var(--nav-h) + 24px); }

body{
  font-family:'Outfit',system-ui,-apple-system,'Segoe UI',sans-serif;
  background:var(--slate);
  color:var(--ink);
  overflow-x:hidden;
}

h1,h2,h3,.font-display{ font-family:'Cinzel',Georgia,'Times New Roman',serif; letter-spacing:.02em; }

/* ---------- Glassmorphism ------------------------------------------------ */
.glass{
  background:var(--glass);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  backdrop-filter:blur(14px) saturate(140%);
  border:1px solid rgba(255,255,255,.08);
}
.glass-light{
  background:rgba(255,255,255,.07);
  -webkit-backdrop-filter:blur(12px) saturate(130%);
  backdrop-filter:blur(12px) saturate(130%);
  border:1px solid rgba(255,255,255,.14);
}
.glass-amber{ border-color:var(--glass-line); }

/* Fallback for browsers without backdrop-filter (older Android/Firefox flags) */
@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))){
  .glass{ background:rgba(2,6,23,.96); }
  .glass-light{ background:rgba(15,23,42,.9); }
}

/* ---------- Header ------------------------------------------------------- */
.site-header{ transition:background .35s ease, box-shadow .35s ease, border-color .35s ease; }
.site-header.is-scrolled{ box-shadow:0 10px 30px -12px rgba(0,0,0,.8); border-bottom-color:var(--glass-line); }

.nav-link{ position:relative; padding:.35rem 0; color:#cbd5e1; transition:color .25s ease; }
.nav-link::after{
  content:''; position:absolute; left:0; bottom:-2px; height:2px; width:0;
  background:linear-gradient(90deg,var(--amber),var(--emerald)); transition:width .3s ease;
}
.nav-link:hover{ color:#fff; }
.nav-link:hover::after,.nav-link.is-active::after{ width:100%; }
.nav-link.is-active{ color:var(--amber-soft); }

/* Mobile drawer */
#mobileMenu{ max-height:0; overflow:hidden; transition:max-height .45s cubic-bezier(.4,0,.2,1); }
#mobileMenu.is-open{ max-height:32rem; }

/* ---------- Hero slider (Swiper) ---------------------------------------- */
.hero{ height:calc(100svh - 110px); min-height:520px; }
@media (max-width:640px){ .hero{ height:calc(100svh - 96px); min-height:560px; } }

.hero .swiper,.hero .swiper-wrapper,.hero .swiper-slide{ height:100%; }
.hero .swiper-slide{ overflow:hidden; }

.slide-media{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transform:scale(1.06); transition:transform 7s cubic-bezier(.22,.61,.36,1);
  will-change:transform;
}
.swiper-slide-active .slide-media{ transform:scale(1.18); }

.slide-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(to top,rgba(2,6,23,.94) 0%,rgba(2,6,23,.45) 45%,rgba(2,6,23,.65) 100%),
    radial-gradient(120% 80% at 20% 30%,rgba(2,6,23,0) 0%,rgba(2,6,23,.55) 100%);
}

.slide-copy{ opacity:0; transform:translateY(28px); }
.swiper-slide-active .slide-copy{ animation:slideUp .9s .25s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes slideUp{ to{ opacity:1; transform:translateY(0);} }

.swiper-pagination-bullet{ background:#fff; opacity:.35; width:10px; height:10px; transition:all .3s; }
.swiper-pagination-bullet-active{ background:var(--amber); opacity:1; width:34px; border-radius:999px; }

.swiper-button-next,.swiper-button-prev{
  color:#fff; width:52px; height:52px; border-radius:999px;
  background:rgba(15,23,42,.55); border:1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  transition:background .25s ease, border-color .25s ease;
}
.swiper-button-next:hover,.swiper-button-prev:hover{ background:rgba(245,158,11,.85); border-color:transparent; }
.swiper-button-next::after,.swiper-button-prev::after{ font-size:18px; font-weight:700; }
@media (max-width:768px){ .swiper-button-next,.swiper-button-prev{ display:none; } }

/* ---------- Buttons ------------------------------------------------------ */
/* `display` is declared inside :where() so it carries ZERO specificity.
   Tailwind's `hidden` / `lg:flex` utilities must always be able to win. */
:where(.btn){ display:inline-flex; align-items:center; justify-content:center; gap:.6rem; }
.btn{
  padding:.85rem 1.6rem; border-radius:999px; font-weight:600; letter-spacing:.01em;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor:pointer; border:1px solid transparent; text-align:center;
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }
.btn:focus-visible{ outline:2px solid var(--amber); outline-offset:3px; }
.btn-amber{ background:var(--amber); color:#1c1206; box-shadow:0 12px 28px -12px rgba(245,158,11,.9); }
.btn-amber:hover{ background:var(--amber-soft); }
.btn-wa{ background:#25d366; color:#052e16; box-shadow:0 12px 28px -12px rgba(37,211,102,.9); }
.btn-wa:hover{ background:#31e070; }
.btn-ghost{ border-color:rgba(255,255,255,.35); color:#fff; }
.btn-ghost:hover{ background:rgba(255,255,255,.12); }

/* ---------- Cards -------------------------------------------------------- */
.card{
  border-radius:1.25rem; overflow:hidden; position:relative;
  background:rgba(15,23,42,.6); border:1px solid rgba(255,255,255,.08);
  transition:transform .4s cubic-bezier(.22,.61,.36,1), border-color .4s, box-shadow .4s;
}
.card:hover{ transform:translateY(-6px); border-color:var(--glass-line); box-shadow:var(--shadow-lux); }
.card-img{ width:100%; height:100%; object-fit:cover; transition:transform .8s cubic-bezier(.22,.61,.36,1); }
.card:hover .card-img{ transform:scale(1.08); }

:where(.tile){ display:block; }
.tile{ position:relative; border-radius:1.25rem; overflow:hidden; }
.tile::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(to top,rgba(2,6,23,.92) 10%,rgba(2,6,23,.15) 60%,rgba(2,6,23,.35) 100%);
}
/* Lift tile content above the gradient without out-specifying Tailwind's own
   position utilities (an overlay marked `absolute inset-0` must stay absolute). */
:where(.tile) > :not(img){ position:relative; z-index:2; }
:where(.tile) > .absolute{ position:absolute; }

/* ---------- Booking bar -------------------------------------------------- */
.booking-bar{ box-shadow:var(--shadow-lux); }
/* Width in :where() so Tailwind sizing utilities (sm:w-56, w-auto) still win. */
:where(.field){ width:100%; }
.field{
  border-radius:.85rem; padding:.7rem .9rem;
  background:rgba(2,6,23,.65); color:#fff;
  border:1px solid rgba(255,255,255,.14);
  font-size:.95rem; transition:border-color .2s, box-shadow .2s;
}
.field:focus{ outline:none; border-color:var(--amber); box-shadow:0 0 0 3px rgba(245,158,11,.22); }
.field:invalid{ border-color:rgba(248,113,113,.6); }
.field-label{ font-size:.68rem; text-transform:uppercase; letter-spacing:.16em; color:var(--muted); margin-bottom:.35rem; display:block; }
/* Make native date pickers legible on a dark surface */
.field::-webkit-calendar-picker-indicator{ filter:invert(1) opacity(.65); cursor:pointer; }
select.field option{ background:#0f172a; color:#fff; }

.form-error{ color:#fca5a5; font-size:.82rem; min-height:1.1rem; }

/* ---------- Section chrome ---------------------------------------------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.7rem; letter-spacing:.32em; text-transform:uppercase; color:var(--amber);
}
.rule{ height:1px; background:linear-gradient(90deg,transparent,var(--glass-line),transparent); }

/* ---------- Reveal on scroll -------------------------------------------- */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible{ opacity:1; transform:none; }

/* ---------- Accordion (FAQ) --------------------------------------------- */
.acc-panel{ max-height:0; overflow:hidden; transition:max-height .4s cubic-bezier(.4,0,.2,1); }
.acc-item.is-open .acc-panel{ max-height:30rem; }
.acc-item.is-open .acc-chevron{ transform:rotate(180deg); }
.acc-chevron{ transition:transform .3s ease; }

/* ---------- Off-season offer banner -------------------------------------- */
.offer-banner{
  background:linear-gradient(90deg,var(--amber-soft),var(--amber) 45%,#34d399);
  color:#1c1206; font-weight:500;
}
.offer-banner[hidden]{ display:none; }

/* ---------- Booking-bar experience add-ons ------------------------------- */
:where(.addon){ display:block; }
.addon{ cursor:pointer; }
/* Visually hidden but still focusable and announced by screen readers —
   the styled .addon-face is what people actually see and click. */
.addon-box{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
:where(.addon-face){ display:flex; }
.addon-face{
  align-items:center; gap:.7rem;
  padding:.7rem .85rem; border-radius:.85rem;
  background:rgba(2,6,23,.55); border:1px solid rgba(255,255,255,.12);
  transition:border-color .2s ease, background .2s ease;
}
.addon-face > i:first-child{ color:var(--amber); font-size:1rem; width:1.1rem; text-align:center; flex:none; }
.addon-title{ display:block; font-size:.82rem; font-weight:600; color:#e2e8f0; line-height:1.2; }
.addon-sub{ display:block; font-size:.68rem; color:var(--muted); margin-top:.15rem; }
.addon-tick{
  margin-left:auto; font-size:.7rem; color:var(--slate);
  width:1.1rem; height:1.1rem; border-radius:999px; flex:none;
  display:grid; place-items:center; background:transparent; border:1px solid rgba(255,255,255,.25);
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.addon:hover .addon-face{ border-color:rgba(245,158,11,.4); }
.addon-box:checked + .addon-face{ border-color:var(--amber); background:rgba(245,158,11,.12); }
.addon-box:checked + .addon-face .addon-tick{ background:var(--amber); border-color:var(--amber); color:#1c1206; }
.addon-box:focus-visible + .addon-face{ outline:2px solid var(--amber); outline-offset:2px; }

/* ---------- Price with the offer applied --------------------------------- */
.price-was{ text-decoration:line-through; opacity:.45; font-size:.8em; margin-left:.4em; font-weight:400; }
.price-now{ color:var(--amber); }

/* ---------- Mobile quick-action bar --------------------------------------- */
/* display in :where() so Tailwind's `lg:hidden` can still win — see the note
   at the top of the button styles. */
:where(.action-bar){ display:grid; }
.action-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:70;
  grid-template-columns:1fr 1fr; gap:.5rem;
  padding:.55rem .6rem calc(.55rem + env(safe-area-inset-bottom, 0px));
  background:rgba(2,6,23,.92);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border-top:1px solid rgba(255,255,255,.1);
}
:where(.action-btn){ display:flex; }
.action-btn{
  align-items:center; justify-content:center; gap:.5rem;
  padding:.8rem .5rem; border-radius:.85rem;
  font-size:.85rem; font-weight:600; letter-spacing:.01em; white-space:nowrap;
  transition:transform .2s ease, filter .2s ease;
}
.action-btn:active{ transform:scale(.97); }
.action-call{ background:rgba(245,158,11,.14); color:var(--amber-soft); border:1px solid rgba(245,158,11,.4); }
.action-wa{ background:#25d366; color:#052e16; }
/* Keep the bar from sitting on top of the last line of the footer. */
@media (max-width:1023px){ body{ padding-bottom:4.6rem; } }

/* ---------- Floating WhatsApp ------------------------------------------- */
:where(.fab-wa){ display:grid; }
.fab-wa{
  position:fixed; right:1rem; bottom:1rem; z-index:60;
  width:56px; height:56px; border-radius:999px; place-items:center;
  background:#25d366; color:#052e16; font-size:26px;
  box-shadow:0 14px 34px -10px rgba(37,211,102,.85);
  animation:pulseRing 2.6s infinite;
}
@keyframes pulseRing{
  0%{ box-shadow:0 14px 34px -10px rgba(37,211,102,.85),0 0 0 0 rgba(37,211,102,.5); }
  70%{ box-shadow:0 14px 34px -10px rgba(37,211,102,.85),0 0 0 18px rgba(37,211,102,0); }
  100%{ box-shadow:0 14px 34px -10px rgba(37,211,102,.85),0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Misc --------------------------------------------------------- */
.fog-strip{ background:linear-gradient(90deg,rgba(16,185,129,.16),rgba(245,158,11,.16)); }
.no-scroll{ overflow:hidden; }

::selection{ background:var(--amber); color:#1c1206; }

::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:#020617; }
::-webkit-scrollbar-thumb{ background:#1e293b; border-radius:999px; }
::-webkit-scrollbar-thumb:hover{ background:var(--amber); }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .slide-media,.swiper-slide-active .slide-media{ transform:none; }
  .reveal{ opacity:1; transform:none; }
}
