/* ==========================================================================
   ACUTUS ROASTERS & BAKEHOUSE — Avada Cafe / Bakery Sidebar Architecture
   Features: Fixed Left Boutique Sidebar (Desktop), Full-Bleed Scalloped-Wave
   Hero, Horizontal Flip-able Coffee Bag Rail, Live Visual Layered Cake Studio,
   Edge-to-Edge 5-Photo Bakehouse Mosaic & Curved Espresso Pre-Order Studio
   ========================================================================== */

:root {
  --kraft: #f5ede1;
  --kraft-warm: #ebe0cf;
  --paper: #fcf9f4;
  --espresso: #1c130f;
  --espresso-mid: #2c1e18;
  --caramel: #bd6a2d;
  --caramel-light: #e09152;
  --sage: #445d49;
  --ink: #241914;
  --ink-muted: #65554b;
  --ink-light: #f8f1e7;
  --ink-light-muted: #cbbba9;
  --rule: #d8c8b3;
  --veg: #15803d;
  --sidebar-w: 256px;
  --font-display: 'Abril Fatface', Georgia, serif;
  --font-body: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--kraft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

/* Fixed Left Boutique Sidebar (Classic Avada Cafe Signature) */
.cafe-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--espresso);
  color: var(--ink-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem 1.4rem;
  z-index: 100;
  border-right: 1px solid rgba(224, 145, 82, 0.25);
  overflow-y: auto;
}

.side-seal {
  text-align: center;
  padding-bottom: 1.4rem;
  border-bottom: 1px dashed rgba(248, 241, 231, 0.2);
}

.seal-circle {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  border: 2px solid var(--caramel-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--caramel-light);
}

.side-seal strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 400;
  line-height: 1.1;
}

.side-seal span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel-light);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 1.5rem 0;
}

.side-nav a {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.side-nav a:hover, .side-nav a.active {
  background: rgba(224, 145, 82, 0.16);
  color: var(--ink-light);
}

.side-batch {
  background: var(--espresso-mid);
  border: 1px dashed rgba(224, 145, 82, 0.35);
  border-radius: 10px;
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-light-muted);
  margin-bottom: 1rem;
}

.side-batch strong { display: block; color: var(--caramel-light); margin-bottom: 0.2rem; }

.side-demo {
  font-size: 0.72rem;
  color: var(--ink-light-muted);
  padding-top: 0.9rem;
  border-top: 1px solid rgba(248, 241, 231, 0.12);
}

.side-demo a { color: var(--caramel-light); text-decoration: underline; font-weight: 700; }

/* Mobile Header (Visible below 1080px only) */
.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 110;
  background: var(--espresso);
  color: var(--ink-light);
  padding: 0.75rem 1.15rem;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(224, 145, 82, 0.3);
}

.mobile-bar strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }

.mobile-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(248, 241, 231, 0.35);
  background: transparent;
  color: var(--ink-light);
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  background: var(--espresso-mid);
  padding: 0.75rem 1.25rem 1.25rem;
}

.mobile-drawer.open { display: block; }
.mobile-drawer a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(248, 241, 231, 0.14);
  color: var(--ink-light);
  font-weight: 700;
}

/* Main Stage Offset for Fixed Sidebar */
.cafe-main {
  margin-left: var(--sidebar-w);
  min-width: 0;
}

.inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 3.5vw, 2.5rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.55rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-caramel { background: var(--caramel); border-color: var(--caramel); color: #ffffff; }
.btn-caramel:hover { background: var(--caramel-light); border-color: var(--caramel-light); color: var(--espresso); transform: translateY(-2px); }

.btn-espresso { background: var(--espresso); border-color: var(--espresso); color: var(--ink-light); }
.btn-espresso:hover { background: var(--caramel); border-color: var(--caramel); transform: translateY(-2px); }

.btn-ghost-light { background: transparent; border-color: rgba(248, 241, 231, 0.6); color: var(--ink-light); }
.btn-ghost-light:hover { background: var(--ink-light); color: var(--espresso); }

/* Headings */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.14; margin: 0; }

.section { padding: clamp(3.25rem, 6vw, 5.25rem) 0; }
.section-paper { background: var(--paper); }
.section-espresso { background: var(--espresso); color: var(--ink-light); }

