/* ==========================================================================
   DR. REVATHI M. - PEDIATRIC DENTISTRY RESPONSIVE STYLES
   Breakpoints: 1200px, 992px, 768px, 576px, 400px
   ========================================================================== */

/* Large Desktops / Laptops (max-width: 1200px) */
@media (max-width: 1200px) {
  .hero-heading {
    font-size: 3.2rem;
  }
  
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-card-featured {
    grid-column: span 2;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Tablets & Small Laptops (max-width: 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .hero-lead-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-visual-wrapper {
    order: -1;
  }

  .hero-portrait-frame {
    max-width: 360px;
  }

  .hero-doctor-photo {
    height: 420px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-photo {
    height: 380px;
  }

  .philosophy-3cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .expertise-4grid {
    grid-template-columns: 1fr;
  }

  .conferences-cards-row {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    position: fixed;
    top: 85px;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(158, 140, 255, 0.25);
    border-radius: 24px;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-menu.nav-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-toggle {
    display: block;
  }

  .floating-navbar-container .btn-primary {
    display: none;
  }
}

/* Tablets & Mobile (max-width: 768px) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero-section {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .hero-heading {
    font-size: 2.5rem;
  }

  .hero-trust-cards {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card-featured {
    grid-column: span 1;
  }

  .form-grid-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pub-horizontal-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .pub-arrow-btn {
    align-self: flex-end;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .mobile-sticky-cta-bar {
    display: flex;
  }

  /* Orbiting tooth visual responsive scale */
  .tooth-orbit-container {
    min-height: 420px;
  }

  .orbit-ring-1 {
    width: 280px;
    height: 280px;
  }

  .orbit-ring-2 {
    width: 360px;
    height: 360px;
  }

  .orbit-center-tooth {
    width: 100px;
    height: 100px;
  }

  .orbiting-label {
    font-size: 0.82rem;
    padding: 0.45rem 0.95rem;
  }

  .pos-1  { top: 4%;  left: 6%; }
  .pos-2  { top: 4%;  right: 6%; }
  .pos-3  { top: 22%; right: 2%; }
  .pos-4  { top: 42%; right: 2%; }
  .pos-5  { bottom: 22%; right: 2%; }
  .pos-6  { bottom: 4%;  right: 6%; }
  .pos-7  { bottom: 4%;  left: 6%; }
  .pos-8  { bottom: 22%; left: 2%; }
  .pos-9  { top: 42%; left: 2%; }
  .pos-10 { top: 22%; left: 2%; }

  .floating-happier-bubble {
    top: -10px;
    right: 0;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .floating-credential-bubble {
    bottom: 10px;
    left: 0;
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }

  .about-floating-card {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }

  .appointment-wrapper {
    padding: 2.5rem 1.5rem;
  }

  .final-cta-box {
    padding: 3rem 1.5rem;
  }
}

/* Small Smart Phones (max-width: 480px) */
@media (max-width: 480px) {
  .hero-heading {
    font-size: 2.15rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .qual-degrees-row {
    flex-direction: column;
  }

  .research-counter-badge {
    flex-direction: column;
    text-align: center;
  }

  .counter-label-text {
    text-align: center;
  }
}

/* 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;
  }

  .ambient-orb, .orbit-ring-1, .orbit-ring-2, .pulsing-dot {
    animation: none !important;
  }
}
