/* ==========================================================================
   JAY QUEST TOURS AND SAFARIS — Shared Glassmorphism Design System
   iOS/iPhone-style frosted glass: translucent panels, backdrop blur,
   vibrant blurred color fields behind glass, large corner radii,
   system font stack matching iOS/macOS native UI.
   ========================================================================== */

:root{
  --navy-950:#081321;
  --navy-900:#0b1d33;
  --navy-800:#122c4b;
  --amber-500:#f2994a;
  --amber-400:#f5b06b;
  --gold-400:#f5c451;
  --sand-100:#f6efe3;
  --sand-50:#faf7f0;
  --ink-300:#c9d4e3;
  --ink-500:#93a4bd;
  --safari-green:#5b7048;
  --glass-fill:rgba(255,255,255,0.06);
  --glass-fill-strong:rgba(255,255,255,0.10);
  --glass-border:rgba(255,255,255,0.14);
  --glass-border-strong:rgba(245,192,81,0.35);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
}

body{
  margin:0;
  min-height:100vh;
  background:var(--navy-900);
  color:var(--sand-50);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",sans-serif;
  -webkit-font-smoothing:antialiased;
  position:relative;
  overflow-x:hidden;
}

h1,h2,h3,.display{ font-family:'Fraunces',-apple-system,serif; }
a{color:inherit;}
picture{ display:block; line-height:0; }
img{display:block;max-width:100%;}
.container{max-width:1200px;margin:0 auto;padding-left:1.25rem;padding-right:1.25rem;}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--gold-400);outline-offset:3px;
}

/* --- Ambient blurred color fields (the "glass sits on top of this" layer) --- */
.bg-orb{
  position:fixed;border-radius:999px;filter:blur(90px);pointer-events:none;z-index:0;opacity:0.55;
}
.bg-orb.orb-a{ width:520px;height:520px;background:var(--amber-500);top:-180px;left:-160px; }
.bg-orb.orb-b{ width:600px;height:600px;background:#2c5aa0;bottom:-220px;right:-200px; }
.bg-orb.orb-c{ width:380px;height:380px;background:var(--gold-400);top:40%;left:60%;opacity:0.28; }

/* --- Core glass primitives --- */
.glass{
  background:var(--glass-fill);
  backdrop-filter:blur(20px) saturate(150%);
  -webkit-backdrop-filter:blur(20px) saturate(150%);
  border:1px solid var(--glass-border);
  border-radius:24px;
  position:relative;
  z-index:1;
}
.glass-strong{
  background:var(--glass-fill-strong);
  backdrop-filter:blur(28px) saturate(160%);
  -webkit-backdrop-filter:blur(28px) saturate(160%);
  border:1px solid var(--glass-border);
  border-radius:28px;
}
.glass-pill{
  background:var(--glass-fill-strong);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  border:1px solid var(--glass-border);
  border-radius:999px;
}
.glass-input{
  background:rgba(8,19,33,0.45);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid var(--glass-border);
  border-radius:14px;
  color:var(--sand-50);
  padding:0.85rem 1.1rem;
  font-size:0.95rem;
  font-family:inherit;
  width:100%;
  transition:border-color .2s, box-shadow .2s;
}
.glass-input::placeholder{color:var(--ink-500);}
.glass-input:focus{
  outline:none;
  border-color:var(--gold-400);
  box-shadow:0 0 0 3px rgba(245,196,81,0.18);
}
select.glass-input{ appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f5c451' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 1rem center;padding-right:2.4rem;
}

/* --- Nav --- */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(8,19,33,0.55);
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  border-bottom:1px solid var(--glass-border);
}
.nav-row{display:flex;align-items:center;justify-content:space-between;padding:0.85rem 0;gap:1rem;}
.brand{display:flex;align-items:center;gap:0.65rem;text-decoration:none;flex:none;}
.brand img{height:42px;width:auto;border-radius:10px;}
.brand-text{line-height:1.05;}
.brand-text .name{font-family:'Fraunces',serif;font-weight:700;font-size:1.05rem;color:var(--sand-50);letter-spacing:0.01em;}
.brand-text .tag{font-size:0.62rem;letter-spacing:0.13em;text-transform:uppercase;color:var(--amber-400);}
nav.links{display:none;gap:1.6rem;font-size:0.88rem;font-weight:500;color:var(--ink-300);}
nav.links a{transition:color .2s;text-decoration:none;white-space:nowrap;}
nav.links a.active{color:var(--gold-400);}
nav.links a:hover{color:var(--gold-400);}
@media(min-width:1050px){ nav.links{display:flex;} }
.nav-cta{
  display:inline-flex;align-items:center;gap:0.5rem;
  background:var(--amber-500);color:var(--navy-950);
  font-weight:700;font-size:0.82rem;padding:0.6rem 1.1rem;border-radius:999px;
  text-decoration:none;white-space:nowrap;flex:none;
  box-shadow:0 6px 20px -6px rgba(242,153,74,0.6);
  transition:transform .2s, box-shadow .2s;
}
.nav-cta:hover{transform:translateY(-1px);box-shadow:0 10px 24px -6px rgba(242,153,74,0.75);}
.nav-toggle{
  display:inline-flex;background:none;border:none;color:var(--sand-50);font-size:1.5rem;cursor:pointer;padding:0.2rem;
}
@media(min-width:1050px){ .nav-toggle{display:none;} }
.mobile-menu{
  display:none;flex-direction:column;gap:0.2rem;padding:0.5rem 0 1.2rem;
}
.mobile-menu.open{display:flex;}
.mobile-menu a{
  padding:0.9rem 0.4rem;border-radius:12px;text-decoration:none;color:var(--ink-300);font-weight:500;
}
.mobile-menu a.active,.mobile-menu a:hover{background:var(--glass-fill);color:var(--gold-400);}
@media(min-width:1050px){ .mobile-menu{display:none !important;} }

