/* ===== Tokens ===== */
:root {
  --navy-950: oklch(0.28 0.05 250);
  --navy-900: oklch(0.34 0.045 250);
  --navy-800: oklch(0.40 0.04 250);

  --teal-500: oklch(0.68 0.12 205);
  --teal-400: oklch(0.75 0.1 205);
  --teal-300: oklch(0.82 0.09 205);
  --teal-900: oklch(0.28 0.06 205);
  --teal-700: oklch(0.50 0.12 205); /* text-on-white links: 4.5:1+ AA, teal-500 fails at 2.69:1 */

  --ink-900: oklch(0.22 0.02 250);
  --ink-700: oklch(0.40 0.02 250);
  --ink-500: oklch(0.55 0.015 250);

  --paper-0: oklch(0.995 0 0);
  --paper-50: oklch(0.97 0.006 250);
  --paper-100: oklch(0.94 0.008 250);

  --white: oklch(1 0 0);

  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;

  --shadow-sm: 0 2px 8px oklch(0.19 0.045 250 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.19 0.045 250 / 0.12);

  /* z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper-0);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
@media (max-width: 640px) {
  section { padding: 56px 0; }
  body { font-size: 17px; }
}

.section--dark { background: var(--navy-950); color: var(--paper-0); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: oklch(0.85 0.01 250); }
.section--panel { background: var(--paper-50); }

.eyebrow-none { /* deliberately no eyebrow kicker system on this site */ }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out-quart), box-shadow 0.25s var(--ease-out-quart), background 0.2s ease;
}
.btn-primary {
  background: var(--teal-500);
  color: var(--navy-950);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border: 1.5px solid oklch(1 0 0 / 0.25);
  color: var(--white);
}
.btn-outline:hover { border-color: oklch(1 0 0 / 0.5); }
.btn-outline--light {
  border: 1.5px solid var(--ink-700);
  color: var(--ink-900);
}
.btn-outline--light:hover { border-color: var(--ink-900); }

/* ===== Logo mark (real brand logo, PNG masked with currentColor so it
   can be recolored per-context without needing separate light/dark assets) ===== */
.logo-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-color: currentColor;
  -webkit-mask: url(/img/logo-mark.png) no-repeat center / contain;
  mask: url(/img/logo-mark.png) no-repeat center / contain;
}
.logo-mark--lg { width: 34px; height: 34px; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-100);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.nav-wordmark strong { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; color: var(--ink-900); }
.nav-wordmark span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-700); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-700); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink-900); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-phone { text-align: right; font-size: 13px; color: var(--ink-500); }
.nav-phone strong { display: block; font-size: 15px; color: var(--ink-900); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 11px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .nav-phone, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--white);
}
.nav-mobile.is-open { display: flex; flex-direction: column; }
.nav-mobile-header { display: flex; justify-content: space-between; align-items: center; height: 84px; padding: 0 24px; border-bottom: 1px solid var(--paper-100); }
.nav-mobile-links { display: flex; flex-direction: column; gap: 28px; padding: 40px 24px; font-family: var(--font-display); font-size: 28px; }

/* ===== Hero (full-bleed photo + gradient overlay) ===== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero--fullbleed {
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.hero--fullbleed::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Two gradients stacked: a diagonal one that darkens the text column,
     plus a bottom-anchored one so the full-width stats row always sits
     on a dark-enough base, even where it crosses the brighter right side
     of the photo. */
  background:
    linear-gradient(0deg, oklch(0.20 0.05 250 / 0.85) 0%, oklch(0.20 0.05 250 / 0.55) 22%, transparent 46%),
    linear-gradient(100deg, oklch(0.20 0.05 250 / 0.94) 0%, oklch(0.20 0.05 250 / 0.75) 38%, oklch(0.20 0.05 250 / 0.3) 72%, oklch(0.20 0.05 250 / 0.15) 100%);
}
@media (max-width: 760px) {
  .hero--fullbleed { min-height: 560px; }
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 48px;
  max-width: 640px;
  color: var(--white);
  /* Safety net on top of the gradient: keeps text legible even over the
     brighter parts of the photo (e.g. the stats row at the bottom-right). */
  text-shadow: 0 1px 12px oklch(0.15 0.03 250 / 0.55), 0 1px 2px oklch(0.15 0.03 250 / 0.4);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.15);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.hero h1 em { font-style: normal; color: var(--teal-400); }
