/*
Theme Name: Lorena Almeida — Odontologia & Estética v4
Theme URI: https://lorenaalmeida.com.br
Author: Sergio Lemos
Description: Tema institucional para clínica de estética dental — versão 4, otimizada para hospedagem compartilhada Hostinger. Painel completo de personalização (Customizer): cores, textos e imagens de todas as seções editáveis sem código. Inclui hero responsivo (gradiente vertical em mobile), header/menu corrigidos e max-width real da imagem do hero em telas largas.
Version: 4.0
Text Domain: lorena-almeida-v4
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* ====== Variáveis de cor (design system) ====== */
:root {
  --background: #f4ebd9;     /* Creme */
  --foreground: #2a0f14;     /* Ink */
  --card: #e8dcc5;           /* Surface */
  --card-foreground: #2a0f14;
  --primary: #6b1826;        /* Rubro */
  --primary-foreground: #f4ebd9;
  --secondary: #d9c8b0;
  --secondary-foreground: #2a0f14;
  --muted: #e8dcc5;
  --muted-foreground: #8a6e6a;
  --accent: #9a2b38;
  --accent-foreground: #f4ebd9;
  --border: #d9cbb7;
  --whatsapp: #25D366;
  --whatsapp-hover: #128C7E;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: clip;
  line-height: 1.625;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }

p { max-width: 65ch; margin: 0; }

/* ====== Layout utilitário ====== */
.section-padding { padding-top: 6rem; padding-bottom: 6rem; }

.container-luxury {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.separator-accent {
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.flip-horizontal { transform: scaleX(-1); }

.text-center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-foreground);
  color: var(--primary);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background-color: var(--accent);
  color: var(--primary-foreground);
  transform: scale(1.05);
}
.btn-primary:active { transform: scale(0.95); }

.btn-outline {
  background-color: transparent;
  border: 2px solid rgba(244,235,217,0.6);
  color: var(--primary-foreground);
}
.btn-outline:hover { background-color: rgba(244,235,217,0.15); }

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover { background-color: var(--whatsapp-hover); }

/* ====== Header ====== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: rgba(244, 235, 217, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* IMPORTANTE: o flex precisa estar direto no .container-luxury (sem div extra com
   style inline dentro) — senão o max-width/margin:auto do container deixa de
   centralizar e o conteúdo cola na borda real da tela. */
.site-header .container-luxury {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 48px; height: 48px;
  border-radius: 0.75rem;
  background-color: var(--background);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  transition: all 0.3s ease;
}
.brand:hover .brand-mark { background-color: var(--accent); color: var(--primary-foreground); transform: scale(1.05); }

.brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.125rem; line-height: 1; color: var(--foreground); }
.brand-tagline { font-size: 0.75rem; color: var(--muted-foreground); letter-spacing: 0.05em; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--foreground);
  position: relative; padding-bottom: 4px; transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 2px;
  background-color: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.menu-toggle { display: none; background: none; border: none; color: var(--foreground); padding: 0.5rem; flex-shrink: 0; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px; /* altura do header */
  left: 0; right: 0; bottom: 0;
  background-color: var(--primary);
  z-index: 49;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu .container-luxury {  padding-top: 2rem; 
  padding-bottom: 2rem; 
  display: flex; 
  flex-direction: column; 
  gap: 1.5rem; 
  align-items: center;
}
.mobile-menu a {
  font-size: 1.25rem; 
  font-weight: 500; 
  color: var(--primary-foreground);
  padding: 0.75rem 0; 
  border-bottom: 1px solid rgba(244,235,217,0.15);
  width: 100%;
  text-align: center;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .brand-tagline { display: none; }
}

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color:var(--primary);
}

/* Estrutura HTML esperada:
   <div class="hero-bg">
     <div class="hero-bg-inner"><img ...></div>
   </div>
   <div class="hero-overlay"></div>
*/
.hero-bg { position: absolute; inset: 0; z-index: 0; display: flex; justify-content: flex-end; }
.hero-bg-inner { width: 100%; max-width: 1600px; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: top right; filter: blur(0.3px) saturate(1.05);}

