/* --- 1. RESET BÁSICO E CONFIGURAÇÕES GLOBAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores */
    --cor-principal: #007bff;
    --cor-secundaria: #0056b3;
    --cor-acento: #ffc107;
    --cor-fundo-claro: #f8f9fa;
    --cor-texto-escuro: #343a40;
    --cor-texto-claro: #ffffff;
    
    /* Fontes */
    --fonte-principal: 'Arial', sans-serif;
    
    /* Espaçamento */
    --padding-geral: 60px 0;
    --border-radius: 8px;
}

body {
    font-family: var(--fonte-principal);
    line-height: 1.6;
    color: var(--cor-texto-escuro);
    background-color: var(--cor-fundo-claro);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--padding-geral);
}

.bg-light {
    background-color: var(--cor-fundo-claro);
}

h1, h2, h3 {
    margin-bottom: 0.5em;
    color: var(--cor-secundaria);
}

h1 { font-size: 3em; }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 40px; }

p { margin-bottom: 1em; }

a {
    color: var(--cor-principal);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover { color: var(--cor-secundaria); }

/* --- 2. HEADER --- */
header {
    background-color: var(--cor-texto-escuro);
    color: var(--cor-texto-claro);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--cor-texto-claro);
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--cor-texto-claro);
    padding: 5px 10px;
    display: block;
}

nav a:hover { color: var(--cor-acento); }

.btn-online {
    background-color: var(--cor-acento);
    color: var(--cor-texto-escuro) !important;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-online:hover {
    background-color: #ffda6a;
    color: var(--cor-texto-escuro) !important;
}

/* --- 3. HOME --- */
.home-section {
    background: url('imagem de fundo.png') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--cor-texto-claro);
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-content h2 { 
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.home-content p { font-size: 1.2em; margin-bottom: 30px; }

.btn-cta {
    background-color: var(--cor-acento);
    color: var(--cor-texto-escuro);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1.1em;
    transition: opacity 0.3s;
}

.btn-cta:hover { opacity: 0.9; }

/* --- 4. QUEM SOMOS --- */
.quem-somos-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.quem-texto { flex: 2; }
.quem-imagem { flex: 1; text-align: center; }

.quem-imagem img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.grid-quem-somos {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px;
    text-align: center;
}

.grid-quem-somos .item {
    padding: 25px;
    background-color: var(--cor-fundo-claro);
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
}

.grid-quem-somos h3 { color: var(--cor-principal); font-size: 1.2em; }

/* --- 5. TRATAMENTOS --- */
.tratamentos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card-tratamento {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 350px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card-tratamento img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-tratamento h3 {
    margin: 15px;
    color: var(--cor-principal);
}

.card-tratamento p {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    transition: bottom 0.3s ease;
    box-sizing: border-box;
    font-size: 0.95em;
}

.card-tratamento:hover p { bottom: 0; }
.card-tratamento:hover { transform: translateY(-5px); }

/* --- 6. VÍDEOS --- */
.video-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
}

.video-container iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: var(--border-radius);
}

/* --- 7. CALL TO ACTION --- */
#call-agenda {
    background: var(--cor-principal) url("imagem agendamento.jpeg") no-repeat center center/cover;
    color: var(--cor-texto-claro);
    text-align: center;
    padding: 80px 0;
    position: relative;
}

#call-agenda::before {
    content: "";
    position: absolute;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    z-index:0;
}

.call-content { position: relative; z-index:1; }

.call-content h2 { font-size: 2.5em; margin-bottom: 10px; }
.call-content p { font-size: 1.1em; margin-bottom: 30px; }

.call-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.call-buttons a {
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1.1em;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-whatsapp { background-color: #25d366; color: var(--cor-texto-claro) !important; }
.call-buttons .btn-online { background-color: var(--cor-acento); color: var(--cor-texto-escuro) !important; }
.call-buttons a:hover { opacity: 0.9; }

/* --- 8. MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left:0; top:0;
    width:100%; height:100%;
    overflow:auto;
    background-color: rgba(0,0,0,0.7);
    padding-top: 50px;
}

.modal-content {
    background-color: var(--cor-texto-claro);
    margin: 5% auto;
    padding: 20px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top:10px;
    right:20px;
    padding: 5px;
}

.form-modern label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--cor-secundaria);
}

.form-modern input[type="text"],
.form-modern input[type="tel"],
.form-modern input[type="date"],
.form-modern input[type="time"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
}

.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.form-row div { flex:1; }

.btn-submit {
    background-color: var(--cor-principal);
    color: var(--cor-texto-claro);
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    margin-top: 10px;
}

#confirmacao {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
    display: none;
}

/* --- 9. GALERIA --- */
.galeria-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.galeria-item {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.galeria-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.9);
}

/* --- 10. CONTATO E LOCALIZAÇÃO --- */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: flex-start;
}

.contato-info p {
  margin: 10px 0;
  font-size: 1rem;
}

.contato-info a {
  color: var(--cor-principal);
  text-decoration: none;
  font-weight: bold;
}

.contato-info a:hover {
  text-decoration: underline;
}

.mapa-localizacao {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.mapa-localizacao iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--border-radius);
}

.mapa-botao {
  text-align: center;
  margin-top: 15px;
}

.btn-maps {
  display: inline-block;
  padding: 12px 20px;
  background-color: var(--cor-principal);
  color: var(--cor-texto-claro);
  border-radius: var(--border-radius);
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-maps:hover {
  background-color: var(--cor-secundaria);
  color: var(--cor-texto-claro);
}

/* --- 11. FOOTER --- */
footer {
    background-color: var(--cor-texto-escuro);
    color: var(--cor-texto-claro);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* --- 12. RESPONSIVIDADE --- */
@media (max-width:768px) {
    .container-header { flex-direction: column; }
    header h1 { margin-bottom:15px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 10px; }

    .home-content h2 { font-size: 2.5em; }

    .quem-somos-content { flex-direction: column; }
    .quem-texto, .quem-imagem { flex: none; width: 100%; }

    .video-container { flex-direction: column; gap: 20px; }
    .video-container iframe { height: 200px; }

    .call-content h2 { font-size: 2em; }
    .call-buttons a { width: 100%; }

    .form-row { flex-direction: column; gap: 0; }

    .card-tratamento img { height: 180px; }
    .card-tratamento h3, .card-tratamento p { font-size: 0.9em; }

    .galeria-item img { height: 120px; }

    .contato-grid { grid-template-columns: 1fr; }
}
