:root {
  --bg: #fbf6ee;
  --bg-2: #f3e9d6;
  --ink: #2a1d12;
  --ink-soft: #5a4838;
  --crust: #a55518;
  --crust-deep: #7a3d10;
  --berry: #b1324a;
  --cream: #fff8ec;
  --shadow-sm: 0 2px 6px rgba(74, 44, 20, 0.08);
  --shadow-md: 0 12px 28px rgba(74, 44, 20, 0.12);
  --shadow-lg: 0 24px 60px rgba(74, 44, 20, 0.18);
  --radius: 18px;
  --max: 1100px;
  --ease: cubic-bezier(.22,.9,.31,1.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Playfair Display", "Georgia", serif;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  line-height: 1.1;
}

p { margin: 0 0 1em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--crust-deep);
  margin: 0 0 .8em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .2s ease;
}
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn-primary {
  background: var(--crust);
  color: #fff;
  box-shadow: 0 8px 20px rgba(201, 122, 58, 0.35);
}
.btn-primary:hover { background: var(--crust-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(168, 88, 34, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid rgba(42, 29, 18, 0.18);
}
.btn-ghost:hover { background: rgba(42, 29, 18, 0.05); transform: translateY(-2px); }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: .9rem clamp(1rem, 4vw, 2.2rem);
  background: rgba(251, 246, 238, 0.7);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(251, 246, 238, 0.92);
  border-bottom-color: rgba(42, 29, 18, 0.08);
  box-shadow: var(--shadow-sm);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.brand-mark { font-size: 1.4rem; display: inline-block; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.1); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0 auto 0 1rem;
  padding: 0;
}
.nav-links a {
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding: .25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--crust);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { padding: .55rem 1.05rem; font-size: .9rem; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem clamp(1rem, 4vw, 2.2rem) 5rem;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(201, 122, 58, 0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(177, 50, 74, 0.12), transparent 55%),
    var(--bg);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  margin-bottom: .35em;
}
.accent {
  color: var(--crust);
  position: relative;
  display: inline-block;
}
.accent::after {
  content: "";
  position: absolute;
  left: 5%; right: 5%;
  bottom: .08em;
  height: .35em;
  background: rgba(201, 122, 58, 0.25);
  border-radius: 999px;
  z-index: -1;
  transform: skew(-8deg);
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 1.8rem;
}
.hero-ctas {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 3.2rem;
  display: flex;
  gap: 2.2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stats strong {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--crust-deep);
}
.hero-stats span {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Hero blobs (animated background shapes) */
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .55;
  animation: drift 18s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: #f0c592; top: -120px; left: -100px; }
.blob-2 { width: 360px; height: 360px; background: #f6b4be; bottom: -80px; right: -80px; animation-duration: 22s; animation-delay: -4s; }
.blob-3 { width: 280px; height: 280px; background: #ffe4b6; top: 40%; left: 55%; animation-duration: 26s; animation-delay: -8s; }

@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.08); }
  66% { transform: translate(-30px,30px) scale(.95); }
}

/* Floating emoji */
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-emoji {
  position: absolute;
  font-size: 2.4rem;
  opacity: .85;
  animation: float 9s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(74,44,20,.18));
}
.f1 { top: 22%; left: 10%; animation-delay: 0s; }
.f2 { top: 68%; left: 18%; font-size: 2rem; animation-delay: -2s; animation-duration: 11s; }
.f3 { top: 18%; right: 12%; animation-delay: -4s; animation-duration: 10s; }
.f4 { top: 72%; right: 14%; font-size: 2.2rem; animation-delay: -6s; }
.f5 { top: 50%; right: 6%; font-size: 1.8rem; animation-delay: -3s; animation-duration: 12s; }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-22px) rotate(6deg); }
}

