/* ============================================================
   Dr. Gutemberg Soares — Design System
   Premium · Minimalista · Azul / Cinza / Branco / Dourado
   ============================================================ */

:root {
  /* Cores */
  --navy-900: #0b1f33;
  --navy-800: #0e2842;
  --navy-700: #14395c;
  --blue-600: #1f5a8a;
  --blue-100: #e8f0f7;
  --gold-500: #c9a227;
  --gold-400: #d9b64a;
  --gold-100: #f7f0dc;
  --ink-900: #17202b;
  --ink-600: #4b5563;
  --ink-400: #8a94a3;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-card: #ffffff;
  --line: #e5eaf0;
  --shadow: 0 10px 40px -12px rgba(11, 31, 51, .14);
  --shadow-sm: 0 4px 18px -6px rgba(11, 31, 51, .10);

  /* Tipografia */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Ritmo */
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1160px;
  --section-y: clamp(4rem, 9vw, 7rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --navy-900: #0a1929;
  --blue-100: #12283d;
  --gold-100: #2a2410;
  --ink-900: #eef2f7;
  --ink-600: #b7c2cf;
  --ink-400: #7e8b9a;
  --bg: #0c1a29;
  --bg-soft: #0f2135;
  --bg-card: #12263c;
  --line: #1e3852;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .5);
  --shadow-sm: 0 4px 18px -6px rgba(0, 0, 0, .4);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-600);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
section { padding-block: var(--section-y); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: .8rem 1.4rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Utilitários ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--gold-500); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.65; }
.center { text-align: center; }
.center .eyebrow::after { content: ""; width: 2.2rem; height: 1px; background: var(--gold-500); }
.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; }
.soft { background: var(--bg-soft); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.9rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-400); }
.btn-outline { border-color: var(--line); color: var(--ink-900); background: transparent; }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn-whatsapp { background: #128c4b; color: #fff; }
.btn-whatsapp:hover { background: #0f7a41; }
.btn svg { flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--gold-500); border: 1.5px solid var(--gold-500);
}
.brand-text { line-height: 1.2; }
.brand-name { display: block; font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; color: var(--ink-900); letter-spacing: .04em; }
.brand-role { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-400); }

.nav-list { display: flex; align-items: center; gap: 1.6rem; list-style: none; padding: 0; }
.nav-list a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-600); position: relative; padding-block: .4rem; }
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--ink-900); }
.header-cta { display: flex; align-items: center; gap: .7rem; }
.header-cta .btn { padding: .65rem 1.3rem; font-size: .9rem; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink-600); display: grid; place-items: center;
  transition: border-color .25s, color .25s;
}
.theme-toggle:hover { border-color: var(--gold-500); color: var(--gold-500); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink-900); place-items: center; }

@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; z-index: 99;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1.4rem 1.6rem 2rem; box-shadow: var(--shadow);
    transform: translateY(-115%); transition: transform .35s var(--ease);
  }
  .site-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .nav-list a { font-size: 1.1rem; }
  .header-cta .btn-agendar { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 7.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 30rem at 110% -10%, var(--blue-100), transparent 60%),
    radial-gradient(40rem 24rem at -20% 110%, var(--gold-100), transparent 55%);
  opacity: .8;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold-500); }
.hero .lead { margin-top: 1.4rem; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-note { margin-top: 1.2rem; font-size: .88rem; color: var(--ink-400); display: flex; align-items: center; gap: .5rem; }

.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; z-index: -1;
  border: 1.5px solid var(--gold-500); border-radius: var(--radius-lg); opacity: .55;
}
.hero-badge {
  position: absolute; left: -1rem; bottom: 1.6rem;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .85rem 1.2rem; display: flex; align-items: center; gap: .8rem;
}
.hero-badge strong { display: block; font-size: .95rem; color: var(--ink-900); line-height: 1.3; }
.hero-badge span { font-size: .78rem; color: var(--ink-400); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; }
}

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-soft); padding-block: 2.6rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--navy-900); }
[data-theme="dark"] .stat strong { color: var(--gold-400); }
.stat span { font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold-500) 45%, var(--line)); }
.card h3 { margin-bottom: .6rem; }
.card p { font-size: .98rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.2rem;
  background: var(--blue-100); color: var(--navy-900); display: grid; place-items: center;
}
[data-theme="dark"] .card-icon { color: var(--gold-400); }
.card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-size: .92rem; font-weight: 600; color: var(--gold-500); text-decoration: none; }
.card-link:hover { gap: .7rem; }
.card-link { transition: gap .25s var(--ease); }

