/* =========================================================
   A Toda Huerta — landing styles
   Palette pulled from the logo (deep leaf green) + cream paper
   ========================================================= */
:root {
  --green-950: #131b0d;
  --green-900: #1b2613;
  --green-800: #253419;
  --green-700: #35502a;
  --green-500: #5a8a44;
  --green-300: #9bb38a;
  --sage: #c9d3bd;
  --cream: #f5efe3;
  --cream-2: #ece3d1;
  --cream-3: #e2d6bf;
  --ink: #1b2613;
  --muted: #5d6852;
  --terracotta: #c4622d;
  --terracotta-2: #a94f22;
  --wa: #25d366;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(27, 38, 19, 0.35);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: min(var(--container), calc(100% - 2 * clamp(20px, 5vw, 48px))); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--dark { background: var(--green-900); color: var(--cream); }
.section--cream { background: var(--cream-2); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.h2 { font-size: clamp(30px, 4vw, 48px); }
.h2__muted { color: var(--muted); font-weight: 400; font-style: italic; }
.section--dark .h2__muted { color: var(--green-300); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 60ch; }
.section--dark .lead { color: var(--sage); }

.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--terracotta); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--light { color: var(--green-300); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: 0 10px 24px -10px rgba(196, 98, 45, .7); }
.btn--primary:hover { background: var(--terracotta-2); }
.btn--cream { background: var(--cream); color: var(--green-900); }
.btn--cream:hover { background: #fff; }
.btn--ghost { background: rgba(245, 239, 227, 0.08); color: var(--cream); border-color: rgba(245, 239, 227, 0.45); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(245, 239, 227, 0.16); border-color: var(--cream); }
.btn--outline { background: transparent; color: var(--green-900); border-color: var(--green-900); }
.btn--outline:hover { background: var(--green-900); color: var(--cream); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  color: var(--cream);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s;
}
.nav.is-scrolled { background: rgba(27, 38, 19, 0.88); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -20px rgba(0,0,0,.6); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; letter-spacing: 0.01em; }
.nav__mark { width: 30px; height: auto; }
.nav__links { display: flex; gap: clamp(14px, 2vw, 30px); font-size: 14px; font-weight: 500; }
.nav__links a { opacity: .85; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--cream); transition: right .25s ease; }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { right: 0; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid rgba(245,239,227,.4); border-radius: 999px; padding: 3px; }
.lang__btn { background: transparent; border: 0; color: var(--cream); padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .08em; cursor: pointer; opacity: .7; }
.lang__btn.is-active { background: var(--cream); color: var(--green-900); opacity: 1; }
.nav__burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav__burger span { width: 22px; height: 2px; background: var(--cream); transition: transform .25s, opacity .25s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; color: var(--cream); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: heroZoom 18s ease-out forwards; will-change: transform; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(19, 27, 13, 0.95) 0%, rgba(19, 27, 13, 0.55) 45%, rgba(19, 27, 13, 0.25) 100%),
    linear-gradient(180deg, rgba(19, 27, 13, 0.55) 0%, rgba(19, 27, 13, 0.15) 40%, rgba(19, 27, 13, 0.6) 100%);
}
.hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 40px; }
.hero__logo { width: clamp(150px, 18vw, 220px); height: auto; margin-bottom: 28px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)) }
.hero__title { font-size: clamp(46px, 8vw, 104px); font-weight: 400; line-height: .98; letter-spacing: -0.02em }
.hero__title em { font-style: italic; font-weight: 300; color: var(--sage); }
.hero__sub { max-width: 60ch; margin: 22px auto 34px; font-size: clamp(16px, 1.5vw, 19px); color: rgba(245,239,227,.86) }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center }

