/* ============================================================
   IME Salvador — Landing Page
   Blueprint: ciência com acolhimento
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --ime-graphite: #252021;
  --ime-taupe: #AE9989;
  --ime-offwhite: #F6F5F5;

  /* Apoio */
  --ime-cocoa: #351F17;
  --ime-taupe-dark: #7D7165;
  --ime-brown: #4E4742;
  --ime-sand: #B9ADA1;
  --ime-mist: #E2E0DF;
  --ime-stone: #9D9993;

  /* Semânticos */
  --bg: var(--ime-offwhite);
  --bg-alt: var(--ime-mist);
  --bg-dark: var(--ime-graphite);
  --text: var(--ime-graphite);
  --text-muted: var(--ime-brown);
  --accent: var(--ime-taupe);
  --border: var(--ime-sand);

  /* Sistema */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --shadow-soft: 0 10px 30px rgba(37, 32, 33, .08);
  --radius-card: 8px;
  --radius-pill: 999px;
  --header-h: 72px;
  --container: 1200px;
  --gutter: 24px;
  --section-y: 80px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 1025px) {
  :root {
    --gutter: 48px;
    --section-y: 128px;
  }
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

@media (min-width: 1025px) {
  body { font-size: 18px; line-height: 1.7; }
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 .5em;
  color: inherit;
}

h1 { font-size: 38px; line-height: 1.1; letter-spacing: -.01em; }
h2 { font-size: 30px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }

@media (min-width: 1025px) {
  h1 { font-size: 64px; line-height: 1.05; }
  h2 { font-size: 44px; line-height: 1.15; }
  h3 { font-size: 24px; line-height: 1.3; }
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

::selection { background: var(--ime-taupe); color: var(--ime-graphite); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Utilitários ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 768px; }

.center { text-align: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ime-brown);
  margin: 0 0 16px;
}

.eyebrow--light { color: var(--accent); }

@media (min-width: 1025px) { .eyebrow { font-size: 13px; } }

.lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (min-width: 1025px) { .lead { font-size: 19px; } }

.filete {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 24px;
}

.section-head { margin-bottom: 56px; }
.section-head.center h2,
.section-head.center .lead { margin-inline: auto; }
.section-head .lead { max-width: 720px; margin-top: 8px; }

/* ---------- Títulos de seção em uma linha ---------- */
@supports (container-type: inline-size) {
  .container--narrow,
  .section-head,
  .programa__intro,
  .ambiente__content { container-type: inline-size; }

  .servicos h2,
  .diferenciais h2,
  .evolucao h2,
  .como-funciona h2,
  .faq h2,
  .cta-final h2 { white-space: nowrap; }

  .servicos h2 { font-size: min(30px, calc(100cqw / 17.58)); }
  .diferenciais h2 { font-size: min(30px, calc(100cqw / 16.94)); }
  .evolucao h2 { font-size: min(30px, calc(100cqw / 11.81)); }
  .como-funciona h2 { font-size: min(30px, calc(100cqw / 7.34)); }
  .faq h2 { font-size: min(30px, calc(100cqw / 11.60)); }
  .cta-final h2 { font-size: min(30px, calc(100cqw / 16.00)); }

  @media (min-width: 1025px) {
    .manifesto h2,
    .equipe h2 { white-space: nowrap; }

    .manifesto h2 { font-size: min(44px, calc(100cqw / 20.33)); }
    .programa__intro h2 { font-size: min(44px, calc(100cqw / 19.70)); }
    .servicos h2 { font-size: min(44px, calc(100cqw / 17.58)); }
    .diferenciais h2 { font-size: min(44px, calc(100cqw / 16.94)); }
    .equipe h2 { font-size: min(44px, calc(100cqw / 23.57)); }
    .ambiente__content h2 { font-size: min(44px, calc(100cqw / 17.29)); }
    .evolucao h2 { font-size: min(44px, calc(100cqw / 11.81)); }
    .como-funciona h2 { font-size: min(44px, calc(100cqw / 7.34)); }
    .faq h2 { font-size: min(44px, calc(100cqw / 11.60)); }
    .cta-final h2 { font-size: min(44px, calc(100cqw / 16.00)); }
  }
}

/* Títulos longos que quebram linha com equilíbrio */
.programa__intro h2,
.ambiente__content h2 { text-wrap: balance; }

@media (max-width: 1024px) {
  .manifesto h2,
  .equipe h2 { text-wrap: balance; }
}

.programa__intro h2 { font-size: clamp(30px, 2.7vw, 40px); }
.ambiente__content h2 { font-size: clamp(30px, 3.2vw, 44px); }

section { padding-block: var(--section-y); scroll-margin-top: var(--header-h); }

.section--dark {
  background: var(--bg-dark);
  color: var(--ime-offwhite);
}

.section--cocoa {
  background: var(--ime-cocoa);
  color: var(--ime-offwhite);
}

/* Textura de favo (hexágonos) a 4–8% */
.texture-favo { position: relative; isolation: isolate; }
.texture-favo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/svg/favo-claro.svg');
  background-repeat: repeat;
  opacity: .03;
  pointer-events: none;
  z-index: -1;
}

