/* Clinical Lumen — Dr. Max Endodontia */
:root {
  --bg: #f6f7f9;
  --bg-alt: #eef1f4;
  --surface: #ffffff;
  --ink: #12161c;
  --muted: #5c6570;
  --petrol: #0f6a75;
  --petrol-hover: #0c5861;
  --petrol-bright: #3fb6c4;
  --petrol-soft: rgba(15, 106, 117, 0.08);
  --urgency: #c45c3e;
  --urgency-hover: #b04f34;
  --urgency-soft: #faf0ec;
  --line: #e4e7ec;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --nav-h: 4.5rem;
  --container: 72rem;
  --radius: 0.875rem;
  --radius-sm: 0.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 12px 40px rgba(18, 22, 28, 0.06);
  --z-nav: 60;
  --z-float: 70;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--petrol); color: #fff; }

main { position: relative; z-index: 1; min-height: 40vh; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
@media (min-width: 900px) {
  .container { width: min(100% - 4rem, var(--container)); }
}

.overline {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--petrol);
  margin: 0 0 1rem;
}
.section-title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 600;
  color: var(--ink);
}
.section-lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 38rem;
  line-height: 1.7;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--petrol);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, gap 0.2s;
}
.link-arrow:hover { border-color: var(--petrol); gap: 0.55rem; }

/* Buttons — soft radius, not pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--petrol);
  color: #fff;
  box-shadow: 0 8px 28px rgba(15, 106, 117, 0.28);
}
.btn-primary:hover { background: var(--petrol-hover); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-urgency {
  background: var(--urgency);
  color: #fff;
  box-shadow: 0 8px 24px rgba(196, 92, 62, 0.25);
}
.btn-urgency:hover { background: var(--urgency-hover); }
.btn-urgency-soft {
  background: var(--urgency-soft);
  color: var(--urgency);
  border-color: #ead5cd;
}
.btn-urgency-soft:hover { background: #f5e4dc; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.78rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Nav — clear glass */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(246, 247, 249, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
body.page-home .site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom-color: transparent;
  color: #f5f1ea;
}
body.page-home .site-nav.is-solid {
  background: rgba(246, 247, 249, 0.92);
  border-bottom-color: var(--line);
  color: var(--ink);
}
body.page-home .site-nav:not(.is-solid) .nav__brand span,
body.page-home .site-nav:not(.is-solid) .nav__links a { color: rgba(245, 241, 234, 0.72); }
body.page-home .site-nav:not(.is-solid) .nav__brand strong,
body.page-home .site-nav:not(.is-solid) .nav-toggle { color: #f5f1ea; }
body.page-home .site-nav:not(.is-solid) .nav__links a:hover { color: #fff; }
body.page-home .site-nav.is-solid .nav__brand strong { color: var(--ink); }
body.page-home .site-nav.is-solid .nav__brand span { color: var(--petrol); }
body.page-home .site-nav.is-solid .nav__links a { color: var(--muted); }
body.page-home .site-nav.is-solid .nav__links a:hover,
body.page-home .site-nav.is-solid .nav__links a.is-active { color: var(--petrol); }
body.page-home .site-nav.is-solid .nav-toggle { color: var(--ink); }

.nav__brand { line-height: 1.1; flex-shrink: 0; }
.nav__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__brand span {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--petrol);
  font-weight: 600;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}
.nav__links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--petrol); }
.nav__cta { display: none; align-items: center; gap: 0.5rem; }
.nav-toggle {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 0.4rem;
  display: grid;
  place-items: center;
}
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 59;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2rem;
  flex-direction: column;
  gap: 0.85rem;
  border-bottom: 1px solid var(--line);
  max-height: calc(100svh - var(--nav-h));
  overflow: auto;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.nav-mobile .btn { justify-content: center; width: 100%; }
@media (min-width: 768px) {
  .nav__cta { display: flex; }
  .nav__cta + .nav-toggle { margin-left: 0; }
}
@media (min-width: 1100px) {
  .nav__links { display: flex; }
  .nav-toggle { display: none; }
}

/* Page hero */
.page-hero {
  padding: clamp(5rem, 12vw, 8rem) 0 clamp(3rem, 6vw, 4.5rem);
}
body:not(.page-home) .page-hero { padding-top: clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 600;
  max-width: 16ch;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--petrol);
}
.split-title {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.split-title em {
  font-style: normal;
  color: var(--petrol);
}
.page-hero .section-lead { margin-top: 1.25rem; font-size: 1.125rem; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.split--top { align-items: start; }
@media (min-width: 900px) {
  .split--2 { grid-template-columns: 1fr 1fr; }
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }

/* Prefer border panels over heavy cards */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.panel:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 106, 117, 0.35);
  box-shadow: var(--shadow);
}
.panel__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--petrol);
  display: block;
  margin-bottom: 0.85rem;
}
.panel h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.panel p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.65;
}

