/* ==========================================================================
   KLARITY EYE CARE HOSPITAL — RESPONSIVE STYLES & ACCESSIBILITY
   Breakpoints: 1440px | 1200px | 1024px | 991px | 768px | 576px | 390px | 360px
   ========================================================================== */

/* --- HERO: tablet / mobile composition --- */
@media (max-width: 1200px) {
  .hero-grid {
    column-gap: 32px;
  }

  .hero-badge-doctor { left: -4%; }
  .hero-badge-location { right: -1%; }
}

@media (max-width: 991px) {
  .hero-section {
    min-height: 0;
    display: block;
    padding: 32px 0 72px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "content"
      "visual"
      "trust";
    row-gap: 0;
  }

  .hero-content {
    max-width: 640px;
  }

  .hero-visual {
    justify-self: center;
    max-width: 520px;
    margin: 48px auto 36px;
  }

  .hero-layer-rings { inset: -10%; }
  .hero-layer-glow { inset: -14%; }
  .hero-lens { border-radius: 200px 30px 200px 30px; }

  .hero-trust {
    margin-top: 12px;
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-line-brand {
    font-size: clamp(42px, 12vw, 64px);
  }

  .hero-line-lead,
  .hero-line-sub {
    font-size: clamp(1.35rem, 5.4vw, 1.75rem);
  }

  .hero-lens { border-radius: 140px 24px 140px 24px; }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 24px 0 56px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-visual {
    margin: 36px auto 40px;
  }

  .hero-layer-rings { inset: -6%; }
  .hero-layer-glow { inset: -8%; }

  .hero-badge {
    padding: 8px 12px 8px 8px;
    gap: 9px;
  }

  .hero-badge-doctor {
    left: 4%;
    bottom: -6%;
  }

  .hero-badge-location {
    display: none;
  }

  .hero-trust {
    gap: 10px 20px;
  }
}

/* --- 2. DESKTOPS & SMALL LAPTOPS (<= 1200px) --- */
@media (max-width: 1200px) {
  :root {
    --nav-height: 75px;
  }
  
  .section-padding {
    padding: 80px 0;
  }
  
  .section-padding-lg {
    padding: 100px 0;
  }
  
  .stat-counter-number {
    font-size: 2.75rem;
  }
  
  .about-experience-card {
    left: 0;
    top: 10px;
  }
}

/* --- 3. TABLETS LANDSCAPE (<= 991px) --- */
@media (max-width: 991px) {
  :root {
    --nav-height: 70px;
    --topbar-height: auto;
  }

  /* Disable Custom Cursor on Touch/Tablet */
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }

  .top-bar {
    padding: 8px 0;
  }
  
  .top-bar .d-none-tablet {
    display: none !important;
  }
  
  /* Mobile Navigation Menu */
  .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 320px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #FFFFFF !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15) !important;
    padding: 80px 24px 30px !important;
    transition: right 0.4s var(--ease-out-expo), visibility 0.4s !important;
    overflow-y: auto !important;
    z-index: 1050 !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: hidden;
  }
  
  .navbar-collapse.show {
    right: 0 !important;
    visibility: visible !important;
  }
  
  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
  }
  
  .mobile-nav-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-toggler {
    border: none;
    padding: 8px;
    font-size: 24px;
    color: var(--color-primary-navy);
    background: rgba(10, 25, 47, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .mobile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-body);
    border: none;
    color: var(--color-primary-navy);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  
  .navbar-nav {
    gap: 8px;
    margin-bottom: 24px;
  }
  
  .nav-link {
    padding: 10px 14px !important;
    font-size: 16px;
  }
  
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid var(--color-border-subtle) !important;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* About Section */
  .about-image-stack {
    margin-bottom: 40px;
  }
  
  .about-experience-card {
    left: 20px;
    top: 20px;
  }
  
  .about-img-secondary {
    right: 10px;
    bottom: -20px;
  }

  /* Journey Timeline */
  .journey-timeline-line {
    display: none;
  }
  
  .journey-step-card {
    margin-bottom: 20px;
  }

  /* Tech Section */
  .tech-scanner-stage {
    margin-bottom: 30px;
  }

  /* Stat box lines */
  .stat-box::after {
    display: none;
  }
  
  .stat-box {
    margin-bottom: 24px;
  }

  /* Appointment Sidebar */
  .appointment-info-sidebar {
    padding: 32px 24px;
  }
  
  .appointment-form-wrapper {
    padding: 32px 24px;
  }
}

