:root {
  --background: #fcfbf8;
  --foreground: #1f2f2a;
  --ivory: #f6f3ec;
  --stone: #ece8e0;
  --emerald: #2f4f44;
  --emerald-soft: #6f8f82;
  --gold: #b9924a;
  --gold-soft: #d8be86;
  --border: #d9d3c8;
  --muted: #5f6c67;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--emerald);
  color: #fff;
  padding: 0.6rem 1rem;
}

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 7rem 0;
}

.section-ivory {
  background: var(--ivory);
}

.section-eyebrow {
  margin: 0 0 1rem;
  color: var(--emerald);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.section-eyebrow-lines {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.section-eyebrow-lines::before,
.section-eyebrow-lines::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: color-mix(in srgb, var(--gold) 85%, white);
}

h1,
h2,
h3,
.brand-title,
.footer-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.05;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 span,
h1 span {
  color: var(--emerald);
  font-style: italic;
}

.lead {
  color: var(--muted);
  max-width: 62ch;
}

.center {
  text-align: center;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  transition: all 0.35s ease;
  padding: 1.4rem 0;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--background) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  padding: 0.8rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-title {
  font-size: 1.3rem;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #70827b;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.main-nav a {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--emerald);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0.45rem 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Troca de idioma (bandeira) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: 0.2s ease;
}

.lang-switch:hover {
  border-color: var(--emerald-soft);
  color: var(--emerald);
}

.lang-switch .flag {
  width: 22px;
  height: 14px;
  border-radius: 2px;
  display: block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.67rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.22s ease;
}

.btn-solid {
  background: var(--emerald);
  color: #f4f0e8;
}

.btn-solid:hover {
  background: #223832;
}

.hero-cta {
  gap: 0.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  transition: background 0.3s ease, color 0.3s ease, padding-right 0.3s ease, transform 0.3s ease;
}

.hero-cta-line {
  width: 1.1rem;
  height: 1px;
  background: color-mix(in srgb, var(--gold) 90%, white);
  transition: width 0.3s ease;
}

.hero-cta:hover {
  padding-right: 2.05rem;
  transform: translateX(2px);
}

.hero-cta:hover .hero-cta-line {
  width: 2rem;
}

.btn-outline {
  border-color: color-mix(in srgb, var(--gold) 65%, transparent);
  color: var(--emerald);
}

.btn-outline:hover {
  background: var(--gold);
  color: #1f2f2a;
}

.btn-ghost {
  color: var(--foreground);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--emerald);
  border-color: var(--emerald-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--ivory), var(--background));
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -10%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-soft) 38%, transparent), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
  padding: 11rem 0 6rem;
}

.hero-content {
  animation: heroContentReveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes heroContentReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }
}

.kicker {
  margin-bottom: 1.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--emerald);
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
}

.hero p {
  margin-top: 1.5rem;
  max-width: 52ch;
  color: var(--muted);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-badges {
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
}

.hero-badges li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-figure {
  position: relative;
  margin: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(31, 47, 42, 0.45);
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
  border-radius: 4px;
  z-index: -1;
}

.hero-figure figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  padding: 0.9rem 1.1rem;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(6px);
  border-left: 2px solid var(--gold);
}

.hero-figure figcaption strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
}

.hero-figure figcaption span {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 24px 50px -28px rgba(31, 47, 42, 0.4);
}

/* Clínica: mosaico de ambientes */
.clinica-gallery {
  margin: 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 0.9rem;
}

.clinica-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 18px 38px -26px rgba(31, 47, 42, 0.45);
}

.clinica-gallery .g-tall {
  grid-row: 1 / span 2;
}

.clinica-gallery img:not(.g-tall) {
  aspect-ratio: 4 / 3;
}

/* Microscopia: composição com imagem principal + inset */
.microscopia-figure {
  position: relative;
  margin: 0 0 2.4rem;
}

.microscopia-main {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 26px 54px -28px rgba(31, 47, 42, 0.45);
}

.microscopia-inset {
  position: absolute;
  right: -1.4rem;
  bottom: -1.8rem;
  width: 48%;
  border: 5px solid var(--background);
  border-radius: 4px;
  box-shadow: 0 22px 40px -24px rgba(31, 47, 42, 0.5);
  overflow: hidden;
}

.microscopia-inset img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .microscopia-inset {
    right: 0.6rem;
    bottom: -1.2rem;
    width: 52%;
  }
}

.about-cta {
  margin-top: 2rem;
}

.stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stats article {
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}

.stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--emerald);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 400;
}

.stats small {
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #60716b;
}

/* ---------- Section heads ---------- */
.section-head {
  margin-bottom: 2rem;
}

.section-head.center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

.section-head p {
  color: var(--muted);
}