.hero-overlay {
   position: absolute; inset: 0;
   background: linear-gradient(to right, rgb(107, 24, 38,1.00)30%, rgba(107,24,38,0.8)50% , rgba(107,24,38,0.60) 75% , rgba(107,24,38,0.4) 100%, transparent 95% );
}
.hero-content { position: relative; z-index: 10; padding: 8rem 0; width: 100%; margin-top: 2.5rem; }
.hero-inner { max-width: 42rem; }
.hero h1 { color: var(--primary-foreground); margin-bottom: 1.5rem; }
.hero p.lead {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--primary-foreground);
  opacity: 0.95;
  margin-bottom: 2.5rem;
  font-weight: 500;
  line-height: 1.6;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 767px) {
  .hero { min-height: auto; }

  .hero-bg-inner { max-width: none; }
  .hero-bg img { object-position: top center; }

  .hero-overlay {
    background: linear-gradient(to bottom, rgba(107,24,38,0.35), rgba(107,24,38,0.88) 55%, rgba(107,24,38,0.97));
  }

  .hero-content {
    display: flex;
    align-items: flex-end;
    min-height: 90vh;
    padding: 2rem 1.5rem 3rem;
    margin-top: 0;
  }

  .hero-inner { max-width: 100%; }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}

/* ====== Serviços ====== */
.section-servicos { background-color: var(--card); }
.section-header { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 4rem; }
.section-header h2 { color: var(--foreground); margin-bottom: 0.5rem; }
.section-header p { color: var(--muted-foreground); font-size: 1.125rem; max-width: 42rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.service-card {
  background-color: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  border-color: var(--accent);
  background-color: var(--secondary);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  transform: translateY(-8px);
}
.service-icon {
  width: 64px; height: 64px;
  border-radius: 0.75rem;
  background-color: var(--background);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.service-icon svg { color: var(--accent); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--foreground); }
.service-card p { color: var(--muted-foreground); line-height: 1.7; flex-grow: 1; }
.service-link {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem; font-weight: 500; color: var(--accent);
  display: flex; align-items: center; gap: 0.5rem;
}

/* ====== Sobre ====== */
.section-sobre { background-color: var(--background); }
.sobre-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .sobre-grid { grid-template-columns: 1fr 1fr; } }

.sobre-img-wrap { position: relative; }
.sobre-img-deco-1 { position: absolute; inset: -1rem; background-color: rgba(154,43,56,0.1); border-radius: 1.5rem; transform: rotate(-3deg); }
.sobre-img-deco-2 { position: absolute; inset: -1rem; border: 2px solid rgba(154,43,56,0.2); border-radius: 1.5rem; transform: rotate(2deg); }
.sobre-img-wrap img {
  position: relative;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
}

.sobre-text h2 { color: var(--foreground); margin-bottom: 0.5rem; }
.sobre-text p { color: var(--foreground); font-size: 1.125rem; line-height: 1.7; margin-bottom: 1.5rem; max-width: none; }

