/* =====================================================================
   Natural Oasis Day Spa: frosted-glass cards with gentle 3D hover
   Same palette (forest, cedar, blush, sea mist, white). Loaded last.
   ===================================================================== */

:root {
  --glass-light: rgba(255, 255, 255, 0.58);
  --glass-light-strong: rgba(255, 255, 255, 0.74);
  --glass-light-edge: rgba(255, 255, 255, 0.85);
  --glass-dark: rgba(238, 231, 220, 0.07);
  --glass-dark-strong: rgba(238, 231, 220, 0.11);
  --glass-dark-edge: rgba(238, 231, 220, 0.22);
  --glass-blur: blur(18px) saturate(150%);
  --glass-radius: 26px;
  --glass-shadow-light: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 40px -22px rgba(15, 38, 31, 0.35), 0 4px 12px -6px rgba(15, 38, 31, 0.12);
  --glass-shadow-dark: 0 1px 0 rgba(238, 231, 220, 0.16) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  --tilt-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Ambient glow behind the glass ---------- */
.light, .sand, .menu-page { position: relative; isolation: isolate; }
.light::before, .sand::before, .menu-page::before, .section:not(.light):not(.sand)::before, .cedar-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.light::before, .menu-page::before {
  background:
    radial-gradient(38rem 26rem at 8% 12%, rgba(168, 189, 181, 0.38), transparent 70%),
    radial-gradient(30rem 22rem at 92% 30%, rgba(226, 179, 163, 0.26), transparent 70%),
    radial-gradient(36rem 26rem at 70% 96%, rgba(125, 176, 70, 0.12), transparent 70%);
}
.menu-page { background: #e7eeea; }
.sand::before {
  background:
    radial-gradient(34rem 24rem at 90% 10%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(30rem 22rem at 6% 90%, rgba(226, 179, 163, 0.22), transparent 70%);
}
.section:not(.light):not(.sand)::before, .cedar-bg::before {
  background:
    radial-gradient(40rem 28rem at 12% 20%, rgba(125, 176, 70, 0.10), transparent 70%),
    radial-gradient(34rem 26rem at 88% 70%, rgba(226, 179, 163, 0.09), transparent 70%);
}
.section:not(.light):not(.sand), .cedar-bg { isolation: isolate; }

/* ---------- Shared glass surfaces ---------- */
.glass-l, .light .cat-card,
.menu-page .menu-cat, .aside-card, .faq-cta, .step, .em-products figure,
.cat-figure, .notice:not(.menu-page .notice) {
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-light-edge);
  box-shadow: var(--glass-shadow-light);
}

.glass-d, .offer, .gift-option, .gift-band, .em-stats > div, .em-pillars li, .menu-page .notice {
  background: var(--glass-dark);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-dark-edge);
  box-shadow: var(--glass-shadow-dark);
}

/* Header becomes frosted glass */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px -20px rgba(15, 38, 31, 0.35);
}
.site-header .brand img { mix-blend-mode: multiply; }
.menu-nav:not(.menu-nav-dark) { background: rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.menu-nav-dark { background: rgba(15, 38, 31, 0.82); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
@media (max-width: 960px) {
  .main-nav { background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
}

/* ---------- Packages: separate floating glass cards ---------- */
.offer-grid { border: 0; border-radius: 0; gap: 22px; }
@media (min-width: 641px) { .offer-grid { overflow: visible; } }
@media (max-width: 640px) { .offer-grid { overflow-x: auto; overflow-y: hidden; padding-block: 6px 18px; } }
.offer { border-radius: var(--glass-radius); border-right: 1px solid var(--glass-dark-edge); padding: 28px 22px 22px; }
.offer:last-child { border-right: 1px solid var(--glass-dark-edge); }
.offer .photo { border-radius: 16px; }
@media (max-width: 900px) and (min-width: 641px) {
  .offer { border-bottom: 1px solid var(--glass-dark-edge); }
  .offer-grid { gap: 18px; }
}

/* ---------- Treatment & gift-pick cards ---------- */
.cat-card { border-radius: var(--glass-radius); padding: 10px 10px 18px; }
.cat-card h3, .cat-card .from, .cat-card .chip-btn { margin-inline: 8px; }
.cat-card .chip-btn { width: calc(100% - 16px); }
.cat-card .photo { border-radius: 200px 200px 16px 16px; }
@media (max-width: 640px) { .cat-grid.five > :nth-child(5) .photo { border-radius: 20px; } }

/* ---------- Eminence ---------- */
.em-products figure { border-radius: 22px; background: rgba(255, 255, 255, 0.9); }
.em-stats > div { border-radius: 20px; }
.em-pillars li { border-radius: 999px; }

/* ---------- Gifts ---------- */
.gift-option, .gift-band { border-radius: var(--glass-radius); }
.gift-option .card-art { border-radius: 18px; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.6); }

/* ---------- Spa menu panels ---------- */
.menu-page .menu-cat { background: rgba(255, 255, 255, 0.66); }
.menu-page .menu-item:hover { background: rgba(255, 255, 255, 0.7); box-shadow: 0 10px 24px -16px rgba(15, 38, 31, 0.35); }

/* ---------- Booking, FAQ, steps ---------- */
.aside-card { border-radius: 22px; }
.faq-cta { border-radius: var(--glass-radius); }
.step { border-radius: 22px; border-top: 1px solid var(--glass-light-edge); padding: 26px 24px; }
.steps { gap: 18px; }
.faq details { padding-inline: 4px; }

/* ---------- Dialogs and cart as glass sheets ---------- */
dialog { background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); border: 1px solid rgba(255, 255, 255, 0.9); }
dialog::backdrop { background: rgba(10, 24, 19, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cart-foot { background: rgba(228, 235, 231, 0.75); }
.choice span { background: rgba(255, 255, 255, 0.7); }
.field input, .field textarea, .field select { background: rgba(255, 255, 255, 0.8); }

/* ---------- Glass buttons ---------- */
.btn-outline { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.light .btn-outline, .sand .btn-outline { background: rgba(255, 255, 255, 0.45); }
.btn-primary { box-shadow: 0 10px 24px -12px rgba(212, 154, 134, 0.8), 0 1px 0 rgba(255, 255, 255, 0.5) inset; }
.btn-dark { box-shadow: 0 10px 24px -14px rgba(15, 38, 31, 0.8); }

/* ---------- 3D hover tilt (driven by main.js) ---------- */
[data-tilt] {
  --rx: 0deg; --ry: 0deg; --lift: 0px; --mx: 50%; --my: 50%; --glint: 0;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform 500ms var(--tilt-ease), box-shadow 500ms var(--tilt-ease);
  will-change: transform;
  position: relative;
}
[data-tilt].is-tilting { transition: transform 120ms linear, box-shadow 300ms var(--tilt-ease); }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(22rem 16rem at var(--mx) var(--my), rgba(255, 255, 255, 0.28), transparent 60%);
  opacity: var(--glint); transition: opacity 400ms var(--tilt-ease); mix-blend-mode: soft-light;
}
.offer[data-tilt]::after, .gift-option[data-tilt]::after, .gift-band[data-tilt]::after, .em-stats > div[data-tilt]::after {
  background: radial-gradient(22rem 16rem at var(--mx) var(--my), rgba(238, 231, 220, 0.16), transparent 60%);
  mix-blend-mode: normal;
}
[data-tilt].is-tilting.glass-hover-l, .light [data-tilt].is-tilting {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 34px 60px -28px rgba(15, 38, 31, 0.45), 0 8px 18px -10px rgba(15, 38, 31, 0.18);
}
/* Inner content floats slightly above the card for real depth */
[data-tilt] > .photo, [data-tilt] > figure, [data-tilt] > img { transform: translateZ(26px); transition: transform 500ms var(--tilt-ease); }
[data-tilt] > h3, [data-tilt] > .price, [data-tilt] > .offer-foot { transform: translateZ(14px); }

/* Touch screens: a soft press instead of tilt */
@media (hover: none) {
  [data-tilt] { transform: none; }
  [data-tilt]:active { transform: scale(0.985); }
  [data-tilt] > .photo, [data-tilt] > figure, [data-tilt] > img, [data-tilt] > h3, [data-tilt] > .price, [data-tilt] > .offer-foot { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-tilt], [data-tilt] > * { transform: none !important; transition: none !important; }
  [data-tilt]::after { display: none; }
}

/* Browsers without backdrop-filter: keep it readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .light .cat-card, .menu-page .menu-cat, .aside-card, .faq-cta, .step, .cat-figure { background: rgba(255, 255, 255, 0.92); }
  .offer, .gift-option, .gift-band, .em-stats > div { background: rgba(30, 64, 52, 0.92); }
  .site-header { background: #fff; }
}

/* Cards that also fade in on scroll: keep the tilt after they arrive */
[data-tilt].reveal.in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)); transition: opacity 800ms var(--ease-out), transform 500ms var(--tilt-ease), box-shadow 500ms var(--tilt-ease); }
[data-tilt].reveal.in.is-tilting { transition: opacity 800ms var(--ease-out), transform 120ms linear, box-shadow 300ms var(--tilt-ease); }

