/* ============ Lilou Bakehouse ============
   Palette from the logo:
   cream #F7F3E6 · espresso #2B2521 · brick #B04A42
   butter #F0E7CE · blush #F3DFD3
========================================== */

:root {
  --cream: #F7F3E6;
  --cream-deep: #F0E7CE;
  --blush: #F3DFD3;
  --espresso: #2B2521;
  --espresso-soft: #57493F;
  --brick: #B04A42;
  --brick-deep: #93382F;
  --radius: 22px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
a { color: var(--brick); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brick-deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--cream);
  background: var(--brick);
  border: 2px solid var(--brick);
  border-radius: 999px;
  padding: 0.7em 1.6em;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.2s, box-shadow 0.25s;
}
.btn:hover {
  background: var(--brick-deep);
  border-color: var(--brick-deep);
  color: var(--cream);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(176, 74, 66, 0.28);
}
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-ghost:hover { background: var(--espresso); color: var(--cream); box-shadow: 0 8px 20px rgba(43, 37, 33, 0.2); }
.btn-small { font-size: 0.92rem; padding: 0.5em 1.2em; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(247, 243, 230, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid rgba(43, 37, 33, 0.08);
}
.nav-brand { display: flex; align-items: baseline; gap: 0.4rem; text-decoration: none; }
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--espresso);
  letter-spacing: -0.01em;
}
.nav-badge {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--cream);
  background: var(--brick);
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  padding: 0.25em 0.7em;
  transform: rotate(-6deg);
}
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--espresso);
  text-decoration: none;
}
.nav-links a:hover { color: var(--brick); }

/* ---------- hero ---------- */
.hero { padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 4vw, 3rem) 0; text-align: center; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.hero-title span { display: block; }
.hero-title em { font-style: normal; color: var(--brick); }
.hero-bean {
  display: inline-block !important;
  font-size: 0.22em;
  font-weight: 600;
  color: var(--cream);
  background: var(--brick);
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  padding: 0.45em 1em;
  transform: rotate(6deg) translateY(-1.8em);
  margin-left: 0.4em;
  animation: bean-pop 0.7s cubic-bezier(.34,1.56,.64,1) 0.9s backwards;
}
@keyframes bean-pop {
  from { transform: rotate(6deg) translateY(-1.8em) scale(0); }
  to   { transform: rotate(6deg) translateY(-1.8em) scale(1); }
}
.hero-sub {
  max-width: 34rem;
  margin: 1.4rem auto 0;
  font-size: 1.15rem;
  color: var(--espresso-soft);
}
.hero-actions { margin-top: 2.2rem; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ticker */
.ticker {
  margin-top: clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  border-top: 1.5px solid rgba(43, 37, 33, 0.12);
  border-bottom: 1.5px solid rgba(43, 37, 33, 0.12);
  padding: 0.7rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--espresso-soft);
  white-space: nowrap;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- dividers ---------- */
.divider {
  display: block;
  width: min(520px, 60vw);
  height: 18px;
  margin: clamp(2.5rem, 6vh, 4rem) auto;
  color: var(--brick);
  opacity: 0.55;
}

/* ---------- sections ---------- */
.section { padding: 1rem clamp(1.2rem, 4vw, 3rem); max-width: 1080px; margin: 0 auto; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.2rem; }
.section-head p { margin-top: 0.8rem; color: var(--espresso-soft); }

.bean-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--cream);
  background: var(--brick);
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  padding: 0.35em 1.1em;
  transform: rotate(-3deg);
  margin-bottom: 1rem;
}

/* ---------- bakes ---------- */
.filter { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.2rem; }
.chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--espresso);
  background: transparent;
  border: 2px solid rgba(43, 37, 33, 0.25);
  border-radius: 999px;
  padding: 0.45em 1.2em;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--espresso); }
.chip.is-active { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }

.bakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}
.bake {
  background: #FFFDF6;
  border: 1.5px solid rgba(43, 37, 33, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.7rem;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s, opacity 0.4s, scale 0.3s;
}
.bake:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 14px 30px rgba(43, 37, 33, 0.1);
}
.bake.is-hidden { display: none; }
.bake h3 { margin-top: 1.1rem; }
.bake p { margin-top: 0.4rem; font-size: 0.97rem; color: var(--espresso-soft); }
.bake-art {
  border-radius: 18px;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
}
.bake-art svg { width: 60%; max-width: 150px; }
.art-blush { background: var(--blush); }
.art-butter { background: var(--cream-deep); }
.art-brick { background: var(--brick); }

.bake-custom { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.bake-custom h3 { color: var(--cream); }
.bake-custom p { color: rgba(247, 243, 230, 0.85); }
.bake-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: #EFB9A8;
}
.bake-link:hover { color: var(--cream); }

/* ---------- larzo ---------- */
.section-larzo { max-width: 1080px; }
.larzo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background: var(--cream-deep);
  border-radius: calc(var(--radius) * 1.4);
  padding: clamp(1.8rem, 4vw, 3.2rem);
}
.larzo-grid h2 { margin-bottom: 0.8rem; }
.larzo-grid p { color: var(--espresso-soft); }
.larzo-grid p + p { margin-top: 0.8rem; }
.larzo-note { font-size: 0.95rem; }
.larzo-card {
  background: #FFFDF6;
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(43, 37, 33, 0.08);
  rotate: 1.2deg;
}
.larzo-cup svg { width: 88px; }
.larzo-card h3 { margin-top: 0.6rem; }
.larzo-address { font-weight: 600; margin-top: 0.3rem; }
.larzo-hours { font-size: 0.92rem; color: var(--espresso-soft); margin: 0.2rem 0 1.1rem; }

/* ---------- steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  background: #FFFDF6;
  border: 1.5px solid rgba(43, 37, 33, 0.1);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  position: relative;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  background: var(--brick);
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  margin-bottom: 0.9rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { font-size: 0.97rem; color: var(--espresso-soft); }

/* ---------- story ---------- */
.section-story { text-align: center; padding-bottom: 2rem; }
.story-inner { max-width: 44rem; margin: 0 auto; position: relative; }
.story-bean {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cream);
  background: var(--brick);
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  padding: 0.4em 1.2em;
  transform: rotate(-5deg);
  margin-bottom: 1.2rem;
}
.story-lead { margin-top: 1rem; font-size: 1.18rem; color: var(--espresso-soft); }
.story-facts {
  list-style: none;
  margin: 1.8rem auto;
  max-width: 34rem;
  text-align: left;
  display: grid;
  gap: 0.8rem;
}
.story-facts li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--espresso-soft);
}
.story-facts li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--brick);
}
.story-close {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--espresso);
}

/* ---------- footer ---------- */
.footer {
  margin-top: clamp(3rem, 8vh, 5rem);
  background: var(--espresso);
  color: var(--cream);
  text-align: center;
  padding: 3rem 1.5rem 2.2rem;
}
.footer-mantra { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.footer-links { margin-top: 1rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: #EFB9A8; }
.footer-links a:hover { color: var(--cream); }
.footer-fine { margin-top: 1.6rem; font-size: 0.85rem; color: rgba(247, 243, 230, 0.55); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.38s; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .larzo-grid { grid-template-columns: 1fr; }
  .larzo-card { rotate: 0deg; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .hero-bean { animation: none; }
  .btn, .bake, .chip { transition: none; }
}
