:root {
  --page: #ffffff;
  --surface: #f7faf6;
  --card: #edf6eb;
  --card-strong: #e5f2e2;
  --text: #415447;
  --muted: #657368;
  --line: #dbe7dc;
  --accent: #6d9d72;
  --accent-soft: #cfeacc;
  --gold: #f5c75d;
  --gold-hover: #e8b948;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-hover: #1fbd5a;
  --shadow: 0 8px 26px rgba(50, 76, 57, 0.07);
  --radius: 18px;
}

html[data-theme="dark"] {
  --page: #101811;
  --surface: #151e17;
  --card: #1c2a1f;
  --card-strong: #213125;
  --text: #e2ebe2;
  --muted: #bcc8bd;
  --line: #2b3c2e;
  --accent: #91bd91;
  --accent-soft: #29462f;
  --white: #101811;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
}

a,
button,
.btn,
.info-card,
.treatment-card,
.whatsapp-float {
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 70%, transparent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.05rem;
}

p {
  color: var(--muted);
}

address {
  margin: 0;
  font-style: normal;
}

.page-shell {
  max-width: 1110px;
}

.section-space {
  padding: 88px 0;
}

.section-space-sm {
  padding: 24px 0 72px;
}

/* Cabeçalho */
.site-header {
  padding: 12px 0 6px;
  background: rgba(255, 255, 255, 0.9);
  background: color-mix(in srgb, var(--page) 90%, transparent);
  backdrop-filter: blur(14px);
}

.nav-shell {
  padding: 11px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
}

.navbar-brand {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
}

.navbar-brand:hover {
  color: var(--accent);
}

.nav-link {
  color: var(--text);
  font-size: 0.9rem;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
}

.treatments-dropdown .dropdown-menu {
  min-width: 245px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.treatments-dropdown .dropdown-item {
  padding: 9px 12px;
  color: var(--text);
  border-radius: 9px;
  font-size: 0.88rem;
}

.treatments-dropdown .dropdown-item:hover,
.treatments-dropdown .dropdown-item:focus,
.treatments-dropdown .dropdown-item.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 18%, transparent);
}

.treatments-dropdown .dropdown-overview {
  font-weight: 700;
}

.treatments-dropdown .dropdown-divider {
  border-color: var(--line);
}

.navbar-toggler {
  border-color: var(--line);
}

html[data-theme="dark"] .navbar-toggler-icon {
  filter: invert(1);
}

.nav-actions {
  margin-left: auto;
}

.theme-toggle {
  display: grid;
  width: 40px;
  height: 32px;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  place-items: center;
}

.theme-toggle .moon {
  display: none;
  font-size: 1.2rem;
}

html[data-theme="dark"] .theme-toggle .sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .moon {
  display: inline;
}

/* Botões */
.btn {
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
}

.btn-gold {
  color: #3d493e;
  background: var(--gold);
  box-shadow: 0 6px 16px rgba(231, 181, 65, 0.18);
}

