/* ========================================= */
/* 1. VARIÁVEIS E TIPOGRAFIA BASE  */
/* ========================================= */

:root {
    --cor-primaria: #A0522D; 
    --cor-secundaria: #FFD700; 
    --cor-fundo: #FAFAFA; 
    --cor-texto: #333333; 
    --cor-hover: #D2B48C; 
    --fonte-principal: 'Georgia', serif;
    --fonte-titulo: 'Tahoma', sans-serif;
    --espacamento-secao: 40px;
}

/* reset.css já aplica box-sizing e zera margens; tipografia */
body {
    font-family: var(--fonte-principal);
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    line-height: 1.6;
    padding-top: 100px; /* espaço p/ header fixo */
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* Container central */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    background-color: #FFFFFF; 
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05); 
    padding-top: 40px; 
    padding-bottom: 40px;
}

section {
    padding: var(--espacamento-secao) 0;
    border-bottom: 1px solid #EEEEEE;
}

/* Header fixo */
#cabecalho-principal {
    background-color: var(--cor-primaria);
    color: white;
    border-bottom: 5px solid var(--cor-secundaria);
    
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    z-index: 1000; 

    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 20px 20px; 
    gap: 1rem;
}

.logo {
    max-width: 100px; 
    height: auto;
    border-radius: 50%;
}

.logo-link {
    margin-right: auto;
    order: 1;
}

#abrir-menu {
    order: 3;
    width: 40px; 
    background-color: transparent;
    color: white;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    margin-left: 20px; 
}

.header-content {
    flex-grow: 1; 
    text-align: center; 
    order: 2; 
}

.header-content h1 {
    font-family: var(--fonte-titulo);
    font-size: 2.5em;
    margin-bottom: 5px;
    line-height:1;
}

/* Tipografia */
h2, h3 {
    font-family: var(--fonte-titulo);
    color: var(--cor-primaria);
    margin-top: 0;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.8em;
    border-left: 5px solid var(--cor-secundaria);
    padding-left: 10px;
    margin-top: 30px;
}

h3 {
    font-size: 1.3em;
    color: var(--cor-texto); 
    border-bottom: 1px dashed var(--cor-hover); 
    padding-left: 0;
    padding-bottom: 5px;
    margin-top: 20px;
}

p {
    margin-bottom: 15px;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

ul li, ol li {
    padding-left: 5px;
    margin-bottom: 5px;
}

/* Links */
a {
    color: var(--cor-primaria);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover, a:focus {
    color: var(--cor-secundaria);
    text-decoration: underline;
}

/* Galeria e produtos - grid responsivo */
.galeria {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    justify-content: center; 
    margin-top: 20px;
}

.card-produto-wrapper {
    position: relative; 
    max-width: 300px;
    height: 200px; 
    display: block; 
    margin-bottom: 20px;
    overflow: hidden; 
    
    border: 3px solid var(--cor-secundaria); 
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.card-produto-wrapper img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border: none; 
    border-radius: 0;
    transition: transform 0.3s ease-in-out;
}

#galeria-ambiente .galeria img {
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    
    border: 3px solid var(--cor-secundaria);
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.galeria img:hover {
    transform: scale(1.05); 
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15);
}

.badge-promocao {
    position: absolute; 
    top: 15px;
    left: 0;
    z-index: 10; 
    background-color: #DC3545; 
    color: white;
    padding: 5px 10px;
    border-radius: 0 4px 4px 0; 
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
}

/* Vídeo responsivo  */
/* --- Solução para Vídeos e Iframes Responsivos (16:9) --- */

/* Este container (wrapper) força a proporção usando padding-bottom */
.video-responsive {
    /* Define a largura total */
    width: 100%; 
    /* Garante que o elemento interno (iframe) possa ser posicionado absolutamente */
    position: relative; 
    /* Remove a altura padrão */
    height: 0; 
    /* ESSENCIAL: Cria a proporção 16:9. (9 / 16) * 100% = 56.25% */
    padding-bottom: 56.25%; 
    /* Garante que nada transborde */
    overflow: hidden; 
    /* Espaço extra abaixo do vídeo */
    margin-bottom: 20px;
}

/* ============================= */
/* CARD PREMIUM PARA O VÍDEO     */
/* ============================= */

.video-card-section {
  text-align: center;
  padding: 40px 20px;
}

.video-card-section h2 {
  margin-bottom: 25px;
  font-size: 1.9rem;
  font-weight: 600;
}

/* Card com detalhe dourado */
.video-card {
  background: #ffffff;
  max-width: 880px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  border: 2px solid #f2d59b; /* dourado suave */
}

.video-card.gold-accent {
  border-color: #d9b15e; /* dourado um pouco mais elegante */
}

/* Moldura interna do vídeo */
.video-frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsividade */
@media (max-width: 480px) {
  .video-card {
    padding: 14px;
  }
}

/* O Iframe Interno */
.video-responsive iframe {
    /* Faz o iframe preencher todo o wrapper */
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Remove a borda padrão */
    border: none; 
}

/* 1. Estilização do Container */
.video-container {
    /* Define a largura máxima que você quer que o vídeo ocupe no layout */
    max-width: 800px; 
    /* ESSENCIAL para Centralizar Horizontalmente o Container na tela */
    margin: 0 auto; 
    /* Padding para afastar de outros elementos */
    padding: 20px;
    /* (Opcional) Estilo visual para o container */
    background-color: #f0f0f0;
    border-radius: 8px;
}

/* 2. Estilização do Elemento <video> */
.video-container video {
    /* Faz o vídeo preencher a largura total do seu container (800px max) */
    width: 100%; 
    /* Garante que a altura se ajuste automaticamente, mantendo a proporção */
    height: auto; 
    /* Centraliza o vídeo dentro do container (opcional, mas garante que não haja bordas) */
    display: block;
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    min-width: 320px; /* reduzido para mobile */
}

caption {
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--cor-primaria);
}

thead tr {
    background-color: var(--cor-primaria);
    color: #ffffff;
    text-align: left;
    border-bottom: 2px solid var(--cor-secundaria);
}

th, td {
    padding: 12px 15px;
    border: 1px solid #dddddd;
}

tbody tr {
    border-bottom: 1px solid #eeeeee;
}

tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

tbody tr:last-of-type {
    border-bottom: 2px solid var(--cor-secundaria);
}

/* Formulários */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

fieldset {
    border: 1px solid var(--cor-hover);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

legend {
    font-weight: bold;
    color: var(--cor-primaria);
    padding: 0 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    margin-top: 10px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--cor-secundaria);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    outline: none;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--cor-primaria);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background-color: #C17D46;
}

button[type="submit"]:active {
    background-color: var(--cor-primaria);
    transform: translateY(1px);
}

/* Footer */
footer {
    background-color: var(--cor-texto);
    color: #DDDDDD;
    padding: 15px 0;
    text-align: center;
    margin-top: var(--espacamento-secao);
}

footer a {
    color: var(--cor-secundaria);
}

/* Posicionamento - botão whatsapp e topo  */
.whatsapp-flutuante {
    position: fixed;
    bottom: 10px; 
    right: 10px; 
    z-index: 9000; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background-color: #25D366; 
    color: white;
    font-size: 2em;
    padding: 15px;
    border-radius: 50%; 
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.whatsapp-flutuante:hover {
    background-color: #128C7E;
}

#btn-topo {
    position: fixed;
    bottom: 90px; 
    right: 20px;
    z-index: 9999;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background-color: var(--cor-secundaria);
    color: var(--cor-texto);
    font-size: 1.5em;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden; 
    transition: opacity 0.4s, visibility 0.4s;
}

#btn-topo.visivel {
    opacity: 1;
    visibility: visible;
}

/* Menu lateral original (off-canvas) */
#menu-lateral {
    position: fixed;
    top: 0;
    right: 0; 
    width: 250px;
    height: 100%;
    z-index: 1500; 
    background-color: var(--cor-primaria); 
    color: white;
    padding: 20px;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.2);
    
    transform: translateX(100%); 
    transition: transform 0.28s ease-out, visibility 0.28s;
    visibility: hidden;
}

