/* =========================================================================
   OUI Lunch & Dining — Stylesheet
   Paleta: preto, branco off-white, dourado azeitona, verde oliva
   Tom: moderno, minimalista, editorial
   ========================================================================= */

/* ---------- TOKENS ---------- */
:root {
  --black:        #0a0a0a;
  --black-soft:   #121212;
  --black-elev:   #1a1a1a;
  --white:        #f5f2ed;
  --white-dim:    rgba(245, 242, 237, 0.72);
  --white-faint:  rgba(245, 242, 237, 0.45);
  --gold:         #c9a04c;
  --gold-bright:  #d8b260;
  --olive:        #8b9a6b;
  --olive-deep:   #6b7a4b;
  --line:         rgba(245, 242, 237, 0.12);

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-script:  'Cormorant Garamond', 'Dancing Script', cursive;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container:    1280px;
  --gutter:       clamp(1.25rem, 4vw, 3rem);

  --transition:   400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }

/* ---------- TIPOGRAFIA ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 400; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 500; }
p  { margin: 0 0 1rem; color: var(--white-dim); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.script {
  font-family: 'Dancing Script', 'Great Vibes', cursive;
  font-weight: 400;
  font-style: italic;
  color: var(--olive);
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: clamp(4rem, 10vw, 8rem) 0; position: relative; }
.section-narrow { max-width: 820px; margin: 0 auto; }
.text-center { text-align: center; }
.divider {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  border: none;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  border-bottom-color: var(--line);
  padding: 0.875rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; }
.nav-links {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--white);
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
}
.lang-switcher button {
  padding: 0.25rem 0.5rem;
  color: var(--white-faint);
  transition: color var(--transition);
}
.lang-switcher button.active { color: var(--gold); }
.lang-switcher button:hover { color: var(--white); }
.lang-switcher span { opacity: 0.4; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  border: 1px solid var(--gold);
  color: var(--white);
  background: transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.btn:hover { background: var(--gold); color: var(--black); transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--white); background: transparent; color: var(--gold); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 70%);
}
.hero-media {
  position: absolute;
  inset: 0;
  background: url('../assets/images/placeholder.svg') center/cover no-repeat;
  opacity: 0.35;
  z-index: 0;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--gutter);
}
.hero-logo { max-width: 220px; margin: 0 auto 2rem; }
.hero-tagline {
  font-family: 'Dancing Script', 'Great Vibes', cursive;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--olive);
  margin: 0 0 0.5rem;
  font-style: italic;
}
.hero-subline {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--white-dim);
  margin: 0 0 3rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- INTRO / ABOUT ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.two-col-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: url('../assets/images/placeholder.svg') center/cover no-repeat;
}
.two-col-media.reverse { order: 2; }

/* Page hero (subpáginas) */
.page-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  background: var(--black-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 0.5rem; }

/* ---------- EQUIPA ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}
.team-card {
  text-align: center;
}
.team-photo {
  aspect-ratio: 3 / 4;
  background: url('../assets/images/placeholder.svg') center/cover no-repeat;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.4) 100%);
}
.team-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--white);
}
.team-card .role {
  font-family: 'Dancing Script', cursive;
  font-size: 1.25rem;
  color: var(--olive);
  margin-bottom: 0.75rem;
}
.team-card p { font-size: 0.9375rem; }

/* ---------- MENU ---------- */
.menu-intro { max-width: 760px; margin: 0 auto 4rem; text-align: center; }
.menu-section { margin-bottom: clamp(3rem, 6vw, 5rem); }
.menu-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.menu-section-title::before,
.menu-section-title::after {
  content: '';
  flex: 0 0 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.menu-section-title h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin: 0;
}
.menu-list {
  max-width: 780px;
  margin: 0 auto;
}
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.menu-item:last-child { border-bottom: none; }
.menu-item-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--white);
  font-weight: 400;
}
.menu-item-desc {
  font-size: 0.875rem;
  color: var(--white-dim);
  margin-top: 0.25rem;
  font-style: italic;
}
.menu-item-price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--gold);
  white-space: nowrap;
}
.menu-item .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive);
  margin-left: 0.5rem;
}
.menu-chef {
  background: linear-gradient(135deg, rgba(139, 154, 107, 0.1), rgba(201, 160, 76, 0.05));
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.menu-footnote {
  max-width: 780px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--white-faint);
  text-align: center;
  line-height: 1.8;
}

/* ---------- CONTACTO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info h3 { margin-top: 2rem; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { font-size: 1rem; }
.contact-info a { color: var(--gold); border-bottom: 1px solid transparent; transition: border var(--transition); }
.contact-info a:hover { border-bottom-color: var(--gold); }
.hours-list { margin-top: 1rem; }
.hours-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row.closed { color: var(--white-faint); }
.hours-day { color: var(--white); font-weight: 400; }
.hours-time { color: var(--white-dim); }
.map-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--black-soft);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.5);
}

/* ---------- RESERVAS / CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--black-soft), var(--black));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { max-width: 820px; margin: 0 auto 1rem; }
.cta-band p  { max-width: 620px; margin: 0 auto 2.5rem; }

/* TheFork widget container */
.thefork-widget {
  max-width: 420px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--black-soft);
  border: 1px solid var(--line);
  text-align: center;
}
.thefork-widget h4 { color: var(--gold); margin-bottom: 0.5rem; }
.thefork-widget .fallback-note {
  font-size: 0.8125rem;
  color: var(--white-faint);
  margin-top: 1rem;
}

/* ---------- RATINGS ---------- */
.ratings-row {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
  margin-top: 3rem;
}
.rating {
  text-align: center;
}
.rating-score {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.rating-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white-dim);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--black-soft);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col p,
.footer-col a {
  font-size: 0.875rem;
  color: var(--white-dim);
  line-height: 1.8;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-logo img { height: 60px; margin-bottom: 1rem; }
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--white-faint);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- FOOTER PARTNERS / APOIOS ---------- */
.footer-partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid var(--line);
}
.footer-partners-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-faint);
}
.footer-partners-logos {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-partners-logos a {
  display: block;
  opacity: 0.55;
  transition: opacity var(--transition);
}
.footer-partners-logos a:hover,
.footer-partners-logos a:focus-visible {
  opacity: 1;
}
.footer-partners-logos img {
  height: 36px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .footer-partners-logos img { height: 30px; }
}

/* ---------- WHATSAPP FLOATING BUTTON ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- PLACEHOLDER NOTE ---------- */
.placeholder-note {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(201, 160, 76, 0.95);
  color: var(--black);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  font-weight: 500;
  z-index: 2;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms ease-out, transform 800ms ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col-media.reverse { order: 0; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--black);
    flex-direction: column;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    border-left: 1px solid var(--line);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; padding: 0.75rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .lang-switcher { order: 10; margin-top: 1.5rem; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 3rem auto 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 300px; margin: 2rem auto 0; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 1rem; right: 1rem; }
}

/* ---------- PRINT ---------- */
@media print {
  .site-header, .site-footer, .whatsapp-float, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