.btn-gold:hover {
  color: #2e392f;
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-light-pill {
  padding: 0.55rem 1.05rem;
  color: #4c5d50;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.875rem;
}

html[data-theme="dark"] .btn-light-pill {
  color: #344137;
  background: #f7f7f2;
}

/* Hero */
.hero-copy {
  position: relative;
  display: flex;
  min-height: 440px;
  padding: clamp(30px, 5vw, 56px);
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  background: var(--card);
  border-radius: var(--radius);
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-copy p {
  max-width: 500px;
  font-size: 1.02rem;
}

.script-label {
  background: var(--page);
  font-family: "Playfair Display", serif;
  font-style: italic;
}

.eyebrow {
  display: inline-block;
  width: fit-content;
  padding: 0.28rem 0.62rem;
  color: var(--text);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.text-link {
  color: var(--text);
  border-bottom: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
}

.text-link:hover {
  border-color: currentColor;
}

.foto-principal {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.foto-sobre {
  display: block;
  width: 100%;
  max-width: 520px;
  height: 560px;
  margin-inline: auto;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius);
}

.photo-placeholder {
  display: flex;
  min-height: 240px;
  overflow: hidden;
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(145deg, var(--surface), var(--card));
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
}

.photo-placeholder svg,
.placeholder-icon {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hero-photo {
  height: clamp(440px, 55vw, 640px);
  min-height: 440px;
}

.about-photo {
  min-height: 470px;
}

.decorative-lines::before,
.decorative-lines::after {
  position: absolute;
  width: 220px;
  height: 220px;
  content: "";
  pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 48% 52% 66% 34%;
}

.decorative-lines::before {
  top: -88px;
  right: -65px;
  transform: rotate(22deg);
}

.decorative-lines::after {
  right: 20%;
  bottom: -165px;
  transform: rotate(-18deg);
}

/* Cards */
.info-card,
.treatment-card {
  height: 100%;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.info-card:hover,
.treatment-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.info-card svg,
.treatment-card svg {
  width: 25px;
  height: 25px;
  margin-bottom: 22px;
  fill: none;
  stroke: var(--text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.info-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
}

#sobre p {
  max-width: 510px;
}

.section-heading {
  max-width: 650px;
}

.section-heading h2 {
  margin-top: 14px;
}

.section-heading em {
  color: var(--accent);
  font-style: normal;
}

.treatment-card {
  min-height: 165px;
}

.treatment-card svg {
  margin-bottom: 28px;
}

.treatment-card h3 {
  margin-bottom: 7px;
}

.treatment-card p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.treatment-card-link {
  color: var(--text);
}

.treatment-card-link:hover,
.treatment-card-link:focus-visible {
  color: var(--text);
}

.treatment-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
}

/* Páginas internas de tratamentos */
.service-breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.875rem;
}

.service-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.service-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.service-hero-copy {
  position: relative;
  display: flex;
  min-height: 470px;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-hero-copy > * {
  position: relative;
  z-index: 1;
}

.service-hero-copy p {
  max-width: 590px;
  font-size: 1.05rem;
}

.service-visual {
  position: relative;
  display: grid;
  min-height: 470px;
  padding: 36px;
  overflow: hidden;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(145deg, var(--surface), var(--card-strong));
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  place-items: center;
}

.service-visual::before,
.service-visual::after {
  position: absolute;
  width: 250px;
  height: 250px;
  content: "";
  border: 2px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 50%;
}

.service-visual::before {
  top: -105px;
  right: -70px;
}

.service-visual::after {
  bottom: -130px;
  left: -70px;
}

.service-visual-content {
  position: relative;
  z-index: 1;
}

.service-visual svg {
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.content-card {
  height: 100%;
  padding: clamp(24px, 4vw, 38px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.content-card p:last-child,
.content-card ul:last-child {
  margin-bottom: 0;
}

.check-list {
  display: grid;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-weight: 800;
}

.step-card {
  height: 100%;
  padding: 25px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  color: #3d493e;
  background: var(--gold);
  border-radius: 50%;
  font-weight: 800;
  place-items: center;
}

.step-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.faq-section {
  background: var(--surface);
}

.faq-section .accordion-item {
  overflow: hidden;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.faq-section .accordion-item + .accordion-item {
  margin-top: 10px;
}

.faq-section .accordion-button {
  color: var(--text);
  background: var(--page);
  box-shadow: none;
  font-weight: 600;
}

.faq-section .accordion-button:not(.collapsed) {
  color: var(--text);
  background: var(--card);
}

.faq-section .accordion-button::after {
  filter: none;
}

html[data-theme="dark"] .faq-section .accordion-button::after {
  filter: invert(1);
}

.faq-section .accordion-body {
  color: var(--muted);
}

.service-cta {
  position: relative;
  padding: clamp(30px, 5vw, 55px);
  overflow: hidden;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-note {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Casos clínicos */
.cases-section,
.testimonials-section {
  background: var(--surface);
}

.case-card {
  overflow: hidden;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.case-half {
  position: relative;
  display: grid;
  height: 145px;
  color: color-mix(in srgb, var(--muted) 55%, transparent);
  place-items: center;
}

.case-half + .case-half {
  border-top: 1px solid var(--line);
}

.case-half span {
  position: absolute;
  top: 9px;
  left: 10px;
  padding: 3px 7px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
}

.case-half svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.case-caption {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Depoimentos */
.testimonial-card {
  display: flex;
  height: 100%;
  padding: 18px;
  flex-direction: column;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
}

.testimonial-photo {
  min-height: 145px;
  border-radius: 8px;
}

.testimonial-photo svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
}

.quote {
  margin-top: 22px;
  color: var(--accent-soft);
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 0.8;
}

.testimonial-card blockquote {
  display: flex;
  flex: 1;
}

.testimonial-card p {
  color: var(--text);
  font-size: 0.9rem;
}

.testimonial-card strong {
  font-size: 0.82rem;
  font-weight: 500;
}

/* Contato e mapa */
.contact-panel {
  position: relative;
  padding: clamp(28px, 5vw, 55px);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-list {
  display: grid;
  margin-top: 28px;
  color: var(--muted);
  gap: 13px;
}

.contact-list strong {
  color: var(--text);
  font-weight: 600;
}

.contact-list a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-list a:hover {
  color: var(--accent);
}

.form-label {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 0.875rem;
}

.form-control {
  color: var(--text);
  background: color-mix(in srgb, var(--page) 45%, transparent);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.9rem;
}

.form-control::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.form-control:focus {
  color: var(--text);
  background: var(--page);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent) 20%, transparent);
}

.form-feedback {
  clear: both;
  padding-top: 10px;
  color: var(--accent);
  font-size: 0.875rem;
}

.contact-map-section .ratio {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Rodapé */
.footer-bar {
  min-height: 60px;
  padding: 15px 22px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.8rem;
}

.footer-bar a {
  color: var(--text);
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1030;
  display: inline-flex;
  padding: 12px 18px;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--whatsapp);
  border-radius: 999px;
  box-shadow: 0 8px 25px rgba(29, 116, 65, 0.3);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.whatsapp-float i {
  font-size: 1.2rem;
  line-height: 1;
}

.whatsapp-float:hover {
  color: #ffffff;
  background: var(--whatsapp-hover);
  box-shadow: 0 10px 30px rgba(29, 116, 65, 0.38);
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 14px;
  }

  .nav-actions {
    margin-top: 12px;
  }

  .treatments-dropdown .dropdown-menu {
    margin: 4px 0 8px;
    box-shadow: none;
  }

  .hero-copy,
  .hero-photo,
  .service-hero-copy,
  .service-visual {
    min-height: 390px;
  }

  .about-photo {
    min-height: 400px;
  }

  .foto-sobre {
    max-width: 100%;
    height: 480px;
  }
}

@media (max-width: 767.98px) {
  .site-header {
    padding-inline: 8px;
  }

  .section-space {
    padding: 62px 0;
  }

  .section-space-sm {
    padding: 14px 0 55px;
  }

  .hero-copy {
    min-height: 365px;
  }

  .hero-photo {
    height: 480px;
    min-height: 330px;
  }

  .foto-sobre {
    height: 420px;
    border-radius: 18px;
  }

  .service-hero-copy,
  .service-visual {
    min-height: 350px;
  }

  .stats-row .info-card {
    min-height: 145px;
    padding: 16px;
  }

  .info-card svg {
    margin-bottom: 16px;
  }

  .case-half {
    height: 125px;
  }

  .contact-panel {
    padding: 28px 22px;
  }

  .contact-map-section .ratio {
    --bs-aspect-ratio: 70%;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
