:root {
  /* Real brand palette, sampled directly from the logo: deep navy,
     warm orange/amber, and the medium blue used in the logo's arcs. */
  --paper: #011f3d;          /* brand navy — header, hero, footer */
  --paper-soft: #0b3255;     /* slightly lifted dark panel */
  --card: #f5f7fa;           /* cool off-white — light section background */
  --ink: #011f3d;            /* brand navy — text/buttons on light or orange */
  --text: #1c2b3a;           /* body copy on light background */
  --ink-soft: #5b6b7a;       /* secondary body copy on light background */
  --ink-on-dark: #f5f7fa;    /* primary text on dark backgrounds */
  --ink-on-dark-soft: #9fb3c8; /* secondary text on dark backgrounds */
  --line: #d7dee5;           /* divider on light background */
  --gold: #e7921c;           /* brand orange — primary accent (CTAs, kickers) */
  --gold-deep: #c97e15;
  --moss: #357aad;           /* brand blue — secondary accent, from the logo's arcs */
  --terracotta: #2a6690;     /* deep blue — price tags, active tab (a darker --moss) */
  --error: #b3261e;          /* plain error red — kept separate from the brand palette on purpose */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--card);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Set (only for Spanish) by the inline script in <head> before paint, and
   removed by script.js once it has swapped every [data-es] element's text
   — keeps a Spanish-language visit from flashing the English markup. */
html.i18n-pending body { visibility: hidden; }

.lang-toggle { display: flex; gap: 6px; margin-left: 4px; }
.lang-toggle button {
  font-family: "Jost", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  background: none; border: 1px solid rgba(243, 236, 217, 0.3); color: var(--ink-on-dark-soft);
  padding: 9px 14px; min-height: 40px; border-radius: 12px; cursor: pointer; transition: all 0.2s ease;
}
.lang-toggle button.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lang-toggle button:hover:not(.active) { border-color: var(--gold); color: var(--ink-on-dark); }

/* Scroll-reveal — elements fade/rise into place as they enter the
   viewport (see script.js's IntersectionObserver). Starts pre-revealed
   for anyone whose browser/motion settings skip the JS or animation. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { transform: none !important; }
  .scroll-cue { display: none; }
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: "Playfair Display", "Georgia", serif; font-weight: 600; margin: 0 0 12px; }

a { color: inherit; }

.kicker {
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 10px;
}
.hero .kicker, .site-alt-kicker { color: var(--gold); }

.placeholder-copy { color: var(--ink-soft); max-width: 620px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper); color: var(--ink-on-dark);
  transition: box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(231, 146, 28, 0.18);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; flex-wrap: wrap; gap: 10px;
  transition: padding 0.3s ease;
}
.site-header.scrolled .header-inner { padding: 9px 20px; }
.wordmark {
  display: flex; align-items: center; text-decoration: none;
  font-family: "Cinzel", "Playfair Display", "Georgia", serif; font-weight: 600;
  font-size: 22px; color: var(--ink-on-dark); letter-spacing: 0.04em;
}
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-family: "Jost", sans-serif; }
.site-nav a { text-decoration: none; color: var(--ink-on-dark-soft); transition: color 0.2s ease; white-space: nowrap; }
.site-nav a:hover { color: var(--ink-on-dark); }
.nav-cta {
  background: var(--gold); color: var(--ink) !important; padding: 9px 18px; border-radius: 2px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--ink-on-dark); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0; margin-left: auto;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink-on-dark); margin: 0 auto; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: flex; }

  /* Collapsed by default — the toggle above reveals it as a full-width
     dropdown, so nothing (the language buttons included) has to compete
     for space in the top bar itself. */
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 9;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-top: 1px solid rgba(231, 146, 28, 0.18);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .site-nav.open { max-height: 420px; }
  .site-nav a {
    padding: 16px 20px; border-bottom: 1px dashed rgba(231, 146, 28, 0.25);
    font-size: 15px; text-align: center;
  }
  .nav-cta { margin: 16px 20px; text-align: center; }
  .lang-toggle { justify-content: center; margin: 0 0 20px; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--paper); color: var(--ink-on-dark);
  padding: 130px 0 150px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10%;
  background-image: radial-gradient(circle at 18% 22%, rgba(231, 146, 28, 0.18), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(53, 122, 173, 0.35), transparent 55%);
  will-change: transform;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(13, 31, 22, 0.9) 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-logo { width: 140px; height: 140px; margin: 0 auto 20px; display: block; }
.hero h1 {
  font-family: "Cinzel", "Playfair Display", "Georgia", serif; font-weight: 500;
  font-size: 48px; margin-bottom: 10px; letter-spacing: 0.03em;
}
.tagline { font-size: 18px; color: var(--ink-on-dark-soft); margin-bottom: 30px; font-family: "Jost", sans-serif; font-weight: 400; }

/* Floating WhatsApp button — fixed to the viewport (not the page), so it
   follows the visitor down through every section rather than just the hero. */
.whatsapp-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
@media (max-width: 780px) {
  .whatsapp-fab { bottom: 16px; right: 16px; width: 50px; height: 50px; }
}

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 2px solid var(--ink-on-dark-soft); border-radius: 14px;
  opacity: 0.7;
}
.scroll-cue span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--gold);
  animation: scroll-cue-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-drop {
  0% { opacity: 0; top: 7px; }
  30% { opacity: 1; }
  80% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

.btn {
  display: inline-block; padding: 14px 30px; border-radius: 2px; font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600; font-size: 13.5px; letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-deep); }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--card); }

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: #fff; }
.section h2 {
  font-size: 30px; color: var(--ink); display: inline-block; margin-bottom: 8px;
}
.section > .wrap > .kicker, .section > .wrap > h2.reveal + p, .section .placeholder-copy { }
.section h2 + .placeholder-copy { margin-top: 0; margin-bottom: 24px; }

