/* ============================================================
   DR. UBAJARA GUAZZELLI — Boutique Web Design (CSO)
   Variante DARK EDITORIAL · identidade real do Instagram
   Base: skill boutique-web-design (tipografia + componentes + ritmo)
   Paleta trocada: dourado → azul-petróleo/teal sobre obsidiana azulada
   Regra de ouro: tudo via tokens :root, nada hardcoded no HTML.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Cor-assinatura — azul-petróleo/teal (substitui o dourado) */
  --brand:        #3d7a8c;   /* teal-petróleo — cor-assinatura */
  --brand-vivid:  #4f9fb5;   /* realce / hover / fios vivos */
  --brand-deep:   #1d3a45;   /* fundo de acento profundo */
  --brand-ink:    #14213a;   /* azul-marinho do terno — blocos de destaque */
  --brand-soft:   rgba(79,159,181,.16); /* tint translúcido p/ ícones/tags */

  /* Fundos escuros (dark editorial de luxo, não dark de dev) */
  --bg:           #0b1018;   /* fundo principal — quase-preto azulado */
  --bg-2:         #111826;   /* seção alternada, um tom acima */
  --surface:      #161f30;   /* cards sobre o escuro */
  --surface-2:    #1b2436;   /* inputs / superfícies internas */

  /* Texto */
  --ink:          #eef2f8;   /* texto claro principal */
  --ink-soft:     #9aa7bd;   /* texto suave */
  --ink-faint:    #6c7993;   /* legendas / micro */

  /* Linhas / bordas */
  --line:         #23304a;   /* bordas e fios neutros */
  --line-soft:    rgba(35,48,74,.6);

  /* Tipografia (idêntica à skill) */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Sora", "Montserrat", system-ui, -apple-system, sans-serif;

  /* Raio / sombra / espaço (sistema da skill, adaptado p/ escuro) */
  --radius:       6px;
  --radius-lg:    14px;
  --shadow-sm:    0 2px 12px rgba(0,0,0,.35);
  --shadow:       0 18px 50px rgba(0,0,0,.5);
  --shadow-brand: 0 14px 40px rgba(61,122,140,.30);
  --glow-brand:   0 0 0 1px rgba(79,159,181,.18), 0 16px 44px rgba(61,122,140,.22);
  --maxw:         1180px;
  --gutter:       clamp(20px, 5vw, 48px);
  --section-y:    clamp(72px, 9vw, 128px);
}

/* ---------- RESET / BASE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.14; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.95rem, 4vw, 2.95rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
p  { color: var(--ink-soft); }
::selection { background: var(--brand); color: #fff; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section   { padding-block: var(--section-y); }
.section--alt  { background: var(--bg-2); }
.section--deep { background: var(--brand-ink); }

/* Eyebrow / kicker teal */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .7rem;
  font-weight: 600;
  color: var(--brand-vivid);
  margin-bottom: 16px;
  display: inline-block;
}

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; font-size: 1.06rem; }

/* Fio teal decorativo */
.rule { width: 56px; height: 2px; background: var(--brand); border: 0; margin: 20px 0; }
.section-head.center .rule { margin-inline: auto; }

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 15px 30px; border-radius: var(--radius);
  cursor: pointer; border: 1.5px solid transparent;
  transition: all .22s ease; letter-spacing: .01em;
}
.btn-brand {
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-brand:hover { background: var(--brand-vivid); transform: translateY(-2px); box-shadow: 0 18px 46px rgba(79,159,181,.40); }
.btn-outline {
  background: transparent; color: var(--ink);
  border-color: rgba(238,242,248,.28);
}
.btn-outline:hover { border-color: var(--brand-vivid); color: var(--brand-vivid); }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(11,16,24,.72);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s, border-color .3s;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.navbar .brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.22rem;
  color: var(--ink); letter-spacing: -.01em;
}
.navbar .brand span { color: var(--brand-vivid); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.5rem; color: var(--ink); }

/* ---------- HERO ---------- */
.hero {
  padding-top: 150px; padding-bottom: var(--section-y);
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 540px at 78% -8%, rgba(61,122,140,.22), transparent 62%),
    radial-gradient(900px 500px at 8% 110%, rgba(20,33,58,.6), transparent 60%),
    var(--bg);
}
.hero .container {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.hero h1 { margin: 16px 0 20px; }
.hero h1 em { font-style: italic; color: var(--brand-vivid); }
.hero .lead { font-size: 1.15rem; max-width: 42ch; margin-bottom: 34px; color: var(--ink-soft); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,16,24,.05) 40%, rgba(11,16,24,.72) 100%);
}
.hero-badge {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  background: rgba(11,16,24,.78); color: var(--ink); backdrop-filter: blur(8px);
  padding: 13px 18px; border-radius: var(--radius);
  font-size: .82rem; border-left: 3px solid var(--brand-vivid);
  letter-spacing: .02em;
}
.hero-badge strong { color: var(--brand-vivid); font-weight: 600; }