.hero__strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(245,239,227,.14); border: 1px solid rgba(245,239,227,.14); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; backdrop-filter: blur(10px);
}
.strip__item { background: rgba(19,27,13,.55); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.strip__big { font-family: var(--font-display); font-size: 22px; display: inline-flex; align-items: center; gap: 6px; color: var(--cream); }
.strip__big svg { color: #f2b544; }
.strip__label { font-size: 13px; color: rgba(245,239,227,.7); }
.strip__big.is-open { color: #9fe0a3; }
.strip__big.is-closed { color: #f2b0a0; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__media { position: relative; padding-bottom: 60px; padding-right: 60px; }
.about__img { border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.about__img--tall { aspect-ratio: 4 / 5; width: 100%; }
.about__img--small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 6px solid var(--cream); }
.about__badge {
  position: absolute; left: -10px; top: 28px; background: var(--cream); border-radius: 999px; padding: 10px 18px 10px 12px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); font-weight: 600; font-size: 14px;
  transform: rotate(-4deg);
}
.about__badge img { width: 28px; height: auto; }
.about__text p { color: var(--muted); font-size: 17px; }
.about__text .h2 { margin-bottom: 22px; }
.about__quote { margin: 30px 0 0; padding: 22px 26px; border-left: 3px solid var(--terracotta); background: var(--cream-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.about__quote p { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--green-800); margin-bottom: 10px; }
.about__quote cite { font-style: normal; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }

/* ---------- experience cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--green-800); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(245,239,227,.08); transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .6s ease; }
.card:hover img { transform: scale(1.04); }
.card__body { padding: 22px 24px 26px; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--sage); font-size: 15px; }
.experience__extra { margin-top: 44px; display: flex; justify-content: center; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill { border: 1px solid rgba(245,239,227,.25); border-radius: 999px; padding: 9px 16px; font-size: 14px; color: var(--cream); background: rgba(245,239,227,.05); }

/* ---------- menu ---------- */
.menu { padding-bottom: clamp(72px, 10vw, 128px); }
.menu-hero { background: var(--green-900); color: var(--cream); padding: calc(var(--nav-h) + 56px) 0 48px; text-align: center; }
.menu-hero__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.menu-hero__inner > img { width: 56px; height: auto; margin-bottom: 6px; }
.menu-hero__title { font-size: clamp(38px, 6vw, 72px); font-weight: 400; letter-spacing: -0.02em; }
.menu-hero__meta { color: var(--green-300); font-size: 14px; min-height: 1.4em; margin: 0 0 12px; }
.nav__links a.is-current { opacity: 1; }
.nav__links a.is-current::after { right: 0; }
.menu__loading { color: var(--muted); font-style: italic; }
.menu__note { margin-top: 28px; font-size: 13px; color: var(--muted); max-width: 70ch; }
.menu__fallback a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }

.menu-tabs { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(245,239,227,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--cream-3); margin-bottom: 36px; }
.menu-tabs__inner { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; scroll-behavior: smooth; }
.menu-tabs__inner::-webkit-scrollbar { display: none; }
.menu-tab { flex: 0 0 auto; border: 1px solid var(--cream-3); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--green-800); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.menu-tab:hover { border-color: var(--green-300); }
.menu-tab.is-active { background: var(--green-900); color: var(--cream); border-color: var(--green-900); }
.menu-tab small { opacity: .6; margin-left: 6px; font-weight: 400; }

.menu-cat { scroll-margin-top: calc(var(--nav-h) + 76px); padding: 8px 0 44px; }
.menu-cat + .menu-cat { border-top: 1px solid var(--cream-3); padding-top: 40px; }
.menu-cat__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.menu-cat__head h3 { font-size: clamp(26px, 3vw, 34px); }
.menu-cat__head span { font-size: 13px; color: var(--muted); }
.menu-cat__desc { color: var(--muted); margin-bottom: 18px; max-width: 70ch; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 18px; }
.menu-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; background: #fff; border: 1px solid var(--cream-3); border-radius: var(--radius-sm); padding: 12px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.menu-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-300); }
.menu-item--noimg { grid-template-columns: 1fr; }
.menu-item__img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--cream-2); }
.menu-item__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.menu-item__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.menu-item__name { font-family: var(--font-display); font-size: 18px; line-height: 1.2; }
.menu-item__price { font-weight: 600; color: var(--terracotta); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-item__desc { font-size: 14px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- gallery ---------- */
.masonry { columns: 4 220px; column-gap: 14px; }
.masonry img { width: 100%; margin-bottom: 14px; border-radius: var(--radius-sm); break-inside: avoid; transition: transform .4s ease, filter .4s; }
.masonry img:hover { transform: scale(1.02); filter: saturate(1.1); }

/* ---------- reviews ---------- */
.stars { color: #f2b544; letter-spacing: 2px; font-size: .8em; vertical-align: middle; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { margin: 0; background: var(--cream); border-radius: var(--radius); padding: 30px 30px 26px; border: 1px solid var(--cream-3); position: relative; }
.review::before { content: "“"; position: absolute; top: 6px; left: 22px; font-family: var(--font-display); font-size: 80px; line-height: 1; color: var(--cream-3); }
.review blockquote { margin: 0 0 18px; position: relative; font-family: var(--font-display); font-size: 19px; line-height: 1.4; color: var(--green-800); }
.review figcaption { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }

/* ---------- hours ---------- */
.hours__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.hours__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hours__table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hours__table th, .hours__table td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--cream-2); font-size: 16px; }
.hours__table th { font-weight: 500; }
.hours__table td { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.hours__table tr:last-child th, .hours__table tr:last-child td { border-bottom: 0; }
.hours__table tr.is-today { background: var(--green-900); color: var(--cream); }
.hours__table tr.is-today td { color: var(--sage); }
.hours__table tr.is-today th::after { content: " · " attr(data-today); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-300); }

/* ---------- location ---------- */
.location__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.location__map { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0,0,0,.9); border: 1px solid rgba(245,239,227,.12); aspect-ratio: 4 / 3; }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9); }
.location__text address { font-style: normal; font-size: 18px; line-height: 1.6; margin: 20px 0 10px; color: var(--cream); }
.location__hint { color: var(--sage); }
.location__delivery { color: var(--cream); background: rgba(245,239,227,.08); border: 1px solid rgba(245,239,227,.18); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 15px; }
.location__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact__card { background: #fff; border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--cream-3); transition: transform .25s, box-shadow .25s, border-color .25s; }
.contact__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-300); }
.contact__icon { font-size: 26px; margin-bottom: 8px; }
.contact__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.contact__value { font-size: 16px; font-weight: 500; word-break: break-word; }
.socials { display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: center; margin-top: 48px; }
.socials a { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--green-800); opacity: .85; transition: opacity .2s, color .2s; }
.socials a:hover { opacity: 1; color: var(--terracotta); }

