/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:root {
  --primary-color: #57141c;     /* Tom de vinho elegante */
  --primary-hover: #401318;
  --secondary-color: #25d366;   /* Verde WhatsApp */
  --secondary-hover: #1ebc57;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-color: #333333;
  --text-muted: #666666;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Classe utilitária de acessibilidade e SEO (H1 oculto) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   2. CABEÇALHO E NAVEGAÇÃO
   ========================================================================== */
header {
  background-color: var(--primary-color);
  padding: 0.4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-desktop {
  display: block;
  height: 100px;
  width: auto;
  object-fit: contain;
}

.logo-mobile {
  display: none;
  height: 60px;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav a:hover,
nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Botões do Menu Mobile (padrão oculto no desktop) */
.nav-menu {
  display: none;
}

.menu-btn {
  cursor: pointer;
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
}

.menu-btn i {
  color: #ffffff;
  font-size: 1.8rem;
}

/* ==========================================================================
   3. BANNER PRINCIPAL (HERO MOSAICO)
   ========================================================================== */
.hero-mosaico {
  position: relative;
  display: flex;
  height: 450px;
  width: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-drag: none;
}

.mosaico-item {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: flex 0.5s ease, filter 0.5s ease;
  filter: brightness(0.75);
  will-change: flex;
}

.mosaico-item:hover {
  flex: 1.3;
  filter: brightness(0.9);
}

.mosaico-item span {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.65);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  width: 90%;
}

.hero-overlay h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-overlay p {
  font-size: 1.1rem;
}

/* ==========================================================================
   4. GRID DE CARTÕES (INÍCIO)
   ========================================================================== */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 2.5rem auto 3rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  font-size: 1.3rem;
  padding: 1.2rem 1.2rem 0.5rem 1.2rem;
  color: var(--primary-color);
}

.card p {
  padding: 0 1.2rem 1.5rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* ==========================================================================
   5. PÁGINAS INTERNAS (SALAO, PRAIA, ADEGA)
   ========================================================================== */
.conteudo-pagina {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.conteudo-pagina h1,
.conteudo-pagina h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.subtitulo {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Slider / Carrossel de Fotos */
.galeria {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  touch-action: pan-y;
}

.galeria img {
  display: none;
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

.galeria img.ativa {
  display: block;
  opacity: 1;
  transform: scale(1);
}

/* Botões de Navegação do Carrossel */
#prev,
#next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(87, 20, 28, 0.3);
  transition: all 0.3s ease;
  will-change: transform;
}

#prev:hover,
#next:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(64, 19, 24, 0.4);
}

#prev:active,
#next:active {
  transform: translateY(0) scale(0.95);
}

/* Galeria em Grade (Salão e Adega) */
.galerya {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.galerya img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Bloco de Detalhes */
.detalhes {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.detalhes h2,
.detalhes h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.4rem;
}

.detalhes ul {
  list-style: none;
  margin-bottom: 2rem;
}

.detalhes li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eeeeee;
  position: relative;
  padding-left: 1.6rem;
}

.detalhes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Caixas de Chamada para Ação (CTA) */
.cta-box {
  background-color: #f1f3f5;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: 1.8rem;
}

.cta-box h2,
.cta-box h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* ==========================================================================
   6. BOTÕES
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 0 1.2rem 1.2rem 1.2rem;
}

.btn:hover {
  background-color: var(--primary-hover);
}

.btn-whats {
  background-color: var(--secondary-color);
  margin: 0;
  font-size: 1.05rem;
}

.btn-whats:hover {
  background-color: var(--secondary-hover);
}

/* ==========================================================================
   7. RODAPÉ
   ========================================================================== */
footer {
  margin-top: auto;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.whatsapp-btn {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: var(--secondary-hover);
}