/* =============================================
   CAKRAVINGS BAKERY — STYLESHEET
   Aesthetic: Soft Baby Pink Pastel & Crisp White
   Accent Shade: Deep Velvet Cassis / Midnight Plum (#381c2d)
   Clean, Elegant, Boutique Patisserie Design (No Prices, No Emojis)
   ============================================= */

:root {
  --pink-soft:      #fff4f9;
  --pink-pastel:    #ffe9f3;
  --pink-card:      #fffbfc;
  --pink-mid:       #f8ccde;
  --pink-accent:    #f3acc8;
  --white:          #ffffff;

  /* The dark and elegant shade that replaces the dark pink for writings and buttons:
     Deep Velvet Cassis / Midnight Plum — regal, high-contrast, luxurious */
  --accent-dark:    #381c2d;   /* primary brand color, dark buttons, headings, logo */
  --accent-hover:   #220d1a;   /* button hover state */
  --accent-soft:    #552e46;   /* subheadings and strong accents */
  --accent-muted:   #7a526a;   /* supporting text and descriptions */
  --text-dark:      #301826;   /* body text base */
  
  --border-light:   #f2dae5;
  --shadow-subtle:  rgba(56, 28, 45, 0.08);
  --shadow-accent:  rgba(56, 28, 45, 0.18);
  
  --font-display:   'Playfair Display', Georgia, serif;
  --font-script:    'Dancing Script', cursive;
  --font-body:      'Lato', sans-serif;
  --transition:     all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: 100%; object-fit: cover; display: block; }

/* ======================================
   CINEMATIC ENTRANCE (about 4.5 seconds)
   Your cake video plays through giant letters
   on an ivory screen, the letters sweep in, then
   the camera zooms through them into the site.
   ====================================== */
.bake-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  isolation: isolate;
  pointer-events: all;
  user-select: none;
  background: #fff8fb;
  animation: ibOut 0.8s ease 3.85s forwards;
}
@keyframes ibOut { to { opacity: 0; visibility: hidden; } }

.ib-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

.ib-blend {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #fff8fb;
  mix-blend-mode: screen;
  animation: ibFade 0.5s ease 3.7s forwards;
}
@keyframes ibFade { to { opacity: 0; } }

/* the writing reveal sweeps across the whole screen */
.ib-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: inset(0 100% 0 0);
  animation: ibWrite 1.5s cubic-bezier(0.55, 0, 0.2, 1) 0.45s forwards;
}
@keyframes ibWrite { to { clip-path: inset(0 0 0 0); } }

/* The letter A sits exactly in the centre; the rest of the word hangs off it,
   so growing the type zooms straight into the A. Real text (not a stretched picture)
   is redrawn at every size, so the edges stay sharp. */
.ib-word {
  --fs0: 12.2vw;
  position: relative;
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: var(--fs0);
  letter-spacing: 0.05em;
  line-height: 1;
  color: #000000;
  white-space: nowrap;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  animation: ibGrow 1.55s linear 2.55s forwards;
}
.ib-a { display: inline-block; position: relative; }
.ib-l1, .ib-r1 { position: absolute; top: 0; }
.ib-l1 { right: 100%; }
.ib-r1 { left: 100%; }
@keyframes ibGrow {
  0%   { font-size: calc(var(--fs0) * 1); }
  20%  { font-size: calc(var(--fs0) * 2.13); }
  40%  { font-size: calc(var(--fs0) * 4.55); }
  60%  { font-size: calc(var(--fs0) * 9.7); }
  80%  { font-size: calc(var(--fs0) * 20.7); }
  100% { font-size: calc(var(--fs0) * 44); }
}

.ib-top { position: absolute; inset: 0; z-index: 3; pointer-events: none; animation: ibTopOut 0.45s ease 2.35s forwards; }
@keyframes ibTopOut { to { opacity: 0; } }

.ib-line { position: absolute; background: rgba(56, 28, 45, 0.55); }
.ib-t, .ib-b { left: 26px; right: 26px; height: 1px; transform: scaleX(0); animation: ibX 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards; }
.ib-l, .ib-r { top: 26px; bottom: 26px; width: 1px; transform: scaleY(0); animation: ibY 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards; }
.ib-t { top: 26px; } .ib-b { bottom: 26px; } .ib-l { left: 26px; } .ib-r { right: 26px; }
@keyframes ibX { to { transform: scaleX(1); } }
@keyframes ibY { to { transform: scaleY(1); } }

.ib-tag {
  position: absolute;
  left: 0; right: 0;
  bottom: 52px;
  text-align: center;
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  animation: ibTag 0.9s ease 1.6s forwards;
}
@keyframes ibTag { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  .ib-t, .ib-b { left: 14px; right: 14px; }
  .ib-l, .ib-r { top: 14px; bottom: 14px; }
  .ib-t { top: 14px; } .ib-b { bottom: 14px; } .ib-l { left: 14px; } .ib-r { right: 14px; }
  .ib-word { --fs0: 11.6vw; letter-spacing: 0.02em; }
  .ib-tag { letter-spacing: 3.5px; bottom: 36px; }
}

/* ======================================
   FLOATING AMBIENT PARTICLES
   ====================================== */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  display: none;
}

/* ======================================
   NAVIGATION
   ====================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 218, 229, 0.5);
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px var(--shadow-subtle);
  padding: 12px 60px;
  border-bottom: 1px solid var(--border-light);
}

.nav-logo {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--accent-dark) !important;
  transition: var(--transition);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  cursor: pointer;
}
.logo-c {
  color: var(--accent-dark) !important;
  font-size: 2.7rem;
  font-weight: 700;
  margin-right: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  position: relative;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent-dark);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent-dark) !important; }

.nav-order-btn {
  background: var(--accent-dark) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 14px var(--shadow-accent);
  font-weight: 600 !important;
}
.nav-order-btn:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34, 13, 26, 0.28) !important;
}
.nav-order-btn::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: var(--accent-dark); border-radius: 2px; transition: var(--transition); display: block; }

/* ======================================
   HERO SECTION
   ====================================== */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(155deg, #ffffff 0%, #fff7fa 40%, #ffedf4 80%, #ffffff 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 35%, rgba(255, 255, 255, 0.9) 0%, transparent 45%),
    radial-gradient(circle at 82% 65%, rgba(248, 204, 222, 0.25) 0%, transparent 50%);
}

.hero-bubbles { display: none; position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(248, 204, 222, 0.35);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 244, 249, 0.2) 70%);
  animation: bubbleRise linear infinite;
}
.bubble:nth-child(1) { width: 44px; height: 44px; left: 8%;  animation-duration: 9s;  animation-delay: 0s; }
.bubble:nth-child(2) { width: 26px; height: 26px; left: 22%; animation-duration: 12s; animation-delay: 2s; }
.bubble:nth-child(3) { width: 62px; height: 62px; left: 38%; animation-duration: 10s; animation-delay: 1s; }
.bubble:nth-child(4) { width: 32px; height: 32px; left: 62%; animation-duration: 8s;  animation-delay: 0.5s; }
.bubble:nth-child(5) { width: 52px; height: 52px; left: 78%; animation-duration: 11s; animation-delay: 1.5s; }
.bubble:nth-child(6) { width: 20px; height: 20px; left: 90%; animation-duration: 14s; animation-delay: 3s; }