.hero-lede { font-size: 19px; max-width: 46ch; margin: 24px 0 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; min-height: 52px; }
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid oklch(1 0 0 / 0.12);
}
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--white); }
.hero-stat span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: oklch(0.82 0.008 250); }
.hero-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Gallery grid (real clinic photos, larger) ===== */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery-photo { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3/2; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease-out-quart); }
.gallery-photo:hover img { transform: scale(1.03); }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-photo { aspect-ratio: 16/10; }
}

/* ===== Smile results carousel (swipeable) ===== */
.smile-carousel { position: relative; }
.smile-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.smile-track::-webkit-scrollbar { display: none; }
.smile-slide {
  flex: 0 0 auto;
  width: min(420px, 82vw);
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.smile-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smile-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--ink-900);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.smile-nav--prev { left: -14px; }
.smile-nav--next { right: -14px; }
@media (max-width: 700px) {
  .smile-nav { display: none; }
}

/* ===== Trust bar (no icon-in-circle repetition) ===== */
.trust-bar { display: flex; flex-wrap: wrap; gap: 20px; }
.trust-item {
  flex: 1 1 260px;
  padding: 24px;
  background: oklch(1 0 0 / 0.04);
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: var(--radius-md);
}
.trust-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: oklch(1 0 0 / 0.08);
  color: var(--teal-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.trust-icon svg { width: 19px; height: 19px; }
.trust-item h3 { font-size: 16px; color: var(--white); margin-bottom: 8px; }
.trust-item p { font-size: 14.5px; color: oklch(0.75 0.01 250); margin: 0; }

/* ===== Pill badge (eyebrow, dark sections) ===== */
.pill-badge {
  display: inline-flex; align-items: center;
  padding: 7px 16px; border-radius: 999px;
  background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.15);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal-300);
}

/* ===== Story / laboratório próprio ===== */
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 32px; } }
.story-figure { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); color: var(--teal-400); line-height: 1; }
.story-figure span { display: block; font-family: var(--font-body); font-size: 15px; color: oklch(0.7 0.01 250); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 10px; font-weight: 600; }

/* ===== Eyebrow label ===== */
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 10px; }
.section--dark .eyebrow { color: var(--teal-400); }

/* ===== Services (icon cards) ===== */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }
.service-card { border: 1px solid var(--paper-100); border-radius: var(--radius-md); padding: 28px 24px; }
.service-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-icon svg { width: 22px; height: 22px; }
.service-icon--blue { background: oklch(0.9 0.05 250); color: oklch(0.55 0.18 260); }
.service-icon--green { background: oklch(0.92 0.06 150); color: oklch(0.6 0.15 150); }
.service-icon--purple { background: oklch(0.9 0.05 300); color: oklch(0.55 0.2 300); }
.service-icon--orange { background: oklch(0.92 0.06 60); color: oklch(0.62 0.18 45); }
.service-title { font-size: 17px; margin-bottom: 8px; }
.service-desc { color: var(--ink-700); font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; }
.service-link { font-weight: 600; color: var(--teal-700); font-size: 14px; white-space: nowrap; }

/* ===== FAQ accordion ===== */
.faq-item { border-bottom: 1px solid var(--paper-100); }
.faq-item:first-child { border-top: 1px solid var(--paper-100); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
}
.faq-q-icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-q-icon::before, .faq-q-icon::after {
  content: ""; position: absolute; background: var(--ink-900); border-radius: 2px;
  transition: transform 0.3s var(--ease-out-quart);
}
.faq-q-icon::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-q-icon::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item.open .faq-q-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-out-quart); }
.faq-a-inner { padding-bottom: 24px; color: var(--ink-700); max-width: 68ch; }