/* Lista de indicações (chips) */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; padding: 0; list-style: none; }
.chips li {
  padding: .55rem 1.1rem; border-radius: 999px; font-size: .92rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--line); color: var(--ink-600);
}
.chips li::before { content: "✓ "; color: var(--gold-500); font-weight: 700; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2rem; list-style: none; margin-top: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1.5px; background: linear-gradient(var(--gold-500), var(--line)); }
.timeline li { position: relative; padding-bottom: 2.2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -2rem; top: 8px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--bg); border: 2.5px solid var(--gold-500);
}
.timeline time { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); }
.timeline h3 { font-size: 1.25rem; margin: .3rem 0 .35rem; }
.timeline p { font-size: .97rem; max-width: 46rem; }

/* ---------- Passos (Como funciona) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; position: relative; padding: 1.9rem 1.6rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--gold-500);
  display: block; margin-bottom: .6rem; line-height: 1;
}
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { font-size: .94rem; }

/* ---------- Depoimentos ---------- */
.testimonial {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.9rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1.1rem;
}
.testimonial blockquote { font-family: var(--font-display); font-size: 1.22rem; font-style: italic; color: var(--ink-900); line-height: 1.5; }
.testimonial footer { display: flex; align-items: center; gap: .9rem; }
.testimonial .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--blue-100); color: var(--navy-900); display: grid; place-items: center;
  font-weight: 700; font-size: 1rem;
}
[data-theme="dark"] .testimonial .avatar { color: var(--gold-400); }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--ink-900); display: block; font-size: .95rem; }
.testimonial small { color: var(--ink-400); }
.stars { color: var(--gold-500); letter-spacing: .15em; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: .9rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--gold-500) 50%, var(--line)); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 1.5rem; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink-900); font-size: 1.03rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-500);
  transition: transform .3s var(--ease); flex: none; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.5rem 1.4rem; font-size: .98rem; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; padding: 0; }
.post-card .post-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); display: grid; place-items: center; color: var(--gold-400); }
.post-card .post-body { padding: 1.6rem 1.6rem 1.8rem; }
.post-card .post-cat { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-500); }
.post-card h3 { margin: .5rem 0 .5rem; font-size: 1.3rem; }
.post-card p { font-size: .94rem; }
.post-card time { display: block; margin-top: .9rem; font-size: .82rem; color: var(--ink-400); }

.article-body { max-width: 760px; margin-inline: auto; }
.article-body h2 { font-size: 1.8rem; margin: 2.4rem 0 .8rem; }
.article-body p + p { margin-top: 1.1rem; }
.article-meta { display: flex; gap: 1rem; align-items: center; font-size: .88rem; color: var(--ink-400); margin: 1rem 0 2rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 1rem 0 0; font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; color: var(--ink-400); }
.breadcrumbs li + li::before { content: "›"; margin-right: .45rem; color: var(--ink-400); }
.breadcrumbs a { color: var(--ink-600); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-500); }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero .lead { margin-top: 1.1rem; max-width: 46rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); color: #cdd8e4; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50rem 25rem at 85% 120%, rgba(201, 162, 39, .18), transparent 60%);
}
.cta-band .container { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band h2 em { font-style: italic; color: var(--gold-400); }
.cta-band p { margin-top: 1rem; max-width: 34rem; }
.cta-band .hero-ctas { justify-content: flex-end; }
@media (max-width: 860px) {
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band .hero-ctas { justify-content: flex-start; }
}

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .card-icon { width: 46px; height: 46px; margin: 0; flex: none; }
.contact-list strong { display: block; color: var(--ink-900); font-size: .98rem; }
.contact-list a { color: var(--ink-600); text-decoration: none; }
.contact-list a:hover { color: var(--gold-500); }

.form { display: grid; gap: 1.1rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.form label { font-size: .9rem; font-weight: 600; color: var(--ink-900); display: grid; gap: .4rem; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink-900); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: .8rem 1rem; width: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-500) 22%, transparent);
}
.form textarea { resize: vertical; min-height: 130px; }
.form .form-note { font-size: .8rem; color: var(--ink-400); }

.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-top: 3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb2c4; padding: 4rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #9fb2c4; text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: var(--gold-400); }
.footer-brand .brand-mark { border-color: var(--gold-400); color: var(--gold-400); margin-bottom: 1rem; }
.footer-brand p { max-width: 26rem; font-size: .92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; font-size: .82rem; color: #6e8299; }
.footer-social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.footer-social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; display: grid; place-items: center; }
.footer-social a:hover { border-color: var(--gold-400); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #128c4b; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 26px -6px rgba(18, 140, 75, .55);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px -6px rgba(18, 140, 75, .65); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #128c4b; animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Impressão ---------- */
@media print {
  .site-header, .wa-float, .site-footer, .cta-band { display: none; }
}