/* SVG Wave & Scallop Dividers (Seam-Free Sub-Pixel Fix) */
.wave-break {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
  margin-bottom: -2px;
}

.wave-break svg {
  width: calc(100% + 4px);
  max-width: none;
  margin-left: -2px;
  height: clamp(44px, 6vw, 86px);
  margin-bottom: -4px;
  display: block;
}

/* Full-Bleed Warm Bakery Hero with Scalloped Crema Wave */
.bakery-hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-light);
  padding: 5.5rem 0 7.5rem;
  background:
    radial-gradient(circle at center, rgba(28, 19, 15, 0.48) 0%, rgba(28, 19, 15, 0.84) 100%),
    url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1600&q=85') center/cover no-repeat;
}

.bakery-hero-box { max-width: 720px; position: relative; z-index: 2; }

.hero-stamp-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(224, 145, 82, 0.6);
}

.bakery-hero h1 {
  font-size: clamp(2.45rem, 5vw, 4.3rem);
  color: var(--ink-light);
  margin-bottom: 1.15rem;
}

.bakery-hero p {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: rgba(248, 241, 231, 0.9);
  margin: 0 auto 2rem;
  max-width: 54ch;
}

.hero-wave-bottom {
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -2px;
  overflow: hidden;
  line-height: 0;
}

.hero-wave-bottom svg {
  width: 100%;
  height: clamp(48px, 6.5vw, 90px);
  margin-bottom: -4px;
  display: block;
}

/* Centered Playful Bakery Intro */
.bakery-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.75rem;
}

.bakery-intro span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel);
  display: block;
  margin-bottom: 0.5rem;
}

.bakery-intro h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); color: var(--espresso); margin-bottom: 0.75rem; }
.bakery-intro p { margin: 0; color: var(--ink-muted); }
.section-espresso .bakery-intro h2 { color: var(--ink-light); }
.section-espresso .bakery-intro p { color: var(--ink-light-muted); }

/* Section 1 · Horizontal Scroll-Snap Flippable Coffee Bag Rail */
.bag-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(235px, 1fr));
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
}

.roast-bag {
  scroll-snap-align: start;
  background: var(--paper);
  border: 2px solid var(--espresso);
  border-radius: 18px 18px 6px 6px;
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}

.roast-bag::before {
  content: '';
  display: block;
  height: 10px;
  margin: -1.4rem -1.25rem 1.1rem;
  background: var(--bag-accent, var(--caramel));
  border-radius: 15px 15px 0 0;
}

.roast-bag:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(28, 19, 15, 0.12); }

.bag-lot { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.roast-bag h3 { font-size: 1.32rem; color: var(--espresso); margin: 0.4rem 0 0.5rem; }
.bag-notes { font-size: 0.88rem; color: var(--ink-muted); margin: 0 0 1rem; }

.bag-recipe {
  display: none;
  background: var(--kraft);
  border: 1px dashed var(--espresso);
  border-radius: 10px;
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--espresso);
  margin-bottom: 1rem;
}

.roast-bag.show-recipe .bag-recipe { display: block; }

.bag-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--rule);
}

.bag-price { font-family: var(--font-display); font-size: 1.3rem; color: var(--espresso); }

.recipe-toggle {
  min-height: 38px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--espresso);
  background: transparent;
  color: var(--espresso);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.recipe-toggle:hover, .roast-bag.show-recipe .recipe-toggle {
  background: var(--espresso);
  color: var(--ink-light);
}

/* Section 2 · Classic Café Menu Ledger */
.menu-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.menu-pill {
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--espresso);
  background: transparent;
  color: var(--espresso);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.menu-pill.active { background: var(--espresso); color: var(--ink-light); }

.cafe-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 3rem;
}

.ledger-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px dotted var(--rule);
  min-width: 0;
}

.ledger-item h4 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: var(--espresso);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.veg-dot {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--veg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.veg-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--veg); }
.ledger-item p { margin: 0; font-size: 0.88rem; color: var(--ink-muted); }
.ledger-price { font-family: var(--font-mono); font-weight: 700; color: var(--caramel); white-space: nowrap; }