/* --- Page header banner (used on inner pages) --- */
.page-hero{
  position:relative;padding:7.5rem 0 4rem;overflow:hidden;
}
.page-hero-bg{
  position:absolute;inset:0;background-size:cover;background-position:center;
  background-image:linear-gradient(180deg, rgba(8,19,33,0.55) 0%, rgba(8,19,33,0.75) 60%, var(--navy-900) 100%), var(--hero-img, none);
}
.page-hero-inner{position:relative;z-index:1;}
.eyebrow{
  display:inline-flex;align-items:center;gap:0.5rem;
  font-size:0.7rem;letter-spacing:0.2em;text-transform:uppercase;
  color:var(--gold-400);font-weight:600;margin-bottom:1.1rem;
}
.eyebrow::before{content:'';width:26px;height:1px;background:var(--gold-400);display:inline-block;}
.page-hero h1{font-size:clamp(2rem,4.4vw,3.2rem);line-height:1.08;font-weight:700;color:var(--sand-50);margin:0 0 1rem;max-width:22ch;}
.page-hero p.lead{font-size:1.02rem;line-height:1.6;color:var(--ink-300);max-width:52ch;margin:0;}

/* --- Buttons --- */
.btn-row{display:flex;flex-wrap:wrap;gap:1rem;}
.btn{
  display:inline-flex;align-items:center;gap:0.55rem;
  font-weight:700;font-size:0.9rem;padding:0.9rem 1.6rem;border-radius:999px;
  text-decoration:none;transition:transform .2s, box-shadow .2s, background .2s, border-color .2s;
  border:none;cursor:pointer;font-family:inherit;
}
.btn-primary{background:var(--amber-500);color:var(--navy-950);box-shadow:0 10px 30px -8px rgba(242,153,74,0.55);}
.btn-primary:hover{transform:translateY(-2px);background:var(--gold-400);}
.btn-primary:disabled{opacity:0.6;transform:none;cursor:not-allowed;}
.btn-ghost{background:var(--glass-fill);border:1px solid var(--glass-border);color:var(--sand-50);}
.btn-ghost:hover{border-color:var(--gold-400);color:var(--gold-400);}

/* --- Sections --- */
section{padding:5rem 0;position:relative;z-index:1;}
.section-head{max-width:640px;margin:0 0 2.8rem;}
.section-eyebrow{font-size:0.7rem;letter-spacing:0.18em;text-transform:uppercase;color:var(--amber-400);font-weight:700;margin-bottom:0.8rem;}
.section-head h2{font-size:clamp(1.8rem,3.2vw,2.4rem);font-weight:700;color:var(--sand-50);margin:0 0 0.9rem;line-height:1.15;}
.section-head p{color:var(--ink-300);font-size:1rem;line-height:1.6;margin:0;}