/* ---------- Info grid (O que é Endodontia) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.info-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.section-ivory .info-card {
  background: #fff;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -28px rgba(31, 47, 42, 0.4);
  border-color: color-mix(in srgb, var(--gold) 50%, var(--border));
}

.info-num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.info-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
}

.info-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Situations grid ---------- */
.situations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.situation-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.6rem 1.4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.situation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px -28px rgba(31, 47, 42, 0.4);
}

.situation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold-soft) 30%, var(--ivory));
  color: var(--emerald);
  margin-bottom: 0.9rem;
}

.situation-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.situation-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.situation-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- Treatments grid ---------- */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.treatment-card {
  display: flex;
  gap: 1.3rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.treatment-card:hover {
  border-color: color-mix(in srgb, var(--gold) 50%, var(--border));
  box-shadow: 0 22px 40px -30px rgba(31, 47, 42, 0.4);
}

.treatment-index {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
  min-width: 2.6rem;
}

.treatment-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
}

.treatment-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Microscopia ---------- */
.microscopia {
  background: linear-gradient(180deg, var(--background), var(--ivory));
}

.check-list {
  margin: 1.8rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.check-list.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--foreground);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--emerald);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/0.8rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/0.8rem no-repeat;
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.6rem;
}

.benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--emerald);
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Diferenciais (emerald section) ---------- */
.filosofia {
  background: var(--emerald);
  color: #f4f0e8;
}

.filosofia .section-eyebrow {
  color: var(--gold-soft);
}

.filosofia h2 span {
  color: var(--gold-soft);
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(216, 190, 134, 0.32);
  border: 1px solid rgba(216, 190, 134, 0.32);
}

.diferencial {
  background: var(--emerald);
  padding: 2rem 1.5rem;
  transition: background 0.3s ease;
}

.diferencial:hover {
  background: #284339;
}

.diferencial small {
  display: block;
  color: var(--gold-soft);
  letter-spacing: 0.2em;
  font-size: 0.62rem;
  margin-bottom: 0.7rem;
}

.diferencial h3 {
  margin: 0;
  font-size: 1.45rem;
}

.diferencial p {
  margin: 0.5rem 0 0;
  color: rgba(244, 240, 232, 0.78);
  font-size: 0.88rem;
}

/* ---------- Seção internacional (en) ---------- */
.intl-intro {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--muted);
}

.intl-intro p {
  margin: 0 0 1rem;
}

.intl-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem 2.2rem;
  margin: 0 auto 2.5rem;
  max-width: 900px;
}

.intl-panel h3 {
  margin: 0 0 0.8rem;
  font-size: 1.7rem;
  color: var(--emerald);
}

.intl-panel p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.intl-panel p:last-child {
  margin-bottom: 0;
}

.intl-subtitle {
  text-align: center;
  font-size: 1.9rem;
  margin: 0 0 1.8rem;
}

.intl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.intl-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem 1.3rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px -28px rgba(31, 47, 42, 0.4);
}

.intl-ico {
  display: block;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.intl-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--foreground);
}

/* Comparação */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.compare-col {
  border-radius: 6px;
  padding: 1.8rem 1.8rem;
  border: 1px solid var(--border);
  background: #fff;
}

.compare-col h4 {
  margin: 0 0 1.1rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.5rem;
}

.compare-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.compare-col li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.92rem;
}

.compare-against {
  background: var(--ivory);
}

.compare-against h4 {
  color: #8a7b63;
}

.compare-against li {
  color: var(--muted);
}

.compare-against li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: #b07a5e;
  font-size: 0.85rem;
}

.compare-us {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #f4f0e8;
}

.compare-us h4 {
  color: #fff;
}

.compare-us li {
  color: rgba(244, 240, 232, 0.92);
}

.compare-us li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1rem;
  height: 1rem;
  background: var(--gold-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/0.9rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/0.9rem no-repeat;
}

/* CTA internacional */
.intl-cta {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.4rem 2rem;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--border));
  border-radius: 6px;
  background: color-mix(in srgb, var(--gold-soft) 14%, #fff);
}

.intl-cta h3 {
  margin: 0 0 0.7rem;
  font-size: 1.9rem;
}

.intl-cta p {
  margin: 0 auto 1.5rem;
  max-width: 52ch;
  color: var(--muted);
}