/* --- 4. TABLETS PORTRAIT & PHONES (<= 768px) --- */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .section-padding-lg {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-features-list {
    grid-template-columns: 1fr;
  }
  
  .doctor-card-master {
    padding: 24px;
  }
  
  .doctor-credentials-grid {
    grid-template-columns: 1fr;
  }
  
  .badge-avatar {
    width: 36px;
    height: 36px;
  }
  
  .badge-icon-wrap {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  
  .badge-info h6 {
    font-size: 12.5px;
  }
  
  .badge-info p {
    font-size: 11px;
  }

  .treatment-featured-banner {
    padding: 24px;
  }
  
  .floating-actions {
    bottom: 20px;
    right: 20px;
  }
  
  .floating-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* --- 5. SMALL PHONES (<= 576px) --- */
@media (max-width: 576px) {
  .filter-btn {
    font-size: 12.5px;
    padding: 6px 14px;
  }
  
  .faq-accordion-header {
    padding: 16px 18px;
    font-size: 14.5px;
  }
  
  .site-footer {
    padding: 60px 0 24px;
  }
}

/* --- 6. VERY SMALL PHONES (<= 390px) --- */
@media (max-width: 390px) {
  .btn-header-phone span {
    display: none;
  }
  
  .btn-header-phone {
    padding: 8px 10px;
  }
}

/* --- 7. ACCESSIBILITY: REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .preloader-ring,
  .preloader-ring-inner,
  .preloader-pupil,
  .tpa-marquee-track,
  .tech-scan-overlay,
  .tech-scan-target {
    animation: none !important;
  }

  .hero-reflection,
  .hero-scroll-fill {
    display: none !important;
  }
  
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

/* ==========================================================================
   ABOUT PAGE RESPONSIVE STYLES
   ========================================================================== */

/* ---- 1200px ---- */
@media (max-width: 1200px) {
  .about-hero-grid {
    gap: 48px;
  }
  .about-story-grid {
    gap: 48px;
  }
  .founder-grid {
    grid-template-columns: 360px 1fr;
    gap: 56px;
  }
  .technology-grid {
    gap: 56px;
  }
  .pf-inner {
    gap: 56px;
  }
}

/* ---- 1024px ---- */
@media (max-width: 1024px) {
  .about-hero {
    padding-top: 44px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-hero-visual {
    height: 420px;
    max-width: 520px;
    margin: 0 auto;
  }

  .about-hero-optical-ring {
    width: 420px;
    height: 420px;
    right: -40px;
    top: 30%;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-story-legacy {
    text-align: left;
  }

  .legacy-statement {
    max-width: none;
    margin: 0;
  }

  .founder-grid {
    grid-template-columns: 300px 1fr;
    gap: 40px;
  }

  .technology-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .tech-img-inner img {
    height: 380px;
  }

  .pf-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pf-image-col {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---- 768px ---- */
@media (max-width: 768px) {
  .about-hero {
    padding-top: 36px;
    padding-bottom: 50px;
    min-height: auto;
  }

  .about-hero-headline { font-size: 2.25rem; }

  .about-hero-visual { height: 360px; }

  .about-hero-img-primary { width: 62%; }
  .about-hero-img-secondary { width: 46%; bottom: 20px; }


  .about-story,
  .about-founder,
  .about-expertise,
  .about-why-klarity,
  .about-testimonials,
  .about-final-cta {
    padding: 80px 0;
  }

  .about-patient-first,
  .about-technology {
    padding: 80px 0;
  }

  .about-visual-story { height: 50vh; min-height: 320px; }

  .about-vs-images { grid-template-columns: 100%; }
  .about-vs-img-2 { display: none; }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .founder-portrait-wrap {
    max-width: 280px;
    margin: 0 auto;
  }

  .founder-portrait-badge {
    width: 90px;
    height: 90px;
  }

  .testi-card { flex: 0 0 calc(100% - 0); }

  .about-mission-vision .mv-panel { padding: 80px 0; }

  .mv-statement { font-size: clamp(1.25rem, 4vw, 1.75rem); }

  .about-infrastructure { height: 50vh; min-height: 300px; }

  .infra-headline { font-size: clamp(1.5rem, 5vw, 2.5rem); }

  .final-cta-headline { font-size: clamp(2rem, 6vw, 3rem); }


  .wk-item {
    grid-template-columns: 40px 1fr 28px;
    gap: 1rem;
  }

  .final-cta-contact {
    flex-direction: column;
    gap: 0.75rem;
  }
  .final-cta-sep { display: none; }

  .expertise-item {
    grid-template-columns: 40px 1fr 36px;
    gap: 1rem;
  }
}

/* ---- 576px ---- */
@media (max-width: 576px) {
  .about-hero {
    padding-top: 28px;
    padding-bottom: 40px;
    min-height: auto;
  }

  .about-hero-headline { font-size: 2rem; }

  .about-hero-visual {
    height: 300px;
    width: 100%;
    max-width: 380px;
    margin: 32px auto 0;
  }

  .about-hero-img-primary { width: 66%; }
  .about-hero-img-secondary { width: 46%; }


  .about-hero-ctas { flex-direction: column; }
  .about-hero-ctas .btn-klinik { width: 100%; justify-content: center; }

  .about-story-heading { font-size: 2rem; }

  .legacy-digit { font-size: 7rem; }

  .founder-portrait-wrap { max-width: 240px; }

  .expertise-title { font-size: 2rem; }

  .wk-title { font-size: 2rem; }

  .tech-pillars { gap: 1rem; }

  .final-cta-headline { font-size: 2rem; }

  .final-cta-actions { flex-direction: column; align-items: stretch; }
  .final-cta-actions .btn-klinik { width: 100%; justify-content: center; }

  .pf-journey { padding-left: 24px; }
}

/* ---- 390px / 360px ---- */
@media (max-width: 390px) {
  .about-hero-headline { font-size: 1.65rem; }

  .about-hero-visual {
    height: 260px;
    max-width: 320px;
  }


  .founder-portrait-wrap { max-width: 200px; }

  .mv-statement { font-size: 1.2rem; }

  .legacy-digit { font-size: 5.5rem; }
}