/* --- Cards --- */
.card-grid{display:grid;grid-template-columns:1fr;gap:1.4rem;}
@media(min-width:720px){ .card-grid.cols-2{grid-template-columns:repeat(2,1fr);} }
@media(min-width:1080px){ .card-grid.cols-3{grid-template-columns:repeat(3,1fr);} .card-grid.cols-2{grid-template-columns:repeat(2,1fr);} }

.glass-card{ padding:1.8rem; }
.glass-card h3{font-size:1.12rem;color:var(--sand-50);margin:0 0 0.5rem;font-weight:600;}
.glass-card p{color:var(--ink-300);font-size:0.92rem;line-height:1.6;margin:0;}
.icon-chip{
  width:44px;height:44px;border-radius:14px;background:rgba(242,153,74,0.16);
  display:flex;align-items:center;justify-content:center;color:var(--amber-400);
  font-size:1.25rem;margin-bottom:1rem;
}

/* --- Package / tour cards --- */
.tour-card{ overflow:hidden;display:flex;flex-direction:column; }
.tour-img{height:190px;overflow:hidden;position:relative;}
.tour-img img{width:100%;height:100%;object-fit:cover;}
.tour-price{
  position:absolute;bottom:0.8rem;left:0.8rem;
  background:rgba(8,19,33,0.7);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  color:var(--gold-400);font-weight:700;font-size:0.82rem;
  padding:0.35rem 0.75rem;border-radius:999px;border:1px solid var(--glass-border-strong);
}
.tour-body{padding:1.3rem 1.3rem 1.5rem;display:flex;flex-direction:column;gap:0.65rem;flex:1;}
.tour-body h3{font-size:1.1rem;color:var(--sand-50);margin:0;font-weight:600;}
.tour-body p{color:var(--ink-300);font-size:0.9rem;line-height:1.55;margin:0;flex:1;}
.tour-meta{display:flex;gap:0.8rem;flex-wrap:wrap;font-size:0.76rem;color:var(--ink-500);}
.tour-meta span{display:inline-flex;align-items:center;gap:0.3rem;}
.tour-link{
  display:inline-flex;align-items:center;gap:0.4rem;color:var(--amber-400);
  font-weight:700;font-size:0.84rem;text-decoration:none;margin-top:0.2rem;
}
.tour-link:hover{color:var(--gold-400);}

/* --- Itinerary blocks (Packages page) --- */
.itinerary{ padding:2rem; margin-bottom:2rem; }
.itinerary-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.4rem;padding-bottom:1.4rem;border-bottom:1px solid var(--glass-border);}
.itinerary-head h3{font-size:1.35rem;margin:0 0 0.35rem;color:var(--sand-50);}
.itinerary-head .tier{font-size:0.72rem;letter-spacing:0.12em;text-transform:uppercase;color:var(--amber-400);font-weight:700;}
.itinerary-price{ text-align:right; }
.itinerary-price .amount{font-family:'Fraunces',serif;font-size:1.6rem;font-weight:700;color:var(--gold-400);}
.itinerary-price .unit{font-size:0.78rem;color:var(--ink-500);}
.day-block{margin-bottom:1.2rem;}
.day-block h4{font-size:0.95rem;color:var(--amber-400);margin:0 0 0.5rem;font-weight:700;}
.day-block ul{margin:0;padding-left:1.2rem;color:var(--ink-300);font-size:0.9rem;line-height:1.75;}
.itinerary-foot{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:1.4rem;padding-top:1.4rem;border-top:1px solid var(--glass-border);}
@media(min-width:700px){ .itinerary-foot{grid-template-columns:1fr 1fr;} }
.itinerary-foot h5{font-size:0.8rem;text-transform:uppercase;letter-spacing:0.1em;color:var(--sand-50);margin:0 0 0.5rem;}
.itinerary-foot p{font-size:0.88rem;color:var(--ink-300);line-height:1.6;margin:0;}

/* --- Testimonials --- */
.testi-card{ padding:1.8rem; }
.testi-quote{font-family:'Fraunces',serif;font-style:italic;font-size:1.05rem;line-height:1.55;color:var(--sand-100);margin:0 0 1.1rem;}
.testi-name{font-weight:700;font-size:0.9rem;color:var(--gold-400);}
.testi-loc{font-size:0.8rem;color:var(--ink-300);}
.stars{color:var(--gold-400);letter-spacing:0.15em;margin-bottom:0.8rem;font-size:0.9rem;}

