/* =========================================================
   Dr. Fabio Ribeiro — Landing Page
   Custom theme layer (complements Tailwind Play CDN)
   ========================================================= */

:root {
  --gold: #d4af37;
  --gold-muted: #c5a059;
  --night: #0a0e17;
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
}

/* Better focus visibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Reusable components ---------- */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 9999px;
  color: #0a0e17;
  background: linear-gradient(120deg, #e6c976, #d4af37 55%, #c5a059);
  box-shadow: 0 10px 30px -12px rgba(212, 175, 55, 0.65);
  overflow: hidden;
  transition: transform 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux);
  will-change: transform;
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.55), transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-lux);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(212, 175, 55, 0.8);
}
.btn-gold:hover::after {
  transform: translateX(120%);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.35s ease, color 0.35s ease, background-color 0.35s ease, transform 0.4s var(--ease-lux);
}
.btn-ghost:hover {
  border-color: rgba(212, 175, 55, 0.6);
  color: #e6c976;
  background: rgba(212, 175, 55, 0.06);
  transform: translateY(-2px);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-lux);
}
.nav-link:hover {
  color: #e6c976;
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-link {
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: #e6c976;
}

.social {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.35s var(--ease-lux);
}
.social svg {
  height: 1.15rem;
  width: 1.15rem;
}
.social:hover {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-3px);
}

/* ---------- Header states ---------- */
#header {
  background: transparent;
}
#header.is-scrolled {
  background: rgba(7, 10, 17, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0;
  padding-bottom: 0;
}
#header.is-scrolled nav {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

#mobile-menu.is-open {
  transform: translateY(0);
  pointer-events: auto;
}
#menu-toggle.is-active .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menu-toggle.is-active .menu-bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle.is-active .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.no-scroll {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  will-change: transform;
}
.hero-ring--spin {
  animation: ring-spin 45s linear infinite;
}
@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}
.scroll-cue {
  animation: cue 2s ease-in-out infinite;
}@keyframes cue {
  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.4;
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
    transform-origin: top;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}
