/* =============================================
   Ads Plus Health — Custom CSS
   ============================================= */

/* ─── Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { font-family: 'Inter', system-ui, sans-serif; }

/* ─── Navbar ────────────────────────────────── */
#navbar {
  background: transparent;
}

#navbar[data-scrolled="true"] {
  background: rgba(12, 27, 77, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* Default nav state: transparent (over hero) */
.nav-link {
  color: rgba(255,255,255,0.80);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: #14B8A6;
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 1px;
}
.nav-link:hover,
.nav-link-active {
  color: #ffffff;
}
.nav-link:hover::after,
.nav-link-active::after {
  transform: scaleX(1);
}

/* When navbar scrolled: keep white text, teal underline */
#navbar[data-scrolled="true"] .nav-link {
  color: rgba(255,255,255,0.80);
}
#navbar[data-scrolled="true"] .nav-link:hover {
  color: #fff;
}

/* ─── Hero Slider ───────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 600px;
}

/* ─── Animated background blobs ─────────────── */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: blob-drift 9s ease-in-out infinite alternate;
}
.hero-blob-1 {
  width: 500px; height: 500px;
  background: #14B8A6;
  opacity: 0.10;
  top: -120px; right: -80px;
  animation-duration: 9s;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 350px; height: 350px;
  background: #2563EB;
  opacity: 0.12;
  bottom: -60px; left: -60px;
  animation-duration: 12s;
  animation-delay: -4s;
}
.hero-blob-3 {
  width: 250px; height: 250px;
  background: #6366f1;
  opacity: 0.10;
  top: 40%; right: 25%;
  animation-duration: 7s;
  animation-delay: -2s;
}
@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -25px) scale(1.12); }
}

/* ─── Cycling product text ───────────────────── */
#hero-cycle {
  display: inline-block;
  color: #14B8A6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ─── Hero product image frame (right side) ──── */
.hero-img-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
#hero-product-img {
  border-radius: 1.5rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile: image absolute top-right, text full width */
@media (max-width: 767px) {
  /* Text column full width, image floated top-right */
  .slide .grid {
    display: block !important;
    position: relative !important;
  }
  .hero-text-col {
    position: relative;
    z-index: 2;
    padding-right: 140px; /* leave room for the image */
  }
  .hero-img-col {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 130px !important;
    z-index: 3;
  }
  .hero-img-col .hero-img-frame {
    width: 130px;
    max-width: 130px;
    padding-bottom: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: transparent;
  }
  .hero-img-col .hero-img-frame::before { display: none; }
  .hero-img-col .hero-img-label { display: none; }
  #hero-product-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    opacity: 0.92;
    filter: none;
    animation: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    border: none;
    border-radius: 1rem;
    aspect-ratio: 1;
  }
}
.hero-img-frame::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 2rem;
  background: radial-gradient(circle at 50% 50%, rgba(20,184,166,0.18) 0%, transparent 70%);
  z-index: 0;
}
#hero-product-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(20,184,166,0.25);
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: hero-img-float 5s ease-in-out infinite;
}
@keyframes hero-img-float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-14px) rotate(0.5deg); }
}
/* Label below image */
.hero-img-label {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  padding: 6px 18px;
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 2;
}

/* ─── Hero stats mini-bar ────────────────────── */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}
.hero-stat {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.hero-stat strong {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}

/* ─── Hero category pills ────────────────────── */
.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
}
.hero-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 9999px;
  color: rgba(255,255,255,0.82);
  font-size: 0.72rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.2s;
  white-space: nowrap;
}
.hero-cat-pill:hover {
  background: rgba(20,184,166,0.28);
  border-color: #14B8A6;
  color: #fff;
  transform: translateY(-1px);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.slide.active .slide-bg {
  transform: scale(1);
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,27,77,0.92) 0%, rgba(12,27,77,0.75) 50%, rgba(12,27,77,0.45) 100%);
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  width: 24px;
  border-radius: 4px;
  background: #14B8A6;
}

/* ─── Section headers ───────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 9999px;
  color: #14B8A6;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #14B8A6;
  border-radius: 50%;
}

/* ─── Product Cards ─────────────────────────── */
.product-card {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(12,27,77,0.12);
  border-color: rgba(20, 184, 166, 0.4);
}
.product-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover img {
  transform: scale(1.04);
}

/* ─── Buttons ───────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  background: #14B8A6;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 9999px;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary:hover {
  background: #0d9488;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20,184,166,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ─── Stats section ─────────────────────────── */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.stat-card::after {
  content: '';
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.stat-card:last-child::after { display: none; }

/* ─── Why us cards ──────────────────────────── */
.why-card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  transition: all 0.3s;
}
.why-card:hover {
  border-color: rgba(20,184,166,0.4);
  box-shadow: 0 16px 40px rgba(12,27,77,0.10);
  transform: translateY(-4px);
}

/* ─── Scroll animations ─────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Image gallery ─────────────────────────── */
.gallery-thumb {
  cursor: pointer;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: #14B8A6;
}
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ─── Form inputs ───────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: #0F172A;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20,184,166,0.15);
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

/* ─── Responsive tweaks ─────────────────────── */
@media (max-width: 768px) {
  .hero-slider {
    min-height: 500px;
    height: 90vh;
  }
}

/* ─── Page hero (inner pages) ───────────────── */
.page-hero {
  background: linear-gradient(135deg, #0C1B4D 0%, #1a2d6e 60%, #0d2a4a 100%);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,0.12) 0%, transparent 70%);
}