.sobre-highlights {
  display: flex; flex-direction: column; gap: 1rem;
  background-color: var(--card); padding: 1.5rem; border-radius: 1rem;
  border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.highlight-item { display: flex; align-items: flex-start; gap: 1rem; }
.highlight-icon {
  width: 48px; height: 48px; flex-shrink: 0; margin-top: 0.25rem;
  border-radius: 50%; background-color: var(--background); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.highlight-icon svg { color: var(--accent); }
.highlight-item h4 { font-size: 1.125rem; color: var(--foreground); margin-bottom: 0.25rem; font-family: inherit; font-weight: 600; }
.highlight-item p { font-size: 0.875rem; color: var(--muted-foreground); }

/* ====== Galeria ====== */
.section-galeria { background-color: var(--card); }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

.gallery-card {
  background-color: var(--background);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.gallery-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border-color: var(--accent); }
.gallery-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-card:hover .gallery-img-wrap img { transform: scale(1.05); }
.gallery-card-body { padding: 2rem; }
.gallery-card-body h3 { font-size: 1.5rem; color: var(--foreground); margin-bottom: 0.5rem; }
.gallery-card-body p { color: var(--muted-foreground); }

/* ====== Depoimentos ====== */
.section-depoimentos { background-color: var(--background); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.testimonial-card {
  background-color: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.testimonial-card:hover { border-color: var(--accent); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08); }
.stars { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; }
.stars svg { color: var(--accent); }
.testimonial-feedback { color: var(--foreground); line-height: 1.7; margin-bottom: 2rem; font-style: italic; max-width: none; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 0.75rem;
  background-color: var(--background); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-family: 'Playfair Display', serif; font-weight: 600; color: var(--accent); font-size: 1.125rem;
}
.testimonial-author-name { font-weight: 600; color: var(--foreground); }
.testimonial-author-role { font-size: 0.875rem; color: var(--muted-foreground); opacity: 0.9; }

/* ====== Contato ====== */
.section-contato { background-color: var(--card); }
.contato-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: flex-start; }
@media (min-width: 1024px) { .contato-grid { grid-template-columns: 1fr 1fr; } }

.contato-info h2 { color: var(--foreground); margin-bottom: 0.5rem; }
.contato-info > p { color: var(--foreground); font-size: 1.125rem; line-height: 1.7; margin-bottom: 2rem; }

.contato-details {
  display: flex; flex-direction: column; gap: 1.5rem;
  background-color: var(--background); padding: 2rem; border-radius: 1rem;
  border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.contato-item { display: flex; align-items: center; gap: 1rem; }
.contato-icon {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background-color: rgba(107,24,38,0.1);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.contato-item-label { font-weight: 600; font-size: 0.875rem; color: var(--muted-foreground); }
.contato-item-value { font-size: 1.125rem; color: var(--foreground); font-weight: 500; }

.contato-form {
  background-color: var(--background);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
}
.contato-form h3 { font-size: 1.5rem; color: var(--foreground); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--foreground); margin-bottom: 0.5rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--card);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(154,43,56,0.15); }
.form-group textarea { resize: none; }
.btn-submit { width: 100%; justify-content: center; }

/* ====== Footer ====== */
.site-footer { background-color: var(--primary); color: var(--primary-foreground); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.footer-brand .brand-mark { color: var(--primary); }
.footer-brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.125rem; line-height: 1; color: var(--primary-foreground); }
.footer-brand-tagline { font-size: 0.75rem; color: rgba(244,235,217,0.7); letter-spacing: 0.05em; margin-top: 2px; }
.footer-desc { font-size: 0.875rem; color: rgba(244,235,217,0.7); line-height: 1.7; max-width: 24rem; }

.footer-heading { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.125rem; margin-bottom: 1.5rem; color: var(--primary-foreground); }
.footer-contact-list { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.875rem; color: rgba(244,235,217,0.7);
  transition: color 0.2s ease;
}
.footer-contact-item:hover { color: var(--accent); }
.footer-contact-item svg { color: var(--accent); flex-shrink: 0; }

.footer-socials { display: flex; gap: 1rem; }
.footer-social-link {
  width: 40px; height: 40px; border-radius: 0.5rem;
  border: 1px solid rgba(244,235,217,0.2);
  color: rgba(244,235,217,0.7);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.footer-social-link:hover { border-color: var(--accent); background-color: var(--accent); color: var(--primary-foreground); }
.footer-social-link.whatsapp:hover { border-color: var(--whatsapp); background-color: var(--whatsapp); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(244,235,217,0.1);
  padding-top: 2rem; padding-bottom: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: 0.875rem; color: rgba(244,235,217,0.7);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a:hover { color: var(--accent); }

/* ====== WhatsApp flutuante ====== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 40;
  width: 56px; height: 56px;
  border-radius: 50%;
  background-color: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  border: none;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.1); background-color: var(--whatsapp-hover); }
.whatsapp-float svg { color: #fff; }

/* ====== Scroll to top ====== */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem;
  z-index: 40;
  width: 48px; height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
  border: none;
  transition: all 0.2s ease;
}
.scroll-top-btn.visible { display: flex; }
.scroll-top-btn:hover { background-color: var(--accent); transform: translateY(-4px); }

/* ====== Toast (feedback do formulário) ====== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 50%;
  transform: translateX(50%);
  background-color: var(--foreground);
  color: var(--background);
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translateX(50%) translateY(-8px); }
.toast.error { background-color: #b91c1c; color: #fff; }
.toast.success { background-color: #166534; color: #fff; }

/* ====== Animações de entrada (fade-up) ====== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }
