/* Navegação em cápsula, composição centralizada e entradas com desfoque. */
:root {
  --header-height: 108px;
  --motion-blur: 10px;
  --motion-distance: 26px;
  --motion-duration: 850ms;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-height);
  padding-block: 16px;
  background: transparent;
}
.site-header.is-scrolled {
  box-shadow: none;
}
.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(170px, 1fr);
  gap: 18px;
  max-width: 1320px;
  height: 76px;
  padding-inline: 23px;
  border: 1px solid #ffffffb8;
  border-radius: 999px;
  background: rgb(248 246 241 / 68%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    0 8px 28px #002f2c0d,
    inset 0 1px 0 #ffffffa6;
  transition:
    background 250ms ease,
    box-shadow 250ms ease,
    border-color 250ms ease;
}
.is-scrolled .header-inner {
  background: rgb(248 246 241 / 82%);
  border-color: #ffffffc7;
  box-shadow:
    0 8px 28px #002f2c17,
    inset 0 1px 0 #ffffffad;
}

/* O fundo da hero começa no topo; somente seu conteúdo reserva espaço para a nav. */
.hero {
  padding-top: var(--header-height);
}
.header-inner > .brand {
  justify-self: start;
}
.primary-nav {
  justify-content: center;
  gap: 2px;
  margin: 0;
}
.primary-nav > a {
  padding: 9px 10px;
  border-radius: 999px;
  transition:
    background 220ms ease,
    color 220ms ease;
}
.primary-nav > a::after {
  display: none;
}
.primary-nav > a.is-active {
  background: #e4ece3;
  color: var(--petroleum);
}
.primary-nav > a:hover {
  background: #eaf0e8;
}
.header-cta {
  justify-self: end;
  border-radius: 999px;
  font-size: 11px;
  gap: 14px;
  padding-inline: 17px;
  min-height: 44px;
}

.treatments-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.treatments-heading .eyebrow {
  justify-content: center;
}
.treatments-intro {
  max-width: 600px;
  display: block;
}
.treatments-intro > p {
  max-width: 560px;
}
.treatments-intro .carousel-controls {
  justify-content: center;
  margin-top: 22px;
}
.treatment-content {
  text-align: center;
}
.treatment-content > .text-link {
  justify-content: center;
  gap: 14px;
}
.treatments-bottom {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 35px;
  text-align: center;
}

/* As três imagens compartilham alinhamento, altura e proporção. */
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.gallery-item {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  min-height: 330px;
  aspect-ratio: 1.1;
  border: 0;
  text-align: left;
  background: #dfe7dd;
}
.gallery-main {
  grid-column: auto;
}
.gallery-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--motion-ease);
}
.gallery-item:hover .gallery-photo {
  transform: scale(1.045);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, #002f2cce);
  pointer-events: none;
}
.gallery-meta {
  position: absolute;
  bottom: 24px;
  left: 23px;
  right: 65px;
  z-index: 1;
}
.gallery-meta strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.5;
}
.ai-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 4px;
  color: var(--petroleum-dark);
  background: #f8f6f1f0;
  font-size: 10px;
}
.gallery-expand {
  bottom: 23px;
  right: 20px;
  z-index: 1;
  background: var(--off-white);
}
.reception-visual {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.reception-visual > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}
.reception-visual > figcaption {
  position: absolute;
  bottom: 15px;
  left: 14px;
  right: 14px;
  border-radius: 4px;
  background: #f8f6f1ed;
  padding: 5px 8px;
  color: var(--petroleum);
  font-size: 10px;
}
#gallery-view {
  position: relative;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
#gallery-view > img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Glyph branco original do kit oficial WhatsApp, sem redesenho. */
.whatsapp-float {
  width: 62px;
  height: 62px;
  min-height: 62px;
  padding: 13px;
  border-radius: 50%;
  background: var(--petroleum);
  outline: 0;
  box-shadow: 0 6px 23px #003f3b24;
}
.whatsapp-float:hover {
  background: var(--petroleum-dark);
  transform: translateY(-3px);
}
.whatsapp-float > img {
  width: 36px;
  height: 36px;
}
.whatsapp-float > .whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--petroleum-dark);
  color: var(--white);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  pointer-events: none;
}
.whatsapp-float:hover > .whatsapp-tooltip,
.whatsapp-float:focus-visible > .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Apenas elementos entrando em cena recebem camada temporária de animação. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    --reveal-delay: 0ms;
    transition:
      opacity var(--motion-duration) var(--motion-ease) var(--reveal-delay),
      translate var(--motion-duration) var(--motion-ease) var(--reveal-delay),
      filter var(--motion-duration) var(--motion-ease) var(--reveal-delay);
  }
  .js-reveal [data-reveal]:not(.is-visible) {
    opacity: 0.12;
    translate: 0 var(--motion-distance);
    filter: blur(var(--motion-blur));
  }
  .js-reveal [data-reveal].is-visible {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
  .js-reveal [data-reveal].is-revealing {
    will-change: opacity, translate, filter;
  }
  .js-reveal [data-reveal].is-settled {
    filter: none;
  }
  .js-reveal [data-reveal].is-immediate {
    transition: none;
  }
  .header-inner {
    animation: navigation-arrive 700ms var(--motion-ease) both;
  }
  .benefit.is-visible > .icon {
    animation: benefit-icon-arrive 850ms var(--motion-ease) var(--reveal-delay)
      both;
  }
  .benefit > .icon use {
    stroke-dasharray: 90;
    stroke-dashoffset: 0;
  }
  .benefit.is-visible > .icon use {
    animation: benefit-icon-draw 950ms ease var(--reveal-delay) both;
  }
  .benefits-intro.is-visible > .short-line {
    animation: benefit-line-reveal 900ms var(--motion-ease) both;
  }
  @keyframes benefit-icon-arrive {
    0% {
      transform: translateY(9px) scale(0.85) rotate(-6deg);
      opacity: 0.15;
    }
    65% {
      transform: translateY(-3px) scale(1.03) rotate(1deg);
      opacity: 1;
    }
    100% {
      transform: translateY(0) scale(1) rotate(0);
      opacity: 1;
    }
  }
  @keyframes benefit-icon-draw {
    from {
      stroke-dashoffset: 90;
    }
    to {
      stroke-dashoffset: 0;
    }
  }
  @keyframes benefit-line-reveal {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }
  @keyframes navigation-arrive {
    from {
      opacity: 0.3;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (min-width: 1024px) and (max-width: 1250px) {
  .header-inner {
    gap: 12px;
    padding-inline: 18px;
  }
  .primary-nav > a {
    padding-inline: 8px;
    font-size: 11px;
  }
  .header-cta {
    gap: 10px;
    padding-inline: 13px;
  }
}
@media (max-width: 1023px) {
  :root {
    --header-height: 96px;
  }
  .site-header {
    padding-block: 12px;
  }
  .header-inner {
    display: flex;
    height: 72px;
    padding-inline: 20px;
    gap: 18px;
  }
  .primary-nav {
    top: calc(100% + 10px);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px 24px 24px;
    box-shadow: 0 12px 28px #002f2c10;
    background: rgb(248 246 241 / 94%);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    max-height: calc(100dvh - var(--header-height) - 20px);
  }
  .primary-nav > a {
    font-size: 16px;
    padding: 12px 15px;
  }
  .primary-nav .nav-mobile-cta {
    border-radius: 999px;
  }
  .primary-nav > a.nav-mobile-cta:hover {
    background: var(--petroleum-dark);
    color: white;
  }
  .menu-toggle {
    border-radius: 50%;
  }
  .gallery-item {
    min-height: 300px;
  }
  .gallery-meta {
    left: 18px;
    bottom: 20px;
    right: 49px;
  }
  .gallery-meta strong {
    font-size: 18px;
  }
  .gallery-expand {
    right: 13px;
    bottom: 20px;
  }
  .treatments-intro {
    max-width: 560px;
  }
}
@media (max-width: 767px) {
  :root {
    --header-height: 88px;
    --motion-blur: 6px;
    --motion-distance: 19px;
    --hero-mobile-photo-height: clamp(390px, 118vw, 680px);
  }
  .site-header {
    padding-block: 10px;
  }
  .hero {
    min-height: 0;
    padding-top: var(--hero-mobile-photo-height);
    background-color: var(--off-white);
    background-image:
      linear-gradient(
        180deg,
        rgb(248 246 241 / 0%) 0,
        rgb(248 246 241 / 0%) calc(var(--hero-mobile-photo-height) - 116px),
        rgb(248 246 241 / 55%) calc(var(--hero-mobile-photo-height) - 62px),
        var(--off-white) var(--hero-mobile-photo-height)
      ),
      url("../assets/images/generated/hero-mobile-ai.webp");
    background-size:
      100% 100%,
      100% auto;
    background-position:
      center top,
      center top;
    background-repeat: no-repeat;
  }
  .hero-inner {
    min-height: 0;
    padding-top: 18px;
    padding-bottom: 34px;
  }
  .hero-bottom {
    position: static;
    display: block;
    margin-top: 30px;
  }
  .hero-promises {
    border-color: var(--line);
    padding-top: 22px;
  }
  .hero-promises > span {
    color: var(--petroleum);
    font-size: 10px;
    text-shadow: none;
  }
  .hero-photo-caption {
    position: absolute;
    top: calc(var(--hero-mobile-photo-height) - 44px);
    left: var(--gutter);
    right: auto;
    width: max-content;
    padding: 4px 8px;
    font-size: 9px;
    z-index: 1;
  }
  .header-inner {
    width: calc(100% - 24px);
    height: 68px;
    padding-inline: 15px;
  }
  .header-cta {
    font-size: 10px;
    gap: 9px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .gallery-item {
    min-height: 300px;
    aspect-ratio: 1.5;
    grid-column: auto;
  }
  .gallery-meta strong {
    font-size: 25px;
  }
  .gallery-meta {
    bottom: 24px;
    left: 24px;
  }
  .gallery-expand {
    bottom: 26px;
    right: 22px;
  }
  .reception-visual {
    min-height: 300px;
  }
  .treatments-intro > p {
    max-width: 560px;
  }
  .treatments-intro .carousel-controls {
    margin-top: 20px;
  }
  .whatsapp-float {
    width: 58px;
    height: 58px;
    min-height: 58px;
    right: 18px;
    bottom: 20px;
    padding: 12px;
  }
  .whatsapp-float > img {
    width: 34px;
    height: 34px;
  }
}
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .header-inner,
  .is-scrolled .header-inner {
    background: rgb(248 246 241 / 97%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .header-inner,
  .is-scrolled .header-inner,
  .primary-nav {
    background: var(--off-white);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media print {
  .site-header {
    position: static;
    height: auto;
    padding: 0;
  }
  .header-inner {
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero {
    padding-top: 0;
  }
  [data-reveal] {
    opacity: 1 !important;
    filter: none !important;
    translate: none !important;
  }
  .whatsapp-float {
    display: none;
  }
}