@keyframes bubbleRise {
  0%   { bottom: -80px; opacity: 0; transform: translateY(0); }
  15%  { opacity: 0.5; }
  85%  { opacity: 0.4; }
  100% { bottom: 105%; opacity: 0; transform: translateY(-30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 130px 60px 80px;
  animation: fadeInUp 0.9s ease 3.9s both;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
  background: var(--white);
  padding: 6px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 16px var(--shadow-subtle);
  border: 1px solid var(--border-light);
  font-weight: 600;
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-bottom: 22px;
}
.title-line1 {
  font-family: var(--font-script);
  font-size: 5.6rem;
  color: var(--accent-dark);
  text-shadow: 0 4px 20px rgba(56, 28, 45, 0.08);
}
.title-line2 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 9px;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-top: 6px;
  font-weight: 600;
}

.hero-sub {
  color: var(--accent-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Replaces old price tags with elegant brand highlights */
.hero-highlights {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.highlight-tag {
  background: var(--white);
  color: var(--accent-soft);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px var(--shadow-subtle);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  font-weight: 600;
}
.highlight-tag:hover {
  transform: translateY(-2px);
  border-color: var(--pink-mid);
  box-shadow: 0 6px 18px var(--shadow-subtle);
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent-dark);
  color: var(--white);
  padding: 13px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 6px 20px var(--shadow-accent);
  transition: var(--transition);
  display: inline-block;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 13, 26, 0.32);
}

.btn-secondary {
  background: var(--white);
  color: var(--accent-dark);
  padding: 13px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: 1.5px solid var(--accent-dark);
  transition: var(--transition);
  display: inline-block;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: 0 4px 14px var(--shadow-subtle);
}
.btn-secondary:hover {
  background: var(--pink-soft);
  transform: translateY(-2px);
}

/* ======================================
   CUTE MINIMALIST BAKER CHARACTER
   ====================================== */
.hero-character {
  position: absolute;
  right: 100px;
  bottom: 10px;
  z-index: 2;
  animation: fadeInUp 0.9s ease 2.6s both;
}

.baker-char {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bakerFloat 3.8s ease-in-out infinite;
  position: relative;
}
@keyframes bakerFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}

/* Chef Hat */
.baker-hat {
  width: 68px;
  height: 75px;
  background: var(--white);
  border-radius: 8px 8px 0 0;
  margin-bottom: -6px;
  position: relative;
  box-shadow: 0 -4px 16px var(--shadow-subtle);
  border: 1.5px solid var(--border-light);
}
.baker-hat::before {
  content: '';
  position: absolute;
  bottom: 0; left: -10px; right: -10px;
  height: 16px;
  background: #ffffff;
  border-radius: 4px;
  border: 1.5px solid var(--border-light);
}

/* Head */
.baker-head {
  width: 90px;
  height: 90px;
  background: #fff0e6;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 16px var(--shadow-subtle);
  border: 2px solid var(--border-light);
}

.baker-face { position: relative; width: 100%; height: 100%; }

.baker-eye {
  position: absolute;
  width: 10px;
  height: 12px;
  background: var(--accent-dark);
  border-radius: 50%;
  top: 34px;
}
.left-eye  { left: 22px; }
.right-eye { right: 22px; }

.baker-eye::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 4px; height: 4px;
  background: white;
  border-radius: 50%;
}

.baker-smile {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 12px;
  border-bottom: 2px solid var(--accent-dark);
  border-radius: 0 0 50% 50%;
}

.baker-blush {
  position: absolute;
  width: 16px; height: 8px;
  background: rgba(243, 172, 200, 0.45);
  border-radius: 50%;
  top: 48px;
}
.left-blush  { left: 12px; }
.right-blush { right: 12px; }

.baker-hair {
  position: absolute;
  top: -6px; left: 12px; right: 12px;
  display: flex;
  justify-content: space-around;
}
.hair-strand {
  width: 8px; height: 14px;
  background: #f7cadb;
  border-radius: 8px 8px 0 0;
}

/* Body & Apron */
.baker-body {
  width: 96px;
  height: 100px;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  position: relative;
  box-shadow: 0 4px 16px var(--shadow-subtle);
  margin-top: -6px;
  border: 1.5px solid var(--border-light);
}
.baker-apron {
  position: absolute;
  left: 50%; top: 10px;
  transform: translateX(-50%);
  width: 60px; height: 74px;
  background: var(--pink-pastel);
  border-radius: 10px 10px 18px 18px;
  border: 1.5px solid var(--pink-mid);
}

/* Arms */
.baker-arms { position: relative; width: 140px; }
.baker-arm {
  width: 24px; height: 64px;
  background: var(--white);
  border-radius: 16px;
  position: absolute;
  top: -72px;
  border: 1.5px solid var(--border-light);
}
.baker-arm.left-arm  { left: 0;   transform: rotate(20deg); }
.baker-arm.right-arm { right: 0;  transform: rotate(-24deg); }

/* Sleek CSS Mini Cake Plate */
.baker-cake-plate {
  position: absolute;
  top: -30px; left: -14px;
}
.mini-cake {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mini-tier {
  background: #ffffff;
  border: 1.5px solid var(--pink-mid);
  border-radius: 4px;
}
.tier-top {
  width: 20px; height: 12px;
  background: #ffffff;
}
.tier-bottom {
  width: 32px; height: 14px;
  margin-top: -1px;
  background: #ffffff;
}
.mini-plate {
  width: 44px; height: 4px;
  background: var(--accent-dark);
  border-radius: 4px;
  margin-top: 1px;
}

/* Speech bubble */
.baker-speech {
  position: absolute;
  top: 10px; right: -190px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 18px 18px 18px 4px;
  font-size: 0.8rem;
  color: var(--accent-dark);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px var(--shadow-subtle);
  border: 1px solid var(--border-light);
  animation: speechFloat 2.8s ease-in-out infinite alternate;
}
@keyframes speechFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}
.baker-speech::before {
  content: '';
  position: absolute;
  bottom: -6px; left: 10px;
  border: 6px solid transparent;
  border-top-color: var(--white);
  border-bottom: none; border-left: none;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--accent-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 0.9s ease 5.5s both;
}
.scroll-mouse {
  width: 20px; height: 32px;
  border: 1.5px solid var(--pink-mid);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
  background: rgba(255, 255, 255, 0.7);
}
.scroll-wheel {
  width: 2.5px; height: 7px;
  background: var(--accent-dark);
  border-radius: 2px;
  animation: scrollDown 1.5s ease infinite;
}
@keyframes scrollDown {
  0%   { transform: translateY(0);   opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ======================================
   SECTION SHARED STYLES
   ====================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
section { padding: 90px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
  font-weight: 600;
  background: var(--pink-soft);
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent-dark);
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 600;
}
.section-divider-line {
  width: 50px;
  height: 2px;
  background: var(--pink-mid);
  margin: 0 auto 16px;
  border-radius: 2px;
  position: relative;
}
.section-divider-line::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 6px; height: 6px;
  background: var(--accent-dark);
  border-radius: 1px;
}
.section-desc { color: var(--accent-muted); max-width: 520px; margin: 0 auto; line-height: 1.6; font-size: 0.95rem; }

