@import url("./fonts.css");

:root {
  --chili: #dc2626;
  --chili-dark: #b91c1c;
  --avocado: #16a34a;
  --gold: #fbbf24;
  --bg: #fff8f1;
  --card: #ffffff;
  --fg: #2a1d17;
  --muted-fg: #7a6a60;
  --muted-bg: #f6ede3;
  --border: #e8dccf;
  --radius: 12px;
  --shadow-card: 0 10px 30px -18px rgba(60, 30, 20, 0.5);
  --shadow-warm: 0 18px 40px -18px rgba(220, 38, 38, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Poppins", system-ui, sans-serif; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 72px 0; }
.muted { color: var(--muted-fg); }
.lead { margin-top: 12px; max-width: 40rem; color: var(--muted-fg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; padding: 12px 16px; max-width: 1120px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--chili); color: #fff; display: grid; place-items: center; font-size: 18px; }
.brand span.accent { color: var(--chili); }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--muted-fg); text-decoration: none; }
.nav a:hover { background: var(--muted-bg); color: var(--fg); }
.nav a.active { background: var(--muted-bg); color: var(--fg); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; font-size: 20px; cursor: pointer; color: var(--fg); }
.mobile-nav { display: none; border-top: 1px solid var(--border); padding: 8px 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--muted-fg); font-size: 0.95rem; }
.mobile-nav a:hover { background: var(--muted-bg); color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 12px 20px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--chili); color: #fff; box-shadow: var(--shadow-warm); }
.btn-primary:hover { background: var(--chili-dark); }
.btn-secondary { background: var(--avocado); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(90, 22, 15, 0.92), rgba(30, 18, 14, 0.72));
}
.hero-inner { padding: 108px 16px; max-width: 1120px; margin: 0 auto; color: #fff8f1; }
.hero h1 { max-width: 46rem; margin-top: 20px; color: #fff; }
.hero p { margin-top: 18px; max-width: 34rem; color: rgba(255, 248, 241, 0.86); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 44px; max-width: 40rem; font-size: 0.9rem; }
.hero-stats span { color: var(--gold); }

/* Badges */
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-accent { background: var(--gold); color: #3a2a06; }
.badge-outline { border: 1px solid var(--chili); color: var(--chili); background: transparent; }
.badge-soft { background: var(--muted-bg); color: var(--muted-fg); margin-right: 6px; }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-card); }
.card h3 { margin-bottom: 6px; }
.price { color: var(--chili); font-weight: 700; white-space: nowrap; }
.menu-item { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; font-size: 0.88rem; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--chili); color: var(--chili); }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-size: 0.9rem; }
.section-alt { background: var(--muted-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stack > * + * { margin-top: 10px; }
.info-list li { display: flex; gap: 8px; color: var(--muted-fg); font-size: 0.92rem; padding: 3px 0; }

/* Menu page */
.menu-section { scroll-margin-top: 90px; margin-top: 56px; }

/* Builder */
.builder { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; margin-top: 40px; }
.builder-step { margin-bottom: 36px; }
.options { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.options.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.option {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  text-align: left; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; font-size: 0.9rem; font-family: inherit; color: inherit; cursor: pointer;
}
.option:hover { border-color: rgba(220, 38, 38, 0.5); }
.option[aria-pressed="true"] { border-color: var(--chili); background: rgba(220, 38, 38, 0.08); color: var(--chili); font-weight: 600; }
.option .note { font-size: 0.75rem; color: var(--muted-fg); }
.summary { position: sticky; top: 90px; box-shadow: var(--shadow-warm); }
.summary dt { font-size: 0.82rem; color: var(--muted-fg); }
.summary dd { margin: 0 0 12px; font-weight: 600; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; }
.summary .total strong { font-size: 1.6rem; color: var(--chili); }

/* Forms */
label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
input, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--chili); outline-offset: 1px; }
.field { margin-bottom: 18px; }
.error { color: var(--chili); font-size: 0.82rem; margin-top: 6px; }

/* Toast */
#toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  background: var(--fg); color: #fff8f1; padding: 14px 18px; border-radius: 10px;
  box-shadow: var(--shadow-card); opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none; max-width: 320px;
}
#toast.show { opacity: 1; transform: translateY(0); }

/* Footer */
.site-footer { margin-top: 80px; background: var(--muted-bg); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 56px 16px; max-width: 1120px; margin: 0 auto; }
.site-footer h3 { font-size: 0.95rem; }
.site-footer a { text-decoration: none; color: var(--muted-fg); }
.site-footer a:hover { color: var(--fg); }
.site-footer p, .site-footer li { color: var(--muted-fg); font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px; text-align: center; font-size: 0.78rem; color: var(--muted-fg); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder { grid-template-columns: 1fr; }
  .summary { position: static; }
  .options, .options.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .options, .options.cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 72px 16px; }
}
/* Inline icons */
.icon { flex: none; vertical-align: -3px; }
.icon.gold { color: var(--gold); }
.icon.red { color: var(--chili); }
.icon.green { color: var(--avocado); }
h2 .icon { width: 22px; height: 22px; vertical-align: -2px; }
.hero-stats div { display: flex; align-items: center; gap: 8px; }
