/* ============================================================
   Sugared Dreams Coffee — main stylesheet
   Dreamy celestial theme. Mobile-first. Uses tokens.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
/* JS drives smooth scrolling (eased, controlled speed), so keep CSS instant. */
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sd-font-body);
  font-size: var(--sd-body);
  line-height: 1.65;
  color: var(--sd-text);
  background: var(--sd-night);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--sd-font-display); line-height: 1.05; font-weight: 900; margin: 0; }
p { margin: 0 0 1rem; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--sd-magenta); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sd-pink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Fixed night-sky background ---------- */
.skyfield {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, #4A1877 0%, #2A0B47 45%, #16052a 100%);
}
.stars { position: absolute; inset: 0; }
.star {
  position: absolute; background: #fff; border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,.6);
  animation: twinkle var(--d, 3s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

.moon {
  position: absolute; top: 8%; right: 10%; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FDF3FA, #F9B6D8 60%, #E77FBB);
  box-shadow: 0 0 60px 14px rgba(249,182,216,.35), inset -14px -10px 0 rgba(120,40,120,.18);
  opacity: 0; transform: translateY(-12px) scale(.9);
  transition: opacity 1.1s ease, transform 1.1s var(--sd-ease);
}
.moon.is-in { opacity: .55; transform: none; }
@media (prefers-reduced-motion: reduce) { .moon { transition: none; } }
.cloud {
  position: absolute; border-radius: 50%; filter: blur(28px);
  background: radial-gradient(circle, rgba(168,110,220,.4), rgba(120,50,150,0) 70%);
  animation: drift linear infinite;
}
.cloud--1 { width: 380px; height: 200px; top: 22%; left: -8%; animation-duration: 70s; }
.cloud--2 { width: 300px; height: 160px; top: 58%; right: -6%; background: radial-gradient(circle, rgba(242,111,178,.28), rgba(242,111,178,0) 70%); animation-duration: 90s; animation-direction: reverse; }
.cloud--3 { width: 460px; height: 240px; top: 78%; left: 20%; animation-duration: 110s; }
@keyframes drift { 0% { transform: translateX(-40px); } 50% { transform: translateX(40px); } 100% { transform: translateX(-40px); } }

/* ---------- Shooting stars ---------- */
.shooting-layer { position: absolute; inset: 0; overflow: hidden; }
.shooting-star {
  position: absolute; height: 2px; width: clamp(90px, 12vw, 150px); border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,253,249,.15) 40%, rgba(255,255,255,.95));
  filter: drop-shadow(0 0 6px rgba(249,182,216,.7));
  opacity: 0; will-change: transform, opacity;
  animation: shoot 1.1s ease-out forwards;
}
@keyframes shoot {
  0%   { opacity: 0; transform: rotate(var(--ang, 20deg)) translateX(-50px) scaleX(.35); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--ang, 20deg)) translateX(240px) scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .shooting-layer { display: none; } }

/* Nav logo floats on desktop only; stays still on mobile
   (.nav prefix raises specificity so it wins over the base .brand__mark rule) */
@media (max-width: 899px) { .nav .brand__mark { animation: none !important; } }