/* Eminence: one clean product photo, short copy */
.em-products { grid-template-columns: 1fr !important; }
.em-products .em-hero { background: #fff; border: 0; padding: 0; }
.em-products .em-hero img { aspect-ratio: 1 / 1; padding: 6%; }
.em-copy { gap: 20px; max-width: 520px; }
.em-copy .lede { font-size: 1.2rem; }
.em-copy .em-pillars { margin: 0; }
.em-copy .em-stats { margin: 4px 0; }
@media (max-width: 900px) { .em-products .em-hero img { aspect-ratio: 4 / 3; padding: 4%; } }

/* ---------- Numbers & prices: clean lining figures ---------- */
.offer .price, .menu-item .price, .em-stats dd, .cart-total strong, .add-price, .cart-line .p,
.cat-card .from, .step::before {
  font-family: var(--font-body);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-style: normal;
}
.offer .price { font-size: 1.75rem; font-weight: 400; letter-spacing: 0.01em; }
.menu-item .price { font-size: 1.3rem; font-weight: 500; letter-spacing: 0.01em; }
.em-stats dd { font-size: 2.2rem; font-weight: 300; letter-spacing: 0.01em; line-height: 1.1; }
.em-stats dd span { font-size: 1rem; font-weight: 400; letter-spacing: 0.04em; margin-left: 2px; }
.cart-total strong { font-size: 1.6rem; font-weight: 500; }
.add-price { font-size: 1.5rem !important; font-weight: 500; }
.cart-line .p { font-weight: 500; }
.step::before { font-size: 1.5rem; font-weight: 300; letter-spacing: 0.06em; }
@media (max-width: 640px) {
  .offer .price { font-size: 1.5rem; }
  .menu-item .price { font-size: 1.15rem; }
  .em-stats dd { font-size: 1.8rem; }
}

/* Hero melts into the packages section instead of ending on a hard edge */
.hero-video .hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 42%; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(15, 38, 31, 0) 0%,
    rgba(15, 38, 31, 0.35) 35%,
    rgba(15, 38, 31, 0.78) 70%,
    var(--forest) 100%);
}
@media (max-width: 640px) { .hero-video .hero-bg::after { height: 34%; } }

/* ---------- Spa menu readability ---------- */
/* Info notice: solid deep green so its light text reads clearly */
.menu-page .notice {
  background: var(--forest-2);
  border: 1px solid rgba(238, 231, 220, 0.14);
  color: var(--on-dark);
  box-shadow: 0 14px 30px -18px rgba(15, 38, 31, 0.6);
}
.menu-page .notice a { color: var(--blush); }
.menu-page .notice svg { color: var(--blush); }

/* Treatment rows: a soft sage tint on hover instead of white */
.menu-page .menu-item:hover { background: rgba(168, 189, 181, 0.22); box-shadow: inset 0 0 0 1px rgba(168, 189, 181, 0.35); }

/* Service names a touch bolder; prices slightly softened */
.menu-item .name { font-weight: 600; letter-spacing: 0.005em; }
.menu-page .menu-item .price { color: #8a4f3d; opacity: 0.82; }

/* New transparent PNG logo: no blending needed */
.brand img, .site-header .brand img, .footer-badge img, .gift-option .card-art .badge img { mix-blend-mode: normal; }
.brand img { height: 60px; }
@media (max-width: 640px) { .brand img { height: 44px; } }