.marquee__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  min-width: 100%;
  animation: marquee-scroll var(--marquee-duration, 30s) linear infinite;
  will-change: transform;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1.5rem;
  padding-right: 1.5rem;
}
.marquee[data-paused="true"] .marquee__track {
  animation-play-state: paused;
}
.marquee__item {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.marquee__sep {
  color: var(--gold);
}
.marquee--cards .marquee__group {
  gap: 1.5rem;
}
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Testimonial cards ---------- */
.t-card {
  width: 20rem;
  flex-shrink: 0;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(22, 29, 46, 0.85), rgba(10, 14, 23, 0.85));
  padding: 1.75rem;
  transition: border-color 0.4s ease, transform 0.5s var(--ease-lux);
}
.marquee--cards:hover .t-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-4px);
}
.t-stars {
  color: var(--gold);
  letter-spacing: 0.25em;
  font-size: 0.8rem;
}
.t-card blockquote {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}
.t-card figcaption {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}
.t-card figcaption span {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Sobre: word reveal ---------- */
[data-word-reveal] .word {
  color: rgba(255, 255, 255, 0.18);
  transition: color 0.25s ease;
}
[data-word-reveal] .word.is-on {
  color: rgba(255, 255, 255, 0.82);
}
[data-word-reveal] .word.is-gold {
  color: var(--gold);
}

.feature {
  border-left: 1px solid rgba(212, 175, 55, 0.35);
  padding-left: 1.25rem;
}

/* ---------- Procedimentos ---------- */
.proc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(22, 29, 46, 0.7), rgba(10, 14, 23, 0.9));
  transition: transform 0.5s var(--ease-lux), border-color 0.5s ease;
}
.proc-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-6px);
}
.proc-media {
  position: relative;
  height: 16rem;
  overflow: hidden;
}
.proc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.85), transparent 60%);
}
.proc-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-lux);
  will-change: transform;
}
.proc-card:hover .proc-media img {
  transform: scale(1.06);
}
.proc-body {
  padding: 1.75rem;
}
.proc-index {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.proc-title {
  margin-top: 0.6rem;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #fff;
}
.proc-body p {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1023px) {
  .proc-media {
    height: 14rem;
  }
}

@media (min-width: 1024px) {
  .proc-track > .grid {
    flex-wrap: nowrap;
    flex-shrink: 0;
  }
  .proc-card {
    flex: 0 0 26rem;
  }
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline__line {
  position: absolute;
  left: 0.45rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(212, 175, 55, 0.15));
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
.timeline__item {
  position: relative;
  padding-bottom: 2.75rem;
}
.timeline__item:last-child {
  padding-bottom: 0;
}
.timeline__dot {
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  height: 1rem;
  width: 1rem;
  border-radius: 9999px;
  border: 2px solid var(--gold);
  background: var(--night);
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.1);
}
.timeline__year {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.timeline__title {
  margin-top: 0.35rem;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: #fff;
}
.timeline__text {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 34rem;
}

/* ---------- Before / After slider ---------- */
.ba {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 4 / 3;
  cursor: ew-resize;
  touch-action: none;
}
.ba__img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba__after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
  will-change: clip-path;
}
.ba__handle {
  position: absolute;
  top: 50%;
  left: var(--ba-pos, 50%);
  transform: translate(-50%, -50%);
  height: 3rem;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #0a0e17;
  background: linear-gradient(120deg, #e6c976, #d4af37);
  box-shadow: 0 8px 26px -6px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.ba__handle svg {
  height: 1.25rem;
  width: 1.25rem;
}
.ba__handle::before {
  content: "";
  position: absolute;
  top: -50vh;
  height: 200vh;
  width: 2px;
  background: rgba(230, 201, 118, 0.75);
}
.ba__tag {
  position: absolute;
  top: 1rem;
  z-index: 2;
  border-radius: 9999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.ba__tag--before {
  right: 1rem;
  background: rgba(10, 14, 23, 0.6);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.ba__tag--after {
  left: 1rem;
  background: rgba(212, 175, 55, 0.9);
  color: #0a0e17;
}

/* ---------- Diferenciais ---------- */
.diff-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 20, 32, 0.55);
  padding: 2rem;
  transition: transform 0.5s var(--ease-lux), border-color 0.5s ease, background-color 0.5s ease;
}
.diff-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(22, 29, 46, 0.7);
}
.diff-icon {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
}
.diff-card h3 {
  margin-top: 1.25rem;
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: #fff;
}
.diff-card p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- FAQ ---------- */
.faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.faq__q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.3s ease;
}
.faq__q:hover {
  color: var(--gold);
}
.faq__icon {
  position: relative;
  flex-shrink: 0;
  height: 1.25rem;
  width: 1.25rem;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-lux), opacity 0.4s var(--ease-lux);
}
.faq__icon::before {
  height: 1px;
  width: 100%;
}
.faq__icon::after {
  height: 100%;
  width: 1px;
}
.faq__item.is-open .faq__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}
.faq__a {
  overflow: hidden;
  height: 0;
}
.faq__a p {
  padding-bottom: 1.6rem;
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
  max-width: 42rem;
}

/* ---------- Localização ---------- */
.loc-icon {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold);
}
.loc-map__frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 4 / 3;
  will-change: transform;
}
.loc-map__frame iframe {
  height: 100%;
  width: 100%;
  border: 0;
  filter: grayscale(1) invert(0.9) contrast(0.85) brightness(0.95);
  transition: filter 0.6s ease;
}
.loc-map__frame:hover iframe {
  filter: grayscale(0.35) invert(0.88) contrast(0.9) brightness(1);
}
.loc-map__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.55), transparent 45%);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 9999px;
  padding: 0.9rem 1.15rem;
  color: #0a0e17;
  background: linear-gradient(120deg, #e6c976, #d4af37 60%, #c5a059);
  box-shadow: 0 14px 40px -10px rgba(212, 175, 55, 0.7);
  transition: transform 0.4s var(--ease-lux);
  will-change: transform;
}
.wa-float svg {
  height: 1.4rem;
  width: 1.4rem;
}
.wa-float__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.03);
}
.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.55);
  animation: wa-pulse 2.4s var(--ease-lux) infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.7);
    opacity: 0;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
@media (max-width: 640px) {
  .wa-float__label {
    display: none;
  }
  .wa-float {
    padding: 1rem;
  }
}

/* ---------- Motion / reveal defaults ---------- */
.reveal {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-bg {
    transform: none !important;
  }
  .marquee__track {
    animation: none;
  }
}