.texture-favo-dark { position: relative; isolation: isolate; }
.texture-favo-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/svg/favo-escuro.svg');
  background-repeat: repeat;
  opacity: .03;
  pointer-events: none;
  z-index: -1;
}

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              box-shadow .3s var(--ease), transform .3s var(--ease);
}

.btn--primary {
  background: var(--ime-graphite);
  color: var(--ime-offwhite);
}
.btn--primary:hover {
  background: var(--ime-cocoa);
  box-shadow: var(--shadow-soft);
}

.btn--secondary {
  background: transparent;
  border-color: var(--ime-graphite);
  color: var(--ime-graphite);
}
.btn--secondary:hover {
  background: var(--ime-graphite);
  color: var(--ime-offwhite);
}

.btn--accent {
  background: var(--accent);
  color: var(--ime-graphite);
}
.btn--accent:hover {
  background: var(--ime-offwhite);
  box-shadow: var(--shadow-soft);
}

.btn--lg { height: 56px; padding-inline: 36px; }

.link-arrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size .35s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(246, 245, 245, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}

.header.scrolled {
  background: rgba(246, 245, 245, .94);
  box-shadow: 0 1px 0 rgba(37, 32, 33, .08), 0 8px 24px rgba(37, 32, 33, .06);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ime-graphite);
}

.logo__symbol {
  display: inline-block;
  width: 40px;
  height: 40px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url('../assets/svg/arvore.svg') no-repeat center / contain;
  mask: url('../assets/svg/arvore.svg') no-repeat center / contain;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__text strong {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 19px;
  letter-spacing: .3em;
}

.logo__text small {
  font-size: 8.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ime-taupe-dark);
}

.nav {
  display: none;
  margin-left: auto;
  gap: 32px;
  align-items: center;
}

.nav a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  transition: color .25s var(--ease);
}

.nav a:not(.btn):hover { color: var(--ime-taupe-dark); }

.nav__cta-mobile { display: none; }

.header__cta { display: none; }

.menu-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ime-graphite);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: rgba(246, 245, 245, .98);
    backdrop-filter: blur(12px);
    padding: 40px var(--gutter) 0;
    gap: 8px;
    overflow-y: auto;
  }

  .nav.is-open a:not(.btn) {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    padding: 10px 0;
  }

  .nav.is-open .nav__cta-mobile {
    display: flex;
    width: calc(100% + var(--gutter) * 2);
    height: auto;
    min-height: 52px;
    margin: auto calc(var(--gutter) * -1) 0;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(37, 32, 33, .12);
    padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
  }
}

@media (min-width: 1025px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; height: 44px; padding-inline: 22px; }
  .menu-toggle { display: none; }
  .logo__symbol { width: 44px; height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 80px;
  overflow: hidden;
}

