/* ==========================================================================
   Kobocha Bubble Tea — demo site styles
   Concept demo built by SavvyStudio. Palette & type direction follow the
   project brief: warm cream surfaces, ocean ink, raspberry, logo pink,
   with Fredoka headlines and DM Sans body.
   ========================================================================== */

:root {
  --cream: #FFF9F2;
  --cream-2: #FFFDFA;
  --ocean: #123E53;
  --ocean-soft: #2f5a6e;
  --raspberry: #A51659;
  --raspberry-dark: #820f46;
  --pink: #E65B91;
  --blush: #FCE6EE;
  --blush-deep: #F8D3E2;
  --seaglass: #C9E8E3;
  --seaglass-deep: #A9DBD3;
  --honey: #C59A52;

  --text: #123E53;
  --text-muted: #4a6675;
  --text-subtle: #6d8491;

  --surface: #ffffff;
  --border: #efe2d6;
  --hairline: #f1e7dc;

  --radius: 16px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --pill: 999px;

  --maxw: 1140px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  --shadow-soft: 0 10px 30px -18px rgba(18, 62, 83, 0.35);
  --shadow-md: 0 24px 60px -28px rgba(18, 62, 83, 0.45);
  --shadow-lift: 0 30px 70px -30px rgba(18, 62, 83, 0.5);

  --dur: 0.35s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ocean);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }
a { color: var(--raspberry); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--raspberry-dark); }

ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ocean);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--pill);
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.2rem, 8vw, 6rem); position: relative; }
.section--tint { background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%); }
.section--panel { background: var(--cream-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--raspberry);
  margin: 0 0 0.9rem;
}

.section-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p.lede { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 0; }

.section-title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  border-radius: var(--pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--raspberry);
  color: #fff;
  box-shadow: 0 14px 28px -16px rgba(165, 22, 89, 0.9);
}
.btn--primary:hover { background: var(--raspberry-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--raspberry);
  border-color: var(--blush-deep);
}
.btn--ghost:hover { color: var(--raspberry-dark); border-color: var(--pink); background: var(--blush); }

.btn--ocean { background: var(--ocean); color: #fff; }
.btn--ocean:hover { background: #0c2d3d; color: #fff; box-shadow: var(--shadow-md); }

.btn--lg { min-height: 54px; padding: 0.95rem 1.8rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 242, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1;
  gap: 2px;
}
.wordmark__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  color: var(--pink);
}
.wordmark__smile { display: block; width: 46px; height: 7px; margin-left: 2px; }
.wordmark:hover .wordmark__text { color: var(--raspberry); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
}
.nav a {
  color: var(--ocean);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4rem 0.1rem;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05rem;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover { color: var(--raspberry); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta { display: inline-flex; }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 110;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 249, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline);
}
.mobile-bar .btn { flex: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.6rem, 6vw, 4.6rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}
.hero__copy { position: relative; z-index: 2; min-width: 0; }
.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.3rem);
  line-height: 0.98;
  margin-bottom: 0.5em;
}
.hero__title .pink { color: var(--pink); }
.hero__text {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero__media { position: relative; justify-self: center; width: 100%; max-width: 460px; min-width: 0; }
.hero__frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 6px solid #fff;
  aspect-ratio: 3 / 4;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.hero__blob {
  position: absolute;
  inset: auto;
  z-index: 1;
  border-radius: 48% 52% 55% 45% / 52% 48% 52% 48%;
  filter: blur(2px);
}
.hero__blob--blush { width: 70%; height: 70%; right: -8%; top: -6%; background: var(--blush-deep); }
.hero__blob--sea { width: 55%; height: 55%; left: -10%; bottom: -8%; background: var(--seaglass); }

/* floating bubble decorations */
.bubble {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--pink);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}
.bubble--sea { border-color: var(--seaglass-deep); }
.bubble--ocean { border-color: var(--ocean-soft); opacity: 0.25; }

/* ---------- Menu intro ---------- */
.guide-line {
  font-weight: 600;
  color: var(--ocean);
  background: var(--seaglass);
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: var(--pill);
  font-size: 0.98rem;
  margin-bottom: 1.6rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 2vw, 1.3rem);
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.3rem;
  text-decoration: none;
  color: var(--ocean);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--accent, var(--pink));
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent, var(--pink)); color: var(--ocean); }
.cat-card__emoji { font-size: 1.7rem; margin-bottom: 0.5rem; }
.cat-card__name { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.35rem; }
.cat-card__desc { font-size: 0.96rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; }
.cat-card__cta { font-weight: 700; color: var(--raspberry); font-size: 0.95rem; transition: transform var(--dur) var(--ease); }
.cat-card:hover .cat-card__cta { transform: translateX(4px); }

.cat-card--specials { --accent: var(--raspberry); }
.cat-card--fruit { --accent: var(--honey); }
.cat-card--milk { --accent: var(--pink); }
.cat-card--slush { --accent: var(--seaglass-deep); }

.favorites {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--blush);
  border-radius: var(--radius-lg);
}
.favorites h3 { margin-bottom: 0.3rem; }
.favorites p { color: var(--text-muted); margin-bottom: 1rem; }
.favorites__row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fav-chip {
  background: #fff;
  border: 1px solid var(--blush-deep);
  color: var(--ocean);
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--pill);
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.fav-chip:hover { transform: translateY(-2px); border-color: var(--pink); color: var(--raspberry); }