.prose { color: var(--muted); max-width: 42rem; line-height: 1.75; }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--ink); font-weight: 600; }

.list-check li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--petrol);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stats__item {
  padding: 1.4rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .stats__item { border-bottom: 0; }
  .stats__item:last-child { border-right: 0; }
}
.stats__item strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  display: block;
  letter-spacing: -0.03em;
}
.stats__item span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
}

.step-n {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(15, 106, 117, 0.45);
  display: block;
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.875rem; color: var(--muted); }

.quote-mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--petrol-bright);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}

/* Depoimentos — 4 na mesma linha no desktop; scroll no mobile */
.testimonials {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  margin-inline: -0.25rem;
  padding-inline: 0.25rem;
}
.testimonials::-webkit-scrollbar {
  height: 4px;
}
.testimonials::-webkit-scrollbar-thumb {
  background: rgba(15, 106, 117, 0.28);
  border-radius: 999px;
}
@media (min-width: 900px) {
  .testimonials {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
  }
}

.panel.testimonial,
figure.testimonial {
  display: flex;
  flex-direction: column;
  flex: 0 0 min(18.5rem, 78vw);
  width: min(18.5rem, 78vw);
  height: auto;
  min-height: 20rem;
  margin: 0;
  padding: 1.35rem 1.15rem 1.2rem;
  scroll-snap-align: start;
}
@media (min-width: 900px) {
  .panel.testimonial,
  figure.testimonial {
    flex: unset;
    width: auto;
    min-width: 0;
    height: 100%;
  }
}

.testimonial .stars {
  margin-bottom: 0.85rem;
  line-height: 1;
}
.testimonial .stars span {
  display: inline-block;
  color: #e8a317;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 0 rgba(232, 163, 23, 0.2);
}

.testimonial .quote-mark {
  font-size: 1.85rem;
  margin-bottom: 0.35rem;
  color: rgba(15, 106, 117, 0.35);
}

.testimonial blockquote {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
  line-height: 1.62;
}

.testimonial figcaption {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.testimonial figcaption strong {
  display: block;
  font-size: 0.875rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.testimonial figcaption span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

blockquote.pull {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border-left: 3px solid var(--petrol);
  background: var(--petrol-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
}
blockquote.pull footer {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
}

.disclaimer {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px dashed #d4b8a8;
  background: var(--urgency-soft);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: #7a4534;
  line-height: 1.6;
}
.disclaimer a { color: var(--urgency); text-decoration: underline; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item__q span:last-child {
  color: var(--petrol);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item.is-open .faq-item__q span:last-child { transform: rotate(180deg); }
.faq-item__a {
  display: none;
  padding: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.7;
}
.faq-item.is-open .faq-item__a { display: block; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px var(--petrol-soft);
}
.form textarea { min-height: 7.5rem; resize: vertical; }
.form__check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.6rem !important;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}
.form__check input { width: auto; margin-top: 0.2rem; }
.form__check a { color: var(--petrol); text-decoration: underline; }
.form__honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-thanks { color: var(--petrol); font-weight: 600; font-family: var(--font-display); }
.form-note { font-size: 0.75rem; color: var(--muted); }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 20rem;
  margin-top: 1.5rem;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.locations {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 700px) {
  .locations { grid-template-columns: 1fr 1fr; }
}
.location-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}
.location-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.location-card p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.55;
}
.location-card .location-note {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.location-card .link-arrow {
  margin-top: 0.85rem;
  display: inline-flex;
}

/* CTA */
.cta-final { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cta-final__box {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.25rem);
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(63, 182, 196, 0.18), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
}
.cta-final__box .section-title { max-width: 18ch; }

/* Footer */
.layout-footer {
  background: #12161c;
  color: #a8b0ba;
  margin-top: auto;
}
.footer-inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  padding: 3.5rem 0 2rem;
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer-brand-tag {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--petrol-bright);
  font-family: var(--font-display);
  font-weight: 600;
}
.footer-brand-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 18rem;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.footer-nav-link {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-nav-link:hover { color: #fff; }
.footer-contact p {
  font-size: 0.875rem;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}
.footer-hours { font-size: 0.75rem; opacity: 0.7; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  font-size: 0.72rem;
  color: rgba(168, 176, 186, 0.75);
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: var(--z-float);
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.06); }

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.is-visible) {
    opacity: 0.001;
    transform: translateY(1.35rem);
  }
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