/* ======================================
   ABOUT SECTION
   ====================================== */
.about {
  background: var(--white);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--accent-soft);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 1rem;
}
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 0.9rem;
  background: var(--pink-card);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.feature-item:hover { background: var(--pink-soft); transform: translateY(-2px); }
.feat-dot {
  width: 6px; height: 6px;
  background: var(--accent-dark);
  border-radius: 50%;
  flex-shrink: 0;
}

.about-products h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-dark);
  margin-bottom: 18px;
}
.product-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.product-chip {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  color: var(--accent-soft);
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: default;
  box-shadow: 0 2px 8px var(--shadow-subtle);
}
.product-chip:hover {
  background: var(--pink-soft);
  color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

.contact-card {
  background: var(--pink-card);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 18px var(--shadow-subtle);
  border: 1px solid var(--border-light);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  color: var(--accent-soft);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-light);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--white);
  color: var(--accent-dark);
  border: 1px solid var(--border-light);
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 34px;
  text-align: center;
}
.contact-item a { color: var(--accent-dark); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }

/* ======================================
   GALLERY SECTION (Past Creations)
   ====================================== */
.gallery { background: var(--pink-soft); overflow: visible; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 24px 8px;
}
.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px) scale(1);
  transition: transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease, opacity 0.6s ease var(--delay);
  box-shadow: 0 4px 18px var(--shadow-subtle);
  border: 2.5px solid var(--white);
  background: var(--white);
  will-change: transform, box-shadow;
}
.gallery-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1);
  will-change: transform;
}

/* Transparent shield over photos so Chrome's "Ask about this image" button doesn't appear */
.gallery-item::after,
.flavour-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}

/* Simple pop on hover: just gets a little bigger */
.gallery-item:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 36px rgba(56, 28, 45, 0.18);
  z-index: 50;
}

/* ======================================
   FLAVOURS SECTION
   ====================================== */
.flavours {
  background: var(--white);
  position: relative;
}

/* Flavour Category Tabs */
.flavour-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.flavour-tab {
  background: var(--white);
  color: var(--accent-soft);
  border: 1.5px solid var(--border-light);
  padding: 9px 24px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px var(--shadow-subtle);
}
.flavour-tab:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  transform: translateY(-2px);
}
.flavour-tab.active {
  background: var(--accent-dark);
  color: var(--white);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 14px var(--shadow-accent);
}

.flavours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto;
}
.flavour-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-subtle);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}
.flavour-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.flavour-card.hidden {
  display: none !important;
}
.flavour-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 44px rgba(56, 28, 45, 0.16);
  border-color: var(--accent-dark);
}

.flavour-img-wrap { height: 220px; overflow: hidden; position: relative; }
.flavour-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1); }
.flavour-card:hover .flavour-img-wrap img { transform: none; }

.flavour-info { padding: 22px 20px; text-align: center; }
.flavour-cat-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--pink-soft);
  padding: 3px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  font-weight: 600;
  margin-bottom: 8px;
}
.flavour-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-dark);
  margin-bottom: 8px;
  font-weight: 600;
}
.flavour-info p { color: var(--accent-muted); font-size: 0.88rem; line-height: 1.5; }

/* ======================================
   ORDER SECTION
   ====================================== */
.order-section {
  background: linear-gradient(160deg, #ffffff 0%, #fff4f8 40%, #ffedf4 100%);
  position: relative;
}
.order-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 50px;
  align-items: start;
}

/* Baker Character in Order Section */
.order-baker {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bakerFloat 3.8s ease-in-out infinite;
  padding-top: 10px;
  position: relative;
}
.ob-hat {
  width: 54px; height: 60px;
  background: var(--white);
  border-radius: 6px 6px 0 0;
  margin-bottom: -5px;
  border: 1.5px solid var(--border-light);
}
.ob-head {
  width: 72px; height: 72px;
  background: #fff0e6;
  border-radius: 50%;
  position: relative;
  border: 1.5px solid var(--border-light);
}
.ob-face { position: relative; width: 100%; height: 100%; }
.ob-eye {
  position: absolute;
  width: 8px; height: 10px;
  background: var(--accent-dark);
  border-radius: 50%;
  top: 26px;
}
.ob-left  { left: 16px; }
.ob-right { right: 16px; }
.ob-eye::before {
  content: ''; position: absolute;
  top: 2px; left: 2px;
  width: 3px; height: 3px;
  background: white; border-radius: 50%;
}
.ob-smile {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 9px;
  border-bottom: 2px solid var(--accent-dark);
  border-radius: 0 0 50% 50%;
}
.ob-blush {
  position: absolute;
  width: 12px; height: 6px;
  background: rgba(243, 172, 200, 0.4);
  border-radius: 50%;
  top: 38px;
}
.ob-bl { left: 8px; }
.ob-br { right: 8px; }

.ob-body {
  width: 78px; height: 86px;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  margin-top: -4px;
  position: relative;
  border: 1.5px solid var(--border-light);
}
.ob-apron {
  position: absolute;
  left: 50%; top: 8px;
  transform: translateX(-50%);
  width: 48px; height: 64px;
  background: var(--pink-pastel);
  border-radius: 8px 8px 14px 14px;
  border: 1.5px solid var(--pink-mid);
}

.ob-speech {
  position: absolute;
  top: -45px; left: 90px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 16px 16px 16px 4px;
  font-size: 0.78rem;
  color: var(--accent-dark);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--shadow-subtle);
  border: 1px solid var(--border-light);
  animation: speechFloat 2.6s ease-in-out infinite alternate;
}
.ob-speech::before {
  content: '';
  position: absolute;
  bottom: -6px; left: 8px;
  border: 6px solid transparent;
  border-top-color: var(--white);
  border-bottom: none; border-left: none;
}

/* ORDER FORM */
.order-form {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 12px 40px var(--shadow-subtle);
  border: 1px solid var(--border-light);
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin: 26px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--pink-soft);
}
.form-section-title:first-of-type { margin-top: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 0.84rem; font-weight: 600; color: var(--accent-soft); letter-spacing: 0.3px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(56, 28, 45, 0.1);
}
.form-group input.error,
.form-group select.error {
  border-color: #d9534f;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }

.form-error { color: #d9534f; font-size: 0.78rem; min-height: 1em; }

/* Checkbox */
.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--accent-soft);
  line-height: 1.4;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 20px; height: 20px;
  border: 1.5px solid var(--pink-mid);
  border-radius: 5px;
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
  background: var(--white);
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.form-submit-area { margin-top: 10px; text-align: center; }

.btn-submit {
  background: var(--accent-dark);
  color: var(--white);
  border: none;
  padding: 15px 48px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px var(--shadow-accent);
}
.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(34, 13, 26, 0.32);
}
.btn-submit:active { transform: translateY(0); }

