:root {
  --bg: #f4ede3;
  --paper: #ffffff;
  --ink: #262626;
  --muted: #5f5b53;
  --gold: #901020;
  --tan: #b79b73;
  --dark: #1d1b19;
  --accent: #0a1007;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --max: 1120px;

  /* Modal específico (não sobrescreve o shadow geral) */
  --modal-bg: #ffffff;
  --modal-radius: 16px;
  --overlay: rgba(0, 0, 0, 0.45);
  --modal-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);

  scroll-behavior: smooth;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout genérico */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  scroll-margin-top: 88px;
  padding: 72px 0;
}

.gold {
  color: var(--gold);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: var(--tan);
  transform: translateY(-1px);
}

.btn.outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--gold);
}

/* Tipografia utilitária */
.kicker {
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.h3 {
  font: 700 1.8rem/1.25 "Playfair Display", serif;
  margin: 0.2rem 0 0.5rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 56ch;
}

.mt-10 {
  margin-top: 10px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-18 {
  margin-top: 18px;
}

.center {
  text-align: center;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 20px;
}

/* Header / Navegação */
.topbar {
  background: #e9e0d3;
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar .container {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding: 0.4rem 20px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.menu a {
  padding: 0.5rem 0.25rem;
  position: relative;
  font-weight: 600;
  color: var(--muted);
}

.menu a.active {
  color: var(--ink);
}

.menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--gold);
}

.nav .cta {
  display: none;
}

/* Hero */
.hero {
  padding: 64px 0 32px;
  background: linear-gradient(180deg, #fff, transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0.35rem 0 1rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.proofs {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card img {
  height: 440px;
  width: 100%;
  object-fit: cover;
}

/* Seções com colunas */
.cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: flex-start;
}

/* Bullets */
.bullets {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding-left: 0;
  list-style: none;
}

.bullets li::before {
  content: "✓ ";
  color: var(--gold);
  font-weight: 600;
}

/* Card de imagem padrão (Tratamentos, Sobre) */
.device {
  max-width: 420px;
  margin-left: auto;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  align-self: flex-start;
}

.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sobre mim: imagem vertical acompanhando altura do texto */
#sobre .cols {
  align-items: stretch;
}

#sobre .device {
  align-self: stretch;
}

/* Estrutura */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery figure{
  margin:0;
}

.gallery img {
  border-radius: var(--radius);
  height: 260px;
  object-fit: cover;
  background: var(--paper);
  box-shadow: var(--shadow);
}

