:root {
  --navy: #0f2f3a;
  --navy-2: #123d49;
  --ink: #0a2027;
  --teal: #2f8b86;
  --aqua: #d9f0ed;
  --cream: #f6f0e6;
  --paper: #fbf6ec;
  --gold: #c59b5d;
  --gold-light: #e2c692;
  --text: #1c2b2f;
  --muted: #65777d;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(15, 47, 58, 0.16);
  --shadow-lg: 0 30px 90px rgba(10, 32, 39, 0.22);
  --radius: 28px;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  position: relative;
}

/* Textura sutil de papel — evita o visual "gradiente liso" genérico */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.02 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}

.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Revelação suave ao rolar a página */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: var(--navy);
  border-bottom: 1px solid rgba(197,155,93,0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--white);
}

.brand img { width: 44px; height: 44px; }

.nav {
  display: flex;
  gap: 26px;
  color: rgba(255,255,255,0.88);
  font-weight: 650;
  font-size: 15px;
}

.nav a { position: relative; padding: 4px 0; }

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transition: right .25s ease;
}

.nav a:hover { color: var(--white); }
.nav a:hover::after { right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(47,139,134,0.22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.28) 45%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .5s ease;
}

.btn:hover::before { transform: translateX(120%); }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(47,139,134,0.30);
}

.btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; }

.btn-light {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 14px 32px rgba(0,0,0,0.14);
}

/* ---------- Assinatura visual: linha de pulso ---------- */

.pulse {
  display: block;
  height: 20px;
  width: 140px;
  color: var(--gold);
  margin: 18px 0 0;
  opacity: .9;
}

.pulse-hero {
  margin: 22px 0 8px;
  width: 190px;
  height: 26px;
}

.pulse-hero path {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: pulse-draw 1.6s cubic-bezier(.2,.7,.3,1) .4s forwards;
}

@keyframes pulse-draw {
  to { stroke-dashoffset: 0; }
}

.pulse-about { color: var(--gold-light); margin-top: 22px; }

.pulse-ambient {
  position: absolute;
  z-index: 0;
  top: 46%;
  left: 50%;
  width: 130%;
  max-width: none;
  transform: translate(-50%, -50%);
  color: var(--navy);
  opacity: .05;
  pointer-events: none;
}

/* Divisor "batimento" entre seções */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 220px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,155,93,0.55), transparent);
}

.divider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(10px, 2vw, 40px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  position: relative;
}

.hero-copy { width: 100%; position: relative; z-index: 1; }

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(220px, 320px);
  align-items: start;
  justify-content: end;
  gap: clamp(16px, 2vw, 24px);
  min-width: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 60px -220px auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(47,139,134,0.20), rgba(47,139,134,0) 68%);
  pointer-events: none;
  z-index: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 900;
}

h1, h2, h3 { color: var(--navy); line-height: 1.06; font-family: var(--font-display); font-weight: 600; }

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 5.8vw, 74px);
  letter-spacing: -0.02em;
}

.lead {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

.trust_main {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.trust_main span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(47,139,134,0.14);
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.trust li {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(15,47,58,0.12);
  color: var(--navy-2);
  font-size: 14px;
  font-weight: 700;
}

.hero-widget { width: 100%; min-width: 0; }

.widget-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--navy-2);
  text-align: center;
}

.hero-widget-box {
  width: 100%;
  min-width: 0;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(197,155,93,0.4);
  box-shadow: 0 16px 40px rgba(15,47,58,0.12);
  transition: box-shadow .3s ease, transform .3s ease;
}

.hero-widget-box:hover {
  box-shadow: 0 22px 50px rgba(15,47,58,0.16);
  transform: translateY(-2px);
}

.hero-widget-box > *,
.hero-widget-box iframe { width: 100% !important; max-width: none !important; }

#doctoralia { position: relative; z-index: 1; width: 100%; min-width: 0; }

#doctoralia > *,
#doctoralia iframe { width: 100% !important; max-width: none !important; }

/* ---------- Cartão de apresentação (hero) ---------- */

.hero-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(246,240,230,0.88)),
    url("assets/pattern.svg");
  background-size: cover;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,47,58,0.08);
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  transition: transform .4s ease, box-shadow .4s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 36px -18px 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(15,47,58,0.12);
  filter: blur(18px);
  z-index: -1;
}

.hero-photo-ring {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--gold), var(--teal), var(--gold));
}

.hero-logo {
  display: block;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-sizing: border-box;
  object-fit: cover;
}

.hero-card h2 {
  margin: 16px 0 6px;
  font-size: clamp(21px, 2.2vw, 26px);
  letter-spacing: -0.01em;
}

.hero-card p { color: var(--muted); margin: 0; font-family: var(--font-body); }

.mini-divider {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 99px;
  margin: 18px auto;
}

.card-text {
  max-width: 280px;
  margin: 0 auto !important;
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Seções gerais ---------- */

.section { padding: 84px clamp(20px, 5vw, 72px); }

#modalidades { padding-top: 56px; }

.section-heading { max-width: 740px; margin-bottom: 40px; }

.section-heading.center {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2, .about h2, .cta h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 50px);
  letter-spacing: -0.015em;
}

.section-sub { margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* ---------- Cards de serviço ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  padding: 30px 28px;
  min-height: 280px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(15,47,58,0.08);
  box-shadow: 0 16px 44px rgba(15,47,58,0.07);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15,47,58,0.14);
  border-color: rgba(197,155,93,0.35);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--aqua);
  margin-bottom: 22px;
}