/* Success State */
.order-success {
  background: var(--white);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 12px 40px var(--shadow-subtle);
  border: 1px solid var(--border-light);
}
.success-checkmark {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
}
.success-checkmark svg {
  width: 100%; height: 100%;
}
.success-checkmark circle {
  stroke: var(--accent-dark);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.success-checkmark path {
  stroke: var(--accent-dark);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}
@keyframes strokeCircle { to { stroke-dashoffset: 0; } }
@keyframes strokeCheck  { to { stroke-dashoffset: 0; } }

.order-success h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.order-success p {
  color: var(--accent-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ======================================
   FOOTER
   ====================================== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.footer-wave { line-height: 0; margin-bottom: -2px; }
.footer-wave svg { display: block; width: 100%; height: 50px; }

.footer-content { padding: 40px 60px 30px; max-width: 1200px; margin: 0 auto; }

/* FOOTER LOGO IN DEEP ELEGANT SHADE */
.footer-logo {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--accent-dark) !important;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1;
}
.footer-logo .logo-c {
  color: var(--accent-dark) !important;
  font-size: 3.2rem;
  font-weight: 700;
  display: inline-block;
  opacity: 1 !important;
  visibility: visible !important;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-left: 8px;
  vertical-align: middle;
}

.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 40px 0 36px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.footer-col p, .footer-col a {
  font-size: 0.88rem;
  line-height: 2;
  color: var(--accent-muted);
  display: block;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--accent-dark); }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--pink-soft);
  font-size: 0.82rem;
  color: var(--accent-muted);
}

/* ======================================
   KEYFRAMES & UTILITIES
   ====================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 1024px) {
  .hero-character { right: 20px; transform: scale(0.85); transform-origin: bottom right; }
  .flavours-grid  { grid-template-columns: repeat(2, 1fr); }
  .order-wrapper  { grid-template-columns: 1fr; }
  .order-char     { display: none; }
}

@media (max-width: 768px) {
  #navbar { padding: 16px 24px; }
  #navbar.scrolled { padding: 10px 24px; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%; height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: right 0.35s ease;
    box-shadow: -4px 0 24px var(--shadow-subtle);
    padding: 40px;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; }
  .hamburger { display: flex; z-index: 10; }

  .hero-content { padding: 110px 24px 50px; }
  .title-line1   { font-size: 4rem; }
  .hero-character { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .flavours-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 24px; }
  .footer-content { padding: 30px 24px; }
  .two-col { grid-template-columns: 1fr; }
  .order-form { padding: 24px; }

  .door-frame { width: 280px; height: 350px; }
  .door { width: 130px; height: 310px; }
}

@media (max-width: 480px) {
  .section-header h2 { font-size: 2.1rem; }
  .title-line1 { font-size: 3.2rem; }
  .hero-highlights { flex-direction: column; }
  .hero-buttons  { flex-direction: column; }
  .gallery-grid  { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
}

/* Hero background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 244, 249, 0.8) 38%, rgba(255, 244, 249, 0.2) 75%, rgba(255, 244, 249, 0.05) 100%);
}
@media (max-width: 768px) {
  .hero-overlay { background: rgba(255, 246, 250, 0.82); }
}

/* Clear video: no wash over it, text made readable with white + soft shadow */
.hero-overlay { display: none; }
.hero .title-line1 { color: #ffffff; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55); }
.hero .title-line2 { color: #ffffff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.hero .hero-sub { color: #ffffff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65); }

/* Transparent nav over the hero video; turns white once you scroll */
#navbar:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}
#navbar:not(.scrolled) .nav-logo,
#navbar:not(.scrolled) .logo-c { color: #ffffff !important; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55); }
#navbar:not(.scrolled) .nav-links a:not(.nav-order-btn) { color: #ffffff !important; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
#navbar:not(.scrolled) .nav-links a:not(.nav-order-btn)::after { background: #ffffff; }
#navbar:not(.scrolled) .hamburger span { background: #ffffff; }
#navbar:not(.scrolled) .nav-links.open a:not(.nav-order-btn) { color: var(--accent-dark) !important; text-shadow: none; }


/* ======================================
   ORDER POP-UP
   ====================================== */
.hero-character { cursor: pointer; }
.hero-character:hover .baker-char { animation-duration: 1.6s; }
.hero-character:focus-visible { outline: 3px solid #ffffff; outline-offset: 6px; border-radius: 20px; }

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.order-modal.open { visibility: visible; opacity: 1; }
.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(56, 28, 45, 0.55);
}
.order-modal-card {
  position: relative;
  width: min(780px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 34px clamp(18px, 4vw, 40px) 30px;
  box-shadow: 0 30px 80px rgba(56, 28, 45, 0.35);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.order-modal.open .order-modal-card { transform: translateY(0) scale(1); }
.order-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  color: var(--accent-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.order-close:hover { background: var(--accent-dark); color: #ffffff; }
.order-modal-head { text-align: center; margin-bottom: 18px; padding: 0 30px; }
.order-modal-head h2 { font-family: var(--font-display); color: var(--accent-dark); font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 6px 0; }
.order-modal-head p { color: var(--accent-soft); font-size: 0.95rem; }
.order-modal .order-form {
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 0;
  max-width: none;
  margin: 0;
}

/* ======================================
   PHONE LAYOUT (same site, tuned for small screens)
   ====================================== */
.hero { min-height: 100vh; min-height: 100svh; }

@media (max-width: 768px) {
  /* nav: backdrop-filter would trap the fixed side menu, so drop it on phones */
  #navbar, #navbar.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  #navbar.scrolled { background: rgba(255, 255, 255, 0.98); }
  .nav-links { z-index: 5; }
  .nav-links.open + .hamburger span { background: var(--accent-dark) !important; }

  /* baker mascot stays on phones: smaller, bottom-right, still tappable */
  .hero-character {
    display: block;
    right: 6px;
    bottom: 64px;
    transform: scale(0.58);
    transform-origin: bottom right;
    z-index: 3;
  }
  .hero-character .baker-speech {
    font-size: 1.15rem;
    white-space: normal;
    width: 230px;
    text-align: center;
  }
  .hero-content { padding: 100px 20px 150px; max-width: 100%; }
  .hero-sub { font-size: 1rem; }
  .scroll-indicator { display: none; }

  .gallery-grid { gap: 14px; padding: 16px 0; }
  .flavours-grid { gap: 20px; }
  .flavour-img-wrap { height: 240px; }
  .flavour-tabs { flex-wrap: wrap; justify-content: center; gap: 8px; }

  .order-modal { padding: 10px; align-items: flex-end; }
  .order-modal-card { max-height: 94vh; padding: 26px 16px 22px; border-radius: 22px 22px 16px 16px; }
  .order-modal-head { padding: 0 24px; }
  .order-close { top: 10px; right: 10px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item { border-radius: 12px; }
  .title-line1 { font-size: 3.4rem; }
  .hero-buttons .btn-primary, .hero-buttons .btn-secondary { text-align: center; width: 100%; }
  .section-header { padding: 0 6px; }
}
@media (hover: none) {
  .gallery-item:hover, .flavour-card:hover { transform: none; }
}

/* PHONE HERO: video shown whole (16:9) at the top, text below it on a light background */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .hero-video {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    object-fit: cover;
  }
  .hero-content { padding: 28px 22px 140px; }
  .hero .title-line1 { color: var(--accent-dark); text-shadow: none; }
  .hero .title-line2 { color: var(--accent-muted); text-shadow: none; }
  .hero .hero-sub { color: var(--accent-soft); text-shadow: none; }
}

/* PHONE HERO v2: no gap above the video, video zoomed a little to fill more of the screen */
@media (max-width: 768px) {
  .hero { padding-top: 0 !important; padding-bottom: 0 !important; }
  .hero-video {
    margin-top: 0;
    aspect-ratio: auto;
    height: 48svh;
    min-height: 340px;
    object-fit: cover;
    object-position: 50% 50%;
  }
}


/* ======================================
   CUTE CUPCAKE MASCOT
   ====================================== */
.mascot { width: 200px; height: auto; overflow: visible; display: block; }
.mascot * { transform-box: fill-box; }
.m-body { transform-origin: 50% 100%; animation: mHop 2.8s ease-in-out infinite; }
@keyframes mHop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  45%      { transform: translateY(-14px) scale(0.98, 1.03); }
  60%      { transform: translateY(0) scale(1.04, 0.95); }
  72%      { transform: translateY(0) scale(1, 1); }
}
.m-shadow { transform-origin: center; animation: mShadow 2.8s ease-in-out infinite; }
@keyframes mShadow { 0%, 100% { transform: scale(1); opacity: 1; } 45% { transform: scale(0.8); opacity: 0.6; } }
.m-eyes { transform-origin: 50% 50%; animation: mBlink 4s infinite; }
@keyframes mBlink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
.m-wave { transform-origin: 0% 100%; animation: mWave 1.6s ease-in-out infinite; }
@keyframes mWave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-16deg); } }
.m-cherry { transform-origin: 50% 100%; animation: mCherry 2.8s ease-in-out infinite; }
@keyframes mCherry { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(6deg); } }
.m-twinkle path { transform-origin: center; animation: mTwinkle 2.2s ease-in-out infinite; }
.m-twinkle path:nth-child(2) { animation-delay: 1.1s; }
@keyframes mTwinkle { 0%, 100% { transform: scale(0.5); opacity: 0.4; } 50% { transform: scale(1.1); opacity: 1; } }
.hero-character:hover .m-body { animation-duration: 1.2s; }
.hero-character:hover .mascot { filter: drop-shadow(0 8px 14px rgba(56, 28, 45, 0.3)); }
.baker-char { animation: none; }


/* ======================================
   BUNNY BAKER MASCOT (fixed bottom-right, every screen)
   ====================================== */
#bakerBtn.hero-character {
  position: fixed;
  right: 18px;
  bottom: 14px;
  left: auto;
  top: auto;
  z-index: 900;
  transform: none;
  display: block;
  cursor: pointer;
  animation: fadeInUp 0.8s ease 3.8s both;
  -webkit-tap-highlight-color: transparent;
}
.bunny { width: 112px; height: auto; display: block; overflow: visible; }
.bunny * { transform-box: fill-box; }
.bn-all { transform-origin: 50% 100%; animation: bnHop 3s ease-in-out infinite; }
@keyframes bnHop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  40%      { transform: translateY(-9px) scale(0.98, 1.03); }
  55%      { transform: translateY(0) scale(1.04, 0.96); }
  68%      { transform: translateY(0) scale(1, 1); }
}
.bn-shadow { transform-origin: center; animation: bnShadow 3s ease-in-out infinite; }
@keyframes bnShadow { 0%, 100% { transform: scale(1); } 40% { transform: scale(0.8); } }
.bn-ear-l { transform-origin: 50% 100%; animation: bnEarL 3.4s ease-in-out infinite; }
.bn-ear-r { transform-origin: 50% 100%; animation: bnEarR 3.4s ease-in-out infinite 0.4s; }
@keyframes bnEarL { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-7deg); } }
@keyframes bnEarR { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(5deg); } }
.bn-eyes { transform-origin: 50% 50%; animation: bnBlink 4.2s infinite; }
@keyframes bnBlink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
.bn-wave { transform-origin: 50% 100%; animation: bnWave 1.5s ease-in-out infinite; }
@keyframes bnWave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-22deg); } }
#bakerBtn:hover .bn-all { animation-duration: 1.3s; }
#bakerBtn:hover .bunny { filter: drop-shadow(0 6px 10px rgba(56, 28, 45, 0.28)); }

