:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  --brand-primary: #0f9d82;
  --brand-dark: #073b34;
  --brand-gradient: linear-gradient(135deg, #0b8470 0%, #073b34 100%);
  --accent-gold: #f59e0b;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  background: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #0f9d82;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0a6a5c;
}

/* Reveal Animations on Scroll */
.rv {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.rv.in {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation Link Underline Effect */
.nav-a {
  position: relative;
  padding: 0.5rem 0;
  color: #334155;
  font-weight: 600;
  font-size: 0.925rem;
  transition: color 0.25s ease;
}

.nav-a:hover {
  color: #0b8470;
}

.nav-a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: 0;
  background: linear-gradient(90deg, #0f9d82, #f59e0b);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-a:hover:after,
.nav-a.active:after {
  width: 100%;
}

.nav-a.active {
  color: #0b8470;
}

/* Floating Animation */
.float-slow {
  animation: flSlow 6s ease-in-out infinite;
}

.float-fast {
  animation: flFast 4s ease-in-out infinite;
}

@keyframes flSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes flFast {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Pulse Glow */
.pulse-badge {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-panel-dark {
  background: rgba(11, 31, 58, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Card Hover Elevation */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(15, 157, 130, 0.18), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
}

/* Image Zoom on Card Hover */
.img-zoom-container {
  overflow: hidden;
}

.img-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover .img-zoom-container img,
.group:hover .img-zoom-container img {
  transform: scale(1.08);
}

/* FAQ Dropdown Smooth Animation */
.faq-b {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

/* Gradient Borders */
.gradient-border-gold {
  position: relative;
}
.gradient-border-gold::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #f59e0b, #10b981);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.7;
}

/* Gradient Shimmer on Button */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  transition: none;
}

.btn-shimmer:hover::after {
  left: 130%;
  transition: all 0.9s ease;
}

/* Hero Radial Glow */
.hero-glow-1 {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 70%);
}

.hero-glow-2 {
  background: radial-gradient(circle, rgba(15, 157, 130, 0.25) 0%, rgba(15, 157, 130, 0) 70%);
}

/* Treatment Dark Glassmorphism Cards */
.treatment-card-glass {
  background: linear-gradient(160deg, rgba(15, 33, 56, 0.85) 0%, rgba(8, 22, 38, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.treatment-card-glass:hover {
  transform: translateY(-8px);
  border-color: rgba(52, 211, 182, 0.5);
  box-shadow: 0 25px 45px -10px rgba(15, 157, 130, 0.3), 0 0 20px rgba(245, 158, 11, 0.1);
}

.treatment-card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 182, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.treatment-card-glass:hover::before {
  opacity: 1;
}

/* Modern FAQ Accordion Styling */
.faq-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.faq-card:hover {
  border-color: #0f9d82;
  box-shadow: 0 10px 25px -5px rgba(15, 157, 130, 0.1);
}

.faq-card.active {
  border-color: #0f9d82;
  box-shadow: 0 14px 30px -8px rgba(15, 157, 130, 0.15);
  background: #ffffff;
}

/* Testimonial Multi-card */
.testimonial-card-modern {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.testimonial-card-modern:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 157, 130, 0.4);
  box-shadow: 0 20px 35px -10px rgba(15, 157, 130, 0.15);
}

.testimonial-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: linear-gradient(90deg, #0f9d82, #f59e0b);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-card-modern:hover::before {
  opacity: 1;
}

/* Brand-New Treatment Box Architecture */
.treatment-box-new {
  background: #ffffff;
  border-radius: 1.75rem;
  border: 1.5px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.treatment-box-new:hover {
  transform: translateY(-8px);
  border-color: #0f9d82;
  box-shadow: 0 25px 40px -12px rgba(15, 157, 130, 0.18), 0 10px 20px -6px rgba(0, 0, 0, 0.04);
}

.treatment-box-new .treatment-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.treatment-box-new .treatment-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-box-new:hover .treatment-img-wrap img {
  transform: scale(1.08);
}

.treatment-box-new .icon-medallion {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.treatment-box-new:hover .icon-medallion {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 10px 20px -4px rgba(15, 157, 130, 0.3);
}

/* Testimonial Responsive Carousel Slide Card */
.testimonial-slide-card {
  height: 100%;
  background: #ffffff;
  border-radius: 1.75rem;
  border: 1.5px solid #e2e8f0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.testimonial-slide-card:hover {
  transform: translateY(-6px);
  border-color: #0f9d82;
  box-shadow: 0 20px 35px -10px rgba(15, 157, 130, 0.15);
}

.testimonial-slide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 3.5px;
  background: linear-gradient(90deg, #042147, #12adc3);
  border-radius: 0 0 4px 4px;
}

/* Carousel Drag & Track Utilities */
#tc-viewport {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

#tc-viewport:active {
  cursor: grabbing;
}

.tc-slide {
  box-sizing: border-box;
}

/* Treatment Zigzag Cards & Interactive Enhancements */
.treatment-zigzag-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  position: relative;
}

.treatment-zigzag-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 157, 130, 0.3);
}

.treatment-zigzag-card .fa-circle-check {
  transition: transform 0.25s ease;
}

.treatment-zigzag-card:hover .fa-circle-check {
  transform: scale(1.15);
}

/* Smooth Hide Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}