/* style.css */

/* --- Base / Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: #ffffff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Background image */
  background-image: url("https://res.cloudinary.com/dqwale4xy/image/upload/v1771789451/1000097465_ejvtft.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  /* Improve text rendering */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Optional overlay for readability (remove if you want it raw) */
.page-overlay {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 520px; /* keeps everything nicely centered on desktop */
  text-align: center;
}

/* Logo */
.logo {
  width: min(320px, 80vw);
  height: auto;
  display: block;
  margin: 0 auto 14px auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* Title */
.title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(24px, 4vw, 32px);
  margin: 8px 0 18px 0;
  letter-spacing: 0.2px;
  color: #000000;
}

/* --- Button stack --- */
.button-stack {
  display: flex;
  flex-direction: column;
  gap: 16px; /* spacing between buttons */
  padding: 8px 0 0 0;
}

/* Make the anchor behave like a button */
.menu-btn {
  display: block;
  text-decoration: none;
  border-radius: 18px; /* helps if your PNG has rounded edges */
  overflow: hidden;    /* ensures hover shadow doesn't show weird edges */
  transform: translateZ(0);
  transition: transform 160ms ease, filter 160ms ease;
  outline: none;
}

/* Button images */
.menu-btn img {
  width: 100%;
  height: auto;
  display: block; /* removes white gaps/inline spacing around images */
  user-select: none;
  -webkit-user-drag: none;

  /* Soft shadow for contrast on busy backgrounds */
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
  transition: transform 160ms ease, filter 160ms ease;
}

/* Hover animation */
.menu-btn:hover img {
  transform: scale(1.03);
  filter: drop-shadow(0 14px 26px rgba(0,0,0,0.45));
}

/* Click / active animation */
.menu-btn:active img {
  transform: scale(0.98);
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.30));
}

/* Keyboard focus (accessible) */
.menu-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.85);
}

/* --- Simple subpage styles --- */
.subnav {
  margin-top: 18px;
}

.back-link {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  transition: transform 160ms ease, background 160ms ease;
}

.back-link:hover {
  transform: translateY(-1px);
  background: rgba(0,0,0,0.45);
}

.back-link:active {
  transform: translateY(0px) scale(0.99);
}

/* Mobile tuning */
@media (max-width: 420px) {
  .button-stack {
    gap: 14px;
  }
}

/* =========================
   Subpage Layout (Menus)
   ========================= */

.subpage {
  background: #fbf6ee;
  color: #111;
  font-family: system-ui, Arial, sans-serif;
}

.sub-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.sub-wrap a {
  color: inherit;
}

.sub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sub-back {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.sub-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,.10);
}

.sub-back:active {
  transform: translateY(0px) scale(0.99);
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.sub-title {
  margin: 0;
  font-size: 20px;
  text-align: center;
}

.sub-spacer {
  width: 64px; /* keeps the title visually centered */
}

.sub-menu {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.sub-menu img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Sunshine Menu Buttons
   ========================= */

.sn-buttons{
  max-width: 540px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 16px;
}

.sn-button{
  display: block;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.sn-button img{
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.35));
  transition: transform 0.15s ease, filter 0.15s ease;
}

/* Subtle hover effect (desktop) */
.sn-button:hover{
  transform: translateY(-3px);
}

/* Subtle tap effect (mobile) */
.sn-button:active{
  transform: scale(0.98);
  filter: brightness(0.98);
}
/* =========================
   Themed Subpages (match index)
   ========================= */

.subpage{
  /* Use the same background as the index page */
  background-image: url("https://res.cloudinary.com/dqwale4xy/image/upload/v1771789451/1000097465_ejvtft.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #111;
}

.subpage-overlay{
  min-height: 100vh;
  width: 100%;
  background: rgba(0,0,0,0.18); /* slight dark overlay for contrast */
  padding: 18px 16px 40px;
}

.sub-wrap{
  max-width: 980px;
  margin: 0 auto;
}

.sub-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sub-back{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,.08);
  text-decoration:none;
  color:#111;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.sub-back:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  background: rgba(255,255,255,0.92);
}

.sub-back:active{
  transform: scale(0.98);
}

.sub-title{
  margin:0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 28px);
  color: #ffffff; /* title on the darker overlay */
  text-shadow: 0 6px 16px rgba(0,0,0,0.35);
  text-align:center;
}

.sub-spacer{ width: 64px; }

/* The menu card */
.menu-card{
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  backdrop-filter: blur(8px);
}

/* Menu header inside the card */
.menu-card-header{
  padding: 18px 18px 10px;
  text-align: center;
}

.menu-card-header .script{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 26px;
  margin: 0;
  color: #111;
}

.menu-card-header .subtext{
  margin: 6px 0 0;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  text-transform: uppercase;
}

/* Menu list */
.menu-list{
  list-style: none;
  padding: 6px 22px 20px;
  margin: 0;
  display: grid;
  gap: 10px;
}