/* ---------- Layout helpers ---------- */
.section { max-width: var(--sd-maxw); margin: 0 auto; padding: clamp(3.5rem, 9vw, 7rem) var(--sd-gutter); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.section__head h2, .insta__head h2, .book__copy h2, .showcase__caption h2 { font-size: var(--sd-h2); }
.section__note { color: var(--sd-text-muted); margin-top: .75rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 800;
  color: var(--sd-pink); margin: 0 0 .9rem; font-family: var(--sd-font-body);
}
.grad {
  background: linear-gradient(100deg, var(--sd-pink), var(--sd-gold) 50%, var(--sd-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sd-font-body); font-weight: 800; font-size: 1rem;
  padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s var(--sd-ease), box-shadow .25s var(--sd-ease), background .25s;
  white-space: nowrap;
}
.btn--sm { padding: .7rem 1.25rem; font-size: .92rem; }
.btn--full { width: 100%; }
.btn--primary {
  background: var(--sd-grad-candy); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(233,48,138,.6);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(233,48,138,.75); }
.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(249,182,216,.5); backdrop-filter: blur(6px); }
.btn--ghost:hover { transform: translateY(-3px); background: rgba(249,182,216,.14); border-color: var(--sd-pink); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--sd-ease), transform .8s var(--sd-ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem var(--sd-gutter);
  /* always solid so no stars show through the header */
  background: linear-gradient(180deg, #1c0838 0%, #160530 100%);
  box-shadow: 0 6px 24px -14px rgba(0,0,0,.7);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 8px 30px -12px rgba(0,0,0,.8); }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand__mark { filter: drop-shadow(0 4px 10px rgba(233,48,138,.5)); animation: floaty 6s ease-in-out infinite; }
.brand__word { font-family: var(--sd-font-display); font-weight: 900; font-size: 1.1rem; line-height: .95; letter-spacing: .01em; }
.brand__word em { display: block; font-style: normal; font-family: var(--sd-font-script); font-weight: 400; font-size: .82rem; color: var(--sd-pink); letter-spacing: .04em; }

.nav__links { display: none; align-items: center; gap: 1.6rem; }
.nav__links a { font-weight: 700; font-size: .98rem; color: rgba(255,253,249,.86); transition: color .2s; position: relative; }
.nav__links a:not(.nav__ig)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--sd-pink); transition: width .25s var(--sd-ease);
}
.nav__links a:not(.nav__ig):hover { color: #fff; }
.nav__links a:not(.nav__ig):hover::after { width: 100%; }
.nav__ig {
  background: var(--sd-grad-candy); color: #fff !important; padding: .55rem 1.15rem;
  border-radius: 999px; box-shadow: 0 8px 22px -8px rgba(233,48,138,.7);
}
.nav__ig:hover { transform: translateY(-2px); }

.nav__toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 3px; border-radius: 3px; background: #fff; transition: transform .3s, opacity .3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: sticky; top: 62px; z-index: 99;
  display: flex; flex-direction: column; gap: .25rem;
  padding: .5rem var(--sd-gutter) 1.25rem;
  background: rgba(22,5,42,.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(249,182,216,.15);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: .85rem .25rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.06); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 2rem var(--sd-gutter) 3rem; }
