/* =========================================================
   Costa Menu — design system
   ========================================================= */

:root {
  --maroon-900: #3d0f22;
  --maroon-800: #4f1329;
  --maroon-700: #641a34;
  --maroon-600: #7a2140;
  --maroon-500: #8f2a4a;
  --red-accent: #d81e4a;
  --gold: #c9a24b;
  --cream: #f5efe6;
  --cream-card: #f2ede4;
  --paper: #fffdf9;
  --ink: #211621;
  --ink-soft: #4a4048;
  --muted: #756a6c;
  --border: #e7ddcf;
  --border-soft: #efe7db;
  --green: #2f7a4f;
  --shadow-sm: 0 1px 2px rgba(61, 15, 34, .06);
  --shadow-md: 0 6px 20px rgba(61, 15, 34, .10);
  --shadow-lg: 0 18px 40px rgba(61, 15, 34, .16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 76px;
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --cream: #241419;
  --cream-card: #2c1620;
  --paper: #1c0f14;
  --ink: #f6ece9;
  --ink-soft: #ddc9cb;
  --muted: #b79ba0;
  --border: #46232f;
  --border-soft: #3a1e28;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
p { margin: 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--maroon-700); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--maroon-900);
  color: #ecdfe3;
  font-size: 13px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { opacity: .9; display: inline-flex; align-items: center; gap: 6px; }
.topbar-links a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Header (solid maroon, matches source) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--maroon-700);
  border-bottom: 1px solid var(--maroon-800);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; flex-shrink: 0; }
.brand .brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; display: grid; place-items: center;
}
.brand .brand-mark .icon { width: 21px; height: 21px; stroke-width: 1.6; }
:root[data-theme="dark"] .brand { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a { padding: 10px 14px; border-radius: var(--radius-pill); font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .88); }
.main-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.icon-btn .icon { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 22px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red-accent); color: #fff; box-shadow: 0 8px 18px rgba(216, 30, 74, .35); }
.btn-primary:hover { background: #c11640; box-shadow: 0 10px 22px rgba(216, 30, 74, .42); }
.btn-outline { background: transparent; border-color: var(--maroon-700); color: var(--maroon-700); }
.btn-outline:hover { background: var(--maroon-700); color: #fff; }
.btn-ghost { background: var(--cream-card); color: var(--maroon-700); }
.btn-ghost:hover { background: var(--border-soft); }
.btn-block { width: 100%; }
.btn-maroon { background: var(--maroon-700); color: #fff; }
.btn-maroon:hover { background: var(--maroon-800); }

.menu-toggle { display: none; }

/* ---------- Hero (white, like the source page) ---------- */
.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 56px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.hero-inner { max-width: 880px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--radius-pill);
  background: var(--cream-card); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--maroon-700);
}
.hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 18px 0 16px; font-weight: 600; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--maroon-700); }
.hero p.lead { font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 66ch; margin: 0 auto; }

.hero-stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 24px; color: var(--maroon-700); }
.hero-stats div span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* Quick category pills row (mirrors the source page's row of maroon pill links) */
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
.hero-pills a {
  padding: 11px 20px; border-radius: var(--radius-pill); background: var(--maroon-700); color: #fff;
  font-weight: 700; font-size: 13.5px; transition: background .15s ease, transform .15s ease;
}
.hero-pills a:hover { background: var(--maroon-800); transform: translateY(-1px); }
.hero-pills a.order-pill { background: var(--red-accent); }
.hero-pills a.order-pill:hover { background: #c11640; }
.hero-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); font-style: italic; }

/* ---------- Search + category rail ---------- */
.controls-wrap {
  position: sticky; top: var(--header-h); z-index: 400;
  background: var(--paper); border-bottom: 1px solid var(--border-soft); box-shadow: var(--shadow-sm);
}
.controls-inner { padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }

.search-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search-box {
  flex: 1 1 280px; display: flex; align-items: center; gap: 10px;
  background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 10px 16px;
}
.search-box .icon { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search-box input { border: 0; background: transparent; outline: none; width: 100%; font-size: 14.5px; color: var(--ink); }
.search-box input::placeholder { color: var(--muted); }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-box .clear-btn { border: 0; background: none; cursor: pointer; color: var(--muted); display: none; padding: 2px; }
.search-box.has-value .clear-btn { display: inline-flex; }

.tag-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); background: var(--paper); color: var(--ink-soft);
  padding: 7px 14px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: all .15s ease;
}
.chip:hover { border-color: var(--maroon-500); }
.chip[aria-pressed="true"] { background: var(--maroon-700); border-color: var(--maroon-700); color: #fff; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.category-rail { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.category-rail::-webkit-scrollbar { height: 6px; }
.category-rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.pill-link {
  flex-shrink: 0; padding: 9px 18px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 700;
  background: var(--cream-card); color: var(--maroon-700); border: 1px solid transparent; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; transition: all .15s ease;
}
.pill-link .icon { width: 16px; height: 16px; }
.pill-link:hover { background: var(--border-soft); }
.pill-link.active { background: var(--maroon-700); color: #fff; box-shadow: var(--shadow-sm); }

.results-meta { font-size: 13px; color: var(--muted); padding: 0 24px; max-width: 1240px; margin: 14px auto 0; }
.results-meta strong { color: var(--ink); }

/* ---------- Section banners (solid maroon, matches source) ---------- */
.section-band {
  margin: 56px 0 0;
  background: var(--maroon-700);
  color: #fff; border-radius: var(--radius-sm); padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  text-align: center; justify-content: center; flex-direction: column;
}
.section-band h2 { font-size: 23px; font-weight: 600; }
.section-band p { font-size: 13.5px; color: #f0d9d9; opacity: .9; }

.menu-category { margin-top: 40px; scroll-margin-top: calc(var(--header-h) + 128px); }
.category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--maroon-700); }
.category-head h3 { font-size: 21px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.category-head h3 .cat-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--cream-card); color: var(--maroon-700); display: grid; place-items: center; }
.category-head h3 .cat-icon .icon { width: 18px; height: 18px; }
.category-head .count { font-size: 12.5px; color: var(--muted); background: var(--cream-card); padding: 4px 10px; border-radius: var(--radius-pill); }

/* ---------- Cards grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.item-card {
  background: var(--cream-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 18px; position: relative; display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--maroon-500); }

.item-card { padding: 0 0 18px; overflow: hidden; }
.item-card .card-body { padding: 16px 18px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.card-art {
  position: relative; height: 172px; flex-shrink: 0; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--art-color, var(--maroon-600)) 30%, var(--cream) 70%), var(--cream-card) 72%);
  border-bottom: 1px solid var(--border-soft);
}
.card-art svg.art {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; filter: drop-shadow(0 8px 10px rgba(30, 12, 18, .16));
}
.card-art .card-top { position: absolute; top: 10px; left: 0; right: 0; padding: 0 12px; display: flex; justify-content: flex-end; z-index: 2; }
.card-art.has-photo { background: var(--paper); }
.card-art .art-photo {
  position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px);
  object-fit: contain;
}
.price-chip {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  background: var(--maroon-700); color: #fff; font-weight: 800; font-size: 16px;
  padding: 7px 13px; border-radius: var(--radius-pill); box-shadow: 0 4px 12px rgba(61, 15, 34, .3);
  font-family: var(--font-display); letter-spacing: -.01em;
}

.badge-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.badge-new { background: var(--red-accent); color: #fff; }
.badge-healthier { background: var(--green); color: #fff; }
.badge-deal { background: var(--maroon-700); color: #fff; }
.badge-vegan { background: #4c7a3a; color: #fff; }
.badge-gf { background: var(--gold); color: #3d2c0b; }

.item-card h4 { font-size: 16px; color: var(--ink); font-weight: 700; line-height: 1.3; }
.item-card .desc { font-size: 13px; line-height: 1.55; color: var(--muted); flex: 1; }
.item-card .note { font-size: 11.5px; color: var(--red-accent); background: color-mix(in srgb, var(--red-accent) 10%, transparent); padding: 6px 8px; border-radius: 8px; line-height: 1.4; }

.stat-row { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--border); }
.stat-row .stat span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.stat-row .price { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--maroon-700); }
.stat-row .kcal { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.stat-row .kcal-only { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--cream-card); padding: 5px 11px; border-radius: var(--radius-pill); margin-left: auto; }

.no-results { text-align: center; padding: 70px 20px; color: var(--muted); }
.no-results .icon { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--border); }
.no-results h3 { color: var(--ink); margin-bottom: 8px; }

/* ---------- Info sections (about / loyalty / allergen) ---------- */
.info-section { margin-top: 64px; }
.info-band {
  background: var(--maroon-700); color: #fff; text-align: center;
  border-radius: var(--radius-sm); padding: 18px 28px; font-size: 22px; font-weight: 600; margin-bottom: 24px;
}
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.prose p { color: var(--ink-soft); line-height: 1.75; font-size: 15px; margin-bottom: 14px; }
.prose ul { margin: 14px 0; }
.prose ul li { position: relative; padding-left: 22px; color: var(--ink-soft); line-height: 1.7; font-size: 14.5px; margin-bottom: 6px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--maroon-500); }

