/* =========================================
   INDEX/HOME PAGE SPECIFIC STYLES
   ========================================= */

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding-top: 0; /* Removed gap entirely */
  background: linear-gradient(135deg, #fdf4f8 0%, #f8f1fb 100%);
}

.hero-slider,
.hero-slide {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center; /* Default */
  transform: scale(1.02);
  animation: heroKenBurns 7s ease-out forwards;
  z-index: 1;
  background-color: var(--primary-light);
}

/* Hero slide backgrounds are centered by default (line 32 above) */

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 42%, transparent 100%),
    linear-gradient(180deg, rgba(253,244,248,0.1) 0%, rgba(140,123,170,0.05) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  padding-top: 180px; /* Shift content further down for massive logo */
}

.hero-title {
  margin-bottom: 20px;
  color: var(--text-dark);
  text-shadow: 0 10px 30px rgba(255,255,255,0.35);
}

.hero-subtitle {
  font-size: 1.125rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
  color: #2c2c2c; /* Darker color for better contrast against light areas */
  font-weight: 600; /* Increased font weight */
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5); /* Glowing outline to separate from background */
  padding: 5px 15px; /* Slight padding */
  background: rgba(255, 255, 255, 0.15); /* Very subtle background for extra separation */
  backdrop-filter: blur(2px); /* Slight blur */
  border-radius: 4px;
}

.hero-btn {
  box-shadow: 0 18px 40px rgba(231, 163, 197, 0.22);
}

.hero-slide-copy > * {
  opacity: 0;
  transform: translateY(28px);
}

.swiper-slide-active .hero-slide-copy .hero-title {
  animation: heroFadeUp 0.9s ease forwards 0.35s;
}

.swiper-slide-active .hero-slide-copy .hero-subtitle {
  animation: heroFadeUp 0.9s ease forwards 0.55s;
}

.swiper-slide-active .hero-slide-copy .hero-btn {
  animation: heroFadeUp 0.9s ease forwards 0.75s;
}

.swiper-slide-active .hero-slide-bg {
  animation: heroKenBurns 7s ease-out forwards;
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-dark);
  z-index: 5;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-slider-nav:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 28px rgba(140, 123, 170, 0.16);
}

.hero-slider-prev {
  left: 28px;
}

.hero-slider-next {
  right: 28px;
}

.hero-slider-pagination {
  position: absolute;
  left: 50% !important;
  bottom: 34px !important;
  transform: translateX(-50%);
  z-index: 5;
}

.hero-slider-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.65);
  opacity: 1;
  margin: 0 6px !important;
}

.hero-slider-pagination .swiper-pagination-bullet-active {
  width: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.12);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-color);
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--box-shadow-soft);
  border: 1px solid rgba(0,0,0,0.02);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--primary);
  font-size: 2rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--text-light);
  transform: scale(1.1) rotate(5deg);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-soft);
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(231, 163, 197, 0.1);
  z-index: 1;
  pointer-events: none;
}

/* Treatments Grid */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.treatment-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--box-shadow-soft);
  background: var(--bg-color);
}

.treatment-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.treatment-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 24px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  color: white;
}

.treatment-info h3 {
  color: white;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.treatment-info p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Before & After */
.comparison-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-soft);
  background-color: var(--primary-light);
  touch-action: pan-y pinch-zoom;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

.image-before, .image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-before img, .image-after img {
  width: 800px;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

.image-after {
  width: 50%;
  border-right: 2px solid white;
}

.slider-range {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: ew-resize;
  touch-action: pan-y pinch-zoom;
}

.slider-handle::after {
  content: '< >';
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -1px;
}

/* Testimonials (Swiper overrides) */
.testimonials-slider {
  padding-bottom: 50px !important;
}

.testimonial-card {
  padding: 40px;
  background: var(--bg-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-soft);
  text-align: center;
  margin: 10px; /* Swiper handles layout, just soft margin */
  border: 1px solid rgba(0,0,0,0.02);
}

.stars {
  color: #E7A3C5;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.review-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
}

/* Products */
.product-card {
  text-align: center;
  transition: var(--transition-smooth);
}

.product-img-wrapper {
  background: var(--primary-light);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.product-img-wrapper img {
  margin: 0 auto;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  max-width: 80%;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.1) translateY(-10px);
}

.product-card h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

/* Contact Section */
.contact-wrapper {
  background: var(--bg-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-soft);
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-form {
  padding: 60px;
}

.contact-form .section-title {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 24px;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition-smooth);
  background-color: var(--bg-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(231, 163, 197, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.map-container {
  height: 100%;
  min-height: 400px;
  background: var(--accent);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }

  .hero-slide-overlay {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.52) 42%, rgba(255,255,255,0.2) 100%),
      linear-gradient(180deg, rgba(253,244,248,0.16) 0%, rgba(140,123,170,0.1) 100%);
  }

  .hero-content {
    max-width: 100%;
    padding: 120px 18px 110px;
  }

  .hero-title {
    font-size: clamp(2.35rem, 9vw, 3.3rem);
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    letter-spacing: 1.4px;
    margin-bottom: 26px;
    padding: 8px 12px;
  }

  .hero-slider-nav {
    width: 40px;
    height: 40px;
    top: auto;
    bottom: 76px;
    transform: none;
  }

  .hero-slider-nav:hover {
    transform: scale(1.04);
  }

  .hero-slider-prev {
    left: 14px;
  }

  .hero-slider-next {
    right: 14px;
  }

  .hero-slider-pagination {
    bottom: 26px !important;
  }

  .promo-banner {
    padding: 24px !important;
    gap: 20px !important;
    align-items: stretch !important;
  }

  .promo-content,
  .promo-image,
  .promo-pricing {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  .promo-content {
    text-align: center;
  }

  .promo-content h2 {
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.12;
  }

  .promo-content p {
    font-size: 1rem !important;
  }

  .promo-image img {
    max-height: 220px !important;
  }

  .promo-pricing {
    padding-top: 6px;
  }
  
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 34px 20px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-control {
    min-height: 52px;
    font-size: 16px;
  }
  
  .comparison-slider {
    height: 340px;
  }
  
  .image-before img, .image-after img {
    width: 100%;
    height: 340px;
  }

  .map-container {
    min-height: 320px;
  }

  .cursor-glow {
    display: none;
  }
}
