@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

/* Clean font configurations and smooth scroll offsets */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for floating sticky header */
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  overflow-x: hidden;
}

/* Custom Display font classes */
.font-display {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

/* Before & After Interactive Range Input Thumb Reset & Sizing */
#before-after-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 50px;
  height: 50px;
  background: transparent;
  cursor: ew-resize;
  border-radius: 50%;
}

#before-after-slider input[type="range"]::-moz-range-thumb {
  width: 50px;
  height: 50px;
  background: transparent;
  cursor: ew-resize;
  border: none;
  border-radius: 50%;
}

/* Animations for premium interactive feeling */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.on-scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.on-scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom gradient background animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Sombra suave e brilho externo para textos no Hero Mobile */
@media (max-width: 639px) {
  .hero-text-shadow-mobile {
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.75);
  }
  
  .mobile-ambient-gradient {
    padding: 1.5rem 1rem !important;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Efeito Premium de Escala ao pairar o mouse */
.hover-scale-premium {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-scale-premium:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px -15px rgba(27, 32, 116, 0.12);
}

/* FAQ Accordion Buttery-Smooth Dynamic Slide transition override */
.faq-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top-width: 0px !important;
}

.faq-content.active {
  opacity: 1;
  padding-top: 1rem !important;
  padding-bottom: 1.5rem !important;
  border-top-width: 1px !important;
}

@keyframes heroCardEntrance {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-hero-entrance {
  animation: heroCardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Swiper pagination and navigation styling */
.gallery-swiper .swiper-pagination-bullet-active {
  background-color: #007ebb !important;
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
  color: #007ebb !important;
}

/* Ajuste dinâmico e compacto da Galeria no Mobile (telas < 640px) */
@media (max-width: 639px) {
  .gallery-swiper .swiper-slide > div {
    aspect-ratio: 16 / 10 !important;
  }
  .gallery-swiper .swiper-slide img {
    position: absolute !important;
    inset: 0 !important;
    margin: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
  }
}

/* Custom Hero Background Layout for Smiling Patient Image */
#inicio {
  background-color: #ffffff;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;
}

/* Desktop: Position the background image in the center-right to avoid overlapping with text or the facade card */
@media (min-width: 1024px) {
  #inicio {
    background-position: 45% center;
    background-size: 38% auto;
  }
}

/* Tablet: Position background image centered behind the content */
@media (max-width: 1023px) and (min-width: 640px) {
  #inicio {
    background-position: center 30%;
    background-size: cover;
  }
}

/* Mobile: Position background image centered behind the content */
@media (max-width: 639px) {
  #inicio {
    background-position: center 30%;
    background-size: cover;
  }
}



