/* ============================================================
   Dra. Lorena Barbato — Sistema de design do site
   Marca: dourado #C9A84C · preto #1A1A1A · bege #F5F0E8
   Fontes: Playfair Display (títulos) · Marcellus (rótulos) · Jost (corpo)
   ============================================================ */

:root {
  --gold: #C9A84C;
  --gold-dark: #A9863A;
  --gold-soft: #E6CB80;
  --ink: #1A1A1A;
  --ink-soft: #4a4641;
  --bege: #F5F0E8;
  --bege-2: #EFE8DC;
  --dark: #14110D;
  --white: #ffffff;
  --line: #e7e0d4;

  --font-title: 'Playfair Display', Georgia, serif;
  --font-label: 'Marcellus', Georgia, serif;
  --font-body: 'Jost', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --shadow-sm: 0 2px 14px rgba(26,26,26,.06);
  --shadow-md: 0 10px 34px rgba(26,26,26,.10);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 500; line-height: 1.18; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { max-width: 65ch; }

/* ---- Utilitários ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--bege { background: var(--bege); }
.section--bege2 { background: var(--bege-2); }
.section--dark { background: var(--dark); color: #ece6da; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-label);
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--gold-dark);
  display: inline-block;
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--gold); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section-head p { margin: 16px auto 0; color: var(--ink-soft); }

.lead { font-size: 1.15rem; color: var(--ink-soft); }

.gold { color: var(--gold-dark); }

.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; height: 1px; width: 54px; background: var(--gold); opacity: .7; }
.divider span { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* ---- Botões (alvo de toque >= 44px, contraste OK) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-label); letter-spacing: 1.5px; text-transform: uppercase;
  font-size: .82rem; line-height: 1;
  min-height: 48px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(169,134,58,.35); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--ink); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ---- Foco acessível ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Navbar ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; transition: all .3s var(--ease);
}
.nav.scrolled { background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); padding: 12px 24px; }
.nav__logo img { height: 68px; transition: height .3s var(--ease); }
.nav.scrolled .nav__logo img { height: 56px; }
/* troca logo claro (sobre hero) <-> escuro (sobre barra branca) */
.nav__logo .logo-ink { display: none; }
.nav.scrolled .nav__logo .logo-light { display: none; }
.nav.scrolled .nav__logo .logo-ink { display: block; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-family: var(--font-label); letter-spacing: 1px; text-transform: uppercase;
  font-size: .82rem; color: var(--ink); position: relative; padding: 6px 0;
}
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--gold); transition: width .25s var(--ease); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
/* CTA duplicado do header desativado — usamos só o "Agendar" do menu */
.nav__cta { display: none; }
/* Contorno reforçado do botão Agendar no menu */
.nav__links .btn-primary { border: 2px solid var(--gold-dark); padding: 0 30px; }
.nav:not(.scrolled) .nav__links .btn-primary { border-color: rgba(255,255,255,.55); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); transition: all .3s var(--ease); }