/* --- Gallery / video grid --- */
.media-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0.7rem;}
@media(min-width:640px){ .media-grid{grid-template-columns:repeat(4,1fr);} }
.media-grid > div{border-radius:18px;overflow:hidden;aspect-ratio:1/1;position:relative;border:1px solid var(--glass-border);}
.media-grid img{width:100%;height:100%;object-fit:cover;transition:transform .4s;}

/* --- Compact secondary grid (Gallery page, browse-instead-of-watch) ---
   Uses the same already-cropped 4:3 slide images as the main slideshow,
   so no double-cropping risk — smaller tiles, more columns, since this is
   deliberately the secondary/browse option, not the main feature. */
.compact-grid{ grid-template-columns:repeat(3,1fr); gap:0.5rem; }
@media(min-width:640px){ .compact-grid{ grid-template-columns:repeat(6,1fr); } }
.compact-grid > div{ aspect-ratio:4/3; border-radius:10px; }

/* --- Single sequential video player (Gallery page) --- */
.video-player-shell{ padding:1.6rem; }
#momentsPlayer{
  width:100%; aspect-ratio:16/9; border-radius:16px; background:var(--navy-950);
  display:block;
}
.video-player-thumbs{ display:flex; gap:0.6rem; margin-top:1rem; overflow-x:auto; padding-bottom:0.3rem; }
.video-thumb{
  flex:none; width:76px; height:76px; border-radius:12px; border:2px solid transparent;
  background-size:cover; background-position:center; position:relative; cursor:pointer;
  transition:border-color .2s, transform .2s;
}
.video-thumb:hover{ transform:translateY(-2px); }
.video-thumb.active{ border-color:var(--gold-400); }
.video-thumb span{
  position:absolute; bottom:4px; right:6px; font-size:0.7rem; font-weight:700; color:var(--sand-50);
  background:rgba(8,19,33,0.7); border-radius:6px; padding:0.1rem 0.4rem;
}
.media-grid > div:hover img{transform:scale(1.06);}
.media-grid > div.wide{grid-column:span 2;aspect-ratio:16/9;}
.video-frame{position:relative;border-radius:18px;overflow:hidden;aspect-ratio:16/9;border:1px solid var(--glass-border);background:rgba(0,0,0,0.3);}
.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
.video-caption{padding:0.9rem 0.2rem 0;font-size:0.85rem;color:var(--ink-300);}