.menu-item{
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

/* Optional: add the photo version at the bottom */
.menu-photo{
  border-top: 1px solid rgba(0,0,0,0.06);
}

.menu-photo img{
  width: 100%;
  height: auto;
  display: block;
}
/* Shakes menu image */
.menu-image-card{
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 16px 40px;
}

.menu-image-card img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.22);
}
/* On mobile, shrink it slightly */
@media (max-width: 600px){
  .menu-image-card img{
    max-width: 92%;   /* makes it smaller than full screen */
  }
}
/* =========================
   Loaded Teas Menu Stack
   ========================= */

.menu-stack{
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 16px 40px;

  display: flex;
  flex-direction: column;
  gap: 28px;        /* spacing between pages */
}

.menu-stack img{
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: block;

  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.22);
}

/* Slightly smaller on mobile */
@media (max-width: 600px){
  .menu-stack{
    gap: 20px;
  }

  .menu-stack img{
    max-width: 95%;
  }
}

/* Flower Overlay (behind content, doesn't block clicks) */
.flower-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* Keep content above overlay */
.page-overlay, .container {
  position: relative;
  z-index: 2;
}

/* Base particle */
.flower-overlay span {
  position: absolute;
  will-change: transform;
}

/* Full flower PNG */
.flower-overlay .flower {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.55;                 /* MORE visible */
  image-rendering: auto;         /* keep crisp */
  filter: var(--tint, none);
  animation: fallFun linear infinite;
}

/* Tiny petals (CSS-only) */
.flower-overlay .petal {
  border-radius: 999px;
  opacity: 0.70;                 /* MORE visible */
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, rgba(255,143,205,1), rgba(255,221,87,1));
  transform: rotate(var(--rot, 0deg));
  animation: fallPetal linear infinite;
}

/* Confetti dot */
.flower-overlay .dot {
  border-radius: 999px;
  opacity: 0.65;                 /* MORE visible */
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0) 55%),
    var(--dotColor, #ffd45a);
  animation: fallDot linear infinite;
}

/* DOWNWARD animations */
@keyframes fallFun {
  from { transform: translate3d(0, -30vh, 0) rotate(0deg); }
  to   { transform: translate3d(var(--drift, 0vw), 140vh, 0) rotate(420deg); }
}

@keyframes fallPetal {
  from { transform: translate3d(0, -30vh, 0) rotate(var(--rot, 0deg)); }
  to   { transform: translate3d(var(--drift, 0vw), 140vh, 0) rotate(calc(var(--rot, 0deg) + 600deg)); }
}

@keyframes fallDot {
  from { transform: translate3d(0, -30vh, 0); }
  to   { transform: translate3d(var(--drift, 0vw), 140vh, 0); }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .flower-overlay span { animation: none !important; opacity: 0.18; }
}
/* --- Splash Screen --- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;

  /* Sunrise gradient background */
  background: radial-gradient(1200px 800px at 20% 15%, rgba(255,255,255,0.85), transparent 60%),
              radial-gradient(900px 600px at 80% 25%, rgba(255, 220, 140, 0.55), transparent 55%),
              radial-gradient(900px 700px at 40% 85%, rgba(255, 170, 210, 0.35), transparent 60%),
              linear-gradient(135deg, #fff4cf 0%, #ffd3e6 35%, #d8f2ff 70%, #f2fff2 100%);

  opacity: 1;
  pointer-events: auto;
  transition: opacity 700ms ease;
}

.splash-card {
  width: min(680px, 100%);
  border-radius: 22px;
  padding: 28px 22px;
  text-align: center;

  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);

  animation: splashPop 650ms ease both;
}

.splash-logo{
  width: clamp(140px, 22vw, 260px); /* responsive but capped */
  max-width: 260px;                 /* hard cap for big screens */
  height: auto;
  display: block;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18));
}

.splash-quote {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.15;
  margin: 6px 0 10px;
}

.splash-author {
  margin: 0;
  opacity: 0.78;
  font-size: 14px;
}

.splash--hide {
  opacity: 0;
  pointer-events: none;
}

/* Optional: prevent scroll while splash is up */
body.splash-lock {
  overflow: hidden;
}

/* subtle motion */
@keyframes splashPop {
  from { transform: translateY(10px) scale(0.985); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Sparkly overlay (lightweight, CSS-only) */
.splash::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.95) 0 1.2px, transparent 1.7px),
    radial-gradient(circle, rgba(255,255,255,0.55) 0 1px, transparent 1.5px);
  background-size: 160px 160px, 280px 280px;
  animation: splashFloat 14s linear infinite;
}

@keyframes splashFloat {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-6%, 10%, 0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .splash,
  .splash-card,
  .splash::after {
    animation: none !important;
    transition: none !important;
  }
}
/* Force readable splash text (override any global styles) */
.splash .splash-quote,
.splash .splash-author {
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a !important; /* fixes some weird overrides */
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

.splash .splash-author {
  opacity: 0.85; /* keep readable */
}