/* =====================================================
   BATUK RESTAURANT - STYLESHEET (COMPLETO)
   Responsivo, elegante e adaptado a mobile e desktop
   ===================================================== */

/* ======== FONTES / BASE ======== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: #2b1b15;
  background-color: #fffaf5;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #3a1f13;
  margin-top: 0;
}

p { margin-bottom: 15px; }
img { max-width: 100%; height: auto; display: block; }

/* ======== CONTAINERS ======== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

/* =====================================================
   HEADER PREMIUM BATUK - Responsivo + Sticky + Hover
   ===================================================== */
header.header {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: all 0.3s ease-in-out;
}

header.header.scrolled {
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  background-color: #fffdfb;
  transform: translateZ(0);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

/* Logo */
.logo img {
  height: 56px;
  width: auto;
  border-radius: 8px;
  transition: transform 0.2s ease;
}
.logo img:hover { transform: scale(1.05); }

/* --- Menu Desktop --- */
.nav-menu {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: #4a2b1b;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  letter-spacing: .2px;
  transition: color 0.25s ease-in-out;
}

/* Efeito hover com sublinhado dourado */
.nav-menu a:hover { color: #b57a4b; }
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #b57a4b;
  transition: width 0.25s ease-in-out;
}
.nav-menu a:hover::after { width: 100%; }

/* Link ativo */
.nav-menu a.active { color: #b57a4b; }
.nav-menu a.active::after { width: 100%; }

/* --- Botão Hamburguer --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  z-index: 250;
}
.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: #4a2b1b;
  border-radius: 3px;
  transition: all 0.3s ease;
}
/* Transformar no X quando ativo */
.menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ======== MAIN CONTENT ======== */
main.main-content { padding: 40px 0; }
main h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #e4d5c5;
  display: inline-block;
}

/* ======== FORMULÁRIOS ======== */
form {
  max-width: 600px;
  margin: 30px auto;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
form input,
form select,
form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: #fff;
}
form input:focus,
form select:focus,
form textarea:focus {
  border-color: #b57a4b;
  outline: none;
  box-shadow: 0 0 3px #b57a4b77;
}
form button,
form input[type="submit"],
.button {
  background-color: #4a2b1b;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
form button:hover,
form input[type="submit"]:hover,
.button:hover { background-color: #b57a4b; }

/* ======== GALERIA (grid simples) ======== */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.gallery img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}
.gallery img:hover { transform: scale(1.05); }

/* =====================================================
   GALERIA BATUK - Slideshow + Thumbnails
   ===================================================== */
.gallery-wrapper { text-align: center; margin: 40px auto; }
.gallery-slider { position: relative; max-width: 900px; margin: 0 auto 20px; }
.gallery-main {
  width: 100%;
  height: auto;
  max-height: 550px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: opacity 0.4s ease-in-out;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2.4rem;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 10;
}
.gallery-nav:hover { background-color: rgba(0,0,0,0.7); }
.gallery-nav.prev { left: 15px; }
.gallery-nav.next { right: 15px; }

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
}
.gallery-thumbs::-webkit-scrollbar { height: 8px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: #c6b09d; border-radius: 4px; }
.thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.thumb:hover { opacity: 1; transform: scale(1.05); }
.thumb.active {
  opacity: 1;
  border-color: #b57a4b;
  transform: scale(1.08);
}

/* =====================================================
   FOOTER PREMIUM - BATUK RESTAURANTE & BAR
   ===================================================== */
.site-footer {
  background-color: #2b1610;
  color: #f3e7dc;
  font-size: 15px;
  margin-top: 60px;
}

/* --- Parte superior --- */
.footer-top { padding: 60px 20px 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h3, .footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  margin-bottom: 15px;
}
.footer-col p {
  color: #e7dbcf;
  margin-bottom: 10px;
  line-height: 1.5;
}
.footer-highlight {
  font-style: italic;
  color: #d3a774;
  margin-top: 10px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin: 6px 0; }
.footer-col ul li a {
  color: #f3e7dc;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
.footer-col ul li a:hover { color: #d3a774; }
.footer-btn {
  display: inline-block;
  margin-top: 8px;
  background-color: #d3a774;
  color: #2b1610 !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}
.footer-btn:hover { background-color: #e2b57f; }

/* --- Parte inferior --- */
.footer-bottom {
  background-color: #1b0d09;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 15px 20px;
  text-align: center;
}
.footer-bottom-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.footer-bottom a { color: #d3a774; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ======== FOOTER (fallback simples) ======== */
footer {
  background-color: #3a1f13;
  color: #fff;
  text-align: center;
  padding: 30px 15px;
  margin-top: 40px;
  font-size: 14px;
}

/* =====================================================
   QR-CODE / SEÇÕES AUXILIARES
   ===================================================== */
.qr-section {
  text-align: center;
  padding: 2rem 1rem;
}
.qr-section img {
  max-width: 180px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.qr-section p {
  margin-top: .8rem;
  color: #3a1f13;
  font-weight: 500;
  font-size: 1.05rem;
}

/* =====================================================
   RESPONSIVIDADE
   ===================================================== */
@media (max-width: 900px) {
  /* Header */
  .menu-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fffaf5;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    text-align: center;
    gap: 15px;
    border-top: 1px solid #eee;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0;
  }
  .nav-menu.open {
    max-height: 420px;
    padding: 20px 0;
  }
  .nav-menu a {
    padding: 8px 0;
    font-size: 1rem;
    color: #4a2b1b;
    font-weight: 600;
  }
  .nav-menu a:hover { background-color: rgba(181,122,75,0.08); }

  /* Gallery simples */
  .gallery img { max-width: 45%; }

  /* Footer premium grid */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .gallery-main { max-height: 360px; }
  .thumb { width: 70px; height: 50px; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  .logo img { height: 50px; }
  .gallery img { max-width: 100%; }
  form { padding: 20px 15px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col ul li { display: inline-block; margin: 4px 8px; }
  .footer-bottom-flex { flex-direction: column; text-align: center; }
}
/* === CORRIGE LINKS DE CONTACTO NO FOOTER === */
.site-footer a {
  color: #f3e7dc;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.site-footer a:hover {
  color: #d3a774;
  text-decoration: underline;
}