/* Brand colors: taken from the Cafe Cartel menu boards */
:root {
  --red: #c12732;
  --red-dark: #9a1d27;
  --yellow: #f2c230;
  --blue: #1d3e8a;
  --ink: #161210;
  --ink-2: #231d1a;
  --text: #1a1614;
  --muted: #6b625c;
  --bg: #ffffff;
  --bg-alt: #f6f2ed;
  --line: #e6dfd7;
  --radius: 14px;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .5em; }
h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: .01em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #f3ede7; }
.section-red { background: var(--red); color: #fff; }
.small { font-size: .85rem; color: var(--muted); }

.flag-stripe { height: 6px; background: linear-gradient(90deg, var(--yellow) 0 50%, var(--blue) 50% 75%, var(--red) 75% 100%); }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; letter-spacing: .02em; background: var(--red); color: #fff;
       padding: 13px 24px; border-radius: 999px; text-decoration: none; border: 2px solid var(--red); cursor: pointer;
       transition: background .2s, color .2s, transform .15s, box-shadow .2s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(193,39,50,.3); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.btn-small { padding: 8px 18px; }
.btn.block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
               border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 54px; width: auto; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a:not(.btn) { position: relative; color: var(--text); text-decoration: none; font-weight: 700; text-transform: uppercase;
                   font-size: .85rem; letter-spacing: .08em; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--red);
                          transform: scaleX(0); transition: transform .25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 75% 40%, rgba(193,39,50,.35), transparent 60%), var(--ink);
        color: #fff; padding: 72px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.kicker { color: var(--yellow); text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: .85rem; margin: 0 0 12px; }
.hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 8vw, 6.2rem); line-height: .95; margin: 0 0 20px; }
.hero h1 .red { color: var(--red); display: block; }
.tagline { font-size: 1.15rem; color: #d9d1ca; max-width: 520px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.order-note { margin: 16px 0 0; font-size: .9rem; color: #a99f97; }
.hero-art img { width: 100%; max-width: 560px; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.hero-text > * { animation: rise .8s both; }
.hero-text > :nth-child(2) { animation-delay: .05s; }
.hero-text > :nth-child(3) { animation-delay: .12s; }
.hero-text > :nth-child(4) { animation-delay: .2s; }
.hero-text > :nth-child(5) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; padding: 6px 14px;
          border-radius: 999px; background: rgba(255,255,255,.1); margin-bottom: 18px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5736a; }
.status.is-open::before { background: #6ee7a0; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(110,231,160,.7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(110,231,160,0); } }

/* Scrolling ticker */
.ticker { background: var(--red); color: #fff; overflow: hidden; white-space: nowrap; border-block: 3px solid var(--ink); }
.ticker-track { display: inline-flex; animation: ticker 28s linear infinite; }
.ticker span { font-family: var(--display); text-transform: uppercase; font-size: 1.4rem; letter-spacing: .04em; padding: 12px 0; }
.ticker span::after { content: "★"; color: var(--yellow); margin: 0 26px; font-size: 1rem; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Menu */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0 0 16px; }
.tabs { position: sticky; top: var(--header-h); z-index: 10; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
        background: rgba(255,255,255,.96); backdrop-filter: blur(8px); padding: 12px 0; margin: 0 0 24px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
       padding: 8px 16px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); transition: background .2s, color .2s; }
.tab:hover { background: var(--bg-alt); }
.tab.active { background: var(--ink); color: #fff; }

#menu-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.menu-section { scroll-margin-top: calc(var(--header-h) + 64px); }
.menu-head { border-bottom: 3px solid var(--red); margin-bottom: 4px; padding-bottom: 6px; }
.menu-head h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.1rem; margin: 0; }
.menu-section.highlight .menu-head h3 { color: var(--red); }
.menu-note { margin: 2px 0 0; color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.menu-items { list-style: none; margin: 0; padding: 0; }
.menu-item { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0;
             border-bottom: 1px dashed var(--line); }
.menu-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.menu-info { grid-column: 2; min-width: 0; }
.menu-item:not(:has(.menu-thumb)) .menu-info { grid-column: 1 / 3; }
.menu-name { display: block; font-weight: 700; font-size: 1.05rem; }
.menu-desc { display: block; color: var(--muted); font-size: .88rem; }
.menu-price { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.add-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--red); background: #fff; color: var(--red);
           font-size: 1.3rem; font-weight: 800; line-height: 1; cursor: pointer; display: grid; place-items: center;
           transition: background .2s, color .2s, transform .15s; }
.add-btn:hover, .add-btn.added { background: var(--red); color: #fff; }
.add-btn:active { transform: scale(.9); }
.menu-cta { margin-top: 48px; }

/* Pickup & delivery */
.lead { color: #b9afa7; margin-top: -4px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 36px 0; }
.option { background: var(--ink-2); border: 1px solid #3a302b; border-radius: var(--radius); padding: 28px 24px; text-align: center;
          transition: transform .2s, border-color .2s; }
.option:hover { transform: translateY(-4px); border-color: var(--red); }
.option h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: #b9afa7; margin: 0 0 10px; }
.option .big { font-family: var(--display); font-size: 2.6rem; color: var(--yellow); margin: 0 0 8px; line-height: 1; }
.option p { margin: 0; }

/* About */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text { font-size: 1.1rem; color: #d9d1ca; }
.medellin { width: 100%; max-width: 360px; margin-top: 28px; }
.about-art img { width: 100%; max-width: 420px; margin: 0 auto; }
.section-head h2 { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sticker { width: 170px; transform: rotate(-6deg); transition: transform .3s; }
.sticker:hover { transform: rotate(3deg) scale(1.08); }

/* Visit */
.address { font-size: 1.15rem; font-weight: 600; }
.hours { border-collapse: collapse; width: 100%; max-width: 400px; margin-bottom: 24px; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--muted); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); background: var(--line); }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* Catering */
.section-red h2 { color: #fff; }
.section-red p { font-size: 1.1rem; }
.section-red .contact-links { justify-content: center; margin-top: 24px; }
.section-red .btn { background: #fff; color: var(--red); border-color: #fff; }
.section-red .btn-outline { background: transparent; color: #fff; }
.section-red .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }

/* Footer */
.site-footer { background: var(--ink); color: #b9afa7; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 28px 16px; }
.footer-logo { height: 48px; width: auto; }
.site-footer p { margin: 0; }
.social { display: flex; gap: 16px; }
.social a { color: #fff; }

/* Cart button */
.cart-fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff;
            background: var(--red); color: #fff; cursor: pointer; display: grid; place-items: center;
            box-shadow: 0 10px 24px rgba(0,0,0,.3); transform: scale(0); transition: transform .25s; }
.cart-fab.has-items { transform: scale(1); }
.cart-fab.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.18); } }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
              background: var(--yellow); color: var(--ink); font-size: .8rem; font-weight: 800; display: grid; place-items: center; }

/* Drawer and options sheet */
.drawer-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(15,10,8,.55); opacity: 0; transition: opacity .25s; }
.drawer-overlay.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(440px, 100%); background: var(--bg);
          display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.25); transform: translateX(100%); transition: transform .25s ease; }