#menu-lateral.aberto {
    transform: translateX(0); 
    visibility: visible;
}

#menu-lateral a {
    color: white;
    display: block;
    padding: 10px 10px;
    border-bottom: 4px solid rgba(255, 255, 255, 0.1);
}

#fechar-menu {
    background: transparent;
    color: rgb(253, 250, 250);
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 5px;
}

/* Modal  */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    z-index: 2000; 
    display: flex;
    justify-content: center;
    align-items: center;
    
    visibility: hidden; 
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.modal-overlay.ativo {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: rgb(255, 255, 255);
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.modal-content h2 {
    margin-top: 0;
    color: var(--cor-primaria);
}
.modal-content button {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: var(--cor-primaria);
    color: rgb(241, 238, 238);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


/* Acessibilidade e imagens fluídas (importante para mobile) */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--cor-secundaria);
  outline-offset: 3px;
}

img, iframe, video {
  max-width: 100%;
  height: auto;
  display: block;
  }

/* pequenas adaptações mobile-friendly */
@media (max-width: 768px) {

  /* reduz padding do body para não empurrar o conteúdo para fora */
  body { padding-top: 90px; }

  #cabecalho-principal {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 12px;
    text-align: center;
  }

  .header-content h1 { font-size: 1.6rem; }

  /* galeria em colunas para caber em mobile */
  .galeria { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0 8px; }

  /* produtos: permitir responsividade e ajuste de tamanho */
  .produtos-galeria .card-produto-wrapper { width: 100%; max-width: none; height: auto; border: 2px solid var(--cor-secundaria); }

  .produto-img, .card-produto-wrapper img { height: auto; object-fit: cover; }

  /* menu lateral toma full width para mobile quando aberto */
  #menu-lateral { width: 100%; max-width: none; right: 0; }

  /* tabela menor: overflow com scroll */
  table { min-width: 100%; display: block; overflow-x: auto; }

  /* hero e contato: empilhar */
  #hero { display: block; text-align: center; }
  .responsive-hero { max-width: 100%; height: auto; }

  /* botão topo e whatsapp ajustes */
  .whatsapp-flutuante { right: 12px; bottom: 12px; font-size: 1.6em; width:40px; height:40px; }
  #btn-topo { right: 12px; bottom: 76px; width:44px; height:44px; font-size:1rem; }

  /* modal: reduz padding */
  .modal-content { padding: 18px; max-width: 92%; }
}

/* Ajustes para tablets e desktops (ampliação progressiva) */
@media (min-width: 769px) and (max-width: 1024px) {
  .galeria { gap: 18px; display: grid; grid-template-columns: repeat(2, 1fr); }
  .card-produto-wrapper { max-width: 100%; height: 220px; }
  #cabecalho-principal { padding: 16px 20px; }
}

/* >= 1024 desktop */
@media (min-width: 1024px) {
  body { padding-top: 110px; } /* mantém header sem sobrepor conteúdo */
  .galeria { display:flex; flex-wrap:wrap; justify-content:center; gap:20px; }
  .produtos-galeria { display:flex; flex-wrap:wrap; justify-content:center; gap:20px; }
  .card-produto-wrapper { width: 300px; height:200px; }
}

/* Prefer reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0 !important; }
}
.depoimentos-section {
    background-color: #fff8e7; /* leve tom aconchegante */
    padding: 40px 20px;
    text-align: center;
}

.depoimentos-section h2 {
    margin-bottom: 30px;
}

.depoimentos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.depoimento-card {
    background-color: #ffffff;
    border: 2px solid var(--cor-secundaria);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease-in-out;
}

.depoimento-card p {
    font-style: italic;
    margin-bottom: 10px;
}

.depoimento-card strong {
    display: block;
    text-align: right;
    font-size: 0.9em;
}

.depoimento-card:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
}

/* Ajustes Mobile */
@media (max-width: 480px) {
    .depoimento-card {
        padding: 15px;
    }
}
