/* ==========================================================================
   Mediterranean Buffet — Ourense
   Tokens: olivo #3A4526 · barro #B85C2E · crema #F6F1E4 · mar #2F5F68 · oro #C79A46
   Tipografía: Fraunces (display) + Work Sans (texto)
   ========================================================================== */

:root {
  --olive: #3a4526;
  --olive-dark: #262e19;
  --brand-green: #8dc63f;
  --brand-green-dark: #6ea62a;
  --clay: #b85c2e;
  --clay-dark: #9a4a24;
  --cream: #f6f1e4;
  --cream-soft: #efe7d4;
  --sea: #2f5f68;
  --sea-dark: #234750;
  --gold: #c79a46;
  --ink: #2b2620;
  --paper: #fffdf8;

  --display: "Fraunces", "Georgia", serif;
  --body: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; font-weight: 600; color: var(--olive-dark); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
section { scroll-margin-top: 84px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-green); color: var(--olive-dark); }
.btn-primary:hover { background: var(--brand-green-dark); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: var(--brand-green); border-color: var(--brand-green); color: var(--olive-dark); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Olive-branch divider (signature motif) */
.divider { display: flex; justify-content: center; padding: 4px 0; }
.divider svg { width: 140px; height: 28px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 69, 38, 0.12);
  transition: padding var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(38, 46, 25, 0.08); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: padding var(--transition);
}
.site-header.is-scrolled .container { padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 42px; width: auto; transition: height var(--transition); }
.site-header.is-scrolled .logo img { height: 34px; }
.nav-list { display: flex; gap: 34px; align-items: center; }
.nav-list a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--olive-dark);
  position: relative;
  padding: 4px 0;
}
.nav-list a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--clay);
  transition: width var(--transition);
}
.nav-list a:hover::after { width: 100%; }
.nav-cta {
  background: var(--brand-green); color: var(--olive-dark);
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.nav-cta:hover { background: var(--brand-green-dark); color: var(--paper); }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--olive-dark); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../images/hero-bg.jpg") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,8,0.72) 0%, rgba(10,10,8,0.4) 40%, rgba(10,10,8,0.15) 70%, rgba(10,10,8,0.05) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 120px 0 90px; }
.hero-mark { height: 30px; margin-bottom: 22px; opacity: 0.92; }
.hero .hero-lead {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  color: var(--paper);
  margin: 0;
}
.hero .hero-sub {
  font-family: var(--body);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin: 18px 0 10px;
}
.hero p.lede { font-size: 1.05rem; color: rgba(255,255,255,0.88); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

/* ---------------- Gallery mosaic ---------------- */
.gallery-section { padding: 96px 0 70px; background: var(--paper); }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-lead {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  color: var(--olive-dark);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 0;
}
.section-head p.section-lead + p { margin-top: 12px; }
.section-head > p:not(.section-lead) { color: #5a5140; font-size: 1.02rem; margin-top: 12px; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 10px;
  list-style: none;
}
.mosaic li { display: block; }
.mosaic button {
  display: block;
  width: 100%; height: 100%;
  border: none; padding: 0; margin: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.mosaic button:hover img { transform: scale(1.06); }
.mosaic li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic li:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.mosaic li:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.mosaic li:nth-child(4) { grid-column: span 1; grid-row: span 2; }
.mosaic li:nth-child(5) { grid-column: span 1; grid-row: span 1; }
.mosaic li:nth-child(6) { grid-column: span 1; grid-row: span 1; }

/* ---------------- Quote band ---------------- */
.quote-band { background: var(--sea); color: var(--paper); padding: 90px 0; text-align: center; }
.quote-band blockquote {
  margin: 0 auto; max-width: 780px;
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem); line-height: 1.42;
  font-weight: 400;
}
.quote-band .divider svg { filter: brightness(0) invert(1); opacity: 0.55; }

/* ---------------- Features ---------------- */
.features-section { padding: 90px 0; background: var(--cream); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 20px; }
.feature-card {
  background: var(--paper);
  border: 1px solid rgba(58,69,38,0.1);
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(38,46,25,0.1); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--cream-soft); display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--clay); fill: none; stroke-width: 1.6; }
.feature-card h3 { font-size: 1.28rem; font-style: italic; margin-bottom: 12px; }
.feature-card p { color: #5a5140; font-size: 0.96rem; margin: 0; }

/* ---------------- Promociones ---------------- */
.promo-section {
  position: relative;
  padding: 90px 0;
  color: var(--paper);
  overflow: hidden;
}
.promo-section::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../images/promo-bg.png") center/cover no-repeat;
}
.promo-section::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,14,0.82) 0%, rgba(20,22,14,0.88) 100%);
}
.promo-section .container { position: relative; z-index: 2; }
.promo-section .section-lead { color: var(--paper); }
.promo-section .section-head p:not(.section-lead) { color: rgba(255,255,255,0.72); }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; justify-items: center; }
.promo-grid figure {
  margin: 0; width: 100%; max-width: 360px; aspect-ratio: 1 / 1;
  border-radius: 50%; overflow: hidden; background: transparent;
}
.promo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.promo-grid figure:hover img { transform: scale(1.06); }

/* ---------------- Visítanos / Contacto ---------------- */
.contact-section { padding: 96px 0; background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info .section-lead { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 26px; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(58,69,38,0.12); }
.info-row:last-of-type { border-bottom: 1px solid rgba(58,69,38,0.12); }
.info-row svg { width: 22px; height: 22px; stroke: var(--clay); fill: none; stroke-width: 1.6; flex-shrink: 0; margin-top: 2px; }
.info-row strong { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); margin-bottom: 4px; }
.contact-info .btn-primary { margin-top: 28px; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(58,69,38,0.12); height: 100%; min-height: 380px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------------- Subvenciones ---------------- */
.grants-section { background: var(--cream-soft); padding: 44px 0; border-top: 1px solid rgba(58,69,38,0.1); }
.grants-label {
  text-align: center; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #7a7157; margin-bottom: 22px; font-weight: 600;
}
.grants-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px;
}
.grants-grid li {
  background: var(--paper);
  border: 1px solid rgba(58,69,38,0.1);
  border-radius: var(--radius);
  padding: 10px;
  width: 200px;
}
.grants-grid img { width: 100%; height: auto; display: block; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--olive-dark); color: rgba(255,255,255,0.7); padding: 34px 0; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 0.85rem; }
.site-footer a:hover { color: var(--gold); }

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,22,14,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 22px; right: 28px;
  background: none; border: none; color: var(--paper);
  font-size: 2rem; line-height: 1; cursor: pointer;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mosaic li:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .mosaic li:nth-child(4) { grid-row: span 1; }
}
@media (max-width: 760px) {
  .nav-list {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 100px 30px 30px; gap: 26px;
    transform: translateX(100%); transition: transform var(--transition);
    box-shadow: -18px 0 40px rgba(0,0,0,0.15);
  }
  .nav-list.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta { align-self: flex-start; }
  .hero-content { padding: 100px 0 70px; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .gallery-section, .features-section, .promo-section, .contact-section, .quote-band { padding: 64px 0; }
  .hero { min-height: 100vh; }
}