.bunny-speech {
  position: absolute;
  right: 6px;
  bottom: 100%;
  margin-bottom: 6px;
  width: max-content;
  max-width: 178px;
  padding: 9px 14px;
  background: #ffffff;
  color: var(--accent-dark);
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 20px rgba(56, 28, 45, 0.15);
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transform-origin: bottom right;
  pointer-events: none;
  animation: bnSpeech 12s ease-in-out 5s infinite;
}
.bunny-speech::after {
  content: '';
  position: absolute;
  right: 28px; bottom: -7px;
  width: 12px; height: 12px;
  background: #ffffff;
  border-right: 1.5px solid var(--border-light);
  border-bottom: 1.5px solid var(--border-light);
  transform: rotate(45deg);
}
@keyframes bnSpeech {
  0%, 36%, 100% { opacity: 0; transform: translateY(6px) scale(0.92); }
  4%, 30% { opacity: 1; transform: translateY(0) scale(1); }
}
#bakerBtn:hover .bunny-speech { opacity: 1; transform: translateY(0) scale(1); animation: none; }

@media (max-width: 768px) {
  #bakerBtn.hero-character { right: 10px; bottom: 10px; }
  .bunny { width: 88px; }
  .bunny-speech { font-size: 0.76rem; max-width: 150px; padding: 8px 12px; }
}


/* ---- Elegant refinement: slower, graceful, lighter lines ---- */
.bunny { width: 98px; }
.bn-all { animation: bnFloat 5s ease-in-out infinite; }
@keyframes bnFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.bn-shadow { animation: bnShadowE 5s ease-in-out infinite; }
@keyframes bnShadowE { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.85); opacity: 0.6; } }
.bn-ear-l { animation: bnEarL 5.5s ease-in-out infinite; }
.bn-ear-r { animation: bnEarR 5.5s ease-in-out infinite 0.6s; }
@keyframes bnEarL { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }
@keyframes bnEarR { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(3deg); } }
.bn-wave { animation: bnWaveE 3.2s ease-in-out infinite; }
@keyframes bnWaveE { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(4deg); } 90% { transform: rotate(-12deg); } }
.bn-spark path { transform-origin: center; animation: bnSpark 3.4s ease-in-out infinite; }
.bn-spark path:nth-child(2) { animation-delay: 1.7s; }
@keyframes bnSpark { 0%, 100% { transform: scale(0.4); opacity: 0.3; } 50% { transform: scale(1); opacity: 1; } }
#bakerBtn:hover .bn-all { animation-duration: 2.6s; }
#bakerBtn:hover .bunny { filter: drop-shadow(0 8px 12px rgba(56, 28, 45, 0.2)); }