/* Casos clínicos */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.work {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Depoimentos */
.darkband {
  background: var(--dark);
  color: #efeae2;
  padding: 60px 0;
  margin-top: 24px;
}

.reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.card {
  background: #2a2724;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  border-radius: 14px;
}

.card-title {
  margin: 0 0 4px;
}

.stars {
  color: #ffcc66;
  margin: 0.3rem 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

/* Vídeos */
.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Formulário */
.form-wrap {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

form .full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  padding: 0.85rem;
  border: 1px solid #d7d1c6;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.policy {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Mensagem de sucesso (Tarja Verde) */
.ok {
  display: none; /* Escondido por padrão */
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 15px;
  margin-top: 15px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  animation: fadeIn 0.5s ease-in-out;
}

.sucesso-visivel {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal Política */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  background: var(--modal-bg);
  color: #222;
  width: min(800px, 92vw);
  max-height: 80vh;
  border-radius: var(--modal-radius);
  box-shadow: var(--modal-shadow);
  padding: clamp(16px, 2vw, 24px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal h3 {
  margin: 0 36px 12px 0;
  font-size: 1.25rem;
}

.modal-body {
  overflow: auto;
  padding-right: 4px;
  margin-top: 8px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

body.noscroll {
  overflow: hidden;
}

/* Footer */
footer {
  background: #2b2520;
  color: #eee;
  padding: 44px 0 24px;
  margin-top: 32px;
}

footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footgrid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

.map {
  border: 0;
  width: 100%;
  height: 220px;
  border-radius: 12px;
}

.tiny {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 12px;
}

.mb-8 {
  margin-bottom: 8px;
}

.m0 {
  margin: 0;
}

/* WhatsApp flutuante */
.wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25d366;
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 60;
}

.wa:hover {
  transform: translateY(-2px);
}

/* Link de pular conteúdo */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  z-index: 999;
}

/* Responsivo */
@media (max-width: 1000px) {
  .hero-grid,
  .cols,
  .gallery,
  .grid,
  .reviews,
  .split,
  .footgrid {
    grid-template-columns: 1fr;
  }

  .menu a.active::after {
    display: none;
  }

  .nav .cta {
    display: inline-flex;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery img {
    height: 220px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .device {
    margin: 0;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }

  form {
    grid-template-columns: 1fr;
  }
}

/* Ajuste de alinhamento Tratamentos */
#tratamentos .cols {
  align-items: flex-start;
}

#tratamentos .device {
  margin-left: auto;
}

/* Estilo para ícones sociais no menu (Instagram, Facebook, WhatsApp) */
.menu .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  color: var(--muted); /* Cinza padrão */
  transition: transform 0.2s ease, color 0.2s ease;
}

.menu .social-icon:hover {
  color: var(--gold); /* Dourado da marca ao passar o mouse */
  transform: translateY(-2px);
}

.menu .social-icon svg {
  fill: currentColor;
}

/* Evita sublinhado de menu ativo nos ícones */
.menu .social-icon.active::after {
  display: none;
}

/* =========================================
   CORREÇÃO DE RESPONSIVIDADE (MOBILE)
   Adicione isso ao final do arquivo Thaís.css
   ========================================= */

@media (max-width: 900px) {
  
  /* 1. Trava a largura da tela para não "dançar" pros lados */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  /* 2. Transforma o Menu: Logo em cima, Links embaixo */
  .nav {
    flex-direction: column; /* Coluna em vez de linha */
    height: auto;          /* Altura automática para caber tudo */
    padding: 15px 0;
  }

  .brand-logo {
    width: 220px;          /* Logo um pouco menor */
    margin-bottom: 10px;
  }

  /* 3. Organiza os links do menu para caberem na tela */
  .menu {
    flex-wrap: wrap;       /* Permite que os links desçam para a próxima linha */
    justify-content: center;
    gap: 10px 15px;        /* Espaçamento menor entre itens */
    width: 100%;
  }

  .menu a {
    font-size: 0.9rem;     /* Letra levemente menor */
    padding: 5px;
    white-space: nowrap;   /* Evita quebra de texto no meio da palavra */
  }

  /* Esconde o botão "Agendar" do menu no topo para economizar espaço 
     (já tem um botão grande logo abaixo no banner) */
  .menu .cta.btn {
    display: none; 
  }

  /* 4. Ajusta o tamanho do Título Principal (Hero) */
  .hero-title {
    font-size: 2rem;       /* Reduz de 2.6rem para 2rem */
    line-height: 1.2;
    text-align: center;    /* Centraliza para ficar mais elegante no mobile */
  }

  .eyebrow, .lead, .hero-actions, .proofs {
    text-align: center;    /* Centraliza o resto do texto inicial */
    justify-content: center;
  }
  
  /* 5. Ajusta as seções para uma coluna única */
  .hero-grid, 
  .cols, 
  .footgrid,
  .split {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  /* Inverte a ordem no "Sobre Mim" para a foto ficar em cima (opcional, mas recomendado) */
  .cols-sobre {
    flex-direction: column-reverse;
  }

  /* 6. Garante que nada estoure a largura */
  .container {
    padding: 0 20px;
    width: 100%;
  }
  
  img, iframe {
    max-width: 100% !important;
    height: auto;
  }
}

/* =========================================
   CORREÇÃO FINAL: MOBILE + FORMULÁRIO
   Cole isso no FINAL do arquivo Thaís.css
   ========================================= */

/* 1. DESKTOP: Esconde o botão e garante menu visível */
.btn-mobile {
  display: none;
}

.menu {
  display: flex; /* Garante que no PC fique lado a lado */
}

/* 2. MOBILE: Menu Hambúrguer e Ajustes de Largura */
@media (max-width: 1000px) {

  /* Trava a largura da página para não "dançar" (scroll horizontal) */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Mostra o botão hambúrguer */
  .btn-mobile {
    display: flex;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    gap: 0.5rem;
    color: var(--ink);
    z-index: 200; /* Fica acima de tudo */
  }

  /* Desenho dos tracinhos do ícone */
  .hamburger {
    border-top: 2px solid;
    width: 20px;
    display: block;
  }
  .hamburger::after, .hamburger::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin-top: 5px;
    transition: 0.3s;
    position: relative;
  }

  /* Animação do ícone virando X */
  .nav.active .hamburger { border-top-color: transparent; }
  .nav.active .hamburger::before { transform: rotate(135deg); top: 0; }
  .nav.active .hamburger::after { transform: rotate(-135deg); top: -7px; }

  /* O Menu Gaveta (Escondido por padrão) */
  .menu {
    display: block; /* Um item embaixo do outro */
    position: absolute;
    width: 100%;
    top: 72px; /* Altura do Header */
    right: 0;
    background: #fff;
    height: 0;
    transition: 0.4s;
    z-index: 100;
    visibility: hidden;
    overflow-y: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 0;
  }

  /* O Menu Gaveta (Aberto) */
  .nav.active .menu {
    height: calc(100vh - 72px);
    visibility: visible;
    overflow-y: auto;
    padding: 20px;
  }

  /* Estilo dos links no mobile */
  .menu a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 1.1rem;
  }

  /* CORREÇÃO DO FORMULÁRIO ESTOURANDO */
  .field input, 
  .field select, 
  .field textarea {
    width: 100%;       /* Ocupa 100% do espaço disponível */
    max-width: 100%;   /* Não deixa passar do limite */
    box-sizing: border-box; /* O padding fica DENTRO da largura */
  }

  .form-wrap, .container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
  
  /* Ajuste para o título não quebrar layout */
  .hero-title {
    font-size: 2rem;
    word-wrap: break-word;
  }
}