/* ===== Blog ===== */
.blog-list { display: flex; flex-direction: column; }
.blog-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--paper-100);
}
.blog-list .blog-card:last-child { border-bottom: 1px solid var(--paper-100); }
.blog-card h3 { font-size: 24px; margin-bottom: 8px; }
.blog-card p { color: var(--ink-700); margin: 0; max-width: 65ch; }
.blog-meta { font-size: 13px; color: var(--ink-500); margin-top: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.blog-arrow { font-size: 22px; color: var(--teal-700); }
@media (max-width: 640px) {
  .blog-card { grid-template-columns: 1fr; }
}

.post-body { max-width: 68ch; margin: 0 auto; }
.post-body h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.post-meta { color: var(--ink-500); font-size: 14px; margin-bottom: 40px; text-transform: uppercase; letter-spacing: 0.04em; }
.post-body h2 { font-size: 26px; margin-top: 48px; }
.post-body p { color: var(--ink-700); margin-bottom: 20px; }
.post-disclaimer {
  margin-top: 56px;
  padding: 24px;
  background: var(--paper-50);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-500);
}
.post-cta {
  margin-top: 40px;
  padding: 36px;
  background: var(--navy-950);
  border-radius: var(--radius-md);
  text-align: center;
}
.post-cta h3 { color: var(--white); margin-bottom: 8px; }
.post-cta p { color: oklch(0.8 0.01 250); margin-bottom: 24px; }

/* ===== Footer ===== */
.footer { background: var(--navy-950); color: oklch(0.75 0.01 250); padding-top: 72px; }
.footer h3 { color: var(--white); font-size: 17px; margin-bottom: 20px; font-family: var(--font-body); font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-grid a:hover { color: var(--white); }
.footer-legal { font-size: 13px; line-height: 1.7; color: oklch(0.70 0.015 250); }
.footer-bottom {
  border-top: 1px solid oklch(1 0 0 / 0.08);
  padding: 24px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: var(--z-toast);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.6);
  transition: transform 0.4s var(--ease-out-quart), opacity 0.4s var(--ease-out-quart), box-shadow 0.2s;
}
.wa-float.is-visible { opacity: 1; transform: scale(1); }
.wa-float:hover { box-shadow: 0 8px 24px oklch(0 0 0 / 0.25); }
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ===== Cookie consent ===== */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-modal-backdrop);
  padding: 16px;
  transform: translateY(120%);
  transition: transform 0.4s var(--ease-out-quart);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--navy-950);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-card p { color: oklch(0.82 0.01 250); font-size: 14px; margin: 0; max-width: 60ch; }
.cookie-card a { text-decoration: underline; color: var(--white); }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-actions button {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.cookie-reject { background: oklch(1 0 0 / 0.1); color: var(--white); }
.cookie-accept { background: var(--teal-500); color: var(--navy-950); }

/* ===== Reveal on scroll =====
   Default is always fully visible — content must never depend on JS to
   become visible (crawlers, link-preview bots, JS-disabled all fail to
   scroll/observe). The hidden-then-reveal state only applies once JS has
   actually taken control via the .js-reveal class on <html>. */
.fade-up { opacity: 1; transform: none; }
html.js-reveal .fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out-quart), transform 0.7s var(--ease-out-quart);
}
html.js-reveal .fade-up.in { opacity: 1; transform: none; }

/* ===== Legal pages ===== */
.legal-body { max-width: 72ch; margin: 0 auto; }
.legal-section { padding: 28px 0; border-top: 1px solid var(--paper-100); }
.legal-section:first-child { border-top: none; }
.legal-section h2 { font-size: 20px; }
.legal-section p { color: var(--ink-700); }
