/* Tripita Mishqui — vibrant Ecuadorian street-food theme */
:root {
  --yellow: #ffd100;
  --yellow-deep: #ffb800;
  --blue: #0033a0;
  --blue-bright: #0072ce;
  --red: #ef3340;
  --red-deep: #c81d27;
  --ink: #20160a;
  --ink-soft: #4a3a28;
  --cream: #fff8e7;
  --cream-2: #fff3d4;
  --paper: #ffffff;
  --shadow: 0 14px 40px rgba(32, 22, 10, 0.16);
  --shadow-sm: 0 6px 18px rgba(32, 22, 10, 0.1);
  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: "Baloo 2", "Inter", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.lang-en { display: none; }
body.en .lang-en { display: inline; }
body.en .lang-es { display: none; }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255, 248, 231, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--yellow);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.nav-logo {
  font-size: 26px; line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.2));
}
.nav-name { font-family: "Baloo 2"; font-size: 22px; color: var(--ink); }
.nav-links { display: none; gap: 26px; margin-left: 18px; font-weight: 600; }
.nav-links a { position: relative; padding: 4px 0; color: var(--ink-soft); }
.nav-links a:hover { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  border: 2px solid var(--ink); background: transparent;
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
  font-weight: 700; font-size: 13px; color: var(--ink-soft);
}
.lang-toggle .lang-opt.active { color: var(--red); }
.lang-sep { opacity: .4; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; border: none; cursor: pointer;
  border-radius: 999px; padding: 11px 20px; font-size: 15px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-call { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-call:hover { background: var(--red-deep); }
.btn-primary { background: var(--ink); color: var(--yellow); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: rgba(255,255,255,.85); color: var(--ink); }
.btn-lg { padding: 15px 28px; font-size: 17px; }

/* ─── Hero ─── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 12% -10%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 32%, var(--red) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 9vw, 96px) clamp(20px, 4vw, 40px) clamp(56px, 9vw, 104px);
}
.hero-kicker {
  display: inline-block; background: var(--ink); color: var(--yellow);
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  font-size: 13px; padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(46px, 11vw, 104px); line-height: .95; margin: 0;
  color: var(--ink); letter-spacing: -.01em;
  text-shadow: 0 3px 0 rgba(255,255,255,.35);
}
.hero-slogan {
  font-family: "Baloo 2"; font-size: clamp(22px, 4.5vw, 34px);
  color: #fff; margin: 8px 0 0; text-shadow: 0 2px 8px rgba(180,20,20,.35);
}
.hero-sub { font-size: clamp(17px, 2.6vw, 22px); font-weight: 700; color: var(--ink); margin: 18px 0 6px; }
.hero-blurb { font-size: clamp(15px, 2.2vw, 18px); color: var(--ink-soft); max-width: 540px; margin: 0 0 28px; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-emojis {
  position: absolute; right: clamp(-20px, 2vw, 40px); top: 50%; transform: translateY(-50%);
  display: none; font-size: clamp(70px, 9vw, 140px); line-height: 1.05;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.22)); text-align: center;
}
.hero-emojis span { display: block; }
.hero-emojis span:nth-child(2) { margin-left: 40px; }

/* ─── Highlights ─── */
.highlights {
  max-width: var(--maxw); margin: -36px auto 0; position: relative; z-index: 5;
  padding: 0 clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.hl-card {
  background: var(--paper); border-radius: var(--radius-sm); padding: 18px 20px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
  border-bottom: 4px solid var(--yellow);
}
.hl-card .hl-icon { font-size: 32px; }
.hl-card h3 { margin: 0 0 2px; font-size: 18px; }
.hl-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ─── Sections ─── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 8vw, 86px) clamp(16px, 4vw, 40px); }
.section-head { text-align: center; margin-bottom: 30px; }
.section-eyebrow { color: var(--red); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.section-title { font-size: clamp(30px, 6vw, 48px); margin: 6px 0 0; color: var(--ink); }
.price-note { text-align: center; color: var(--ink-soft); font-size: 13px; margin: -16px 0 26px; font-style: italic; }

/* ─── Menu ─── */
.cat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.cat-tab {
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-weight: 700; border-radius: 999px; padding: 9px 18px; cursor: pointer; font-size: 14px;
  transition: all .12s ease;
}
.cat-tab:hover { background: var(--cream-2); }
.cat-tab.active { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

.menu-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.dish {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .14s ease, box-shadow .14s ease; position: relative;
}
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dish.featured { border: 2px solid var(--yellow); }
.dish-media {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  font-size: 78px; color: #fff;
}
.dish-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.dish-media .emoji { filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); }
.grad-0 { background: linear-gradient(135deg, #ffd100, #ef3340); }
.grad-1 { background: linear-gradient(135deg, #0072ce, #0033a0); }
.grad-2 { background: linear-gradient(135deg, #ff9a3c, #ef3340); }
.grad-3 { background: linear-gradient(135deg, #f7b733, #fc4a1a); }
.grad-4 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.badge-feat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
}
.badge-out {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,.7); color: #fff; font-weight: 700; font-size: 11px;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
}
.dish.sold .dish-media { filter: grayscale(.7) brightness(.9); }
.dish-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dish-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dish-name { font-family: "Baloo 2"; font-size: 21px; margin: 0; line-height: 1.1; }
.dish-name small { display: block; font-family: "Inter"; font-weight: 600; font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; }
.dish-price { font-weight: 800; font-size: 20px; color: var(--red); white-space: nowrap; }
.dish-desc { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }

/* ─── Story ─── */
.story-section { display: grid; gap: 30px; align-items: center; }
.story-card {
  background: var(--ink); color: var(--cream); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.story-card::after {
  content: "🇪🇨"; position: absolute; right: -10px; bottom: -18px; font-size: 130px; opacity: .12;
}
.story-card .section-eyebrow { color: var(--yellow); }
.story-card h2 { color: #fff; font-size: clamp(28px, 5vw, 42px); margin: 6px 0 16px; }
.story-card p { font-size: clamp(15px, 2.3vw, 18px); line-height: 1.65; color: #f4e7cf; max-width: 720px; }
.story-media {
  border-radius: var(--radius); aspect-ratio: 16/10; box-shadow: var(--shadow);
  display: grid; place-items: center; font-size: 110px;
  background: linear-gradient(135deg, var(--yellow), var(--red));
}
.story-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ─── Find Us ─── */
.find-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.info-card { background: var(--paper); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.info-card h3 { margin: 0 0 14px; font-size: 22px; display: flex; align-items: center; gap: 9px; }
.addr { font-size: 18px; font-weight: 700; margin: 0 0 2px; }
.addr-sub { color: var(--ink-soft); margin: 0 0 18px; }
.hours-list { list-style: none; padding: 0; margin: 0 0 18px; }
.hours-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #e7d9bd; font-size: 15px; }
.hours-list li:last-child { border-bottom: none; }
.hours-list li.closed { color: #b08; opacity: .65; }
.hours-list .day { font-weight: 700; }
.open-pill { display: inline-flex; align-items: center; gap: 7px; background: #eafbe7; color: #1c7c2e; font-weight: 700; font-size: 13px; padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.open-pill.closed { background: #fdeaea; color: var(--red-deep); }
.open-dot { width: 9px; height: 9px; border-radius: 50%; background: #28a745; }
.open-pill.closed .open-dot { background: var(--red); }
.find-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 280px; background: var(--cream-2); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ─── Footer ─── */
.footer { background: var(--ink); color: var(--cream); margin-top: 30px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 28px; display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: "Baloo 2"; font-size: 26px; font-weight: 800; color: #fff; }
.footer-slogan { color: var(--yellow); font-weight: 700; margin: -8px 0 0; }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 18px; }
.footer p, .footer a { color: #e9dcc2; font-size: 15px; }
.footer a:hover { color: var(--yellow); }
.footer h4 { color: #fff; margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: #b9a98a; }
.footer-bottom a { color: #b9a98a; }
.social-row { display: flex; gap: 12px; }
.social-row a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }

/* ─── Responsive ─── */
@media (min-width: 560px) {
  .highlights { grid-template-columns: repeat(3, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .hero-emojis { display: block; }
}
@media (min-width: 880px) {
  .nav-links { display: flex; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .story-section { grid-template-columns: 1.2fr .8fr; }
  .find-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══ Ordering / Venmo ═══ */
:root { --venmo: #008cff; --venmo-deep: #0070d6; }

.order-intro {
  max-width: var(--maxw); margin: 0 auto 14px; padding: 12px 16px;
  background: var(--cream-2); border: 2px dashed var(--yellow-deep);
  border-radius: var(--radius-sm); color: var(--ink-soft);
  font-weight: 600; font-size: 14.5px; text-align: center;
}

.add-dish {
  margin-top: 12px; width: 100%; cursor: pointer;
  border: 2px solid var(--ink); background: var(--yellow);
  color: var(--ink); font-weight: 800; font-family: "Baloo 2", sans-serif;
  font-size: 15px; padding: 9px 12px; border-radius: 999px;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 3px 0 var(--ink);
}
.add-dish:hover { background: var(--yellow-deep); }
.add-dish:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.dish.sold .add-dish { display: none; }

/* Floating cart button */
.cart-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 800;
  font-family: "Baloo 2", sans-serif; font-size: 16px;
  padding: 13px 20px; box-shadow: var(--shadow);
  transition: transform .12s ease, background .15s ease;
}
.cart-fab:hover { transform: translateY(-2px); }
.cart-fab.has-items { background: var(--blue-bright); }
.cart-fab .fab-emoji { font-size: 20px; }
.cart-fab .fab-count {
  background: #fff; color: var(--blue); min-width: 24px; height: 24px;
  border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 14px; padding: 0 6px;
}
.cart-fab .fab-total { font-size: 15px; }

/* Modal */
body.modal-open { overflow: hidden; }
.order-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20, 14, 6, 0.55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.order-card {
  width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  background: var(--paper); border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow); animation: sheetUp .22s ease;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.order-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-bottom: 2px solid var(--cream-2);
  position: sticky; top: 0; background: var(--paper); z-index: 1;
}
.order-head h3 { margin: 0; font-size: 20px; flex: 1; }
.order-head .ordnum { color: var(--red); }
.modal-x, .modal-back {
  border: none; background: var(--cream-2); cursor: pointer;
  width: 36px; height: 36px; border-radius: 999px; font-size: 16px;
  color: var(--ink); font-weight: 800; flex: none;
}
.modal-x:hover, .modal-back:hover { background: var(--yellow); }
.order-body { padding: 16px 18px; }
.order-foot {
  padding: 14px 18px 20px; border-top: 2px solid var(--cream-2);
  display: grid; gap: 10px; position: sticky; bottom: 0; background: var(--paper);
}

.cart-empty { text-align: center; color: var(--ink-soft); padding: 24px 0; }
.cart-row {
  display: grid; grid-template-columns: 34px 1fr auto auto;
  align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 1px solid var(--cream-2);
}
.cart-row-emoji { font-size: 24px; }
.cart-row-name { font-weight: 700; }
.cart-row-price { font-size: 12.5px; color: var(--ink-soft); }
.cart-row-line { font-weight: 800; min-width: 64px; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--ink); background: var(--cream); color: var(--ink);
  font-weight: 800; font-size: 16px; line-height: 1; display: inline-flex;
  align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--yellow); }
.qty-n { min-width: 18px; text-align: center; font-weight: 800; }

.order-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 19px; }
.order-total span:last-child { color: var(--red); }

.btn-venmo {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; cursor: pointer; text-align: center;
  background: var(--venmo); color: #fff; border: none;
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 17px;
  padding: 14px 16px; border-radius: 14px; transition: background .15s ease, transform .08s ease;
}
.btn-venmo:hover { background: var(--venmo-deep); }
.btn-venmo:active { transform: translateY(1px); }
.btn-venmo:disabled { opacity: .6; cursor: default; }
.btn-venmo-lite {
  width: 100%; cursor: pointer; background: var(--cream-2); color: var(--ink);
  border: 2px solid var(--ink); font-family: "Baloo 2", sans-serif;
  font-weight: 800; font-size: 16px; padding: 12px 16px; border-radius: 14px;
}
.btn-venmo-lite:hover { background: var(--yellow); }
.link-clear {
  background: none; border: none; color: var(--ink-soft); cursor: pointer;
  font-size: 13.5px; text-decoration: underline; padding: 2px;
}
.link-clear:hover { color: var(--red); }

.pickup-note {
  background: var(--cream-2); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; color: var(--ink-soft); margin: 0 0 14px;
}
.ck-label { display: block; font-weight: 700; font-size: 14px; margin: 12px 0 5px; }
.ck-input {
  width: 100%; border: 2px solid #e4d6b6; border-radius: 12px;
  padding: 11px 13px; font-size: 16px; font-family: inherit; background: var(--cream);
  color: var(--ink);
}
.ck-input:focus { outline: none; border-color: var(--blue-bright); background: #fff; }
.ck-area { min-height: 64px; resize: vertical; }
.ck-err { color: var(--red-deep); font-weight: 600; font-size: 14px; margin: 10px 0 0; }

.confirm-instr { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 14px; }
.confirm-sum {
  background: var(--cream); border: 1px solid var(--cream-2);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px;
}
.sum-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; }
.sum-total { border-top: 2px solid var(--cream-2); margin-top: 4px; padding-top: 9px; font-weight: 800; font-size: 17px; }
.sum-total span:last-child { color: var(--red); }
.venmo-handle { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin: 10px 0 0; }
.venmo-handle strong { color: var(--venmo-deep); }
.venmo-missing { text-align: center; background: var(--cream-2); border-radius: var(--radius-sm); padding: 14px; font-size: 14.5px; }
.venmo-missing a { color: var(--red); font-weight: 700; }
.confirm-foot { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 14px 0 0; }

.tm-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(10px);
  z-index: 95; background: var(--ink); color: #fff; font-weight: 700;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.tm-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 560px) {
  .order-overlay { align-items: center; padding: 20px; }
  .order-card { border-radius: 22px; }
}