/* ---------- FAIXA DE CREDENCIAIS (5 itens) ---------- */
.credbar { background: var(--brand-ink); border-block: 1px solid var(--line); }
.credbar .container {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  padding-block: 46px; text-align: center;
}
.cred { position: relative; }
.cred + .cred::before {
  content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 44px; background: var(--line);
}
.cred .num { font-family: var(--font-display); font-size: 2.05rem; color: var(--brand-vivid); font-weight: 600; line-height: 1.1; }
.cred .lbl { font-size: .8rem; color: var(--ink-soft); letter-spacing: .03em; margin-top: 8px; }

/* ---------- O CIRURGIÃO (sobre) ---------- */
.about .container { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.about-figure {
  aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); position: relative;
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.about-body p { margin-top: 20px; }
.about-body p:first-of-type { margin-top: 0; }
.about-body strong { color: var(--ink); font-weight: 600; }

/* ---------- PROCEDIMENTOS (3 cards ricos) ---------- */
.grid-proc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.card-proc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.card-proc:hover { transform: translateY(-7px); box-shadow: var(--glow-brand); border-color: var(--brand); }
.card-proc.featured { border-color: var(--brand-deep); }
.card-proc .proc-media { aspect-ratio: 16/11; overflow: hidden; position: relative; background: var(--brand-deep); }
.card-proc .proc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-proc:hover .proc-media img { transform: scale(1.05); }
.card-proc .proc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(22,31,48,.7)); }
.card-proc .proc-noimg {
  aspect-ratio: 16/11; display: grid; place-items: center;
  background: radial-gradient(420px 200px at 50% 0%, var(--brand-deep), var(--surface));
}
.card-proc .proc-noimg .mark {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-vivid); border: 1px solid var(--brand-deep); font-size: 1.5rem;
}
.card-proc .proc-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card-proc .tag-top {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-vivid); font-weight: 600; margin-bottom: 12px;
}
.card-proc h3 { margin-bottom: 12px; line-height: 1.25; }
.card-proc .mech { font-size: .95rem; color: var(--ink-soft); }
.card-proc ul { list-style: none; margin-top: 18px; display: grid; gap: 11px; }
.card-proc ul li { display: flex; gap: 11px; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.card-proc ul li::before { content: "—"; color: var(--brand-vivid); font-weight: 700; flex-shrink: 0; }

/* ---------- FILOSOFIA (bloco editorial) ---------- */
.philosophy { position: relative; overflow: hidden; }
.philosophy .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.philo-figure {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); position: relative;
}
.philo-figure img { width: 100%; height: 100%; object-fit: cover; }
.philo-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 55%, rgba(20,33,58,.55)); }
.philo-body .big-line {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.32; color: var(--ink); margin-bottom: 26px; letter-spacing: -.01em;
}
.philo-body .big-line span { color: var(--brand-vivid); }
.philo-body p { margin-top: 18px; }
.philo-body p:first-of-type { margin-top: 0; }

/* ---------- HISTÓRIAS / DEPOIMENTOS ---------- */
.grid-depo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-depo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 18px; position: relative;
  transition: border-color .25s, transform .25s;
}
.card-depo:hover { border-color: var(--brand-deep); transform: translateY(-4px); }
.card-depo .quote-mark { font-family: var(--font-display); font-size: 3.4rem; line-height: .4; color: var(--brand-deep); height: 22px; }
.card-depo blockquote { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); font-style: italic; line-height: 1.55; }
.card-depo .who { font-size: .85rem; color: var(--ink-faint); font-weight: 500; margin-top: auto; }
.card-depo .who b { color: var(--brand-vivid); font-weight: 600; font-style: normal; }
.consent-note { text-align: center; margin-top: 34px; font-size: .78rem; color: var(--ink-faint); letter-spacing: .02em; }

/* ---------- RECONHECIMENTO / FAQ ---------- */
.recog .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.recog-aside .pull-quote {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.5; color: var(--ink); margin: 18px 0 30px;
}
.recog-aside .pull-quote cite {
  display: block; font-style: normal; font-family: var(--font-body); font-size: .82rem;
  color: var(--brand-vivid); letter-spacing: .16em; text-transform: uppercase; margin-top: 18px;
}
.recog-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.recog-photos figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 3/2; }
.recog-photos img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) brightness(.94); }
.recog-photos figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px;
  font-size: .68rem; color: var(--ink); letter-spacing: .04em;
  background: linear-gradient(transparent, rgba(11,16,24,.85));
}