.menu-cta-row { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* ---------- Our Space ---------- */
.space-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}
.space-media { position: relative; }
.space-media__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid #fff;
}
.space-media__main img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.space-media__sub {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: 46%;
  max-width: 220px;
  border-radius: var(--radius); 
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: var(--shadow-md);
}
.space-media__sub img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 42%; }
.space-copy .chips { margin-top: 1.2rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  background: var(--seaglass);
  color: var(--ocean);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--pill);
}

/* ---------- About ---------- */
.about { text-align: center; }
.about .container { max-width: 50rem; }
.about__big { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ocean); line-height: 1.35; }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.review-card__mark {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.6;
  color: var(--blush-deep);
  display: block;
  margin-bottom: 0.4rem;
}
.review-card__quote { font-size: 1.12rem; color: var(--ocean); font-weight: 500; margin-bottom: 1rem; }
.review-card__author { font-weight: 700; color: var(--raspberry); }
.review-card__src { font-size: 0.82rem; color: var(--text-subtle); }
.reviews__link { margin-top: 1.6rem; }

/* ---------- Visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: stretch;
}
.visit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-soft);
}
.visit-card h3 { margin-bottom: 1rem; }
.visit-list { display: grid; gap: 1.1rem; margin-bottom: 1.6rem; }
.visit-item { display: flex; gap: 0.85rem; align-items: flex-start; }
.visit-item__ic {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--blush);
  border-radius: 12px;
  font-size: 1.2rem;
}
.visit-item__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); font-weight: 700; }
.visit-item__value { color: var(--ocean); font-weight: 600; font-size: 1.05rem; }
.visit-item__value a { font-weight: 600; }
.visit-hours { color: var(--text-muted); font-style: italic; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.visit-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--seaglass) 0%, #e6f4f1 60%, var(--blush) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  min-height: 300px;
}
.visit-panel__whales { position: absolute; top: 8%; left: 6%; right: 6%; opacity: 0.9; }
.visit-panel__title { position: relative; font-family: var(--font-display); font-size: 1.6rem; color: var(--ocean); margin-bottom: 0.3rem; }
.visit-panel__text { position: relative; color: var(--ocean-soft); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ocean);
  color: #dcebf0;
  padding-block: clamp(2.6rem, 5vw, 3.6rem);
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer .wordmark__text { color: #fff; }
.footer-about { color: #b9d2db; max-width: 26rem; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 0.8rem; }
.footer-col a { display: inline-block; color: #cfe3ea; text-decoration: none; margin-bottom: 0.5rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col address { font-style: normal; color: #cfe3ea; line-height: 1.7; }
.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #a9c6d1;
}
.footer-note { max-width: 40rem; }

/* ---------- Menu page ---------- */
.menu-hero { background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%); padding-block: clamp(2.6rem, 6vw, 4rem); }
.menu-hero__title { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.menu-hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 40rem; }

.menu-nav {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: rgba(255, 249, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.menu-nav__row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-block: 0.7rem;
  scrollbar-width: none;
}
.menu-nav__row::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: none;
  text-decoration: none;
  font-weight: 600;
  color: var(--ocean);
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: var(--pill);
  font-size: 0.95rem;
  white-space: nowrap;
}
.menu-nav a:hover { border-color: var(--pink); color: var(--raspberry); }

.menu-section { padding-block: clamp(2.2rem, 4vw, 3.2rem); scroll-margin-top: 130px; }
.menu-section__head { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.menu-section__head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0; }
.menu-section__note { color: var(--text-muted); margin-bottom: 1.4rem; }
.menu-section__note strong { color: var(--ocean); }

.menu-list { display: grid; gap: 0; border-top: 2px dotted var(--blush-deep); }
.menu-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.2rem;
  border-bottom: 2px dotted var(--blush-deep);
}
.menu-row__name { font-weight: 600; color: var(--ocean); font-size: 1.1rem; min-width: 0; }
.menu-row__add { display: block; font-weight: 400; font-size: 0.9rem; color: var(--text-muted); margin-top: 0.1rem; }
.menu-row__size { flex: none; color: var(--text-subtle); font-size: 0.88rem; font-weight: 600; white-space: nowrap; }

.toppings-wrap { background: var(--seaglass); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.toppings-wrap h2 { margin-bottom: 0.3rem; }
.toppings-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.topping {
  background: #fff;
  border-radius: var(--pill);
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  color: var(--ocean);
}

.note-card {
  background: var(--cream-2);
  border: 1px dashed var(--blush-deep);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.note-card strong { color: var(--ocean); }

/* ---------- Disclaimer strip ---------- */
.demo-note {
  background: var(--ocean);
  color: #cfe3ea;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.5rem 1rem;
}
.demo-note a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: 2; max-width: 400px; margin-top: 0.6rem; }
  .space-grid { grid-template-columns: 1fr; }
  .space-media { margin-bottom: 2.4rem; }
  .space-media__sub { right: 4%; bottom: -16%; width: 40%; }
  .visit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
  .menu-nav { top: 60px; }
  .site-header__inner { min-height: 60px; }
}

@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .hero__text { font-size: 1.1rem; }
  .menu-row__name { font-size: 1.02rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
