/* responsive.css - Custom viewport overrides for HSN Hair Transplant Centre */

@media (max-width: 991.98px) {
  body {
    padding-bottom: 60px !important;
  }

  /* Mobile Navbar - Transparent initially, Glassmorphism on scroll */
  #main-navbar {
    height: 75px;
    display: flex;
    align-items: center;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  #main-navbar.navbar-scrolled {
    background: rgba(248, 247, 244, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(29, 29, 31, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02) !important;
  }

  .navbar-brand .logo-emblem-svg {
    width: 38px !important;
    height: 38px !important;
  }

  .navbar-brand .logo-text-top {
    font-size: 12px !important;
    letter-spacing: 0.03em !important;
  }

  .navbar-brand .logo-text-bottom {
    font-size: 8px !important;
    letter-spacing: 0.1em !important;
  }

  /* Hero Overrides */
  .hero-title {
    font-size: 2.25rem !important;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 2rem;
  }

  .hero-indicators {
    display: none !important;
    /* Hide vertical indicators on mobile */
  }

  /* Sections Padding */
  .py-24 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .py-32 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }

  /* Gallery buttons on mobile */
  .gallery-filter-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.75rem;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-tab-btn {
    padding: 0.75rem 1rem !important;
    font-size: 8px !important;
  }
}

/* Global Mobile Typography Standardization */
@media (max-width: 767.98px) {

  h1,
  .h1,
  .hr-hero-title,
  .about-hero-title,
  .text-4xl,
  .text-5xl,
  .text-6xl,
  .text-7xl {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    color: var(--color-primary);
  }

  h2,
  .h2,
  .hr-heading-lg,
  .editorial-title,
  .hr-heading-md,
  .about-intro-title,
  .our-story-title,
  .who-we-are-title,
  .mission-vision-title,
  .core-values-title,
  .wc-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    color: var(--color-primary);
  }

  h3,
  .h3,
  .hr-card-title,
  .hr-feature-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    color: var(--color-primary);
  }

  h4,
  .h4,
  .hr-small-title {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    color: var(--color-primary);
  }

  h5,
  .h5 {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    color: var(--color-primary);
  }

  h6,
  .h6 {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    color: var(--color-primary);
  }

  p,
  .text-body,
  .hr-text-body,
  .editorial-desc {
    font-size: 1rem !important;
    /* 16px */
    line-height: 1.6 !important;
    color: #3f3f46;
  }

  /* Reduce letter spacing on mobile to prevent ugly wrapping of badges */
  .tracking-widest {
    letter-spacing: 0.05em !important;
  }

  .tracking-wider {
    letter-spacing: 0.025em !important;
  }

  .tracking-wide {
    letter-spacing: 0.01em !important;
  }

  /* Before After Slider aspect-ratio adjustment */
  .ba-slider-outer {
    aspect-ratio: 1/1 !important;
    /* Square aspect ratio for mobile screens */
  }

  .metric-card {
    text-align: center;
    padding: 1.5rem 1rem !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .metric-card:last-child {
    border-bottom: none !important;
  }

  .metric-num {
    font-size: 2.75rem !important;
  }

  /* Services */
  .service-card {
    height: 400px !important;
  }

  .service-card-title {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {

  /* Small screen fine-tuning */
  .hero-title {
    font-size: 1.75rem !important;
  }

  .navbar-brand .logo-text-top {
    font-size: 11.5px !important;
  }

  .navbar-brand .logo-text-bottom {
    font-size: 7.5px !important;
    letter-spacing: 0.1em !important;
  }

  .btn-gold-outline,
  .btn-gold-solid {
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: center;
    justify-content: center;
  }

  .doc-tab-btn {
    padding: 0.75rem 1rem !important;
    font-size: 8px !important;
  }
}

/* Extra-small mobile screen optimizations */
@media (max-width: 399.98px) {
  .navbar-brand .logo-emblem-svg {
    width: 34px !important;
    height: 34px !important;
  }

  .navbar-brand .logo-text-top {
    font-size: 10.5px !important;
  }

  .navbar-brand .logo-text-bottom {
    font-size: 7px !important;
    letter-spacing: 0.08em !important;
  }
}

/* ── Hide all banner page labels on mobile only ── */
@media (max-width: 768px) {

  /* Service/inner page hero labels */
  .hr-hero-label,
  .about-hero-label,
  .hero-label-v2,
  /* Home page badge (line + text) */
  .hero-badge-container {
    display: none !important;
  }

  /* ── All inner-page heroes (testimonials, before-after, etc.): center image on mobile ── */
  /* Remove the desktop left-to-right fade mask and center the subject */
  .hr-hero::before {
    background-position: center top 80px !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    -webkit-mask: none !important;
    mask: none !important;
  }

  /* ── Home Page Hero Statistics (Mobile Only Visibility Fix) ── */
  .hero-content .border-top.border-secondary .col-4 span.text-primary {
    color: #ffffff !important; /* Make the numbers stark white */
    font-weight: 800 !important; /* Extra bold */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 4px 20px rgba(0, 0, 0, 0.6) !important;
  }

  .hero-content .border-top.border-secondary .col-4 span.text-secondary {
    color: #C9A46A !important; /* Keep the luxury gold color but brighten it */
    font-weight: 700 !important; /* Bold */
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9) !important;
    font-size: 10px !important; /* Slightly larger for mobile readability */
  }
}