/* Menu */
.menu-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 30px;
  border-bottom: 1px solid var(--line); padding-bottom: 0;
}
.menu-tab {
  font-family: "Jost", sans-serif; font-size: 13.5px; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--ink-soft); background: none; border: none;
  padding: 12px 6px; min-height: 40px; margin-right: 18px; cursor: pointer; position: relative;
  border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease;
}
.menu-tab:hover { color: var(--ink); }
.menu-tab.active { color: var(--terracotta); border-bottom-color: var(--gold); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.menu-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.25s ease;
  transition-delay: calc(var(--stagger, 0) * 0.08s);
}
.menu-item.menu-item-anim {
  animation: menu-fade-in 0.5s ease both;
  animation-delay: calc(var(--stagger, 0) * 0.07s);
}
@keyframes menu-fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.menu-item:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(18, 36, 26, 0.18); transition-delay: 0s, 0s, 0s; }

.menu-item-img {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(135deg, var(--paper) 0%, var(--moss) 100%);
  display: flex; align-items: center; justify-content: center;
}
.menu-item-img::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(231, 146, 28, 0.25), transparent 60%);
}
.menu-item-img-label {
  position: relative; font-family: "Jost", sans-serif; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-on-dark-soft); border: 1px solid rgba(243, 236, 217, 0.35);
  padding: 6px 12px; border-radius: 20px;
}
.menu-item:hover .menu-item-img-label { color: var(--ink-on-dark); border-color: var(--gold); }
.menu-item-img img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.menu-item:hover .menu-item-img img { transform: scale(1.05); }
.menu-item-badge {
  position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 11px; border-radius: 20px;
  background: var(--terracotta); color: #fff; font-family: "Jost", sans-serif; font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.menu-item-body { padding: 18px 20px 20px; }
.menu-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.menu-item-head h3 { font-size: 18px; margin: 0; }
.menu-item p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.menu-item .price {
  font-weight: 600; color: var(--terracotta); font-family: "Jost", sans-serif; font-size: 14px;
  white-space: nowrap;
}

.hours-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.hours-list { list-style: none; padding: 0; margin: 0 0 16px; max-width: 320px; }
.hours-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-family: "Jost", sans-serif; font-size: 14px; }

/* Reservation form */
.reservation-form { max-width: 620px; margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reservation-form label {
  display: flex; flex-direction: column; gap: 5px; font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
}
.full-row { grid-column: 1 / -1; }
.reservation-form input, .reservation-form textarea {
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif; font-size: 14px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--text);
  transition: border-color 0.2s ease;
}
.reservation-form input:focus, .reservation-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.reservation-form button { align-self: flex-start; }
.reservation-status { font-size: 13.5px; font-family: "Jost", "Helvetica Neue", Arial, sans-serif; min-height: 1.2em; }
.reservation-status.ok { color: #2f7a4a; }
.reservation-status.error { color: var(--error); }

/* Footer */
.site-footer { background: var(--paper); color: var(--ink-on-dark-soft); padding: 26px 0; font-size: 13px; font-family: "Jost", sans-serif; border-top: 1px solid rgba(231, 146, 28, 0.18); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.staff-link { color: var(--ink-on-dark-soft); text-decoration: underline; text-underline-offset: 2px; }
.staff-link:hover { color: var(--gold); }

@media (max-width: 640px) {
  .hours-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .menu-tabs { gap: 4px; }
  .menu-tab { margin-right: 12px; }
}

/* Booking form spam trap: kept out of sight and out of the tab order, but
   still in the page so bots that fill every field fill it too. */
.form-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