/* speech bubble in the same style as the navigation (small caps, plum) */
.bunny-speech {
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: none;
  right: 4px;
  box-shadow: 0 8px 22px rgba(56, 28, 45, 0.12);
}
.bunny-speech::after { right: 34px; border-right-width: 1px; border-bottom-width: 1px; }

@media (max-width: 768px) {
  .bunny { width: 82px; }
  .bunny-speech { font-size: 0.6rem; padding: 7px 12px; letter-spacing: 1.6px; max-width: none; }
}


/* ---- Squirrel baker tweaks ---- */
.bunny { width: 108px; }
.bn-tail { transform-origin: 8% 96%; animation: bnTail 4.4s ease-in-out infinite; }
@keyframes bnTail { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(5deg); } }
.bn-ear-l, .bn-ear-r { transform-origin: 50% 90%; }
@media (max-width: 768px) { .bunny { width: 90px; } }


/* ---- Illustrated squirrel baker ---- */
.squirrel-img {
  display: block;
  width: 128px;
  height: auto;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 8px 10px rgba(56, 28, 45, 0.18));
  animation: sqFloat 4.6s ease-in-out infinite;
  -webkit-user-drag: none;
  user-select: none;
}
@keyframes sqFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(1.5deg); }
}
#bakerBtn:hover .squirrel-img { animation: sqHover 0.9s ease-in-out infinite; filter: drop-shadow(0 12px 14px rgba(56, 28, 45, 0.25)); }
@keyframes sqHover {
  0%, 100% { transform: translateY(0) rotate(-3deg) scale(1.04); }
  50%      { transform: translateY(-8px) rotate(3deg) scale(1.06); }
}
@media (max-width: 768px) { .squirrel-img { width: 98px; } }

/* ---- Squirrel: waving arm (behind her body) + cupcake pose on hover ---- */
.sq-wrap {
  position: relative;
  width: 140px;
  aspect-ratio: 725 / 760;
  animation: sqBob 4.6s ease-in-out infinite;
  filter: drop-shadow(0 8px 10px rgba(56, 28, 45, 0.16));
}
@keyframes sqBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.sq-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.sq-arm {
  transform-origin: 22.9% 65.3%;
  animation: sqWave 1.25s ease-in-out infinite;
}
@keyframes sqWave {
  0%, 100% { transform: rotate(7deg); }
  50%      { transform: rotate(-7deg); }
}
.sq-cup {
  opacity: 0;
  transform: translate(-3%, 8%) scale(0.97);
  transform-origin: 40% 100%;
  transition: opacity 0.25s ease, transform 0.5s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.sq-base { transition: opacity 0.2s ease; }
#bakerBtn:hover .sq-cup, #bakerBtn:focus-visible .sq-cup { opacity: 1; transform: none; }
#bakerBtn:hover .sq-base, #bakerBtn:focus-visible .sq-base { opacity: 0; }
@media (hover: none) {
  .sq-cup  { animation: sqCupLoop 9s ease-in-out 4s infinite; }
  .sq-base { animation: sqBaseLoop 9s ease-in-out 4s infinite; }
}
@keyframes sqCupLoop {
  0%, 55%, 100% { opacity: 0; transform: translate(-3%, 8%) scale(0.97); }
  62%, 88%      { opacity: 1; transform: none; }
}
@keyframes sqBaseLoop { 0%, 55%, 100% { opacity: 1; } 62%, 88% { opacity: 0; } }
@media (max-width: 768px) { .sq-wrap { width: 108px; } }

/* ---- Glitch fixes: no see-through flash and no layout jump ---- */
html { scrollbar-gutter: stable; }

/* cupcake pose: fade it in on top, only then drop the base layer (so she never turns see-through) */
.sq-cup {
  transform: none !important;
  transition: opacity 0.25s ease;
}
.sq-base { transition: opacity 0s linear; }
#bakerBtn:hover .sq-base, #bakerBtn:focus-visible .sq-base {
  opacity: 0;
  transition: opacity 0s linear 0.26s;
}
#bakerBtn:hover .sq-cup, #bakerBtn:focus-visible .sq-cup { transform: none !important; }
#bakerBtn { -webkit-tap-highlight-color: transparent; outline: none; user-select: none; }
#bakerBtn:focus:not(:focus-visible) { outline: none; }

@media (hover: none) {
  .sq-cup  { animation: sqCupLoop2 9s ease-in-out 4s infinite; }
  .sq-base { animation: sqBaseLoop2 9s linear 4s infinite; }
}
@keyframes sqCupLoop2 {
  0%, 55%, 100% { opacity: 0; }
  62%, 88%      { opacity: 1; }
  94%           { opacity: 0; }
}
@keyframes sqBaseLoop2 {
  0%, 62.5%   { opacity: 1; }
  62.6%, 88%  { opacity: 0; }
  88.1%, 100% { opacity: 1; }
}