@media (min-width: 1025px) {
  .hero { padding-top: calc(var(--header-h) + 96px); padding-bottom: 128px; }
}

.hero__watermark {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 760px;
  aspect-ratio: 489 / 511;
  background-color: var(--ime-offwhite);
  opacity: .05;
  pointer-events: none;
  z-index: -1;
  -webkit-mask: url('../assets/svg/arvore.svg') no-repeat center / contain;
  mask: url('../assets/svg/arvore.svg') no-repeat center / contain;
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1025px) {
  .hero__grid { grid-template-columns: 50fr 50fr; gap: 56px; }
}

.hero__content h1 { color: var(--ime-offwhite); margin-bottom: 24px; }

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.25;
  color: var(--ime-offwhite);
  margin-bottom: 20px;
}

@media (min-width: 1025px) { .hero__tagline { font-size: 38px; } }

.hero__desc {
  color: rgba(246, 245, 245, .82);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.hero__meta {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ime-stone);
  margin: 0;
}

.hero__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(246, 245, 245, .14);
  border-radius: 16px;
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 1024px) {
  .hero__media {
    width: calc(100% + var(--gutter) * 2);
    max-width: none;
    margin-inline: calc(var(--gutter) * -1);
    border-radius: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  }
  .hero__media::after { border-radius: 0; border-inline: 0; }
}

/* ---------- Manifesto ---------- */
.manifesto .filete { margin-bottom: 24px; }

.manifesto h2 { margin-bottom: 24px; }

.manifesto__logo {
  display: block;
  width: auto;
  height: 56px;
  margin: 0 auto 28px;
  opacity: .9;
}

@media (min-width: 1025px) {
  .manifesto__logo { height: 72px; margin-bottom: 32px; }
}

.manifesto__text {
  max-width: 760px;
  margin: 0 auto 56px;
  font-size: 17px;
  color: var(--text-muted);
}

@media (min-width: 1025px) { .manifesto__text { font-size: 19px; } }

.manifesto__text p { margin: 0 0 16px; }
.manifesto__text p:last-child { margin-bottom: 0; }

.pilares {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pilares li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.pilares .ico { width: 28px; height: 28px; color: var(--accent); margin-bottom: 4px; }

.pilares strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.pilares span {
  font-size: 12px;
  color: var(--text-muted);
}

@media (min-width: 641px) {
  .pilares { gap: 24px; }
  .pilares .ico { width: 36px; height: 36px; margin-bottom: 8px; }
  .pilares strong { font-size: 24px; }
  .pilares span { font-size: 14px; }
}

/* ---------- Programa ---------- */
.programa { overflow: visible; }

.programa__grid {
  display: grid;
  gap: 56px;
}

@media (min-width: 1025px) {
  .programa__grid {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
  }

  .programa__intro {
    position: sticky;
    top: calc(var(--header-h) + 48px);
  }
}

.selo {
  display: inline-flex;
  border: 1px solid rgba(246, 245, 245, .28);
  border-radius: var(--radius-card);
  padding: 20px 26px;
  margin-bottom: 32px;
}

.selo__logo {
  display: block;
  height: 120px;
  aspect-ratio: 524 / 375;
  background-color: var(--ime-offwhite);
  -webkit-mask: url('../assets/svg/IMG_0303.svg') no-repeat center / contain;
  mask: url('../assets/svg/IMG_0303.svg') no-repeat center / contain;
}

.programa__intro h2 { color: var(--ime-offwhite); margin-bottom: 16px; }

.programa__intro p {
  color: rgba(246, 245, 245, .8);
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .programa__intro { text-align: center; }
}

/* Timeline dos 5 componentes */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), rgba(174, 153, 137, .25));
}

@media (min-width: 1025px) {
  .timeline::before { left: 27px; }
}

.timeline__item {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 0 0 40px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__num {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ime-cocoa);
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  z-index: 1;
}