/* --- Forms / booking system --- */
.form-shell{ padding:2.2rem; }
.form-grid{display:grid;grid-template-columns:1fr;gap:1.1rem;}
@media(min-width:700px){ .form-grid.cols-2{grid-template-columns:1fr 1fr;} }
.form-field{display:flex;flex-direction:column;gap:0.45rem;}
.form-field label{font-size:0.8rem;font-weight:600;color:var(--ink-300);letter-spacing:0.02em;}
.form-note{font-size:0.78rem;color:var(--ink-500);margin-top:0.4rem;}
.type-toggle{display:flex;gap:0.6rem;flex-wrap:wrap;margin-bottom:1.6rem;}
.type-toggle button{
  flex:1;min-width:140px;
  background:var(--glass-fill);border:1px solid var(--glass-border);color:var(--ink-300);
  padding:0.85rem 1rem;border-radius:16px;font-weight:600;font-size:0.85rem;cursor:pointer;
  transition:all .2s;font-family:inherit;
}
.type-toggle button.active{background:rgba(242,153,74,0.18);border-color:var(--amber-500);color:var(--gold-400);}
.form-status{
  margin-top:1.2rem;padding:0.9rem 1.1rem;border-radius:14px;font-size:0.88rem;display:none;
}
.form-status.show{display:block;}
.form-status.ok{background:rgba(91,112,72,0.25);border:1px solid rgba(91,112,72,0.6);color:#c8e6b0;}
.form-status.err{background:rgba(180,60,60,0.2);border:1px solid rgba(200,80,80,0.5);color:#ffb3b3;}

/* --- Trust strip --- */
.trust{padding:1.4rem 0;}
.trust-row{display:flex;flex-wrap:wrap;gap:1rem 2.2rem;justify-content:center;align-items:center;font-size:0.8rem;color:var(--ink-300);}
.trust-row span{display:inline-flex;align-items:center;gap:0.5rem;}
.dot{width:6px;height:6px;border-radius:999px;background:var(--gold-400);flex:none;}

/* --- Flight-path divider (signature element) --- */
.flightpath{position:relative;height:80px;}
.flightpath svg{position:absolute;left:0;top:0;width:100%;height:100%;}
.flightpath path{
  fill:none;stroke:var(--amber-500);stroke-width:2;stroke-dasharray:6 10;stroke-linecap:round;
  stroke-dashoffset:600; animation:draw 2.2s ease-out .3s forwards;
}
@keyframes draw{ to{stroke-dashoffset:0;} }
@media (prefers-reduced-motion: reduce){ .flightpath path{animation:none;stroke-dashoffset:0;} }

/* --- CTA band --- */
.cta-band{ text-align:center; padding:3.5rem; }
.cta-band h2{font-size:clamp(1.6rem,3.2vw,2.2rem);margin:0 0 1rem;color:var(--sand-50);}
.cta-band p{color:var(--ink-300);max-width:50ch;margin:0 auto 1.8rem;font-size:1rem;}
.cta-band .btn-row{justify-content:center;}

/* --- Footer --- */
footer{padding:4rem 0 2rem;position:relative;z-index:1;}
.foot-grid{display:grid;grid-template-columns:1fr;gap:2.2rem;margin-bottom:2.6rem;}
@media(min-width:800px){ .foot-grid{grid-template-columns:1.3fr 1fr 1fr;} }
.foot-brand .brand{margin-bottom:0.9rem;}
.foot-brand p{color:var(--ink-300);font-size:0.9rem;line-height:1.6;max-width:32ch;}
.foot-col h4{font-size:0.75rem;letter-spacing:0.14em;text-transform:uppercase;color:var(--amber-400);margin:0 0 1rem;}
.foot-col p, .foot-col a{display:block;color:var(--ink-300);font-size:0.9rem;line-height:1.85;text-decoration:none;}
.foot-col a:hover{color:var(--gold-400);}
.foot-bottom{border-top:1px solid var(--glass-border);padding-top:1.5rem;display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;font-size:0.78rem;color:var(--ink-300);}

/* --- Floating WhatsApp --- */
.wa-float{
  position:fixed;bottom:1.4rem;right:1.4rem;z-index:60;
  background:#25D366;color:#06210f;width:56px;height:56px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 26px -6px rgba(0,0,0,0.5);
  text-decoration:none;font-size:1.55rem;
  animation:pulse 2.6s ease-in-out infinite;
  border:1px solid rgba(255,255,255,0.25);
}
@keyframes pulse{ 0%,100%{box-shadow:0 10px 26px -6px rgba(37,211,102,0.5);} 50%{box-shadow:0 10px 34px -4px rgba(37,211,102,0.85);} }
@media (prefers-reduced-motion: reduce){ .wa-float{animation:none;} }

/* --- Utility --- */
.mt-0{margin-top:0;}
.text-center{text-align:center;margin-left:auto;margin-right:auto;}
.badge{
  display:inline-flex;align-items:center;gap:0.4rem;font-size:0.72rem;font-weight:700;
  padding:0.3rem 0.7rem;border-radius:999px;background:rgba(91,112,72,0.25);color:#bcd9a0;
  border:1px solid rgba(91,112,72,0.5);
}

/* ==========================================================================
   POLISH PASS — noise, light, motion, and form refinement
   ========================================================================== */

/* --- Browser chrome should match the brand, not default to light --- */
:root{ color-scheme: dark; }

/* --- Custom scrollbar (WebKit + Firefox) --- */
html{ scrollbar-width: thin; scrollbar-color: var(--amber-500) rgba(255,255,255,0.06); }
*::-webkit-scrollbar{ width: 10px; height: 10px; }
*::-webkit-scrollbar-track{ background: rgba(255,255,255,0.04); }
*::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, var(--amber-500), var(--gold-400));
  border-radius: 999px; border: 2px solid var(--navy-950);
}
*::-webkit-scrollbar-thumb:hover{ background: var(--gold-400); }

/* --- Selection color, on-brand instead of default blue --- */
::selection{ background: rgba(242,153,74,0.35); color: var(--sand-50); }
::-moz-selection{ background: rgba(242,153,74,0.35); color: var(--sand-50); }

/* --- Anchor scrolling shouldn't hide content under the sticky header --- */
html{ scroll-padding-top: 90px; }

/* --- Subtle film-grain noise over the whole page, on top of the orbs,
   under the glass — this is what separates "flat gradient" from
   "actual glass with texture behind it." Fixed so it doesn't scroll. --- */
body::before{
  content:'';
  position:fixed; inset:0; z-index:0; pointer-events:none;
  opacity:0.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Layered highlight + soft lighting on every glass surface ---
   A bright inset line along the top edge (catches light like real glass),
   a very faint inset border for depth, and a soft radial highlight in the
   top-left corner that fades into nothing — this is the difference between
   "blurred rectangle" and something that reads as an actual physical
   surface. Applied to all three glass primitives at once. */
.glass, .glass-strong, .glass-pill{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 10px 34px -12px rgba(0,0,0,0.45);
  isolation:isolate;
}
.glass::before, .glass-strong::before{
  content:'';
  position:absolute; inset:0; z-index:-1; border-radius:inherit;
  background:radial-gradient(120% 90% at 12% -10%, rgba(255,255,255,0.10), transparent 55%);
  pointer-events:none;
}

/* --- Scroll-reveal states, driven by IntersectionObserver in app.js.
   Elements start hidden/offset; JS adds .in-view when they enter the
   viewport. No layout shift since the offset is a transform, not margin. --- */
.reveal{
  opacity:0; transform:translateY(18px);
  transition:opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in-view{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* --- Floating label input pattern ---
   Markup: <div class="field-float">
             <input class="glass-input" placeholder=" " required>
             <label>Full Name</label>
             <span class="field-icon">…svg…</span>
           </div>
   The placeholder MUST be a single space (not empty) for :placeholder-shown
   to work as the "is this field empty" signal. */
.field-float{ position:relative; }
.field-float .glass-input{ padding-top:1.3rem; padding-bottom:0.5rem; padding-left:2.6rem; }
.field-float label{
  position:absolute; left:2.6rem; top:0.95rem;
  font-size:0.95rem; color:var(--ink-500); pointer-events:none;
  transition:all 0.18s ease; transform-origin:left top;
}
.field-float .glass-input:focus + label,
.field-float .glass-input:not(:placeholder-shown) + label{
  top:0.4rem; font-size:0.68rem; color:var(--amber-400); font-weight:600; letter-spacing:0.02em;
}
.field-float .field-icon{
  position:absolute; left:0.9rem; top:50%; transform:translateY(-50%);
  width:18px; height:18px; color:var(--ink-500); pointer-events:none;
  transition:color 0.18s ease;
}
.field-float .glass-input:focus ~ .field-icon{ color:var(--gold-400); }
.field-float select.glass-input{ padding-left:2.6rem; }
.field-float textarea.glass-input{ padding-top:1.5rem; }
.field-float textarea.glass-input ~ label{ top:1.1rem; }
.field-float textarea.glass-input:focus ~ label,
.field-float textarea.glass-input:not(:placeholder-shown) ~ label{ top:0.4rem; }

/* --- Loading spinner (shown inside a submit button while pending) --- */
.btn .spinner{
  display:none; width:16px; height:16px; border-radius:999px;
  border:2px solid rgba(8,19,33,0.35); border-top-color:var(--navy-950);
  animation:spin 0.7s linear infinite;
}
.btn.is-loading .spinner{ display:inline-block; }
.btn.is-loading .btn-label{ opacity:0.85; }
@keyframes spin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .btn .spinner{ animation-duration:1.4s; } }

/* --- Multi-step progress indicator (Book Now form: type → details → done) --- */
.progress-track{ display:flex; align-items:center; gap:0.5rem; margin-bottom:2rem; }
.progress-step{
  flex:1; height:4px; border-radius:999px; background:rgba(255,255,255,0.1); overflow:hidden; position:relative;
}
.progress-step::after{
  content:''; position:absolute; inset:0; background:linear-gradient(90deg, var(--amber-500), var(--gold-400));
  transform:scaleX(0); transform-origin:left; transition:transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.progress-step.done::after{ transform:scaleX(1); }

/* --- Guest stepper (Book Now form) --- */
.stepper{ display:flex; align-items:center; gap:0; }
.stepper-btn{
  width:44px; height:44px; flex:none; border-radius:12px; border:1px solid var(--glass-border);
  background:var(--glass-fill); color:var(--sand-50); font-size:1.2rem; font-weight:700; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:background .2s, border-color .2s;
}
.stepper-btn:hover{ background:rgba(242,153,74,0.18); border-color:var(--amber-500); }
.stepper-btn:active{ transform:scale(0.95); }
.stepper input[type="number"]{
  width:64px; text-align:center; background:transparent; border:none; color:var(--sand-50);
  font-size:1.1rem; font-weight:700; font-family:inherit; -moz-appearance:textfield;
}
.stepper input[type="number"]::-webkit-outer-spin-button,
.stepper input[type="number"]::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

/* --- Live booking summary card --- */
.booking-summary{
  margin-top:1.6rem; padding:1.4rem 1.5rem; border-radius:16px;
  background:rgba(242,153,74,0.06); border:1px solid rgba(245,192,81,0.2);
}
.booking-summary h4{ font-size:0.78rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--amber-400); margin:0 0 0.9rem; }
.summary-row{ display:flex; justify-content:space-between; align-items:baseline; gap:1rem; padding:0.4rem 0; font-size:0.9rem; color:var(--ink-300); }
.summary-row strong{ color:var(--sand-50); text-align:right; }
.summary-total{ border-top:1px solid rgba(245,192,81,0.2); margin-top:0.5rem; padding-top:0.8rem; }
.summary-total strong{ color:var(--gold-400); font-family:'Fraunces',serif; font-size:1.3rem; }

/* --- Back to top (injected by app.js on every page) --- */
.back-to-top{
  position:fixed; bottom:5.2rem; right:1.4rem; z-index:59;
  width:44px; height:44px; border-radius:999px;
  background:var(--glass-fill-strong); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid var(--glass-border); color:var(--sand-50);
  display:flex; align-items:center; justify-content:center; font-size:1.1rem;
  opacity:0; pointer-events:none; transform:translateY(10px);
  transition:opacity .25s, transform .25s;
}
.back-to-top.show{ opacity:1; pointer-events:auto; transform:translateY(0); }
@media(min-width:1050px){ .back-to-top{ bottom:1.6rem; } }

/* --- Sticky mobile booking bar (injected by app.js, mobile only, not on Book Now itself) --- */
.mobile-book-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:58;
  display:flex; gap:0.7rem; padding:0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  background:rgba(8,19,33,0.9); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  border-top:1px solid var(--glass-border);
}
@media(min-width:1050px){ .mobile-book-bar{ display:none; } }
.mobile-book-bar a{
  flex:1; text-align:center; padding:0.85rem; border-radius:999px; font-weight:700; font-size:0.85rem; text-decoration:none;
}
.mobile-book-bar .mb-primary{ background:var(--amber-500); color:var(--navy-950); }
.mobile-book-bar .mb-ghost{ background:var(--glass-fill); border:1px solid var(--glass-border); color:var(--sand-50); }
/* Give mobile pages breathing room above the fixed bar so content isn't hidden behind it */
@media(max-width:1049px){ body.has-mobile-bar{ padding-bottom:76px; } }

/* --- Success checkmark animation for .form-status.ok --- */
.form-status.ok{ display:flex; align-items:flex-start; gap:0.7rem; }
.form-status .check-badge{
  flex:none; width:22px; height:22px; border-radius:999px;
  background:rgba(91,112,72,0.35); display:flex; align-items:center; justify-content:center;
  margin-top:0.1rem;
}
.form-status .check-badge svg{
  width:13px; height:13px; stroke:#c8e6b0; stroke-width:3; fill:none;
  stroke-dasharray:20; stroke-dashoffset:20;
  animation:draw-check 0.4s ease-out 0.1s forwards;
}
@keyframes draw-check{ to{ stroke-dashoffset:0; } }
@media (prefers-reduced-motion: reduce){ .form-status .check-badge svg{ animation:none; stroke-dashoffset:0; } }

/* --- Better mobile spacing for every form shell --- */
@media (max-width: 640px){
  .form-shell{ padding:1.5rem 1.2rem; border-radius:20px; }
  .form-grid.cols-2{ grid-template-columns:1fr; gap:1rem; }
  .type-toggle{ flex-direction:column; }
  .type-toggle button{ min-width:0; }
  .field-float label{ left:2.4rem; }
  .field-float .field-icon{ left:0.8rem; }
}

/* ==========================================================================
   54-PHOTO SLIDESHOW (Gallery page)
   Uses a blurred, scaled-up copy of the same photo as a full-bleed backdrop,
   with the actual photo shown un-cropped on top (object-fit:contain). This
   is deliberate: most of the source photos are portrait phone shots, and a
   naive object-fit:cover crop was cutting subjects out of frame entirely
   (the "half broken, just grass" bug). This way every photo — portrait or
   landscape — always shows its full, uncropped subject.
   ========================================================================== */
.slideshow-shell{ padding:1.6rem; }
.slideshow-frame{
  position:relative; width:100%; aspect-ratio:4/3; border-radius:16px;
  overflow:hidden; background:var(--navy-950);
}
.slide-fg{
  position:relative; z-index:1; width:100%; height:100%;
  object-fit:cover; object-position:center; display:block;
}
.slide-fg.t-fade{ animation:slide-fade 0.6s ease; }
.slide-fg.t-slide{ animation:slide-in-right 0.5s cubic-bezier(0.16,1,0.3,1); }
.slide-fg.t-zoom{ animation:slide-zoom 0.6s cubic-bezier(0.16,1,0.3,1); }
@keyframes slide-fade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes slide-in-right{ from{ opacity:0; transform:translateX(40px); } to{ opacity:1; transform:translateX(0); } }
@keyframes slide-zoom{ from{ opacity:0; transform:scale(1.08); } to{ opacity:1; transform:scale(1); } }
@media (prefers-reduced-motion: reduce){
  .slide-fg.t-fade, .slide-fg.t-slide, .slide-fg.t-zoom{ animation:none; }
}

.slideshow-controls{
  display:flex; align-items:center; justify-content:center; gap:1rem; margin-top:1.2rem;
}
.slideshow-btn{
  width:40px; height:40px; border-radius:999px; border:1px solid var(--glass-border);
  background:var(--glass-fill); color:var(--sand-50); font-size:1.1rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:background .2s, border-color .2s;
}
.slideshow-btn:hover{ background:rgba(242,153,74,0.18); border-color:var(--amber-500); }
.slideshow-counter{ font-size:0.85rem; color:var(--ink-300); font-variant-numeric:tabular-nums; min-width:70px; text-align:center; }

/* ==========================================================================
   CINEMATIC HOMEPAGE — video hero, floating trust badges, drifting orbs
   ========================================================================== */

/* --- Hero video background --- */
.hero-video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center 55%;
  z-index:0;
}
@media (prefers-reduced-motion: reduce){
  /* Reduced-motion users get the poster frame only — no moving video. */
  .hero-video{ display:none; }
}