/* ---------- footer ---------- */
.footer { background: var(--green-950); color: var(--sage); padding: 72px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(245,239,227,.1); }
.footer__brand img { width: 84px; height: auto; margin-bottom: 18px; opacity: .95; }
.footer__brand p { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--cream); }
.footer__col h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-300); margin-bottom: 14px; font-weight: 600; }
.footer__col a, .footer__col p { display: block; margin-bottom: 8px; color: var(--cream); opacity: .85; font-size: 15px; }
.footer__col a:hover { opacity: 1; color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; }
.footer__bottom a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- motion (GSAP sets the start state; nothing is hidden by CSS,
   so the page is fully readable if the CDN is blocked) ---------- */
.progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; pointer-events: none; }
.progress__bar { width: 0; height: 100%; background: linear-gradient(90deg, var(--green-300), var(--terracotta)); transition: width .08s linear; }
@media (prefers-reduced-motion: reduce) {
  .hero__bg img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(19,27,13,.97); padding: 12px 0 20px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s; font-size: 18px;
  }
  .nav__links a { padding: 14px clamp(20px, 5vw, 48px); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgba(19,27,13,.97); }
  .nav__burger { display: flex; }
  .nav__actions .btn { display: none; }
  .nav__name { display: none; }
  .hero__strip { grid-template-columns: repeat(2, 1fr); border-radius: 0; }
  .about__grid, .hours__grid, .location__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .location__map { order: 2; }
}
@media (max-width: 560px) {
  .cards, .contact__grid, .footer__inner { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .menu-grid { grid-template-columns: 1fr; }
  .section__head--row .btn { width: 100%; }
}
