/* Guilty Pleasure Treats – pink bakery theme, matching app */
:root {
  --primary: #fce4ec;
  --secondary: #fef7f9;
  --accent: #e84393;
  --accent-deep: #c2185b;
  --text: #3d2029;
  --text-muted: #6d4d5a;
  --card: #ffffff;
  --promo: #f8bbd9;
  --warm: #fdf2f4;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-btn: 12px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-soft: 0 4px 24px rgba(194, 24, 91, 0.08);
  --shadow-card: 0 8px 32px rgba(194, 24, 91, 0.12);
  --hero-duration: 0.7s;
  --hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6px, -8px) scale(1.02); }
  66% { transform: translate(-4px, 4px) scale(0.98); }
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -12px); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.6; }
}

@keyframes btnShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --hero-duration: 0.01s; }
  .hero-float { animation: none !important; }
  .hero-scroll-dot { animation: none !important; }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--secondary);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(232, 67, 147, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

.nav a.nav-active {
  color: var(--accent);
  font-weight: 600;
}

.nav-ig {
  opacity: 0.9;
}

/* Mobile menu toggle (hamburger) – shown by JS on small screens */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-btn);
  transition: background 0.2s;
}
.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--primary);
}
.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
body.menu-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.menu-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
a:focus-visible,
.contact-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(232, 67, 147, 0.4);
}

.btn-secondary {
  background: var(--card);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--primary);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--warm) 0%, var(--secondary) 35%, var(--primary) 70%, var(--promo) 100%);
  opacity: 0.98;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e84393' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.4) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.3) 0%, transparent 45%);
  pointer-events: none;
}

/* Floating decorative blobs */
.hero-floats {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-float {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.hero-float-1 { width: 180px; height: 180px; background: var(--promo); top: 15%; left: 8%; animation-delay: 0s; }
.hero-float-2 { width: 120px; height: 120px; background: var(--primary); top: 60%; right: 12%; animation-delay: -2s; animation-duration: 10s; }
.hero-float-3 { width: 100px; height: 100px; background: rgba(255,255,255,0.6); bottom: 25%; left: 15%; animation-delay: -4s; animation-duration: 9s; }
.hero-float-4 { width: 140px; height: 140px; background: var(--warm); top: 25%; right: 20%; animation-delay: -1s; animation-duration: 11s; }
.hero-float-5 { width: 80px; height: 80px; background: var(--primary); bottom: 15%; right: 25%; animation-delay: -3s; animation-duration: 7s; }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Staggered hero entrance */
.hero-anim {
  opacity: 0;
  transform: translateY(28px);
}

.hero-ready .hero-anim {
  animation: heroFadeUp var(--hero-duration) var(--hero-ease) forwards;
}

.hero-ready .hero-anim[data-delay="0"] { animation-delay: 0.1s; }
.hero-ready .hero-anim[data-delay="1"] { animation-delay: 0.25s; }
.hero-ready .hero-anim[data-delay="2"] { animation-delay: 0.45s; }
.hero-ready .hero-anim[data-delay="3"] { animation-delay: 0.65s; }
.hero-ready .hero-anim[data-delay="4"] { animation-delay: 0.9s; }

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.hero-trust {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 1.5rem 0 0;
  font-weight: 500;
}

/* Primary CTA subtle shine */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.25) 45%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.25) 55%, transparent 100%);
  background-size: 200% 100%;
  animation: btnShine 4s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .btn-glow::after { animation: none; }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: opacity 0.3s;
}

.hero-scroll-hint:hover { opacity: 0.8; }

.hero-scroll-dot {
  width: 24px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  position: relative;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-dot::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

/* Trust strip */
.trust-strip {
  background: var(--card);
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(232, 67, 147, 0.15);
  box-shadow: var(--shadow-soft);
}

.trust-strip.trust-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--hero-ease), transform 0.5s var(--hero-ease);
}

.trust-strip.trust-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.trust-item {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--hero-ease), transform 0.55s var(--hero-ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered menu grid */
.menu-grid-reveal .menu-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--hero-ease), transform 0.5s var(--hero-ease),
              transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transition-delay: calc(0.08s * var(--stagger, 0));
}

.menu-grid-reveal .menu-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.menu-grid-reveal .menu-card.revealed:hover {
  transform: translateY(-6px);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
  text-align: center;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Menu grid */
.section-menu {
  background: linear-gradient(180deg, var(--secondary) 0%, rgba(255,255,255,0.5) 100%);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.menu-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 67, 147, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(232, 67, 147, 0.2);
}

.menu-card-icon {
  font-size: 2.75rem;
  margin-bottom: 0.85rem;
  line-height: 1;
}

.menu-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.menu-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Custom section */
.section-custom {
  background: linear-gradient(180deg, var(--primary) 0%, var(--promo) 50%, var(--warm) 100%);
  position: relative;
}

.section-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e84393' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.custom-cta {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Order section */
.order-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.order-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 67, 147, 0.08);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.order-card:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(232, 67, 147, 0.15);
}

.order-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.order-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Contact */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-btn);
  transition: background 0.2s, color 0.2s;
}

.contact-link:hover {
  background: var(--primary);
  color: var(--text);
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid rgba(232, 67, 147, 0.2);
  background: linear-gradient(180deg, var(--secondary) 0%, var(--warm) 100%);
}

.footer-tagline {
  margin: 0 0 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-links {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.75rem 0 0;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.9;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232, 67, 147, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.2s;
}
.back-to-top:hover {
  background: var(--text);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.back-to-top.back-to-top-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(232, 67, 147, 0.2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .nav.nav-open {
    max-height: 280px;
    opacity: 1;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(232, 67, 147, 0.15);
  }
  .nav a:last-of-type {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 3rem 0 4rem;
  }

  .hero-scroll-hint { bottom: 1.5rem; }

  .section {
    padding: 3rem 0;
  }
}
