html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

section[id] {
  scroll-margin-top: 116px;
}

.no-scrollbar::-webkit-scrollbar,
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar,
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes fl-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: fl-marquee 30s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
  .animate-marquee:hover {
    animation-play-state: paused;
  }
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

[data-carousel].is-draggable {
  cursor: grab;
  touch-action: pan-y;
}

[data-carousel].is-draggable .carousel-slide {
  user-select: none;
}

[data-carousel].is-draggable .carousel-slide img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

[data-carousel].is-dragging {
  cursor: grabbing;
}

.clip-hex {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-container {
  perspective: 1000px;
  width: 260px;
  height: 300px;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.hex-inner {
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.hex-container.is-flipped .hex-inner {
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .hex-container:hover .hex-inner,
  .hex-container:focus-within .hex-inner {
    transform: scale(1.05) rotateY(180deg);
  }
}

.hex-front,
.hex-back {
  backface-visibility: hidden;
}

.hex-back {
  transform: rotateY(180deg);
}

.hex-front::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Diagonal gradient from top-left to center */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 40%, transparent 50%);
  pointer-events: none; /* Ensures the gloss doesn't block clicks or touches */
  z-index: 10;
}

.modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.modal-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

input[type="checkbox"] {
  accent-color: #E85D53;
}

.mobile-panel-open {
  overflow: hidden;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.24);
  font-size: 1.7rem;
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px) scale(1);
}

.whatsapp-float.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-float.is-visible.is-hidden {
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  pointer-events: none;
}

@media (max-width: 640px) {
  .carousel-arrow {
    display: none !important;
  }

  .home-hero-carousel {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 700px;
  }

  .whatsapp-float {
    left: 16px;
    right: auto;
    bottom: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.55rem;
  }

  .home-hero-carousel .carousel-track,
  .home-hero-carousel .carousel-slide {
    height: 100%;
  }
}

@media (max-width: 768px) {
  #app > section:first-child {
    padding-top: 3.5rem !important;
    padding-bottom: 3rem !important;
  }

  #app > section.home-hero-carousel:first-child {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #app section[class*="py-24"] {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }

  #app section[class*="py-20"] {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  #app section[class*="py-16"] {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  #app section[class*="pt-20"] {
    padding-top: 4rem !important;
  }

  #app section[class*="pb-16"] {
    padding-bottom: 3.5rem !important;
  }
}

@media (max-width: 640px) {
  #app > section:first-child {
    padding-top: 2.5rem !important;
    padding-bottom: 2.25rem !important;
  }

  #app > section.home-hero-carousel:first-child {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #app section[class*="py-24"] {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  #app section[class*="py-20"] {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  #app section[class*="py-16"] {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  #app section[class*="pt-20"] {
    padding-top: 3rem !important;
  }

  #app section[class*="pb-16"] {
    padding-bottom: 2.5rem !important;
  }
}