/* ===== Sections ===== */
section { padding: 6rem clamp(1rem, 4vw, 2.2rem); }
.section-head { text-align: center; margin: 0 auto 3rem; max-width: 640px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* ===== Menu cards ===== */
.menu { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.cards {
  display: grid;
  gap: 1.4rem;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.3rem; margin: .4em 0 .3em; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.price { color: var(--crust-deep); font-weight: 700; margin-top: .8rem; }

/* CSS-illustrated card art */
.card-art {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.art-sourdough {
  background:
    radial-gradient(ellipse at 50% 60%, #d99a5b 0%, #a85822 70%),
    #a85822;
}
.art-sourdough::after {
  content: "";
  position: absolute; inset: 18% 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 35%, rgba(255,255,255,.4) 0 6%, transparent 7%),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,.35) 0 4%, transparent 5%),
    radial-gradient(circle at 45% 70%, rgba(255,255,255,.3) 0 5%, transparent 6%),
    #c97a3a;
  box-shadow: inset 0 -6px 14px rgba(0,0,0,.2);
}
.art-croissant {
  background: linear-gradient(135deg, #f3c879 0%, #d99a5b 100%);
}
.art-croissant::after {
  content: "🥐"; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 5rem;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.18));
}
.art-cinnamon {
  background: radial-gradient(circle at 50% 50%, #c97a3a 0 30%, #6e3a16 100%);
}
.art-cinnamon::after {
  content: ""; position: absolute; inset: 25%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #f6c98c 0 18deg, #a85822 18deg 36deg);
  box-shadow: inset 0 -4px 10px rgba(0,0,0,.25);
}
.art-tart {
  background: linear-gradient(135deg, #e8b780 0%, #c97a3a 100%);
}
.art-tart::after {
  content: ""; position: absolute; inset: 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #b1324a 0 12%, transparent 13%),
    radial-gradient(circle at 65% 35%, #b1324a 0 10%, transparent 11%),
    radial-gradient(circle at 45% 65%, #b1324a 0 11%, transparent 12%),
    radial-gradient(circle at 70% 65%, #b1324a 0 9%, transparent 10%),
    #f3d49a;
  box-shadow: inset 0 -3px 10px rgba(0,0,0,.18);
}

/* ===== Story ===== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto;
  align-items: center;
}
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; } }

.story-art {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 70%, #6e3a16 0 38%, #2a1d12 100%);
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.oven {
  position: absolute; inset: 18% 22% 22%;
  border-radius: 50% 50% 8px 8px;
  background:
    radial-gradient(circle at 50% 60%, #ffb24a 0%, #ff6a00 60%, #5e1f00 100%);
  box-shadow: inset 0 -10px 30px rgba(0,0,0,.4), 0 0 60px rgba(255,120,0,.5);
}
.flame {
  position: absolute;
  bottom: 18%;
  width: 28px; height: 50px;
  background: radial-gradient(ellipse at 50% 100%, #ffd66a 0%, #ff7a00 60%, transparent 70%);
  border-radius: 50% 50% 30% 30%;
  filter: blur(2px);
  animation: flicker 1.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.f-a { left: 38%; animation-delay: 0s; }
.f-b { left: 50%; height: 64px; animation-delay: -.3s; }
.f-c { left: 60%; height: 42px; animation-delay: -.6s; }
@keyframes flicker {
  0%,100% { transform: scaleY(1) translateX(0); opacity: .9; }
  50% { transform: scaleY(1.25) translateX(-3px); opacity: 1; }
}

.story-copy h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); }
.story-copy p { color: var(--ink-soft); font-size: 1.05rem; }

/* ===== Visit ===== */
.visit { background: var(--bg-2); }
.visit-grid {
  display: grid;
  gap: 1.4rem;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.visit-card {
  background: var(--cream);
  padding: 1.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease);
}
.visit-card:hover { transform: translateY(-4px); }
.visit-card h3 { font-size: 1.3rem; }
.visit-card ul { list-style: none; padding: 0; margin: 0; }
.visit-card li {
  display: flex; justify-content: space-between;
  padding: .45rem 0;
  border-bottom: 1px dashed rgba(42,29,18,.15);
  font-size: .95rem;
}
.visit-card li:last-child { border-bottom: 0; }
.visit-cta { background: var(--ink); color: var(--cream); }
.visit-cta h3 { color: var(--cream); }
.visit-cta .btn { margin-top: .4rem; }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2.4rem 1rem 3rem;
  color: var(--ink-soft);
  font-size: .9rem;
}

/* ===== Reveal-on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