.drawer.open { transform: none; }
.sheet { position: fixed; left: 50%; top: 50%; z-index: 50; width: min(460px, calc(100% - 32px)); max-height: 88vh; background: var(--bg);
         border-radius: 18px; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.35);
         transform: translate(-50%, -46%); opacity: 0; transition: transform .25s ease, opacity .25s; }
.sheet.open { transform: translate(-50%, -50%); opacity: 1; }
body.drawer-lock { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.8rem; margin: 0; }
.drawer-close { font-size: 1.9rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--text); padding: 4px 8px; }
.drawer-body, .sheet-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px; background: var(--bg-alt); border-radius: 0 0 18px 18px; }
.drawer .drawer-foot { border-radius: 0; }

.opt-group { border: 0; padding: 0; margin: 0 0 18px; }
.opt-group legend { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 2px solid var(--line); border-radius: 12px;
       margin-bottom: 8px; cursor: pointer; transition: border-color .2s, background .2s; }
.opt:has(input:checked) { border-color: var(--red); background: #fdf3f3; }
.opt input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.opt span { flex: 1; font-weight: 600; }
.opt small { color: var(--muted); font-weight: 600; }
.opt-group select { width: 100%; margin: -2px 0 10px; font: inherit; padding: 9px 12px; border: 1px solid #d9cbbd; border-radius: 10px; background: #fff; }

.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item small { display: block; color: var(--muted); }
.line-total { font-weight: 800; min-width: 64px; text-align: right; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--red); background: #fff; color: var(--red);
              font-weight: 800; cursor: pointer; line-height: 1; }
.qty span { min-width: 18px; text-align: center; font-weight: 700; }
.cart-empty { color: var(--muted); text-align: center; padding: 32px 0; }

.step-checkout label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.step-checkout input:not([type="radio"]), .step-checkout select, .step-checkout textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 11px 12px;
  border: 1px solid #d9cbbd; border-radius: 10px; background: #fff; color: var(--text); }
.step-checkout .invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(193,39,50,.15); }
.types { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.types legend { font-weight: 800; margin-bottom: 8px; }
.type { display: flex !important; gap: 12px; align-items: center; padding: 12px; border: 2px solid var(--line); border-radius: 12px;
        cursor: pointer; margin: 0 !important; transition: border-color .2s, background .2s; }
.type:has(input:checked) { border-color: var(--red); background: #fdf3f3; }
.type input { accent-color: var(--red); width: 18px; height: 18px; }
.type small { display: block; font-weight: 400; color: var(--muted); }

.totals .row { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font-weight: 800; font-size: 1.1rem; border-top: 1px solid #d9cbbd; margin-top: 6px; padding-top: 8px; }
.warn { color: var(--red); font-size: .9rem; font-weight: 600; margin: 8px 0 0; }
.actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.actions .btn { flex: 1; text-align: center; }
.actions .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.step-done { text-align: center; padding-top: 24px; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; font-size: 2rem;
             display: grid; place-items: center; margin: 0 auto 16px; }

/* Scroll reveal */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* Tablets and phones */
@media (max-width: 900px) {
  #menu-list { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-art img { margin: 0 auto; max-width: 230px; }
  .tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .logo img { height: 46px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column;
         padding: 18px 16px 22px; gap: 18px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .sticker { width: 130px; }
  .about-art img { max-width: 300px; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 48px; }
  .sheet { top: auto; bottom: 0; left: 0; width: 100%; max-height: 90vh; border-radius: 18px 18px 0 0; transform: translateY(100%); }
  .sheet.open { transform: none; }
  .sheet .drawer-foot { border-radius: 0; }
  .footer-inner { justify-content: center; text-align: center; }
}