/* FAQ accordion */
.faq { display: grid; gap: 0; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq details summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); font-weight: 500;
  transition: color .2s;
}
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary:hover { color: var(--brand-vivid); }
.faq details summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.5rem; color: var(--brand-vivid); transition: transform .25s; font-weight: 300;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 30px 24px 0; font-size: .96rem; color: var(--ink-soft); }

/* ---------- CTA + FORM ---------- */
.contact { background: var(--bg-2); }
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 68px); align-items: start; }
.contact-info .micro { margin-top: 18px; }
.contact-info .trust { margin-top: 26px; font-size: .82rem; color: var(--ink-faint); border-left: 2px solid var(--brand-deep); padding-left: 14px; }
.contact-info .ci-item { display: flex; gap: 14px; margin-top: 22px; align-items: flex-start; }
.contact-info .ci-item .k { color: var(--brand-vivid); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; min-width: 100px; padding-top: 2px; }
.contact-info .ci-item .v { color: var(--ink); font-size: .98rem; }
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px); box-shadow: var(--shadow-sm);
}
.form-card label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: .02em; }
.form-card .field { margin-bottom: 20px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; font-family: var(--font-body); font-size: .96rem; color: var(--ink);
  padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); transition: border-color .2s, box-shadow .2s;
}
.form-card input::placeholder, .form-card textarea::placeholder { color: var(--ink-faint); }
.form-card select { color: var(--ink-soft); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--brand-vivid); box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-card input:invalid:not(:placeholder-shown) { border-color: #b4524f; }
.form-card textarea { resize: vertical; min-height: 100px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { margin-top: 14px; font-size: .76rem; color: var(--ink-faint); text-align: center; }
.form-ok { display: none; margin-top: 16px; padding: 13px 16px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-deep); color: var(--brand-vivid); font-size: .88rem; }
.form-ok.show { display: block; }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--ink-soft); }
.footer .container { padding-block: 58px 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.footer .brand { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; color: var(--ink); }
.footer .brand span { color: var(--brand-vivid); }
.footer h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-vivid); margin-bottom: 16px; }
.footer a { display: block; font-size: .9rem; margin-bottom: 10px; color: var(--ink-soft); transition: color .2s; }
.footer a:hover { color: var(--brand-vivid); }
.footer .legal { padding-top: 26px; font-size: .8rem; color: var(--ink-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- ANIMAÇÃO FADE-IN AO ROLAR ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 980px) {
  .hero .container, .about .container, .philosophy .container, .recog .container, .contact .container { grid-template-columns: 1fr; }
  .hero-figure, .about-figure, .philo-figure { max-width: 480px; margin-inline: auto; }
  .about .container .about-figure { order: -1; }
  .grid-proc { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .grid-depo { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .credbar .container { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .cred + .cred::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 120px; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(11,16,24,.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0; transform: translateY(-135%); transition: transform .3s; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 15px var(--gutter); width: 100%; }
  .nav-links .btn { margin: 10px var(--gutter); }
  .nav-toggle { display: block; }
  .credbar .container { grid-template-columns: 1fr; gap: 28px; }
  .recog-photos { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer .legal { flex-direction: column; }
}

/* ============================================================
   PLUGAGEM DE LINKS — adições (botão flutuante WA + links de saída)
   Tudo via tokens :root. Nada hardcoded.
   ============================================================ */

/* Links inline herdam o teal-assinatura */
.pull-quote a,
.contact-info .ci-item .v a,
.footer .legal.credit a {
  color: var(--brand-vivid);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-deep);
  transition: color .2s, border-color .2s;
}
.pull-quote a:hover,
.contact-info .ci-item .v a:hover,
.footer .legal.credit a:hover {
  color: #fff;
  border-color: var(--brand-vivid);
}

/* Link "leia a repercussão na imprensa" */
.recog-links { margin-top: 18px; }
.recog-links a {
  font-family: var(--font-body); font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; color: var(--brand-vivid); text-decoration: none;
  transition: color .2s, letter-spacing .2s;
}
.recog-links a:hover { color: #fff; letter-spacing: .07em; }

/* Crédito discreto no rodapé */
.footer .legal.credit {
  margin-top: 10px; padding-top: 0; border-top: 0;
  justify-content: center; font-size: .72rem; color: var(--ink-faint);
}

/* ---------- Botão flutuante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow-brand);
  border: 1px solid var(--brand-vivid);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.wa-float:hover {
  background: var(--brand-vivid);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 46px rgba(79,159,181,.45);
}
.wa-float svg { display: block; }

@media (max-width: 600px) {
  .wa-float {
    right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 52px; height: 52px;
  }
}