/* navbar transparente sobre hero -> escuro quando não rolou */
.nav:not(.scrolled) .nav__links a { color: #fff; }
.nav:not(.scrolled) .nav__links a.btn-primary { color: var(--ink); }
.nav:not(.scrolled) .nav__toggle span { background: #fff; }
.nav:not(.scrolled).nav--solid .nav__links a { color: var(--ink); }
.nav:not(.scrolled).nav--solid .nav__toggle span { background: var(--ink); }

/* ---- Hero ---- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img, .hero__bg svg { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20,17,13,.78) 0%, rgba(20,17,13,.45) 60%, rgba(20,17,13,.25) 100%); }
.hero__inner { max-width: 640px; padding: 120px 0 80px; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.9); margin: 22px 0 34px; font-size: 1.18rem; }
.hero .eyebrow { color: var(--gold-soft); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Cards de serviço ---- */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon { width: 54px; height: 54px; color: var(--gold-dark); margin-bottom: 20px; }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ---- Sobre (split) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__media { position: relative; }
.split__media img, .split__media svg { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.split__media .badge {
  position: absolute; bottom: -22px; right: -10px; background: var(--dark); color: #fff;
  padding: 18px 24px; border-radius: 12px; box-shadow: var(--shadow-md); text-align: center;
}
.split__media .badge strong { font-family: var(--font-title); font-size: 1.8rem; color: var(--gold); display: block; }
.split__media .badge span { font-family: var(--font-label); letter-spacing: 2px; text-transform: uppercase; font-size: .7rem; }

/* ---- Lista com check ---- */
.checks { list-style: none; margin-top: 22px; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); opacity: .18; }
.checks li::after { content: "✓"; position: absolute; left: 5px; top: 1px; color: var(--gold-dark); font-size: .8rem; font-weight: bold; }

/* ---- Depoimentos ---- */
.quote { background: #fff; border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.quote__stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; }
.quote p { font-family: var(--font-title); font-style: italic; font-size: 1.12rem; color: var(--ink); }
.quote__author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote__author .av { width: 44px; height: 44px; border-radius: 50%; background: var(--bege-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-title); color: var(--gold-dark); }
.quote__author b { font-weight: 500; font-family: var(--font-label); letter-spacing: .5px; }
.quote__author small { display: block; color: var(--ink-soft); font-size: .8rem; }

/* ---- Convênios ---- */
.brands { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: center; }
.brands span { font-family: var(--font-label); letter-spacing: 1px; color: var(--ink-soft); font-size: 1.05rem; opacity: .8; }

/* ---- CTA faixa ---- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 720px; margin: 0 auto 14px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0 auto 30px; }
.cta-band .hero__actions { justify-content: center; }

/* ---- Formulário ---- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-family: var(--font-label); letter-spacing: .5px; font-size: .85rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: .85rem; color: var(--ink-soft); }
.alert { padding: 14px 18px; border-radius: 10px; font-size: .95rem; }
.alert-ok { background: #eef6ee; border: 1px solid #cfe6cf; color: #2f6b35; }
.alert-err { background: #fbefed; border: 1px solid #efd2cd; color: #a8443a; }

/* ---- Contato cards ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.info-list { list-style: none; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.info-list .ic { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--bege); display: flex; align-items: center; justify-content: center; color: var(--gold-dark); }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list b { font-family: var(--font-label); letter-spacing: .5px; }
.info-list a, .info-list span { color: var(--ink-soft); }

/* ---- Page hero (interno) ---- */
.page-hero { background: var(--dark); color: #fff; padding: 160px 0 80px; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero .crumb { font-family: var(--font-label); letter-spacing: 2px; text-transform: uppercase; font-size: .75rem; color: var(--gold); margin-top: 14px; }

/* ---- Blog ---- */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card__img { display: block; aspect-ratio: 16/10; overflow: hidden; }
.post-card__img img, .post-card__img svg { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 26px 26px 30px; }
.post-card__tag { font-family: var(--font-label); letter-spacing: 2px; text-transform: uppercase; font-size: .7rem; color: var(--gold-dark); }
.post-card h3 { margin: 10px 0; font-size: 1.25rem; }
.post-card p { color: var(--ink-soft); font-size: .95rem; }
.post-card a.more { font-family: var(--font-label); letter-spacing: 1px; text-transform: uppercase; font-size: .78rem; color: var(--gold-dark); margin-top: 14px; display: inline-block; }

/* ---- Artigo / blog post ---- */
.article { max-width: 760px; margin: 0 auto; }
.article-meta { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; font-family: var(--font-label); letter-spacing: 1.5px; font-size: .75rem; text-transform: uppercase; color: var(--gold); margin-top: 18px; }
.article figure { margin: 8px 0 40px; }
.article figure img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow-sm); }
.article figcaption { text-align: center; font-size: .82rem; color: #9a948a; margin-top: 10px; }
.article .lead-p { font-size: 1.22rem; color: var(--ink); line-height: 1.7; margin-bottom: 22px; }
.article h2 { font-size: 1.75rem; margin: 46px 0 14px; }
.article h3 { font-size: 1.22rem; margin: 30px 0 8px; color: var(--gold-dark); }
.article p { margin-bottom: 18px; color: #3a3631; font-size: 1.07rem; line-height: 1.8; max-width: none; }
.article ul { margin: 0 0 20px; padding: 0; list-style: none; }
.article ul li { position: relative; padding-left: 30px; margin-bottom: 12px; color: #3a3631; line-height: 1.7; }
.article ul li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.cta-box { background: var(--bege); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 30px 34px; margin: 46px 0 10px; }
.cta-box h3 { margin: 0 0 10px; font-family: var(--font-title); color: var(--ink); }
.cta-box p { margin-bottom: 18px; }
.article-share { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 26px; text-align: center; color: var(--ink-soft); font-size: .95rem; }

/* ---- Footer ---- */
.footer { background: var(--dark); color: #b8b0a0; padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.footer__logo img { height: 60px; margin-bottom: 18px; }
.footer p { font-size: .92rem; }
.footer h4 { color: #fff; font-family: var(--font-label); letter-spacing: 1px; text-transform: uppercase; font-size: .82rem; margin-bottom: 18px; font-weight: 400; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 11px; font-size: .92rem; }
.footer ul a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }

/* ---- WhatsApp flutuante ---- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---- Reveal on scroll (progressive enhancement: só esconde se houver JS) ---- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============== Responsivo ============== */
@media (max-width: 940px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split__media .badge { right: 10px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: #fff; flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 40px; gap: 22px; transform: translateX(100%); transition: transform .35s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,.15);
  }
  .nav__links.open { transform: none; }
  .nav__links a { color: var(--ink) !important; font-size: 1rem; }
  .nav__links .btn-primary { border-color: var(--gold-dark); }
  .nav__toggle { display: flex; }
  .nav__logo img, .nav.scrolled .nav__logo img { height: 52px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  body.menu-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