@media (min-width: 1025px) {
  .timeline__num { width: 56px; height: 56px; font-size: 20px; }
}

.timeline__item h3 {
  color: var(--ime-offwhite);
  margin-bottom: 6px;
}

.timeline__item p {
  color: rgba(246, 245, 245, .72);
  font-size: 16px;
  margin: 0;
}

.programa__closing { margin-top: 72px; }

.frase-impacto {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.25;
  color: var(--ime-offwhite);
  max-width: 640px;
  margin: 0 auto 16px;
}

@media (min-width: 1025px) { .frase-impacto { font-size: 40px; } }

.nota {
  font-size: 13px;
  color: var(--ime-stone);
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Serviços ---------- */
.cards-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 641px) {
  .cards-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

.card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--ime-mist);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

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

.card .ico {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 24px;
}

.card h3 { margin-bottom: 12px; }

.card p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

.card__cta {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ime-brown);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.card__cta:hover {
  color: var(--ime-cocoa);
  border-color: var(--ime-cocoa);
}

.servicos__cta {
  margin-top: 48px;
  text-align: center;
}

/* Carrossel (mobile/tablet) */
.carousel { position: relative; }

.carousel-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ime-sand);
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.carousel-dots button.is-active {
  background: var(--ime-taupe-dark);
  transform: scale(1.35);
}

@media (max-width: 1024px) {
  .cards-grid.is-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    gap: 16px;
    cursor: grab;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .cards-grid.is-carousel::-webkit-scrollbar { display: none; }

  .cards-grid.is-carousel.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }

  .cards-grid.is-carousel .card {
    flex: 0 0 min(85%, 420px);
    scroll-snap-align: center;
  }

  .carousel-dots { display: flex; }
}

/* ---------- Diferenciais ---------- */
.diferenciais { background: var(--bg-alt); padding-bottom: 0; }

.dif-list { border-top: 1px solid var(--ime-sand); }

.dif { border-bottom: 1px solid var(--ime-sand); }

.dif__summary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.dif__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  flex: none;
  min-width: 56px;
}

.dif__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  flex: 1;
}

.dif__toggle {
  flex: none;
  width: 32px;
  height: 32px;
  position: relative;
}

.dif__toggle::before,
.dif__toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--ime-brown);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}

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

.dif.open .dif__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

.dif__body {
  padding: 0 0 28px;
  padding-left: 76px;
  max-width: 860px;
}

.dif__body p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .dif__body { display: none; }
  .dif.open .dif__body { display: block; }
}

@media (min-width: 1025px) {
  .dif { position: relative; padding: 40px 0; }

  .dif__summary {
    display: block;
    padding: 0;
    cursor: default;
    pointer-events: none;
  }

  .dif__num {
    position: absolute;
    left: 0;
    top: 30px;
    min-width: 0;
    font-size: 72px;
  }

  .dif__title {
    display: block;
    font-size: 26px;
    margin-left: 138px;
  }

  .dif__body {
    display: block !important;
    padding: 12px 0 0;
    padding-left: 138px;
    max-width: 998px;
  }

  .dif__toggle { display: none; }
}

.dif-frase {
  margin-top: var(--section-y);
  padding-block: 96px;
}

.dif-frase__sub {
  color: rgba(246, 245, 245, .7);
  font-size: 16px;
  margin: 0;
}

/* ---------- Evolução dos pacientes ---------- */
.evolucao .lead { margin-bottom: 16px; }

.evolucao__text {
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 17px;
  color: var(--text-muted);
}

@media (min-width: 1025px) { .evolucao__text { font-size: 19px; } }

/* ---------- Carrossel de galeria (reutilizável) ---------- */
.gallery-carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto 48px;
}

.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  cursor: grab;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.gallery-track figure {
  flex: 0 0 88%;
  scroll-snap-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
  border: 1px solid var(--ime-mist);
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(37, 32, 33, .08);
}