/* ---- Simple text / Instagram order form ---- */
.text-order .to-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.text-order .form-group { margin-bottom: 16px; }
.text-order textarea { width: 100%; resize: vertical; min-height: 120px; }
.to-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.to-actions .btn-submit, .to-actions .to-ig {
  flex: 1 1 200px;
  text-align: center;
  padding: 15px 22px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.to-actions .to-ig {
  background: #ffffff;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent-dark);
  display: inline-block;
}
.to-actions .to-ig:hover { background: var(--pink-soft); transform: translateY(-2px); }
.to-note { margin-top: 14px; text-align: center; font-size: 0.85rem; color: var(--accent-soft); min-height: 1.3em; }
.to-note.error { color: #b3263e; font-weight: 600; }
@media (max-width: 560px) { .text-order .to-row { grid-template-columns: 1fr; gap: 0; } }


/* ---- Pickup / delivery, date, 2-day note ---- */
.to-seg { display: flex; gap: 10px; }
.to-opt { flex: 1; cursor: pointer; margin: 0; }
.to-opt input { position: absolute; opacity: 0; pointer-events: none; }
.to-opt span {
  display: block;
  text-align: center;
  padding: 13px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.to-opt:hover span { border-color: var(--accent-dark); }
.to-opt input:checked + span { background: var(--accent-dark); color: #ffffff; border-color: var(--accent-dark); }
.to-opt input:focus-visible + span { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.text-order input[type="date"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  color: var(--accent-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.text-order input[type="date"]:focus { outline: none; border-color: var(--accent-dark); }
.to-rule {
  margin: 0 0 18px;
  padding: 11px 16px;
  background: var(--pink-soft);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}

/* ---- Bigger hover pop ---- */
.gallery-item:hover { transform: scale(1.12); box-shadow: 0 22px 44px rgba(56, 28, 45, 0.22); z-index: 50; }
.flavour-card:hover { transform: translateY(-10px) scale(1.06); }
#bakerBtn.hero-character { transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1); transform-origin: 85% 100%; }
#bakerBtn.hero-character:hover { transform: scale(1.14); }
@media (hover: none) { #bakerBtn.hero-character:hover { transform: none; } }

/* Squirrel pop: use the separate scale property (the entrance animation holds transform, which blocked the hover) */
#bakerBtn.hero-character { transition: scale 0.3s cubic-bezier(0.34, 1.4, 0.64, 1); scale: 1; transform-origin: 85% 100%; }
#bakerBtn.hero-character:hover { scale: 1.18; transform: none; }
@media (hover: none) { #bakerBtn.hero-character:hover { scale: 1; } }

/* ---- Order pop-up: no sideways scrolling, content always fits the card (desktop and phone) ---- */
.order-modal-card { overflow-x: hidden; }
.order-modal-card, .order-modal-card * { box-sizing: border-box; min-width: 0; }
.order-modal .text-order, .order-modal .text-order .form-group, .order-modal .to-row { width: 100%; max-width: 100%; }
.text-order select, .text-order textarea, .text-order input[type="date"] { width: 100%; max-width: 100%; }
.to-actions .btn-submit, .to-actions .to-ig { flex: 1 1 160px; }


/* ======================================
   FLAVOUR DETAIL POP-UP
   ====================================== */
.flavour-card { cursor: pointer; }
.fm {
  position: fixed; inset: 0; z-index: 19000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  visibility: hidden; opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.fm.open { visibility: visible; opacity: 1; }
.fm-backdrop { position: absolute; inset: 0; background: rgba(56, 28, 45, 0.6); }
.fm-card {
  position: relative;
  width: min(980px, 100%);
  max-height: 92vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(56, 28, 45, 0.4);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.fm.open .fm-card { transform: none; }
.fm-img { background: #f6efe9; min-height: 0; }
.fm-img img { width: 100%; height: 100%; max-height: 92vh; object-fit: cover; display: block; }
.fm-body { padding: 38px clamp(22px, 3.5vw, 44px); overflow-y: auto; display: flex; flex-direction: column; justify-content: center; }
.fm-title { font-family: var(--font-display); color: var(--accent-dark); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; margin: 8px 0 12px; }
.fm-desc { color: var(--accent-soft); line-height: 1.7; margin-bottom: 18px; }
.fm-sub { font-size: 0.74rem; letter-spacing: 4px; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; }
.fm-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; }
.fm-list li { display: flex; gap: 12px; align-items: baseline; color: var(--accent-dark); font-size: 0.95rem; line-height: 1.45; }
.fm-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #f3acc8; flex: 0 0 auto; transform: translateY(-1px); }
.fm-order { align-self: flex-start; }
.fm .order-close { z-index: 3; background: rgba(255, 255, 255, 0.92); }
@media (max-width: 768px) {
  .fm { padding: 10px; align-items: flex-end; }
  .fm-card { grid-template-columns: 1fr; max-height: 94vh; overflow-y: auto; border-radius: 22px 22px 16px 16px; }
  .fm-img img { max-height: 46vh; }
  .fm-body { padding: 24px 20px 26px; overflow: visible; }
  .fm-order { align-self: stretch; text-align: center; }
}


/* flavour pop-up: image area reserved so nothing jumps while it opens */
.fm-img { aspect-ratio: 1 / 1; overflow: hidden; }
.fm-img img { transition: none; }


/* flavour pop-up picture: fill its square box reliably (fixes the picture not showing) */
.fm-img { position: relative; aspect-ratio: 1 / 1; width: 100%; align-self: start; }
.fm-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; display: block; }
@media (max-width: 768px) {
  .fm-img { aspect-ratio: 1 / 1; max-height: 46vh; }
  .fm-img img { max-height: none; }
}


/* one permanent picture per flavour; only the active one is visible (no swapping flash) */
.fm-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; visibility: hidden; transition: none; }
.fm-pic.on { opacity: 1; visibility: visible; }
.fm-card { transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1); will-change: transform; }


/* big pictures fade in smoothly as soon as they arrive (no sudden pop-in) */
.gallery-item img, .flavour-img-wrap img { opacity: 0; transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1); background: #fbeef4; }
.gallery-item img.ready, .flavour-img-wrap img.ready { opacity: 1; }
.gallery-item, .flavour-img-wrap { background: #fbeef4; }


/* flavour pop-up opens instantly; soft pink shimmer shows until the 4K picture is ready, then it fades in */
.fm-img.loading { background: linear-gradient(110deg, #fbeef4 30%, #fff8fb 50%, #fbeef4 70%); background-size: 200% 100%; animation: fmShimmer 1.2s linear infinite; }
@keyframes fmShimmer { to { background-position: -200% 0; } }
.fm-pic { transition: opacity 0.35s ease; }
.fm-pic.on { transition: opacity 0.35s ease; }

/* closed flavour pop-up must never catch clicks (its last picture used to stay clickable) */
.fm:not(.open), .fm:not(.open) * { pointer-events: none !important; visibility: hidden !important; }
.fm.open { pointer-events: auto; }
.order-modal:not(.open), .order-modal:not(.open) * { pointer-events: none !important; }

/* ===== SMOOTHNESS PASS (no change to picture quality) ===== */
/* no permanent GPU layers for 18 gallery tiles / images, and no animated box-shadow (it repaints every frame) */
.gallery-item, .gallery-item img, .fm-card, .flavour-card { will-change: auto !important; }
.gallery-item { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease !important; }
.gallery-item img { transition: opacity 0.5s ease !important; }
.flavour-card { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease !important; }
.flavour-img-wrap img { transition: opacity 0.5s ease !important; }
.gallery-item:hover img, .flavour-card:hover .flavour-img-wrap img { transform: none !important; }
/* blur behind the menu bar is very expensive over video: use a solid bar instead */
#navbar, #navbar.scrolled { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
#navbar.scrolled { background: rgba(255, 255, 255, 0.98) !important; }
/* the squirrel's animated drop-shadow filter repaints every frame: use a flat one */
.sq-wrap { filter: none !important; }
.sq-wrap::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: -2px; height: 8px; border-radius: 50%; background: rgba(56, 28, 45, 0.16); filter: none; z-index: -1; }
#bakerBtn:hover .sq-wrap { filter: none !important; }
/* skip painting/layout of the big sections until they are near the screen */
#gallery, #flavours { content-visibility: auto; contain-intrinsic-size: auto 1400px; }
/* keep the video on its own layer */
.hero-video, .ib-video { transform: translateZ(0); }

/* ===== FLAVOUR DISPLAY IMAGE DIMENSIONS & FRAMING ===== */
.flavour-img-wrap {
  height: auto !important;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  position: relative;
  background: #fbeef4;
}
.flavour-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.flavour-img-wrap img[src="13.JPG"], .fm-pic[src="13.JPG"] { object-position: 50% 45%; }
.flavour-img-wrap img[src="8_fixed.jpg"], .fm-pic[src="8_fixed.jpg"] { object-position: 50% 60%; }
.flavour-img-wrap img[src="Remove_titles_and_brighten_image_e98116ed_4K.jpg"], .fm-pic[src="Remove_titles_and_brighten_image_e98116ed_4K.jpg"] { object-position: 50% 50%; }
.flavour-img-wrap img[src="15.jpg"], .fm-pic[src="15.jpg"] { object-position: 50% 50%; }
.flavour-img-wrap img[src="11.JPG"], .fm-pic[src="11.JPG"] { object-position: 50% 65%; }
.flavour-img-wrap img[src="mxd fruit (1).jpg"], .fm-pic[src="mxd fruit (1).jpg"] { object-position: 50% 58%; }
.flavour-img-wrap img[src="flavour_mixed_berries.jpg"], .fm-pic[src="flavour_mixed_berries.jpg"] { object-position: 50% 68%; }
.flavour-img-wrap img[src="fudge_brownie_4k.jpg"], .fm-pic[src="fudge_brownie_4k.jpg"] { object-position: 50% 66%; }
.flavour-img-wrap img[src="tutti fruiti.jpg"], .fm-pic[src="tutti fruiti.jpg"] { object-position: 50% 62%; }
.flavour-img-wrap img[src="Chocolate Tea Cake.jpg"], .fm-pic[src="Chocolate Tea Cake.jpg"] { object-position: 50% 52%; }

/* Ensure Flavour Detail Pop-up never crops the 1:1 layer breakdown images on desktop or phone */
.fm-img {
  position: relative;
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  max-height: none !important;
  align-self: center;
}
.fm-pic {
  object-fit: cover;
}

/* Lift squirrel mascot above any bottom browser/Netlify preview bar & hide injected Netlify preview bars */
#bakerBtn.hero-character {
  bottom: 58px !important;
  right: 18px !important;
}
netlify-drawer,
#netlify-drawer,
[data-netlify-drawer],
[id^="netlify-"],
iframe[src*="app.netlify.com"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  pointer-events: none !important;
}

/* ===== REFINED PHONE LAYOUT ===== */
@media (max-width: 768px) {
  .hero {
    min-height: auto !important;
  }
  .hero-video {
    height: 50svh !important;
    min-height: 310px !important;
    max-height: 440px !important;
  }
  .hero-content {
    padding: 28px 20px 44px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero .title-line1 {
    font-size: clamp(3rem, 13vw, 4rem);
  }
  .hero .hero-sub {
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
  }
  .flavours-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 22px;
  }
  .flavour-img-wrap {
    height: auto !important;
    aspect-ratio: 4 / 4.2 !important;
  }
  .fm {
    padding: 12px;
    align-items: center;
  }
  .fm-card {
    grid-template-columns: 1fr;
    max-height: 90svh;
    overflow-y: auto;
    border-radius: 22px;
  }
  .fm-img {
    aspect-ratio: 1 / 1 !important;
    max-height: none !important;
  }
  #bakerBtn.hero-character {
    bottom: 56px !important;
    right: 12px !important;
  }
}

@media (max-width: 480px) {
  .about-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ======================================
   FLAVOUR POP-UP BASE PRICE DISPLAY
   ====================================== */
.fm-price-box {
  background: var(--pink-soft);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  padding: 13px 16px;
  margin: 2px 0 16px;
}

.fm-price-box[hidden] {
  display: none !important;
}

.fm-price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fm-price-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fm-price-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.fm-price-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-soft);
}

.fm-price-val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
}

.fm-price-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--accent-muted);
}

@media (max-width: 768px) {
  .fm-price-box {
    padding: 12px 14px;
    margin-bottom: 14px;
  }
  .fm-price-val {
    font-size: 1.38rem;
  }
}

/* ======================================
   DIVIDED MENU CATEGORY SECTIONS
   ====================================== */
#flavours {
  content-visibility: visible;
}

.menu-cat-block {
  max-width: 1140px;
  margin: 0 auto 60px;
}

.menu-cat-block:last-child {
  margin-bottom: 0;
}

.menu-cat-block.hidden {
  display: none !important;
}

.menu-cat-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.menu-cat-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}

.menu-cat-line {
  flex: 1 1 auto;
  height: 1.5px;
  background: linear-gradient(90deg, var(--pink-mid) 0%, rgba(248, 204, 222, 0.15) 100%);
  border-radius: 2px;
}

.menu-coming-card {
  background: linear-gradient(145deg, #fff6fa 0%, #ffffff 100%);
  border: 1.5px dashed var(--pink-mid);
  border-radius: 22px;
  padding: 38px 28px;
  text-align: center;
  box-shadow: 0 6px 22px var(--shadow-subtle);
}

.menu-coming-card h4 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 6px 0 10px;
}

.menu-coming-card p {
  color: var(--accent-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 20px;
}

.menu-enquire-link {
  display: inline-block;
  background: var(--accent-dark);
  color: var(--white);
  padding: 11px 28px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: 0 4px 14px var(--shadow-accent);
}

.menu-enquire-link:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .menu-cat-block {
    max-width: 420px;
    margin-bottom: 46px;
  }
  .menu-cat-head {
    margin-bottom: 20px;
    gap: 14px;
  }
  .menu-coming-card {
    padding: 28px 20px;
  }
}


/* ===== Cupcake & chocolate options ===== */
.text-order [hidden] { display: none !important; }
.pack-note {
  text-align: center;
  color: var(--accent-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 26px;
}
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  max-width: 1140px;
  margin: 0 auto;
}
.pack-card {
  background: linear-gradient(145deg, #fff6fa 0%, #ffffff 100%);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 30px 20px 24px;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow-subtle);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pack-card:hover, .pack-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(56, 28, 45, 0.14);
  border-color: var(--accent-dark);
  outline: none;
}
.pack-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 6px 0 8px;
}
.pack-card p {
  color: var(--accent-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 16px;
}
.pack-cta {
  display: inline-block;
  background: var(--accent-dark);
  color: var(--white);
  padding: 9px 26px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px var(--shadow-accent);
}
@media (max-width: 768px) {
  .pack-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pack-card { padding: 22px 12px 18px; }
  .pack-card h3 { font-size: 1.15rem; }
}
@media (max-width: 400px) { .pack-grid { grid-template-columns: 1fr; } }

.order-modal-card { overflow-x: clip !important; }

.pack-card { padding-top: 0; overflow: hidden; }
.pack-img { margin: 0 -20px 16px; aspect-ratio: 1 / 1; overflow: hidden; }
.pack-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pack-card .flavour-cat-badge { margin-top: 2px; }
@media (max-width: 768px) { .pack-img { margin: 0 -12px 12px; } }

/* Phone: two flavour cards side by side */
@media (max-width: 768px) {
  .menu-cat-block { max-width: 100% !important; }
  .flavours-grid { grid-template-columns: 1fr 1fr !important; max-width: 100% !important; gap: 12px !important; }
  .flavour-info { padding: 12px 10px 14px; }
  .flavour-info h3 { font-size: 1.02rem; line-height: 1.2; }
  .flavour-info p { font-size: 0.76rem; line-height: 1.4; }
  .flavour-cat-badge { font-size: 0.58rem; letter-spacing: 1.2px; padding: 2px 8px; }
}

/* Freshly Homebaked badge sits under the hero tagline */
.hero-sub + .hero-badge { margin: 22px 0 0 !important; }

.hero .hero-sub { margin-bottom: 0 !important; }
.hero-sub + .hero-badge { margin: 8px 0 0 !important; }
