/* ==========================================================
   Dra. Cristiane Lima - estilos do site
   Seções: variáveis, base, cabeçalho, botões, hero, sobre,
   tratamentos, contato, rodapé, WhatsApp flutuante, responsivo
   ========================================================== */

/* Fontes hospedadas no próprio site (subconjunto latin) */
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 500 600; font-style: normal; font-display: swap; src: url("assets/fonts/playfair-display.woff2") format("woff2"); }

/* ---------- Variáveis ---------- */
:root {
  --rose: #a85f78;        /* botões e destaques (contraste 4,6:1 com texto branco) */
  --rose-dark: #8f4a62;   /* hover e textos de destaque */
  --gold: #b08650;        /* detalhes decorativos, igual ao logo */
  --gold-text: #8a6232;   /* dourado escuro para texto legível */
  --gold-light: #e9c88c;
  --wine: #4a2c3a;        /* títulos e rodapé */
  --cream: #fcf1f4;
  --text: #4a4045;
  --green: #177a32;       /* WhatsApp (contraste 5,4:1 com texto branco) */
  --green-dark: #125f27;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Lato", Arial, sans-serif; color: var(--text); background: #fff; line-height: 1.6; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; color: var(--wine); font-weight: 600; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1100px, 92%); margin: 0 auto; }
section { padding: 80px 0; scroll-margin-top: 76px; }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.pular { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--wine); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .2s; }
.pular:focus { top: 12px; }

/* ---------- Cabeçalho ---------- */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid #eee; }
header .container { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; position: relative; }
.logo img { height: 56px; width: auto; }
nav a { text-decoration: none; margin-left: 24px; font-size: .95rem; color: var(--wine); padding: 6px 0; }
nav a:hover { color: var(--rose); }
nav a.ativo { color: var(--rose-dark); font-weight: 700; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 8px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--wine); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botões ---------- */
.btn { display: inline-block; padding: 14px 30px; border-radius: 50px; background: var(--rose); color: #fff; text-decoration: none; font-weight: 700; transition: background .2s; }
.btn:hover { background: var(--rose-dark); }
.btn.whats { background: var(--green); }
.btn.whats:hover { background: var(--green-dark); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #f8dde5, var(--cream) 55%, #fff); padding: 70px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; margin-bottom: 12px; }
.hero h1::after { content: ""; display: block; width: 70px; height: 2px; background: var(--gold); margin-top: 18px; }
.hero-texto p { margin-bottom: 30px; font-size: 1.1rem; max-width: 560px; }
.hero-foto { width: 100%; max-height: 560px; object-fit: cover; object-position: top; border-radius: 200px 200px 16px 16px; box-shadow: 0 14px 40px rgba(168,95,120,.25); }

/* ---------- Sobre ---------- */
.sobre .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.sobre img { width: 100%; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.sobre h2 { font-size: 2rem; margin-bottom: 8px; }
.sobre p { margin-bottom: 14px; }
.sobre .destaque { font-family: "Playfair Display", Georgia, serif; font-size: 1.2rem; color: var(--rose-dark); margin-bottom: 18px; }

/* ---------- Tratamentos ---------- */
.tratamentos h2 { text-align: center; font-size: 2.2rem; margin-bottom: 8px; }
.tratamentos .sub { text-align: center; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid #f0d9e0; border-top: 3px solid var(--gold); border-radius: 14px; padding: 28px; box-shadow: 0 6px 20px rgba(168,95,120,.08); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.cta-centro { text-align: center; margin-top: 40px; }

/* ---------- Contato ---------- */
.contato { background: var(--cream); }
.contato h2 { text-align: center; font-size: 2.2rem; margin-bottom: 8px; }
.contato .sub { text-align: center; margin-bottom: 50px; }
.contato-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; }
.info { display: grid; gap: 28px; align-content: start; }
.info h3 { font-size: 1.2rem; color: var(--gold-text); margin-bottom: 6px; }
.info a { text-decoration: none; }
.info a:hover { color: var(--rose-dark); }
.info a.btn { color: #fff; }
.insta { display: inline-flex; align-items: center; gap: 8px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 4px 12px; border-radius: 50px; background: #fff; border: 1px solid #ecd3db; font-size: .9rem; font-weight: 700; color: var(--rose-dark); }
.status:empty { display: none; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #b3a2a9; }
.status.aberto { color: var(--green); border-color: #bfe0c7; }
.status.aberto::before { background: #22a847; box-shadow: 0 0 0 3px rgba(34,168,71,.25); }
.info .botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.mapa { min-height: 380px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Rodapé ---------- */
footer { background: var(--wine); color: #e3d6dc; text-align: center; padding: 30px 0; font-size: .85rem; }
footer p + p { margin-top: 6px; }
.insta-rodape { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 14px; color: #fff; }
.insta-rodape:hover { color: var(--gold-light); }

/* ---------- WhatsApp flutuante ---------- */
.whats-fixo { position: fixed; right: 20px; bottom: 20px; z-index: 20; background: var(--green); width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: background .2s, transform .2s; }
.whats-fixo:hover { background: var(--green-dark); transform: scale(1.08); }

/* ---------- Animação de entrada ---------- */
.revelar { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.revelar.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revelar { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 800px) {
  section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .sobre .container, .contato-grid, .hero-grid { grid-template-columns: 1fr; }
  .hero-foto { max-height: 420px; }

  .menu-toggle { display: flex; }
  nav { display: none; position: absolute; top: 100%; left: -4%; right: -4%; background: #fff; border-bottom: 1px solid #eee; box-shadow: 0 10px 20px rgba(0,0,0,.08); padding: 8px 4% 16px; }
  nav.aberto { display: block; }
  nav a { display: block; margin: 0; padding: 14px 4px; border-bottom: 1px solid #f3e6ea; font-size: 1.05rem; }
  nav a:last-child { border-bottom: 0; }
}
