@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =====================================================================
   PLUGBOOK — "LIVING RAINFOREST SPA SANCTUARY" THEME LAYER
   Pure skin + ambience. No layout, copy, or behavior changes.
   Works entirely by overriding the prototype's :root variables and
   surface styles; botanical / dew / ripple layers are injected by
   theme.js into .rf-canopy. Load AFTER each page's inline <style>.
   ===================================================================== */

:root{
  /* Canopy base */
  --bg:#06110D;              /* deep rainforest canopy emerald-black */
  --bg2:#081A12;             /* mossy jade shadow */
  /* Text — kept bright cream for sunlight readability */
  --cream:#F7F3EA;
  --muted:rgba(240,245,235,.76);
  --faint:rgba(240,245,235,.54);
  /* Warm champagne / rose-gold accents */
  --rose:#E5B89B;
  --rose-soft:#F8DEC7;
  --rose-deep:#C98A68;
  --rose-grad:linear-gradient(135deg,#FAE4CC 0%,#E5B89B 48%,#BE7F4F 100%);
  /* Bioluminescent mist chrome */
  --chrome-grad:linear-gradient(180deg,#FFFFFF 0%,#E2EFE4 38%,#9DBBA6 55%,#F0F7F1 78%,#B5CCBA 100%);
  /* Frosted mist glass — deliberately DEEPENED past the spec's 0.65:
     on a phone in bright light, prices / deposits / policy text must
     pop unmistakably. Contrast wins over glassiness. */
  --glass:rgba(7,22,15,.85);
  --glass2:rgba(13,32,23,.90);
  --line:rgba(216,238,222,.16);
  --line-rose:rgba(229,184,155,.48);
  /* Typography */
  --serif:'Cormorant Garamond','Playfair Display',Georgia,'Times New Roman',serif;
  --sans:'Plus Jakarta Sans','Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  /* Dashboard status green, lifted for the dark canopy */
  --green:#A9ECBF;
}

html{background:#051812}
body{background-color:transparent}

/* Canopy light — soft jade pools + faint bioluminescent mist.
   Kept dim on purpose so the glow can never wash out card text. */
body::before{
  background:
    radial-gradient(760px 480px at 85% -5%, rgba(58,138,102,.20), transparent 60%),
    radial-gradient(680px 540px at -10% 30%, rgba(24,84,58,.24), transparent 62%),
    radial-gradient(900px 620px at 50% 115%, rgba(110,215,165,.07), transparent 60%),
    radial-gradient(460px 320px at 68% 42%, rgba(150,255,200,.045), transparent 70%);
}

/* ---------- Frosted mist glass surfaces ---------- */
.card,.svc,.checkout,.policies,.confirm,.mini-service,.date,.slot,.tab{
  backdrop-filter:blur(16px) saturate(1.15);
  -webkit-backdrop-filter:blur(16px) saturate(1.15);
  box-shadow:inset 0 1px 0 rgba(235,255,242,.09), 0 12px 30px rgba(0,0,0,.30);
}
.svc.selected{background:rgba(229,184,155,.12)}
.mini-service.selected{background:rgba(229,184,155,.13)}
.receipt{background:rgba(3,12,8,.58)}
.field input,.field select,.day-row input[type="time"]{background:rgba(3,12,8,.55)}
.field select option{background:#0C1F18}
.blocked-item{background:rgba(3,12,8,.5)}
.mini-foot{background:rgba(8,24,17,.55)}
.mini-head{background:radial-gradient(300px 130px at 50% -30px, rgba(120,220,170,.15), transparent 70%)}
.studio .ig{background:rgba(229,184,155,.08)}
.studio .ig:hover{background:rgba(229,184,155,.16)}

/* Hardcoded dark surfaces in the prototype -> deep emerald */
.offer-in,.sub-banner .in{background:linear-gradient(180deg,#0E2A1D,#081A12)}
header{background:rgba(6,17,13,.86)}
.bottomnav{background:rgba(6,17,13,.94)}
.toast{background:#0A2115}
.phone{background:linear-gradient(160deg,#2A4A38,#0A1F15 30%,#1D3D2A 70%,#06110D);
  box-shadow:0 40px 90px rgba(0,0,0,.65),0 0 60px rgba(90,200,150,.10)}
.earn,.link-card{background:linear-gradient(150deg,rgba(229,184,155,.16),rgba(16,40,28,.35) 55%)}
.confirm{box-shadow:0 0 50px rgba(120,220,170,.10)}

/* ---------- Typography ---------- */
/* Cormorant Garamond runs lighter than Georgia — hold the presence. */
.hero h1,.features h2,.preview-sec h2,.final-cta h2,.studio h1,.greeting h1{font-weight:700}
.studio h1{font-size:1.92rem}
@media (max-width:480px){.studio h1{font-size:1.66rem}}
/* Prices & money figures: crisp sans, bold — sunlight-first. */
.svc .price,.mini-service .sprice,.breakdown .row.due span:last-child,.earn .amt{
  font-family:var(--sans);font-weight:800;letter-spacing:.01em}
.earn .amt{font-size:2.3rem}

/* ---------- Botanical canopy (injected by theme.js) ---------- */
.rf-canopy{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.rf-dew{position:absolute;inset:0;width:100%;height:100%;display:block}
.rf-leaf{position:absolute;will-change:transform}
.rf-leaf svg{display:block;width:100%;height:auto;filter:drop-shadow(0 12px 26px rgba(0,0,0,.5))}
.rf-sway{animation:leafSway 8s ease-in-out infinite alternate;transform-origin:50% 0;will-change:transform}
.rf-sway.slow{animation-duration:11s}
.rf-sway.fast{animation-duration:6.5s}
@keyframes leafSway{
  from{transform:rotate(-2.1deg) translateX(0)}
  to  {transform:rotate(2.5deg) translateX(6px)}
}
/* Leaf placements — frame the viewport, never the content column. */
.rf-l1{top:-34px;left:-46px;width:300px;opacity:.95}
.rf-l2{top:-44px;right:-54px;width:330px;opacity:.95}
.rf-l3{top:34%;left:-78px;width:225px;opacity:.5}
.rf-l4{top:40%;right:-86px;width:245px;opacity:.45}
.rf-l5{bottom:-56px;left:-34px;width:265px;opacity:.55}
.rf-l6{bottom:-64px;right:-44px;width:285px;opacity:.5}
@media (max-width:640px){
  .rf-l1{width:185px;left:-38px;top:-22px}
  .rf-l2{width:195px;right:-44px;top:-26px}
  .rf-l3,.rf-l4{display:none}
  .rf-l5{width:175px;bottom:-40px}
  .rf-l6{width:185px;bottom:-44px}
}

/* ---------- Water-ripple micro-interaction ---------- */
.svc,.mini-service,.date,.slot,.tab,.pay-btn,.mini-book{position:relative;overflow:hidden}
.rf-ripple{position:absolute;z-index:3;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(228,252,236,.50) 0%,rgba(185,240,208,.22) 42%,rgba(185,240,208,0) 68%);
  transform:translate(-50%,-50%) scale(0);opacity:.9;
  animation:rfRipple .65s ease-out forwards}
@keyframes rfRipple{
  to{transform:translate(-50%,-50%) scale(1);opacity:0}
}

/* ---------- Ambient spa audio toggle (booking.html, via theme.js) ---------- */
.rf-audio-toggle{position:fixed;top:70px;right:12px;z-index:80;
  display:inline-flex;align-items:center;gap:7px;
  padding:9px 15px;border-radius:999px;cursor:pointer;
  border:1px solid var(--line-rose);color:var(--cream);
  background:rgba(7,22,15,.82);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  font-family:var(--sans);font-size:.78rem;font-weight:600;
  box-shadow:inset 0 1px 0 rgba(235,255,242,.12),0 10px 26px rgba(0,0,0,.38);
  transition:border-color .2s,color .2s}
.rf-audio-toggle[aria-pressed="true"]{border-color:var(--rose);color:var(--rose-soft)}
@media (max-width:480px){
  .rf-audio-toggle{top:64px;right:10px;font-size:.72rem;padding:8px 12px}
}

/* ---------- Reduced motion: sanctuary goes still ---------- */
@media (prefers-reduced-motion: reduce){
  .rf-sway{animation:none}
  .rf-ripple{display:none}
}

/* =====================================================================
   RAINFOREST IN THE RAIN — photo backdrop + falling rain + wet glass
   (Nayla's spec, Dec 2026 — supersedes the solid-canopy body background)
   The macro leaf photo lives in Supabase Storage (public bucket
   "site-assets"). The backdrop is position:fixed at z-index:-1 with
   pointer-events:none, so every button and time slot stays tappable.
   ===================================================================== */
.rainforest-backdrop{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  overflow:hidden;
  background-color:#051812;
  background-image:
    linear-gradient(rgba(4,18,14,0.55), rgba(4,18,14,0.8)),
    url('https://glufmyojuhkevctktnex.supabase.co/storage/v1/object/public/site-assets/rainforest-macro-leaf.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* Radial vignette layered over the tinted photo */
.rainforest-vignette{
  position:absolute;
  inset:0;
  background:radial-gradient(
    circle at center,
    rgba(6,26,20,0.45) 0%,
    rgba(4,16,12,0.82) 100%
  );
}

/* Base rain layer */
.rain-layer{
  position:absolute;
  inset:-100% 0 0 0;
  background-repeat:repeat;
  transform:rotate(8deg); /* slight natural wind angle */
}

/* Distant, softer rain streaks */
.rain-back{
  background-image:
    radial-gradient(1px 18px at 20px 30px, rgba(255,255,255,0.16), transparent),
    radial-gradient(1px 24px at 90px 110px, rgba(255,255,255,0.12), transparent),
    radial-gradient(1px 16px at 160px 60px, rgba(255,255,255,0.15), transparent);
  background-size:200px 220px;
  animation:rainfall 1.4s linear infinite;
}

/* Closer, sharper rain streaks — 300px tile height matches the
   keyframe travel so the loop is seamless */
.rain-front{
  background-image:
    radial-gradient(1.5px 28px at 45px 50px, rgba(255,255,255,0.28), transparent),
    radial-gradient(1.5px 34px at 135px 150px, rgba(255,255,255,0.22), transparent),
    radial-gradient(1px 22px at 210px 90px, rgba(200,255,235,0.25), transparent);
  background-size:260px 300px;
  animation:rainfall 0.85s linear infinite;
}

@keyframes rainfall{
  0%{transform:translateY(0) rotate(8deg)}
  100%{transform:translateY(300px) rotate(8deg)}
}

/* Wet-glass panels — Founding banner, feature cards, booking card */
.wet-glass-card{
  background:rgba(8,28,22,0.72);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.22);
  border-radius:16px;
}
/* The booking widget keeps the phone screen's own rounder corners */
.phone-screen.wet-glass-card{border-radius:36px}

/* Subtle water-droplet accent along the booking card's top edge */
.wet-glass-drops::after{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:18px;
  pointer-events:none;
  opacity:.5;
  background-image:
    radial-gradient(3px 5px at 14px 5px, rgba(225,255,240,.55), rgba(225,255,240,0) 70%),
    radial-gradient(2px 4px at 58px 3px, rgba(225,255,240,.4), rgba(225,255,240,0) 70%),
    radial-gradient(4px 6px at 104px 6px, rgba(225,255,240,.5), rgba(225,255,240,0) 70%),
    radial-gradient(2px 3px at 148px 4px, rgba(225,255,240,.35), rgba(225,255,240,0) 70%);
  background-size:180px 18px;
  background-repeat:repeat-x;
}

/* Respect mobile battery / accessibility settings */
@media (prefers-reduced-motion: reduce){
  .rain-layer{animation:none}
}
