@font-face {
  font-family: "Fredoka";
  src: url("./fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #fffbf5;
  --bg-alt: #fff4e6;
  --surface: #ffffff;
  --border: #f2e2d2;
  --text: #522c1d;
  --text-muted: #8b6a5d;
  --accent: #ff7b54;
  --accent-hover: #f2643b;
  --yellow: #ffd166;
  --mint: #8ac99b;
  --shadow-sm: 0 6px 20px rgba(133, 81, 52, 0.06);
  --shadow-md: 0 14px 36px rgba(133, 81, 52, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Fredoka", "Segoe UI", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 251, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff0d9;
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: rotate(-8deg) scale(1.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.tray-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tray-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.tray-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 123, 84, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 123, 84, 0.34);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: #fff0d9;
  color: #9b5128;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.pill-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero .highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero .highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 12px;
  background: rgba(255, 209, 102, 0.55);
  border-radius: 8px;
  z-index: -1;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.04rem;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-item strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text);
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1.5px;
  height: 30px;
  background: var(--border);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.skillet-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  cursor: pointer;
  user-select: none;
  text-align: center;
  outline: none;
}

.hero-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(107, 62, 46, 0.1));
}

.patty-bounce {
  transform-origin: 185px 190px;
  animation: gentleBob 3.2s ease-in-out infinite;
}

.skillet-stage.pop .patty-bounce {
  animation: pattyPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.steam {
  animation: steamFloat 2.8s ease-in-out infinite;
  opacity: 0.7;
}

.steam.s2 {
  animation-delay: 0.6s;
}

.steam.s3 {
  animation-delay: 1.2s;
}

.tap-hint {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1.5px dashed #e7c9b0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.sparkle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.sparkle-item {
  position: absolute;
  font-size: 1.2rem;
  animation: floatUp 0.9s ease-out forwards;
}

.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 42px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-tab {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-tab.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.menu-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.menu-thumb {
  position: relative;
  height: 154px;
  border-radius: var(--radius-md);
  background: #fff7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.menu-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
}

.menu-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.menu-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
}

.menu-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.add-mini-btn {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: #fff0e6;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.86rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.add-mini-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.04);
}

.builder-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 32px;
  padding: 34px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.builder-preview {
  position: relative;
  background: #fff9f0;
  border: 1.5px dashed #ebd2bd;
  border-radius: 24px;
  padding: 24px 18px;
  text-align: center;
}

.preview-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.builder-svg {
  width: 100%;
  max-width: 290px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.preview-summary h3 {
  font-size: 1.12rem;
  margin-top: 6px;
}

.preview-summary p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.builder-controls {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.control-group .control-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.opt-btn {
  padding: 9px 15px;
  border-radius: 14px;
  background: #fffaf3;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.opt-btn:hover {
  border-color: var(--accent);
}

.opt-btn.active {
  background: #fff0e6;
  border-color: var(--accent);
  color: var(--accent-hover);
  font-weight: 700;
}

.builder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1.5px solid var(--border);
}

.price-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.price-num {
  font-size: 1.65rem;
  color: var(--accent);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.craft-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.craft-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: #fff3e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.craft-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.craft-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-visit {
  padding-top: 24px;
}

.visit-card {
  background: #522c1d;
  color: #fffbf5;
  border-radius: 32px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.visit-card .section-kicker {
  color: var(--yellow);
}

.visit-card h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.visit-lead {
  color: #e7cfc3;
  margin-bottom: 20px;
}

.visit-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
  color: #f9ebe3;
}

.visit-badge-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px dashed rgba(255, 232, 204, 0.35);
  border-radius: 24px;
  padding: 28px;
  text-align: center;
}

.open-sign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.open-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9e44;
}

.visit-note {
  font-size: 0.98rem;
  color: #ffe8d6;
}

.footer {
  padding: 28px 0 42px;
  border-top: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.back-top:hover {
  color: var(--accent);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 46, 41, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 60;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.tray-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(390px, 92vw);
  height: 100vh;
  background: var(--bg);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -12px 0 36px rgba(61, 46, 41, 0.14);
}

.tray-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1.5px solid var(--border);
}

.icon-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tray-empty {
  text-align: center;
  padding: 60px 12px;
  color: var(--text-muted);
}

.tray-empty span {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.tray-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tray-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.tray-item-info span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.qty-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff7eb;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.drawer-footer {
  padding: 20px 24px 26px;
  border-top: 1.5px solid var(--border);
  background: var(--surface);
}

.tray-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1rem;
}

.tray-total strong {
  font-size: 1.45rem;
  color: var(--accent);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  background: var(--text);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 90;
  box-shadow: 0 10px 28px rgba(82, 44, 29, 0.25);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pattyPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08, 0.92); }
  75% { transform: scale(0.96, 1.05); }
  100% { transform: scale(1); }
}

@keyframes steamFloat {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-10px); opacity: 0.85; }
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.7); opacity: 1; }
  100% { transform: translateY(-56px) scale(1.25); opacity: 0; }
}

@media (max-width: 900px) {
  .hero-grid,
  .builder-card,
  .visit-card {
    grid-template-columns: 1fr;
  }

  .craft-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 36px 0 54px;
  }

  .builder-card,
  .visit-card {
    padding: 24px;
  }
}
