/* Luna Bistro — Stylesheet
   Tokens: dusk indigo #1B2A4A · parchment #F3E6CE · ink #241B15
           laterite #C1440E · gold #E8A33D · lagoon green #3F6E52 */

:root {
  --indigo: #1B2A4A;
  --indigo-light: #2B3F68;
  --parchment: #F3E6CE;
  --parchment-light: #FAF3E4;
  --ink: #241B15;
  --laterite: #C1440E;
  --laterite-dark: #9E3608;
  --gold: #E8A33D;
  --lagoon: #3F6E52;

  --font-display: 'Bevan', 'Georgia', serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --font-accent: 'Caveat', cursive;

  --container-width: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--laterite);
  margin: 0 0 12px;
}
.eyebrow--light { color: var(--gold); }

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 20px;
  color: var(--ink);
}
.section-title--light { color: var(--parchment-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn--primary { background: var(--laterite); color: var(--parchment-light); }
.btn--primary:hover { background: var(--laterite-dark); }

.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }

.btn--whatsapp {
  background: var(--lagoon);
  color: var(--parchment-light);
  margin: 24px 0;
}
.btn--whatsapp:hover { background: #2f5540; }

.btn--full { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--indigo);
  border-bottom: 1px solid rgba(232, 163, 61, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--parchment-light);
  letter-spacing: 0.02em;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__link {
  display: inline-flex;
  align-items: center;
  padding: 12px 2px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--parchment-light);
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.navbar__link:hover { opacity: 1; }
.navbar__link.is-active { opacity: 1; color: var(--gold); }

.navbar__link--cta {
  background: var(--laterite);
  padding: 9px 18px;
  border-radius: var(--radius);
  opacity: 1;
}
.navbar__link--cta:hover { background: var(--laterite-dark); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.navbar__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--parchment-light);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  background: rgba(243, 230, 206, 0.1);
  border: 1px solid rgba(232, 163, 61, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--parchment-light);
}
.lang-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lang-toggle__divider { opacity: 0.4; }
.lang-toggle__option { opacity: 0.5; transition: opacity 0.15s ease; }
.lang-toggle__option.is-active { opacity: 1; color: var(--gold); }

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

/* ---------- Frieze divider ---------- */
.frieze {
  width: 100%;
  height: 32px;
  overflow: hidden;
}
.frieze__svg { width: 100%; height: 100%; }
.frieze--ink { background: var(--parchment); }
.frieze--gold { background: var(--indigo); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--indigo);
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,42,74,0.55) 0%, rgba(27,42,74,0.75) 55%, rgba(27,42,74,0.95) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--parchment-light);
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--parchment-light);
  opacity: 0.9;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn--ghost { color: var(--parchment-light); }

/* ---------- About ---------- */
.about { padding: 90px 0; }
.about__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.about__text p:not(.eyebrow) { font-size: 1.05rem; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px rgba(36, 27, 21, 0.4);
}

/* ---------- Menu ---------- */
.menu { background: var(--indigo); padding: 90px 0; color: var(--parchment-light); }
.menu__content { text-align: center; }
.menu__groups {
  text-align: left;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: 48px;
}
.menu__group-title {
  font-size: 1.3rem;
  color: var(--gold);
  border-bottom: 1px solid rgba(232, 163, 61, 0.3);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.menu__group-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(232, 163, 61, 0.3);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.menu__group-title-row .menu__group-title { border: none; padding: 0; margin: 0; }
.menu__special {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: var(--laterite);
  background: var(--parchment-light);
  padding: 2px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.menu__item { margin-bottom: 20px; }
.menu__item--special { position: relative; padding-left: 14px; border-left: 3px solid var(--laterite); }
.menu__item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.menu__item-name { font-family: var(--font-display); font-size: 1rem; color: var(--parchment-light); }
.menu__item-price { font-family: var(--font-accent); font-size: 1.25rem; color: var(--gold); white-space: nowrap; }
.menu__item-desc { font-size: 0.88rem; opacity: 0.75; margin: 4px 0 0; }

/* ---------- Gallery ---------- */
.gallery { padding: 90px 0; text-align: center; }
.gallery__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 160px;
  gap: 16px;
  text-align: left;
}
.gallery__item {
  position: relative;
  margin: 0;
  grid-column: span 2;
  grid-row: span 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery__item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(36,27,21,0.85), transparent);
  color: var(--parchment-light);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--laterite); padding: 90px 0; text-align: center; }
.testimonials .section-title { margin-bottom: 48px; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  text-align: left;
}
.testimonial {
  margin: 0;
  background: rgba(243, 230, 206, 0.08);
  border: 1px solid rgba(243, 230, 206, 0.25);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--parchment-light);
  line-height: 1.5;
  margin: 0 0 16px;
}
.testimonial__author {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--parchment-light);
  opacity: 0.75;
}

/* ---------- Reservation ---------- */
.reservation { background: var(--indigo); padding: 90px 0; }
.reservation__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
}
.reservation__intro p { color: var(--parchment-light); opacity: 0.9; }
.reservation__details { margin-top: 32px; display: flex; gap: 40px; flex-wrap: wrap; }
.reservation__details p { color: var(--parchment-light); opacity: 0.85; font-size: 0.92rem; }
.reservation__details strong { color: var(--gold); display: block; margin-bottom: 4px; font-weight: 600; }

.reservation__form {
  background: var(--parchment-light);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 12px;
  border: 1px solid rgba(36, 27, 21, 0.25);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--laterite);
  outline-offset: 1px;
}
.form-row.has-error input, .form-row.has-error textarea {
  border-color: var(--laterite);
}
.form-error {
  display: block;
  color: var(--laterite);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
  min-height: 1em;
}
.form-note { margin-top: 14px; font-size: 0.85rem; color: var(--lagoon); font-weight: 600; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
  background: rgba(27, 42, 74, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(90vw, 1100px);
  max-height: 75vh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.lightbox__caption {
  color: var(--parchment-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin: 0;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(243, 230, 206, 0.4);
  background: rgba(243, 230, 206, 0.1);
  color: var(--parchment-light);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(243, 230, 206, 0.2); }
.lightbox__close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--parchment-light); padding: 48px 0; }
.footer__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo--footer { font-size: 1.2rem; margin: 0 0 4px; }
.footer__brand p:not(.logo--footer) { opacity: 0.7; font-size: 0.88rem; margin: 0; }
.footer__links { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.footer__links a { font-size: 0.88rem; opacity: 0.8; }
.footer__links a:hover { opacity: 1; }
.footer__copyright { font-size: 0.8rem; opacity: 0.55; margin: 0; width: 100%; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about__content, .reservation__content { grid-template-columns: minmax(0, 1fr); }
  .menu__groups { grid-template-columns: minmax(0, 1fr); }
  .testimonials__grid { grid-template-columns: minmax(0, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item { grid-column: span 1; }
  .navbar__toggle { display: flex; }
  .navbar__menu {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--indigo);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 2px;
    display: none;
  }
  .navbar__menu.is-open { display: flex; }
  .navbar__link { width: 100%; }
  .navbar__link--cta { margin-top: 10px; justify-content: center; }
  .footer__content { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery__item img { transition: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
