/* ==========================================================================
   DR. RP SINGH - ORTHOPEDIC SURGEON WEBSITE
   Responsive Stylesheet & Breakpoints
   ========================================================================== */

/* --------------------------------------------------------------------------
   1440px+ SCREEN ENHANCEMENTS
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

/* --------------------------------------------------------------------------
   1200px BREAKPOINT (DESKTOP / SMALL LAPTOPS)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 1140px;
  }

 
  .hero-title {
    font-size: 2.85rem;
  }

  .hero-grid {
    gap: 40px;
  }

  .about-grid, .why-choose-grid {
    gap: 40px;
  }

  .treatments-grid, .blog-grid {
    gap: 20px;
  }
}

/* --------------------------------------------------------------------------
   992px BREAKPOINT (TABLETS & LANDSCAPE)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  /* Topbar */
  .topbar-info {
    gap: 16px;
  }
  .topbar-item span.hide-tablet {
    display: none;
  }
 .header-cta .btn-appointment{
    display: none !important; /* Hide appointment button on smaller desktops to save space */
  }

  .about-hero-editorial-grid{
    display: block;
  }

  html{
    overflow-x: hidden; /* Prevent horizontal scroll on smaller screens */
  }

  .about-highlight-box{
    position: relative;
  }

  /* Mobile Drawer Header */
  .mobile-drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 38px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .drawer-logo img {
    height: 38px;
    width: auto;
  }

  .drawer-close {
    background: transparent;
    border: none;
    font-size: 1.35rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .drawer-close:hover {
    background-color: var(--primary-light);
    color: var(--primary);
  }

  /* Header & Navigation Drawer */
  .navbar {
    height: 70px;
  }

  .logo-img {
    height: 44px;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1006;
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .mobile-toggle.active {
    color: var(--primary);
  }

  .nav-menu-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--surface);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
    padding: 24px 24px 30px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1005;
    overflow-y: auto;
  }

  .contact-card{
    grid-template-columns: 1fr !important;
   
    
  }
  .contact-form{
   padding: 20px !important;
  }

  .appointment-form{

    display: block !important;
  }

  .appointment-form .btn-lg{
    font-size: 11px !important;
 }

  .about-grid{

    grid-template-columns: 1fr !important;
  }

  .nav-menu-wrapper.active {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 10px 0;
    width: 100%;
    justify-content: space-between;
  }



  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 14px;
    margin-top: 6px;
    border-left: 2px solid var(--primary-light);
    width: 100%;
    display: none;
  }



  .header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .header-cta .btn-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 102, 153, 0.2);
  }

  .drawer-cta {
    display: block !important;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    width: 100%;
  }

  .drawer-cta .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
  }

  /* Overlay */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }



  /* Hero Section */
  .hero-slider {
    height: clamp(540px, 78vh, 640px);
  }

  .hero-content {
    padding: 30px 20px;
    max-width: 720px;
  }

  .hero-eyebrow {
    font-size: 0.78rem;
    padding: 8px 20px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(34px, 5.8vw, 48px);
    margin-bottom: 18px;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 600px;
  }

  .btn-hero-primary, .btn-hero-secondary {
    height: 48px;
    padding: 0 26px;
    font-size: 0.95rem;
  }

  /* Trust Strip */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* About Doctor Section */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-image-column {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  /* Stats Section */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Treatments Section */
  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

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

  /* Why Choose Section */
  .why-choose-grid {
    grid-template-columns: 1fr;
  }

  .why-choose-left {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  /* Credentials Section */
  .credentials-grid {
    grid-template-columns: 1fr;
  }

  /* Blog Grid */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   768px BREAKPOINT (MOBILE TABLETS & LARGE PHONES)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .topbar {
    display: none; /* Hide topbar on small mobile to maximize view height */
  }

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

  .hero-title {
    font-size: 2.35rem;
  }

  .doctor-card-frame img {
    height: 380px;
  }

  .trust-badge-card {
    padding: 12px 16px;
    gap: 12px;
  }

  .trust-badge-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .trust-badge-number {
    font-size: 1.25rem;
  }

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

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

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

  .testimonial-card {
    padding: 32px 24px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .cta-banner-box {
    padding: 40px 24px;
  }

  .cta-banner-box h2 {
    font-size: 1.85rem;
  }

  .credentials-pill-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   576px BREAKPOINT (STANDARD MOBILE PHONES)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 40px 0 80px;
  }

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

  .hero-badge {
    font-size: 0.78rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .doctor-card-frame img {
    height: 320px;
  }

  .speciality-badge-card {
    top: 15px;
    right: 10px;
    font-size: 0.78rem;
    padding: 8px 14px;
  }

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

  .stat-number {
    font-size: 2.75rem;
  }

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

  .why-quote-card {
    right: 0;
    left: 0;
    max-width: 100%;
    bottom: -40px;
  }

  .slider-controls {
    gap: 12px;
  }
}

@media (max-width: 992px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-hero-media {
    max-width: 460px;
    margin: 0 auto;
  }

  .about-hero-portrait-frame img {
    height: 420px;
  }

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

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

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

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

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

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

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

  .story-box {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .cet-grid {
    grid-template-columns: 1fr;
  }

  .timeline-container {
    padding-left: 20px;
  }

  .timeline-marker {
    left: -36px;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .philosophy-box {
    padding: 30px 20px;
  }

  .philosophy-box h3 {
    font-size: 1.35rem;
  }

  .quick-info-grid {
    grid-template-columns: 1fr;
  }

  .care-journey-steps {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 576px) {
  .hero-slider {
    height: clamp(500px, 86vh, 600px);
  }

  .hero-content {
    padding: 24px 16px;
  }

  .hero-eyebrow {
    font-size: 0.72rem;
    padding: 7px 16px;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: clamp(28px, 7.8vw, 36px);
    margin-bottom: 16px;
    line-height: 1.1;
  }

  .hero-description {
    font-size: 0.92rem;
    margin-bottom: 24px;
    line-height: 1.55;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 12px;
    margin: 0 auto;
  }

  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    height: 48px;
    font-size: 0.92rem;
    padding: 0 20px;
  }

  .hero-watermark-bg {
    display: none; /* Hide background watermark on small phones to prevent overflow */
  }

  .about-hero-name, .about-hero-editorial-title {
    font-size: 2.6rem;
  }

  .about-hero-designation {
    font-size: 1.15rem;
  }

  .about-hero-portrait-frame img {
    height: 340px;
  }

  .about-hero-stat-card {
    left: 10px;
    bottom: 15px;
    padding: 14px 18px;
  }

  .stat-card-number {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 36px;
  }
  .header-cta .btn-appointment {
    padding: 6px 12px;
    font-size: 0.76rem;
  }
}

@media (max-width: 390px) {
  .trust-badge-card {
    display: none; /* Prevent float overlap on extra small mobile screens */
  }
}