/* Section 3 · LIVE VISUAL LAYERED-CAKE STUDIO (Zero boring receipt boxes!) */
.cake-studio {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
  background: var(--paper);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--rule);
  box-shadow: 0 22px 48px rgba(28, 19, 15, 0.08);
}

.cake-stage-box {
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, var(--kraft-warm) 100%);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--rule);
}

.cake-pedestal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 210px;
  margin-bottom: 1.25rem;
}

.cake-topper {
  font-size: 1.15rem;
  color: var(--caramel);
  margin-bottom: 4px;
  transition: opacity 0.25s ease;
}

.cake-tier {
  border-radius: 14px 14px 4px 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(28, 19, 15, 0.14);
  transition: all 0.3s ease;
}

.cake-tier-top {
  width: 118px;
  height: 0;
  opacity: 0;
  margin-bottom: -2px;
}

.cake-tier-top.visible {
  height: 54px;
  opacity: 1;
}

.cake-tier-base {
  width: 184px;
  height: 82px;
}

.cake-drip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  border-radius: 14px 14px 18px 18px;
  transition: background 0.3s ease;
}

.cake-plate {
  width: 224px;
  height: 12px;
  border-radius: 999px;
  background: var(--espresso);
  margin-top: 2px;
}

.cake-stand-stem {
  width: 34px;
  height: 24px;
  background: #3d2c24;
  border-radius: 0 0 8px 8px;
}

.cake-live-price {
  font-family: var(--font-display);
  font-size: 2.15rem;
  color: var(--espresso);
  line-height: 1.1;
}

.cake-live-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--caramel);
  margin-top: 0.35rem;
}

.studio-group { margin-bottom: 1.3rem; }
.studio-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 0.55rem;
}

.studio-choices { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.studio-chip {
  min-height: 42px;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  background: var(--kraft);
  color: var(--espresso);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.studio-chip.active {
  background: var(--sage);
  border-color: var(--sage);
  color: #ffffff;
}

/* Section 4 · Edge-to-Edge 5-Photo Bakehouse Gallery Strip */
.mosaic-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.mosaic-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.mosaic-strip img:hover { filter: saturate(1.1); }

/* Section 5 · Daily Oven Clock + Inline Curved Espresso Order & Cafes Footer */
.clock-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.clock-pill {
  text-align: center;
  padding: 1.35rem 1rem;
  border-radius: 18px;
  background: var(--espresso-mid);
  border: 1px dashed rgba(224, 145, 82, 0.3);
}

.clock-pill span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--caramel-light);
  display: block;
  margin-bottom: 0.3rem;
}

.clock-pill h3 { font-size: 1.18rem; color: var(--ink-light); margin-bottom: 0.3rem; }
.clock-pill p { margin: 0; font-size: 0.84rem; color: var(--ink-light-muted); }

/* Compact Embedded Pre-Order Form (Section 9 Defensive CSS) */
.preorder-wrap {
  max-width: 780px;
  margin: 0 auto 3rem;
}

.form-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  overflow: hidden;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.form-group { margin-bottom: 1rem; min-width: 0; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--espresso);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: block;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  background: var(--kraft);
  color: var(--ink);
  font-size: 0.94rem;
}

textarea.form-control { min-height: 88px; resize: vertical; }

.form-feedback {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  background: var(--espresso);
  color: var(--ink-light);
  border-left: 4px solid var(--caramel-light);
  font-size: 0.9rem;
}

.form-feedback.show { display: block; }

.cafe-colophon {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px dashed rgba(248, 241, 231, 0.16);
  font-size: 0.84rem;
  color: var(--ink-light-muted);
}

.cafe-colophon a { color: var(--caramel-light); text-decoration: underline; font-weight: 700; }

/* Responsive */
@media (max-width: 1080px) {
  .cafe-sidebar { display: none; }
  .mobile-bar { display: flex; }
  .cafe-main { margin-left: 0; }
  .cake-studio { grid-template-columns: 1fr; }
  .clock-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cafe-ledger, .clock-strip { grid-template-columns: 1fr; }
  .mosaic-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mosaic-strip img:nth-child(n+4) { display: none; }
  .form-row-2 { grid-template-columns: 1fr; gap: 1rem; }
}