.gallery-track--portrait figure { aspect-ratio: 4 / 5; }
.gallery-track--wide figure { aspect-ratio: 4 / 3; }
.gallery-track--square figure { aspect-ratio: 1 / 1; }

.gallery-track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-nav {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.gallery-nav button {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(246, 245, 245, .35);
  background: rgba(37, 32, 33, .55);
  color: var(--ime-offwhite);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.gallery-nav button:hover { background: rgba(37, 32, 33, .8); }
.gallery-nav button:active { transform: translateY(-50%) scale(.94); }
.gallery-nav button svg { width: 20px; height: 20px; }
.gallery-nav [data-gallery-prev] { left: 12px; }
.gallery-nav [data-gallery-next] { right: 12px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ime-sand);
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.gallery-dots button.is-active {
  background: var(--ime-taupe-dark);
  transform: scale(1.35);
}

.gallery-note {
  max-width: 520px;
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 641px) {
  .gallery-track figure { flex-basis: min(58%, 380px); }
}

@media (min-width: 1025px) {
  .gallery-track figure { flex-basis: calc((100% - 20px) / 2); }
  .gallery-nav { display: block; }
}

.evolucao__nota {
  max-width: 520px;
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Página de procedimentos estéticos ---------- */
.procedimentos__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 641px) {
  .procedimentos__grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

.procedimentos__head {
  margin: 72px auto 40px;
  text-align: center;
}

.procedimentos__head h2 { margin-bottom: 0; }

.procedimentos__head--sub { margin-top: 56px; }

.proc__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ---------- Equipe ---------- */
.equipe-grid {
  display: grid;
  gap: 32px;
  max-width: 920px;
  margin-inline: auto;
}

@media (min-width: 641px) {
  .equipe-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

.equipe-card__photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--ime-mist);
}

.equipe-card__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.equipe-card:hover .equipe-card__photo img { transform: scale(1.04); }

.equipe-card__body { padding-top: 24px; }

.equipe-card__body h3 { margin-bottom: 4px; }

.registro {
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  filter: brightness(.85);
  margin-bottom: 12px;
}

.equipe-card__body > p:not(.registro) {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

.equipe-card__social {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(174, 153, 137, .45);
  padding-bottom: 1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.equipe-card__social:hover {
  color: var(--ime-brown);
  border-color: var(--ime-brown);
}

.equipe__cta {
  margin-top: 56px;
  text-align: center;
}

/* ---------- Ambiente (vídeo) ---------- */
.ambiente__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1025px) {
  .ambiente__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.ambiente__content h2 { color: var(--ime-offwhite); }

.ambiente__content p {
  color: rgba(246, 245, 245, .8);
  max-width: 480px;
}

.ambiente__meta {
  font-size: 14px;
  color: var(--ime-stone);
  margin-bottom: 32px;
}

.ambiente__meta a {
  color: var(--ime-offwhite);
  text-decoration: underline;
  text-decoration-color: rgba(246, 245, 245, .35);
  text-underline-offset: 3px;
  transition: text-decoration-color .25s var(--ease);
}

.ambiente__meta a:hover { text-decoration-color: var(--ime-offwhite); }

.ambiente__video {
  display: flex;
  justify-content: center;
}

.ambiente__video video {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(246, 245, 245, .14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  background: #000;
}

.ambiente__gallery {
  display: grid;
  gap: 24px;
  margin-top: 56px;
}

@media (min-width: 641px) {
  .ambiente__gallery { grid-template-columns: repeat(2, 1fr); }
}

.ambiente__gallery figure { margin: 0; }

.ambiente__gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid rgba(246, 245, 245, .12);
}

.ambiente__gallery figcaption {
  font-size: 13px;
  color: var(--ime-stone);
  margin-top: 12px;
}

/* ---------- Como funciona ---------- */
.como-funciona { border-top: 1px solid rgba(246, 245, 245, .08); }

.passos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
}

@media (min-width: 641px) {
  .passos { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (min-width: 1025px) {
  .passos { grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }

  .passos::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: .5;
  }
}

.passo { position: relative; text-align: left; }

@media (min-width: 1025px) { .passo { text-align: center; } }

.passo__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1025px) { .passo__num { margin-inline: auto; } }

.passo h3 { color: var(--ime-offwhite); font-size: 21px; margin-bottom: 8px; }

@media (min-width: 1025px) { .passo h3 { font-size: 22px; } }

.passo p {
  font-size: 15px;
  color: rgba(246, 245, 245, .72);
  margin: 0;
}

/* ---------- FAQ ---------- */
.accordion {
  border-top: 1px solid var(--border);
}

.acc-item {
  border-bottom: 1px solid var(--border);
}

.acc-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  transition: color .25s var(--ease);
}

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

.acc-item summary:hover { color: var(--ime-taupe-dark); }

@media (min-width: 1025px) { .acc-item summary { font-size: 22px; } }

.acc-item__icon {
  flex: none;
  width: 32px;
  height: 32px;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}

.acc-item__icon::before,
.acc-item__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--ime-graphite);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}

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