/* --- Ambient orbs actually drift now instead of sitting static --- */
.bg-orb.orb-a{ animation: drift-a 22s ease-in-out infinite; }
.bg-orb.orb-b{ animation: drift-b 26s ease-in-out infinite; }
.bg-orb.orb-c{ animation: drift-c 18s ease-in-out infinite; }
@keyframes drift-a{ 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(40px,30px); } }
@keyframes drift-b{ 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(-30px,-40px); } }
@keyframes drift-c{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(20px,-25px) scale(1.08); } }

/* --- Floating trust badges over the hero — real content (actual review
   ratings, actual support hours), not decoration for its own sake --- */
.hero-float{
  position:absolute; z-index:2;
  display:none; /* shown from tablet width up — no room on small phones */
  align-items:center; gap:0.5rem;
  background:var(--glass-fill-strong);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  border:1px solid var(--glass-border);
  border-radius:999px;
  padding:0.7rem 1.1rem;
  font-size:0.8rem; font-weight:600; color:var(--sand-100);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 24px -8px rgba(0,0,0,0.4);
  animation: float-bob 5s ease-in-out infinite;
}
@media(min-width:820px){ .hero-float{ display:inline-flex; } }
.hero-float-a{ top:22%; right:8%; animation-delay:0s; }
.hero-float-b{ bottom:20%; right:14%; animation-delay:1.4s; }
@keyframes float-bob{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-10px); } }
@media (prefers-reduced-motion: reduce){
  .hero-float{ animation:none; }
}