.allergen-card {
  background: var(--cream-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 24px;
}
.allergen-card h4 { font-size: 16px; margin-bottom: 14px; }
.allergen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.allergen-grid span { font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.allergen-grid .icon { width: 15px; height: 15px; color: var(--maroon-600); flex-shrink: 0; }

.loyalty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.loyalty-card { background: var(--cream-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 20px; }
.loyalty-card .num { font-family: var(--font-display); font-size: 22px; color: var(--gold); margin-bottom: 10px; }
.loyalty-card h4 { font-size: 15px; margin-bottom: 8px; }
.loyalty-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.contact-strip {
  margin-top: 48px; display: flex; gap: 24px; flex-wrap: wrap; background: var(--cream-card);
  border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 22px 26px;
}
.contact-strip a { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.contact-strip a .icon { width: 18px; height: 18px; color: var(--maroon-700); }
.contact-strip a:hover { color: var(--maroon-700); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--cream-card); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; background: transparent; border: 0; cursor: pointer; text-align: left;
  font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.faq-q .icon { width: 16px; height: 16px; color: var(--maroon-700); transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] .faq-q .icon { transform: rotate(45deg); }
.faq-item[open] .faq-q { background: var(--maroon-700); color: #fff; }
.faq-item[open] .faq-q .icon { color: #fff; }
.faq-a { padding: 0 18px 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; background: var(--maroon-900); color: #e8d3d6; }
.footer-top { padding: 52px 0 32px; display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 36px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: #cbb2b6; max-width: 40ch; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.footer-social a:hover { background: rgba(255, 255, 255, .18); }
.footer-social .icon { width: 16px; height: 16px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #f0d9c7; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: #dcc3c7; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-hours div { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); color: #dcc3c7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #b3939a; flex-wrap: wrap; gap: 10px; }

/* ---------- Back to top / toast ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 600;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--maroon-700); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .25s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--maroon-800); }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 8, 13, .5); z-index: 700; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 84vw); z-index: 800;
  background: var(--paper); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease;
  padding: 22px; overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-drawer nav a { display: block; padding: 13px 6px; font-weight: 600; border-bottom: 1px solid var(--border-soft); color: var(--ink); }
.mobile-drawer .btn { margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .loyalty-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .topbar { display: none; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .loyalty-grid { grid-template-columns: 1fr; }
  .allergen-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; padding: 40px 0 20px; }
  .hero { padding: 56px 0 72px; }
  .section-band { padding: 18px 20px; }
  .header-actions .btn span { display: none; }
}