.acc-item[open] .acc-item__icon { background: var(--accent); border-color: var(--accent); }
.acc-item[open] .acc-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.acc-item__body { padding: 0 56px 28px 0; }

.acc-item__body p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--accent);
  color: var(--ime-graphite);
  position: relative;
  overflow: hidden;
}

.cta-final__watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  aspect-ratio: 489 / 511;
  background-color: var(--ime-offwhite);
  opacity: .1;
  pointer-events: none;
  -webkit-mask: url('../assets/svg/arvore.svg') no-repeat center / contain;
  mask: url('../assets/svg/arvore.svg') no-repeat center / contain;
}

.cta-final h2 { margin-bottom: 12px; position: relative; }

.cta-final p {
  color: rgba(37, 32, 33, .78);
  margin-bottom: 32px;
  position: relative;
}

.cta-final .btn { position: relative; }

.cta-final__meta {
  font-size: 14px;
  margin: 24px 0 0 !important;
}

/* ---------- Footer ---------- */
.footer { padding-block: 72px 32px; }

.footer__grid {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(246, 245, 245, .12);
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 32px; }
}

.logo--footer { color: var(--ime-offwhite); }
.logo--footer .logo__text small { color: var(--ime-taupe); }

.footer__slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin-top: 16px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 8px;
}

.footer__col a,
.footer__col span {
  font-size: 15px;
  color: rgba(246, 245, 245, .78);
  text-decoration: none;
}

.footer__col a { transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--accent); }

.footer__legal {
  padding-top: 28px;
  font-size: 13px;
  color: var(--ime-stone);
}

.footer__legal p { margin-bottom: 8px; }

.footer__legal a {
  color: rgba(246, 245, 245, .66);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.footer__aviso { font-size: 12px; }

.footer__dev {
  font-size: 12px;
  margin-top: 12px;
  color: var(--ime-taupe);
}

.footer__dev a {
  color: var(--ime-taupe);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .25s var(--ease);
}

.footer__dev a:hover { color: var(--ime-offwhite); }

/* ---------- WhatsApp flutuante ---------- */
.zap-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ime-graphite);
  color: var(--ime-offwhite);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(37, 32, 33, .3);
  text-decoration: none;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}

.zap-float svg { width: 27px; height: 27px; }
.zap-float:hover { transform: translateY(-4px); background: var(--ime-cocoa); }

.zap-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  background: var(--ime-graphite);
  color: var(--ime-offwhite);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 -8px 24px rgba(37, 32, 33, .18);
  transition: transform .15s var(--ease);
}

.zap-bar svg { width: 20px; height: 20px; }

@media (max-width: 1024px) {
  .zap-float { display: none; }
  .zap-bar {
    height: auto;
    min-height: 56px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 1025px) {
  .zap-bar { display: none; }
}

/* ---------- Animações de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