.hero__inner {
  max-width: var(--sd-maxw); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center;
}
.hero__copy { text-align: center; }
.hero__title { font-size: var(--sd-h1); letter-spacing: -.01em; margin-bottom: 1.1rem; }
.hero__sub { color: rgba(255,253,249,.85); font-size: 1.08rem; max-width: 560px; margin: 0 auto 1.75rem; }
.hero__sub strong { color: var(--sd-pink); font-weight: 800; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.hero__script { font-family: var(--sd-font-script); font-size: 1.5rem; color: var(--sd-gold-soft); margin-top: 1.5rem; }

.hero__art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero__glow {
  position: absolute; width: min(78%, 460px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,111,178,.55), rgba(124,58,237,.2) 55%, transparent 72%);
  filter: blur(10px); animation: pulseGlow 6s ease-in-out infinite;
}
.hero__stage { position: relative; width: min(88%, 440px); }
/* --- the OpenArt drink photo, dissolved into the night sky --- */
.hero__drink {
  width: 100%; height: auto; border-radius: 24px;
  -webkit-mask-image: radial-gradient(ellipse 72% 80% at 50% 45%, #000 52%, rgba(0,0,0,.55) 74%, transparent 92%);
          mask-image: radial-gradient(ellipse 72% 80% at 50% 45%, #000 52%, rgba(0,0,0,.55) 74%, transparent 92%);
  filter: saturate(1.08) contrast(1.02) drop-shadow(0 24px 40px rgba(94,20,120,.55));
  animation: floaty 7s ease-in-out infinite;
}
.hero__badge {
  position: absolute; right: 2%; bottom: 8%; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; width: 108px; height: 108px; border-radius: 50%; padding: 10px; box-sizing: border-box;
  background: var(--sd-grad-candy); color: #fff; text-align: center; line-height: 1;
  box-shadow: 0 12px 30px -8px rgba(233,48,138,.7); transform: rotate(-8deg);
  animation: floaty 5s ease-in-out infinite reverse;
}
.hero__badge span { font-family: var(--sd-font-display); font-weight: 900; font-size: 1.6rem; line-height: 1; }
.hero__badge small { font-size: .54rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .95; line-height: 1.15; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: 1.6rem; color: rgba(255,255,255,.7); animation: bob 2s ease-in-out infinite; z-index: 3;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }
@keyframes pulseGlow { 0%,100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* ---------- Hero load-in intro (dreamy staggered rise + de-blur) ---------- */
html.js .hero__copy .eyebrow,
html.js .hero__title,
html.js .hero__sub,
html.js .hero__cta .btn,
html.js .hero__script {
  opacity: 0; transform: translateY(28px); filter: blur(9px);
}
html.js .hero__art { opacity: 0; transform: translateY(30px) scale(.97); }
html.js.is-loaded .hero__copy .eyebrow { animation: heroIn 1s .12s var(--sd-ease) forwards; }
html.js.is-loaded .hero__title        { animation: heroIn 1.15s .28s var(--sd-ease) forwards; }
html.js.is-loaded .hero__sub          { animation: heroIn 1.15s .52s var(--sd-ease) forwards; }
html.js.is-loaded .hero__cta .btn:nth-child(1) { animation: heroIn .9s .78s var(--sd-ease) forwards; }
html.js.is-loaded .hero__cta .btn:nth-child(2) { animation: heroIn .9s .92s var(--sd-ease) forwards; }
html.js.is-loaded .hero__script       { animation: heroIn 1s 1.08s var(--sd-ease) forwards; }
html.js.is-loaded .hero__art          { animation: heroArtIn 1.4s .35s var(--sd-ease) forwards; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); filter: blur(9px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes heroArtIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.js .hero__copy .eyebrow, html.js .hero__title, html.js .hero__sub,
  html.js .hero__cta .btn, html.js .hero__script, html.js .hero__art {
    opacity: 1; transform: none; filter: none; animation: none;
  }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { overflow: hidden; padding: 1rem 0; background: var(--sd-grad-candy); border-block: 2px solid rgba(255,255,255,.12); }
/* two identical groups; animate exactly one group width for a seamless loop */
.marquee__track { display: flex; width: max-content; will-change: transform; animation: scrollX 34s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 1.5rem; padding-right: 1.5rem; flex: none; white-space: nowrap; }
.marquee__group span { font-family: var(--sd-font-display); font-weight: 900; font-size: 1.15rem; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; transform: none; } }

/* ============================================================
   DIFFERENCE CARDS
   ============================================================ */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(249,182,216,.16); border-radius: var(--sd-radius-lg);
  padding: 2rem 1.8rem; backdrop-filter: blur(8px);
  transition: transform .35s var(--sd-ease), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(242,111,178,.5); box-shadow: 0 24px 50px -20px rgba(233,48,138,.5); }
.card__icon { font-size: 2.2rem; margin-bottom: .6rem; filter: drop-shadow(0 4px 10px rgba(242,111,178,.5)); }
.card h3 { font-size: 1.4rem; margin-bottom: .6rem; color: #fff; }
.card p { color: rgba(255,253,249,.78); margin: 0; }

/* ============================================================
   INGREDIENTS  (light "cloud" panel)
   ============================================================ */
.ingredients { }
.ingredients__inner {
  max-width: var(--sd-maxw); margin: 0 auto;
  background: linear-gradient(155deg, #FBE9F4 0%, #EBDFFb 55%, #E3D3F7 100%);
  color: var(--sd-ink); border-radius: var(--sd-radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1fr; gap: 1.8rem;
  box-shadow: 0 30px 70px -30px rgba(60,7,100,.7);
}
.ingredients__copy .eyebrow { color: var(--sd-magenta-deep); }
.ingredients__copy h2 { color: var(--sd-plum); font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: .6rem; }
.ingredients__copy p { color: var(--sd-ink-soft); margin: 0; }
.pills { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.pills li {
  display: flex; align-items: center; gap: .85rem; background: rgba(255,255,255,.7);
  border: 1px solid rgba(124,58,237,.14); border-radius: 16px; padding: 1rem 1.15rem;
  text-align: left;
}
.pill__emoji { flex: none; font-size: 1.6rem; line-height: 1; }
.pill__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pill__title { font-weight: 800; color: var(--sd-plum); line-height: 1.25; }
.pill__body small { font-weight: 600; color: var(--sd-ink-soft); font-size: .82rem; line-height: 1.25; }

/* ============================================================
   SHOWCASE (refreshers photo, dissolved into the sky)
   ============================================================ */
.showcase { max-width: 1320px; margin: 0 auto; padding: clamp(1rem,4vw,2.5rem) var(--sd-gutter); }
.showcase__frame { position: relative; }
.showcase__frame img {
  width: 100%; height: auto; border-radius: 28px;
  -webkit-mask-image:
    radial-gradient(ellipse 88% 92% at 50% 44%, #000 58%, rgba(0,0,0,.5) 80%, transparent 98%);
          mask-image:
    radial-gradient(ellipse 88% 92% at 50% 44%, #000 58%, rgba(0,0,0,.5) 80%, transparent 98%);
  filter: saturate(1.06) drop-shadow(0 26px 46px rgba(94,20,120,.5));
}
.showcase__caption { text-align: center; margin-top: -1rem; }
.showcase__caption h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }

/* ============================================================
   MENU
   ============================================================ */
.menu__filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.2rem; }
.chip {
  font-family: var(--sd-font-body); font-weight: 800; font-size: .9rem;
  padding: .55rem 1.15rem; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.06); color: rgba(255,253,249,.82);
  border: 1.5px solid rgba(249,182,216,.24); transition: all .25s;
}
.chip:hover { border-color: var(--sd-pink); color: #fff; }
.chip.is-active { background: var(--sd-grad-candy); color: #fff; border-color: transparent; box-shadow: 0 8px 22px -10px rgba(233,48,138,.7); }

.menu__grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.drink {
  position: relative; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(249,182,216,.16); border-radius: 20px; padding: 1.3rem 1.4rem;
  transition: transform .3s var(--sd-ease), border-color .3s, box-shadow .3s;
}
.drink:hover { transform: translateY(-5px); border-color: rgba(242,111,178,.5); box-shadow: 0 18px 40px -20px rgba(233,48,138,.55); }
.drink.is-hidden { display: none; }
.drink__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.drink h3 { font-size: 1.18rem; color: #fff; }
.drink__price { font-family: var(--sd-font-display); font-weight: 900; color: var(--sd-gold-soft); font-size: 1.15rem; white-space: nowrap; }
.drink__desc { margin: .5rem 0 0; color: rgba(255,253,249,.72); font-size: .95rem; }
.drink__spark { position: absolute; top: -8px; right: -6px; font-size: 1.2rem; animation: floaty 4s ease-in-out infinite; }

.feature {
  margin-top: 2.5rem; display: grid; grid-template-columns: 1fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: center;
  background: linear-gradient(120deg, rgba(124,58,237,.35), rgba(233,48,138,.28));
  border: 1px solid rgba(249,182,216,.28); border-radius: var(--sd-radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem); text-align: center;
}
.feature h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: #fff; margin-bottom: .5rem; }
.feature__tag { display: inline-block; font-family: var(--sd-font-body); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; background: var(--sd-gold); color: #3a1200; padding: .25rem .6rem; border-radius: 999px; vertical-align: middle; }
.feature p { color: rgba(255,253,249,.85); margin: 0; }
.feature__deco { font-size: 2rem; letter-spacing: .3rem; }
.feature__media { position: relative; }
.feature__img {
  width: 100%; height: auto; border-radius: 22px;
  -webkit-mask-image: radial-gradient(ellipse 92% 96% at 50% 47%, #000 60%, rgba(0,0,0,.5) 82%, transparent 99%);
          mask-image: radial-gradient(ellipse 92% 96% at 50% 47%, #000 60%, rgba(0,0,0,.5) 82%, transparent 99%);
  filter: saturate(1.05) drop-shadow(0 20px 42px rgba(94,20,120,.5));
}

/* ============================================================
   LOCATION
   ============================================================ */
.location__grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.location__now {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(233,48,138,.22), rgba(124,58,237,.22));
  border: 1.5px solid rgba(242,111,178,.45); border-radius: var(--sd-radius-lg);
  padding: 2rem 1.8rem; box-shadow: 0 24px 60px -28px rgba(233,48,138,.6);
}
.location__now h3 { font-size: 1.6rem; color: #fff; margin: .3rem 0 .8rem; }
.location__time, .location__place { font-weight: 700; margin: .25rem 0; }
.location__addr { color: rgba(255,253,249,.78); margin: .1rem 0 1rem; }
.location__msg { color: var(--sd-gold-soft); font-style: italic; }
.location__now .btn { margin-top: .6rem; }

.pulse-badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.pulse-badge i { width: 10px; height: 10px; border-radius: 50%; background: #38f5a8; box-shadow: 0 0 0 0 rgba(56,245,168,.7); animation: ping 1.8s infinite; }
.pulse-badge--off i { background: #c79be6; animation: none; box-shadow: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(56,245,168,.6);} 70%{ box-shadow: 0 0 0 12px rgba(56,245,168,0);} 100%{ box-shadow:0 0 0 0 rgba(56,245,168,0);} }

.location__next { background: rgba(255,255,255,.05); border: 1px solid rgba(249,182,216,.16); border-radius: var(--sd-radius-lg); padding: 2rem 1.8rem; }
.location__next h3 { font-size: 1.3rem; color: #fff; margin-bottom: 1rem; }
.upcoming { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .7rem; }
.upcoming li { padding: .85rem 1rem; background: rgba(255,255,255,.05); border-radius: 14px; border: 1px solid rgba(255,255,255,.06); }
.upcoming li span { display: block; font-weight: 800; color: var(--sd-pink); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }

/* ============================================================
   INSTAGRAM
   ============================================================ */
.insta { text-align: center; }
.insta__head { max-width: 640px; margin: 0 auto 2.4rem; }
.insta__head h2 { font-size: clamp(1.8rem, 5vw, 3rem); }
.insta__head .btn { margin-top: 1rem; }
.insta__feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; max-width: 900px; margin: 0 auto; }
.insta__tile {
  aspect-ratio: 1; display: grid; place-content: center; gap: .4rem; border-radius: 20px;
  background: linear-gradient(150deg, rgba(233,48,138,.3), rgba(124,58,237,.35));
  border: 1px solid rgba(249,182,216,.24); transition: transform .3s, box-shadow .3s;
}
.insta__tile:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 18px 40px -18px rgba(233,48,138,.6); }
.insta__emoji { font-size: 2.4rem; }
.insta__label { font-weight: 800; font-size: .82rem; color: rgba(255,255,255,.9); }

/* ============================================================
   BOOK US
   ============================================================ */
.book__grid { max-width: var(--sd-maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.book__copy h2 { font-size: var(--sd-h2); margin-bottom: 1rem; }
.book__copy p { color: rgba(255,253,249,.82); }
.book__list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.book__list li { font-weight: 700; }
.book__form {
  background: linear-gradient(180deg, #FBE9F4, #EFE1Fb);
  color: var(--sd-ink); border-radius: var(--sd-radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: 0 30px 70px -30px rgba(60,7,100,.8);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 800; font-size: .85rem; color: var(--sd-plum); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; min-width: 0; max-width: 100%; font-family: var(--sd-font-body); font-size: 1rem; color: var(--sd-ink);
  background: #fff; border: 1.5px solid rgba(124,58,237,.22); border-radius: 12px; padding: .8rem .9rem;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sd-magenta); box-shadow: 0 0 0 4px rgba(233,48,138,.14); }
.field textarea { resize: vertical; }
/* stack the date/type row on phones so the date picker never overflows */
.field--row { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.field--row > div { min-width: 0; }
.form__note { margin: .8rem 0 0; font-size: .9rem; font-weight: 700; min-height: 1.2em; }
.form__note.is-error { color: var(--sd-magenta-deep); }
.form__note.is-ok { color: #1c7a4a; }
.form__note a { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; background: linear-gradient(180deg, rgba(11,3,22,.5), #0c0320); border-top: 1px solid rgba(249,182,216,.16); padding: clamp(3rem, 6vw, 4.5rem) var(--sd-gutter) 2rem; margin-top: 2rem; }
.footer__inner { max-width: var(--sd-maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer__brand img { animation: floaty 6s ease-in-out infinite; }
.footer__word { font-family: var(--sd-font-display); font-weight: 900; font-size: 1.3rem; margin: .6rem 0 .1rem; }
.footer__script { font-family: var(--sd-font-script); color: var(--sd-pink); font-size: 1.3rem; margin: 0; }
.footer__col h4 { font-family: var(--sd-font-body); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--sd-pink); margin-bottom: .8rem; }
.footer__col p { margin: 0 0 .5rem; }
.footer__col a:hover { color: var(--sd-pink); }
.footer__area { color: rgba(255,253,249,.6); font-size: .9rem; }
.footer__note { color: rgba(255,253,249,.7); }
.footer__fine { font-size: .82rem; color: rgba(255,253,249,.5); margin-top: .5rem; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--sd-grad-candy); color: #fff; font-size: 1.3rem; font-weight: 800;
  box-shadow: 0 10px 26px -8px rgba(233,48,138,.7);
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .menu__grid { grid-template-columns: repeat(2, 1fr); }
  .pills { grid-template-columns: 1fr 1fr; }
  .insta__feed { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1.05fr .95fr; text-align: left; }
  .feature__deco { text-align: right; }
  .field--row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__toggle, .mobile-menu { display: none; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .hero__copy { text-align: left; }
  .hero__sub { margin-left: 0; margin-right: 0; }
  .hero__cta { justify-content: flex-start; }
  .ingredients__inner { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .location__grid { grid-template-columns: 1.3fr 1fr; }
  .book__grid { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .menu__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
}

/* ============================================================
   MOBILE-FIRST CENTERING  (phones & small tablets, < 900px)
   Desktop keeps its multi-column, left-aligned layouts above.
   ============================================================ */
@media (max-width: 899px) {
  .section { padding-inline: clamp(1.1rem, 6vw, 2rem); }

  /* Story cards: stack the icon + text centered */
  .card { display: flex; flex-direction: column; align-items: center; text-align: center; }

  /* Ingredients panel: center the intro, keep pills readable */
  .ingredients__inner { text-align: center; }
  .ingredients__copy { display: flex; flex-direction: column; align-items: center; }
  .pills { justify-items: stretch; max-width: 460px; margin-inline: auto; }
  .pills li { justify-content: flex-start; text-align: left; }

  /* Showcase caption centered (already), tighten */
  .showcase { padding-inline: clamp(1rem, 6vw, 2rem); }

  /* Location: center both cards' content */
  .location__now, .location__next { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .upcoming { width: 100%; }
  .upcoming li { text-align: center; }

  /* Feature (Cloud 9) already centered on mobile via base grid */
  .feature { text-align: center; }

  /* Book Us: center the pitch; keep the check list block centered but items left-aligned */
  .book__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .book__list { display: inline-grid; text-align: left; justify-items: start; }

  /* Footer: center every column on phones */
  .footer__inner { text-align: center; justify-items: center; }
  .footer__brand { display: flex; flex-direction: column; align-items: center; }
  .footer__note { display: flex; flex-direction: column; align-items: center; }

  /* Mobile nav menu: centered links */
  .mobile-menu { text-align: center; }
  .mobile-menu a { border-bottom-color: rgba(255,255,255,.08); }
}

/* Small phones: tighten type & spacing a touch */
@media (max-width: 480px) {
  .hero { min-height: 88vh; }
  .hero__title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .field--row { grid-template-columns: 1fr; }
  .insta__feed { grid-template-columns: repeat(2, 1fr); }
  .hero__badge { width: 78px; height: 78px; }
  .hero__badge span { font-size: 1.2rem; }
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce { background: linear-gradient(90deg, var(--sd-magenta), var(--sd-purple-royal)); color: #fff; }
.announce__inner {
  max-width: var(--sd-maxw); margin: 0 auto; padding: .5rem var(--sd-gutter);
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; text-align: center;
}
.announce__text { font-weight: 700; font-size: .9rem; }
.announce__btn {
  font-family: var(--sd-font-body); font-weight: 800; font-size: .82rem; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 999px; padding: .35rem 1.05rem; transition: background .2s, transform .2s, border-color .2s; white-space: nowrap;
}
.announce__btn:hover { background: rgba(255,255,255,.28); border-color: #fff; transform: translateY(-1px); }

/* ============================================================
   MODAL (subscribe)
   ============================================================ */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,2,24,.72); backdrop-filter: blur(6px); animation: fadeIn .3s ease; }
.modal__card {
  position: relative; width: min(440px, 94vw); max-height: 92vh; overflow: auto;
  background: linear-gradient(180deg, #fff, #FBE9F4); color: var(--sd-ink);
  border-radius: var(--sd-radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); text-align: center;
  box-shadow: 0 40px 90px -30px rgba(60,7,100,.9); animation: popIn .4s var(--sd-ease);
}
.modal__x { position: absolute; top: .7rem; right: .9rem; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--sd-ink-soft); cursor: pointer; }
.modal__mark { font-size: 2.4rem; }
.modal__title { font-size: 1.9rem; color: var(--sd-plum); margin: .3rem 0 .4rem; }
.modal__sub { color: var(--sd-ink-soft); margin: 0 0 1rem; font-weight: 700; }
.modal__perks { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .6rem; text-align: left; }
.modal__perks li { background: rgba(124,58,237,.07); border-radius: 12px; padding: .7rem .9rem; font-size: .92rem; color: var(--sd-ink); }
.modal__form { display: flex; flex-direction: column; gap: .7rem; }
.modal__form input {
  width: 100%; font-family: var(--sd-font-body); font-size: 1rem; color: var(--sd-ink);
  background: #fff; border: 1.5px solid rgba(124,58,237,.25); border-radius: 12px; padding: .85rem .9rem; -webkit-appearance: none; appearance: none;
}
.modal__form input:focus { outline: none; border-color: var(--sd-magenta); box-shadow: 0 0 0 4px rgba(233,48,138,.14); }
.modal__note { margin: .7rem 0 0; font-weight: 700; font-size: .9rem; }
.modal__note.is-ok { color: #1c7a4a; }
.modal__note a, .modal__alt a { text-decoration: underline; }
.modal__alt { margin: .9rem 0 0; font-size: .88rem; color: var(--sd-ink-soft); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }

/* ============================================================
   CHATBOT
   ============================================================ */
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 950; }
.chat__fab {
  position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--sd-grad-candy); color: #fff; font-size: 1.5rem;
  box-shadow: 0 12px 30px -8px rgba(233,48,138,.7); transition: transform .25s var(--sd-ease);
}
.chat__fab:hover { transform: translateY(-3px) scale(1.05); }
.chat__fab-dot { position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: #38f5a8; box-shadow: 0 0 0 0 rgba(56,245,168,.7); animation: ping 1.8s infinite; }
.chat__panel {
  position: absolute; right: 0; bottom: 72px; width: min(340px, 90vw); height: min(460px, 70vh);
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(20,6,38,.97); backdrop-filter: blur(14px);
  border: 1px solid rgba(249,182,216,.28); border-radius: 20px;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,.8); animation: popIn .3s var(--sd-ease);
}
.chat__panel[hidden] { display: none; }
.chat__head { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; background: var(--sd-grad-candy); color: #fff; }
.chat__title { font-family: var(--sd-font-display); font-weight: 900; font-size: 1rem; }
.chat__close { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.chat__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.chat__msg { max-width: 85%; padding: .6rem .85rem; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.chat__msg--bot { align-self: flex-start; background: rgba(255,255,255,.08); color: var(--sd-white); border-bottom-left-radius: 4px; }
.chat__msg--me { align-self: flex-end; background: var(--sd-grad-candy); color: #fff; border-bottom-right-radius: 4px; }
.chat__cta { display: inline-block; margin: .3rem .35rem 0 0; padding: .45rem .8rem; border-radius: 999px; background: var(--sd-magenta); color: #fff !important; font-weight: 800; font-size: .82rem; }
.chat__cta--ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(249,182,216,.4); }
.chat__chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .5rem; }
.chat__chip { font-family: var(--sd-font-body); font-weight: 700; font-size: .78rem; cursor: pointer; background: rgba(249,182,216,.12); color: var(--sd-white); border: 1px solid rgba(249,182,216,.3); border-radius: 999px; padding: .35rem .7rem; }
.chat__chip:hover { background: rgba(249,182,216,.24); }
.chat__form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid rgba(249,182,216,.16); }
.chat__form input { flex: 1; min-width: 0; font-family: var(--sd-font-body); font-size: .92rem; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(249,182,216,.3); border-radius: 999px; padding: .6rem .9rem; }
.chat__form input::placeholder { color: rgba(255,253,249,.5); }
.chat__form input:focus { outline: none; border-color: var(--sd-pink); }
.chat__form button { flex: none; width: 42px; border: 0; border-radius: 50%; background: var(--sd-grad-candy); color: #fff; font-size: 1rem; cursor: pointer; }
/* keep back-to-top clear of the chat fab */
.to-top { left: 18px; right: auto; }

/* ============================================================
   SUBPAGE HERO (gallery / contact)
   ============================================================ */
.subhero { max-width: var(--sd-maxw); margin: 0 auto; padding: clamp(2.5rem, 7vw, 4.5rem) var(--sd-gutter) 1rem; text-align: center; }
.subhero h1 { font-size: var(--sd-h1); letter-spacing: -.01em; }
.subhero h1 .grad { display: inline; }
.subhero p { color: rgba(255,253,249,.82); max-width: 620px; margin: 1rem auto 0; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery__filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 0 auto 2rem; max-width: 900px; }
.gallery__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.gallery__item { position: relative; padding: 0; border: 0; cursor: pointer; background: none; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 40px -22px rgba(0,0,0,.7); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .5s var(--sd-ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .9rem; text-align: left; font-weight: 700; font-size: .9rem; color: #fff; background: linear-gradient(0deg, rgba(10,2,24,.85), transparent); }
.gallery__soon {
  grid-column: 1 / -1; display: grid; place-items: center; gap: .4rem; text-align: center;
  padding: clamp(2.5rem, 8vw, 5rem); border-radius: var(--sd-radius-lg);
  background: linear-gradient(160deg, rgba(124,58,237,.18), rgba(233,48,138,.14));
  border: 1px dashed rgba(249,182,216,.4); color: #fff;
}
.gallery__soon-emoji { font-size: 2.6rem; }
.gallery__soon p { font-family: var(--sd-font-display); font-weight: 900; font-size: 1.4rem; margin: 0; }
.gallery__soon-sub { color: var(--sd-text-muted); font-size: .92rem; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 1100; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem; background: rgba(8,2,20,.92); backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.lightbox__fig img { max-width: 100%; max-height: 80vh; border-radius: 14px; border: 2px solid var(--sd-purple-royal); box-shadow: 0 30px 70px -20px rgba(0,0,0,.9); }
.lightbox__fig figcaption { color: #fff; font-weight: 700; }
.lightbox__x { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.lightbox__nav { background: rgba(255,255,255,.1); border: 1px solid rgba(249,182,216,.4); color: #fff; font-size: 1.8rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox__nav:hover { background: rgba(249,182,216,.25); }

@media (min-width: 620px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact__grid { max-width: var(--sd-maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.contact__cards { display: grid; gap: 1rem; align-content: start; }
.contact__card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 18px; background: linear-gradient(160deg, rgba(124,58,237,.2), rgba(233,48,138,.14)); border: 1px solid rgba(249,182,216,.24); color: #fff; transition: transform .25s var(--sd-ease), border-color .25s, box-shadow .25s; }
.contact__card:hover { transform: translateY(-4px); border-color: rgba(242,111,178,.5); box-shadow: 0 18px 40px -20px rgba(233,48,138,.55); }
.contact__icon { font-size: 1.7rem; flex: none; }
.contact__card strong { display: block; font-weight: 800; }
.contact__card small { color: var(--sd-text-muted); font-size: .88rem; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }

/* ============================================================
   INLINE ICONS (newer features)
   ============================================================ */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; fill: currentColor; flex: none; }
.ic--fab { width: 26px; height: 26px; vertical-align: middle; }
.ic--xl { width: 2.4rem; height: 2.4rem; }
.announce__text .ic { margin-right: .1rem; }
.modal__mark { color: var(--sd-magenta); }
.modal__mark img { display: inline-block; filter: drop-shadow(0 6px 14px rgba(233,48,138,.5)); }
.modal__perks li .ic { fill: var(--sd-magenta); margin-right: .15rem; vertical-align: -0.16em; }
.gallery__soon-emoji .ic { fill: var(--sd-pink); }
.contact__icon svg { width: 1.7rem; height: 1.7rem; fill: var(--sd-pink); }

/* Compact announcement bar on phones */
@media (max-width: 600px) {
  .announce__inner { gap: .5rem; padding: .4rem .7rem; }
  .announce__text { font-size: .72rem; line-height: 1.2; }
  .announce__btn { font-size: .68rem; padding: .3rem .65rem; }
}

/* Chatbot welcome bubble */
.chat__welcome {
  position: absolute; right: 4px; bottom: 74px; width: 214px;
  background: #fff; color: var(--sd-ink); border-radius: 16px; border-bottom-right-radius: 4px;
  padding: .8rem 1.9rem .8rem .9rem; font-size: .85rem; font-weight: 700; line-height: 1.35;
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.6); cursor: pointer; animation: popIn .35s var(--sd-ease);
}
.chat__welcome-x { position: absolute; top: .3rem; right: .45rem; background: none; border: 0; font-size: 1.2rem; line-height: 1; color: var(--sd-ink-soft); cursor: pointer; }

/* Gallery cards: primary-purple outline */
.gallery__item { border: 2px solid var(--sd-purple-royal); }
.gallery__item:hover { border-color: var(--sd-pink); }

/* Hide the announcement bar on mobile */
@media (max-width: 899px) { .announce { display: none; } }

/* ============================================================
   Decorative coffee beans (ambient, in brand purple)
   ============================================================ */
.bean { position: absolute; pointer-events: none; color: var(--sd-purple-soft); will-change: transform; }
.bean svg { display: block; width: 100%; height: 100%; }
.bean svg ellipse { fill: currentColor; }
.bean { animation: beanFloat linear infinite; }
@keyframes beanFloat {
  0%   { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%  { transform: translateY(-26px) rotate(calc(var(--r, 0deg) + 14deg)); }
  100% { transform: translateY(0) rotate(var(--r, 0deg)); }
}
@media (prefers-reduced-motion: reduce) { .bean { animation: none; } }