.icon-badge img { width: 30px; height: 30px; }

.service-card h3 { margin: 0 0 12px; font-size: 21px; letter-spacing: -0.01em; }

.service-card p { margin: 0; color: var(--muted); line-height: 1.65; font-family: var(--font-body); }

/* ---------- Como funciona ---------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.how-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(15,47,58,0.08);
  box-shadow: 0 16px 44px rgba(15,47,58,0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.how-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(15,47,58,0.12); }

.how-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(15,47,58,0.25);
}

.how-card h3 { margin: 0 0 10px; font-size: 20px; }

.how-card p { margin: 0; color: var(--muted); line-height: 1.6; font-family: var(--font-body); }

/* ---------- Sobre ---------- */

.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  padding: 96px clamp(20px, 5vw, 72px);
  background: linear-gradient(160deg, var(--ink), var(--navy) 60%);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,155,93,0.12), transparent 70%);
  pointer-events: none;
}

.about h2, .about .eyebrow { color: var(--white); }
.about .eyebrow { color: var(--gold-light); }

.about-text {
  color: rgba(255,255,255,0.8);
  font-size: 19px;
  line-height: 1.8;
  font-family: var(--font-body);
}

.about-text p:first-child { margin-top: 0; }

/* ---------- Avaliações ---------- */

.social-proof {
  background: var(--cream);
  border-radius: var(--radius);
  margin: 0 clamp(20px, 5vw, 72px);
  padding: 80px clamp(20px, 5vw, 56px);
}

.reviews-summary {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.score-number { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--navy); }
.score-stars { color: var(--gold); font-size: 20px; letter-spacing: 2px; }
.score-count { color: var(--muted); font-weight: 650; font-size: 15px; }

.reviews-carousel { max-width: 1080px; margin: 0 auto; }

.reviews-viewport { overflow: hidden; }

.reviews-track { display: flex; gap: 20px; transition: transform .5s cubic-bezier(.65,0,.35,1); }

.reviews-loading { color: var(--muted); padding: 40px; margin: 0 auto; }

.review-card {
  flex: none;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid rgba(15,47,58,0.08);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(15,47,58,0.07);
  padding: 32px 28px 26px;
  min-height: 220px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.review-card:hover { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(15,47,58,0.12); }

.review-card .review-quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 4px;
}

.review-text { margin: 0 0 22px; color: var(--text); font-size: 16.5px; line-height: 1.55; }

.review-footer { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.review-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--navy-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-body);
}

.review-who { display: flex; flex-direction: column; min-width: 0; }
.review-name { font-weight: 750; color: var(--navy); font-size: 15px; }
.review-meta { color: var(--muted); font-size: 13px; }

.review-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(47,139,134,0.10);
  padding: 5px 10px;
  border-radius: 999px;
}

.reviews-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }

.reviews-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(15,47,58,0.14);
  background: var(--white);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.reviews-btn:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }

.reviews-dots { display: flex; gap: 8px; }

.reviews-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(15,47,58,0.18);
  cursor: pointer;
}

.reviews-dot.is-active { background: var(--gold); width: 22px; border-radius: 999px; }

.reviews-link {
  display: block;
  text-align: center;
  margin-top: 30px;
  color: var(--navy-2);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reviews-link:hover { color: var(--teal); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  border: 1px solid rgba(15,47,58,0.12);
  border-radius: 18px;
  background: var(--white);
  padding: 6px 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item:hover { border-color: rgba(197,155,93,0.4); }

.faq-item[open] { box-shadow: 0 16px 40px rgba(15,47,58,0.08); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 750;
  font-size: 17px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  transition: transform .2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { margin: 0 0 20px; color: var(--muted); line-height: 1.65; font-family: var(--font-body); }

/* ---------- CTA final ---------- */

.cta {
  margin: 84px clamp(20px, 5vw, 72px);
  padding: clamp(32px, 6vw, 64px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal), var(--navy) 68%, var(--ink));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 28px;
  color: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,155,93,0.22), transparent 70%);
  pointer-events: none;
}

.cta > div { width: 100%; min-width: 0; }

#texto-contato { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

#texto-contato p { max-width: 460px; font-family: var(--font-body); }

.cta h2 { color: var(--white); }
.cta p { max-width: 680px; line-height: 1.7; color: rgba(255,255,255,0.85); }

/* ---------- Rodapé ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 44px clamp(20px, 5vw, 72px) 56px;
  color: var(--muted);
  border-top: 1px solid rgba(15,47,58,0.1);
  font-family: var(--font-body);
}

.footer p { margin: 0 0 6px; }
.footer-main p:first-child { color: var(--navy); font-size: 15px; }
.footer-legal { text-align: right; font-size: 14px; }

/* ---------- Responsivo ---------- */

@media (max-width: 1180px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-panel { grid-template-columns: minmax(0, 340px) minmax(220px, 320px); justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; align-items: stretch; }
  .footer-legal { text-align: left; }
}

@media (max-width: 960px) {
  .hero-panel { grid-template-columns: 1fr; justify-items: center; }
}

@media (max-width: 620px) {
  .site-header { padding: 14px 18px; }
  .brand span { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-copy { grid-column: auto; }
  .services-grid { grid-template-columns: 1fr; }
  .social-proof { margin: 0 16px; padding: 60px 20px; }
  .hero-card { padding: 30px 20px; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
  .btn { width: 100%; }
  .btn-small { width: auto; }
}