@media (max-width: 900px) {
  .intl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .intl-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Autoavaliação (quiz) ---------- */
.quiz {
  max-width: 680px;
  margin: 0 auto;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.6rem 2.4rem;
  box-shadow: 0 26px 60px -40px rgba(31, 47, 42, 0.5);
}

.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.quiz-step {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.quiz-bar {
  flex: 1;
  height: 3px;
  background: var(--stone);
  border-radius: 3px;
  overflow: hidden;
}

.quiz-bar span {
  display: block;
  height: 100%;
  background: var(--emerald);
  transition: width 0.4s ease;
}

.quiz-question {
  margin: 0 0 1.8rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-family: "Cormorant Garamond", serif;
  line-height: 1.15;
  color: var(--foreground);
}

.quiz-options {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.quiz-opt {
  flex: 1;
  min-width: 140px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--foreground);
  cursor: pointer;
  transition: 0.2s ease;
}

.quiz-opt:hover {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #f4f0e8;
}

.quiz-back {
  margin-top: 1.4rem;
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.quiz-back:hover {
  color: var(--emerald);
}

.quiz-back[hidden] {
  display: none;
}

/* Resultado */
.quiz-result {
  text-align: center;
}

.quiz-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.quiz-result-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.quiz-result.level-alta .quiz-result-badge {
  background: #f7e7e3;
  color: #a5482f;
}

.quiz-result.level-moderada .quiz-result-badge {
  background: #f5edda;
  color: #9a7322;
}

.quiz-result.level-baixa .quiz-result-badge {
  background: #e6efe7;
  color: #2f6b46;
}

.quiz-result h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.quiz-result p {
  margin: 0 auto 1.6rem;
  max-width: 52ch;
  color: var(--muted);
}

.quiz-result-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-disclaimer {
  margin-top: 1.6rem;
  font-size: 0.74rem;
  color: var(--muted);
  opacity: 0.85;
}

/* ---------- FAQ ---------- */
.faq-wrap {
  max-width: 860px;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--background);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.3rem 1.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  color: var(--foreground);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--emerald);
}

.faq-toggle {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.85rem;
  height: 1.5px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.open .faq-toggle::after {
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.logo-contact {
  width: 76px;
  margin: 0 auto 1.2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: stretch;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.4rem 1.4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

a.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -28px rgba(31, 47, 42, 0.4);
  border-color: color-mix(in srgb, var(--gold) 55%, var(--border));
}

.contact-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-card strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--emerald);
  overflow-wrap: anywhere;
}

.contact-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-map {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 280px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.contact-actions {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--emerald);
  color: #f4f0e8;
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-brand img {
  width: 58px;
}

.footer-title {
  font-size: 1.5rem;
}

.footer-subtitle {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(244, 240, 232, 0.72);
  text-align: right;
}

.footer-priv {
  margin-top: 0.9rem !important;
  font-size: 0.68rem !important;
  line-height: 1.5;
  color: rgba(244, 240, 232, 0.5) !important;
  max-width: 70ch;
  margin-left: auto;
}

/* ---------- Modal de agendamento ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 35, 31, 0.55);
  backdrop-filter: blur(3px);
  animation: modalFade 0.25s ease both;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.4rem 2.2rem;
  box-shadow: 0 40px 80px -40px rgba(31, 47, 42, 0.6);
  animation: modalUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--emerald);
}

.modal-card h3 {
  margin: 0.3rem 0 0.6rem;
  font-size: 1.9rem;
}

.modal-card h3 span {
  color: var(--emerald);
  font-style: italic;
}

.modal-sub {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

#agendar-form label {
  display: block;
  margin-bottom: 0.9rem;
}

#agendar-form label span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

#agendar-form label small {
  text-transform: none;
  letter-spacing: 0;
  color: var(--emerald-soft);
}

#agendar-form input,
#agendar-form select,
#agendar-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: inherit;
  transition: border-color 0.2s ease;
}

#agendar-form textarea {
  resize: vertical;
  min-height: 64px;
}

#agendar-form input:focus,
#agendar-form select:focus,
#agendar-form textarea:focus {
  outline: none;
  border-color: var(--emerald);
}

#agendar-form input.invalido,
#agendar-form select.invalido {
  border-color: #c0573c;
  background: #fdf3f0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.modal-submit {
  width: 100%;
  margin-top: 0.4rem;
  cursor: pointer;
}

.modal-priv {
  margin: 1rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
}

body.modal-aberto {
  overflow: hidden;
}

/* ---------- WhatsApp float ---------- */
.whats-float {
  position: fixed;
  left: 1.4rem;
  bottom: 1.4rem;
  z-index: 50;
  width: 3.4rem;
  height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s ease;
}

.whats-float:hover {
  transform: scale(1.07);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .info-grid,
  .situations-grid,
  .diferenciais-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .main-nav.open {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open a {
    padding: 0.9rem 1.2rem;
    border-top: 1px solid var(--stone);
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
    order: 2;
  }

  .lang-switch {
    order: 3;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 9rem;
    gap: 2.5rem;
  }

  .hero-figure {
    max-width: 420px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .about-portrait,
  .clinica-gallery {
    max-width: 520px;
  }

  .microscopia-figure {
    order: -1;
    max-width: 480px;
  }

  .treatments-grid,
  .contact-layout,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .site-footer p {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.5rem 0;
  }

  .info-grid,
  .situations-grid,
  .diferenciais-grid,
  .stats,
  .check-list.two {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }

  .treatment-card {
    padding: 1.6rem;
  }
}
