/* =====================
   FONTS
   ===================== */
@font-face {
  font-family: 'Abenda';
  src: url('fonts/Abenda.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Thin.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-ThinItalic.otf') format('opentype'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-ExtraLight.otf') format('opentype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-ExtraLightItalic.otf') format('opentype'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-LightItalic.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-MediumItalic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-SemiBoldItalic.otf') format('opentype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-BoldItalic.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #001e3a;
  --navy-mid:  #00498D;
  --navy-light:#466BA7;
  --gold:      #c9a96e;
  --gold-light:#dfc08e;
  --cream:     #f5f0e8;
  --text:      #e8e4dd;
  --text-muted:#8fa8c0;
  --white:     #ffffff;
  --section-bg:#001e3a;
  --section-alt:#002f5c;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--navy);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Abenda', serif;
  font-weight: 300;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.label.center { text-align: center; }

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--cream);
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.btn:hover { background: var(--gold); color: var(--navy); }
.btn-full { width: 100%; text-align: center; }

/* =====================
   NAV
   ===================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  transition: background 0.4s, padding 0.4s;
}
#navbar.scrolled {
  background: rgba(0, 30, 58, 0.97);
  padding: 1rem 2.5rem;
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Abenda', serif;
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--cream);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =====================
   COOKIE BANNER
   ===================== */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--navy-mid);
  color: var(--text);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
  max-width: 680px;
  width: calc(100% - 3rem);
  flex-wrap: wrap;
}
.cookie-text {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn--accept { background: var(--gold); color: var(--navy); }
.cookie-btn--reject { background: transparent; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.2); }

.nav-lang-mobile { display: none; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lang-btn {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}
.lang-btn:hover { color: var(--gold); }
.lang-btn.active { color: var(--gold); }
.lang-sep {
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* =====================
   HERO
   ===================== */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s ease;
}
#hero:hover .hero-img { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,30,58,0.45) 0%,
    rgba(0,30,58,0.6) 50%,
    rgba(0,30,58,0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}
.hero-sub {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero-content h1 {
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 1.2rem;
}
.hero-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-size: 1.3rem;
}

/* =====================
   SOBRE
   ===================== */
#sobre {
  background: var(--section-bg);
  padding: 7rem 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.sobre-img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.sobre-img-wrap img {
  transition: transform 0.6s ease;
}
.sobre-img-wrap:hover img { transform: scale(1.04); }
.sobre-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.sobre-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* =====================
   MENU
   ===================== */
#menu {
  background: var(--section-alt);
  padding: 7rem 0;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  border: 1px solid rgba(201,169,110,0.25);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  border-right: 1px solid rgba(201,169,110,0.25);
}
.tab-btn:last-child { border-right: none; }
.tab-btn.active { background: var(--gold); color: var(--navy); }
.tab-btn:hover:not(.active) { color: var(--gold); }

.menu-panel { display: none; }
.menu-panel.active { display: block; }

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.menu-item {
  padding: 1.8rem 2rem;
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.menu-item:hover { background: rgba(255,255,255,0.03); }
.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  gap: 1rem;
}
.dish-name {
  font-family: 'Abenda', serif;
  font-size: 1.15rem;
  color: var(--cream);
}
.dish-price {
  font-size: 0.85rem;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.dish-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.dish-italic { font-style: italic; }
.menu-legal {
  margin-top: 2.5rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
  opacity: 0.6;
}

/* =====================
   GALERIA
   ===================== */
#galeria {
  background: var(--section-bg);
  padding: 7rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px 220px;
  gap: 8px;
}
.gallery-item {
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* =====================
   RESERVA
   ===================== */
#reserva {
  background: var(--section-alt);
  padding: 7rem 0;
}

.reserva-form {
  max-width: 680px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group.full { margin-bottom: 1.2rem; }

label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

input, select, textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
}
input::placeholder, textarea::placeholder { color: rgba(154,168,184,0.5); }
select option { background: var(--navy-mid); }
textarea { resize: vertical; }

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.reserva-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 3rem;
  max-width: 420px;
  margin: 0 auto;
}
.reserva-success h3 {
  font-size: 2rem;
  color: var(--cream);
}
.reserva-success p { color: var(--text-muted); }

/* =====================
   CONTACTOS
   ===================== */
#contactos {
  background: var(--section-bg);
  padding: 7rem 0;
}

.contactos-cols { align-items: start; gap: 4rem; }

.contactos-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 2.5rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}
.info-list li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.info-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.info-list strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
  font-weight: 400;
}
.info-list p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.info-list p a { color: var(--text-muted); transition: color 0.2s; }
.info-list p a:hover { color: var(--gold); }

.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201,169,110,0.3);
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }

.map-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  height: 420px;
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.map-btn {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #1a1a1a;
  padding: 0.65rem 1.3rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.map-btn:hover {
  background: var(--navy-mid);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
  transform: translateX(-50%) translateY(-2px);
}

/* =====================
   PAGAMENTOS
   ===================== */
.contactos-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.pagamentos {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.pagamentos .label { margin-bottom: 1.5rem; }

.payment-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 1.8rem;
}
.payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.payment-item:hover { color: var(--cream); }
.payment-item svg { opacity: 0.7; transition: opacity 0.2s; }
.payment-item:hover svg { opacity: 1; }
.payment-item span {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Abenda', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.1em;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.footer-nav {
  display: flex;
  gap: 1.8rem;
}
.footer-nav a {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 860px) {
  .two-col, .contactos-cols { grid-template-columns: 1fr; gap: 3rem; }
  .sobre-img-wrap { aspect-ratio: 16/9; }
  .menu-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item.tall, .gallery-item.wide { grid-row: auto; grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .map-placeholder { aspect-ratio: 16/9; }
}

@media (max-width: 600px) {
  #navbar.scrolled { backdrop-filter: none; }
  .nav-links { display: none; flex-direction: column; gap: 0; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 150; background: rgba(0,30,58,0.99); align-items: center; justify-content: center; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; padding: 1rem 0; }
  .hamburger { display: flex; z-index: 200; }
  .lang-switcher { display: none; }
  .nav-lang-mobile { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; }
  .nav-lang-mobile .lang-btn { font-size: 0.75rem; padding: 0.5rem 0; }
  .nav-lang-mobile .lang-sep { opacity: 0.4; }
  .menu-tabs { flex-direction: column; width: 100%; }
  .tab-btn { border-right: none; border-bottom: 1px solid rgba(201,169,110,0.25); }
  .tab-btn:last-child { border-bottom: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  #navbar { padding: 1.2rem 1.5rem; }
}
