/* ============================================================
   Tayau Restaurant — landing page
   Tokens: parchment/wine/gold by day, ember-on-night after dark.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;900&family=Jost:wght@400;500;600&display=swap");

:root {
  --parchment: #efe3c8;
  --parchment-deep: #ddc79c;
  --paper-edge: #c9ac74;
  --ink: #2b1c10;
  --ink-soft: #52402c;
  --wine: #7c1836;
  --wine-deep: #591028;
  --gold: #b8862f;
  --gold-light: #e6b955;
  --surface: #fbf5e6;
  --focus-ring: #b8862f;

  --night: #16110b;
  --night-2: #201810;
  --on-night: #f4e9d3;
  --on-night-soft: #cbb997;

  --whatsapp: #2fb457;
  --facebook: #2062c9;
  --maps-blue: #4285f4;
  --maps-red: #ea4335;
  --maps-yellow: #fbbc05;
  --maps-green: #34a853;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --parchment: #211a12;
    --parchment-deep: #170f0a;
    --paper-edge: #4a3218;
    --ink: #f1e4c8;
    --ink-soft: #cbb794;
    --surface: #2a2115;
    --gold: #d9a941;
    --gold-light: #f0c869;
  }
}
:root[data-theme="dark"] {
  --parchment: #211a12;
  --parchment-deep: #170f0a;
  --paper-edge: #4a3218;
  --ink: #f1e4c8;
  --ink-soft: #cbb794;
  --surface: #2a2115;
  --gold: #d9a941;
  --gold-light: #f0c869;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: "Jost", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- layout shells ---------- */
.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

/* ---------- menu sections ---------- */
.menu-section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.menu-section + .menu-section { border-top: 1px solid var(--paper-edge); }

.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0.3rem 0 0.6rem;
  text-wrap: balance;
}
.section-rule {
  width: 90px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.category {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.category.is-visible { opacity: 1; transform: translateY(0); }

.category-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--wine);
  text-align: center;
  margin: 0 0 1.1rem;
}
@media (prefers-color-scheme: dark) { .category-title { color: var(--gold-light); } }
:root[data-theme="dark"] .category-title { color: var(--gold-light); }

.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem 2.2rem;
}
.dish { border-bottom: 1px dashed var(--paper-edge); padding-bottom: 0.65rem; }
.dish-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 600;
}
.dish-name { font-size: 1.02rem; }
.dish-price {
  font-variant-numeric: tabular-nums;
  color: var(--wine);
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) { .dish-price { color: var(--gold-light); } }
:root[data-theme="dark"] .dish-price { color: var(--gold-light); }
.dish-desc { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; }

.addon-strip {
  margin-top: 0.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--paper-edge);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}
.addon-strip p { margin: 0.3rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.addon-strip strong { color: var(--wine); }
@media (prefers-color-scheme: dark) { .addon-strip strong { color: var(--gold-light); } }
:root[data-theme="dark"] .addon-strip strong { color: var(--gold-light); }

.extras-bar {
  margin-top: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--paper-edge);
}
.extras-bar h3 { font-family: "Playfair Display", serif; color: var(--wine); font-size: 1.1rem; margin: 0 0 0.6rem; }
@media (prefers-color-scheme: dark) { .extras-bar h3 { color: var(--gold-light); } }
:root[data-theme="dark"] .extras-bar h3 { color: var(--gold-light); }
.extras-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1rem; font-size: 0.92rem; }
.extras-bar li:not(:last-child)::after { content: "•"; margin-left: 1rem; color: var(--gold); }

/* ---------- location ---------- */
.location {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
  background:
    linear-gradient(180deg, rgba(15, 10, 6, 0.55) 0%, rgba(12, 8, 5, 0.72) 55%, rgba(10, 7, 4, 0.92) 100%),
    url("./assets/building.jpg") center 30% / cover no-repeat;
  color: var(--on-night);
}
.location-inner { max-width: 640px; margin-inline: auto; text-align: center; }
.location .eyebrow { color: var(--gold-light); }
.location-title {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin: 0.4rem 0 1rem;
  text-wrap: balance;
}
.location-sub { color: var(--on-night-soft); margin: 0 0 2.25rem; font-size: 1rem; }

.map-card {
  background: rgba(20, 15, 10, 0.55);
  border: 1px solid rgba(230, 200, 140, 0.25);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(6px);
  margin-bottom: 1.5rem;
}
.pin { width: 46px; height: 46px; margin: 0 auto 0.75rem; display: block; }
.map-card p { margin: 0 0 1.1rem; font-weight: 500; letter-spacing: 0.02em; }

.btn-maps {
  /* fixed light pill (not theme tokens): sits on a photo, needs to pop in both themes */
  background: #fbf5e6;
  color: #7c1836;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}

.social-card {
  background: rgba(20, 15, 10, 0.55);
  border: 1px solid rgba(230, 200, 140, 0.25);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(6px);
}
.social-card h3 { margin: 0 0 1rem; font-size: 0.95rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--on-night-soft); font-weight: 500; }
.social-row { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  transition: transform 0.15s ease;
}
.social-btn:hover { transform: translateY(-1px); }
.social-btn svg { width: 20px; height: 20px; }
.social-btn.whatsapp { background: var(--whatsapp); }
.social-btn.facebook { background: var(--facebook); }
.social-btn.instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 1.75rem 1.25rem 2.25rem;
  background: var(--night);
  color: var(--on-night-soft);
  font-size: 0.85rem;
}
.footer-name {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--gold-light);
  margin: 0 0 0.5rem;
}
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wine);
  color: #fbf5e6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }
