/* ========================================
   PERFECT U - Responsive Styles
   Mobile First Breakpoints
   ======================================== */

/* ---------- Tablet (max-width: 1200px) ---------- */
@media (max-width: 1200px) {
    .mega-menu {
        min-width: 700px;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-list { gap: 1.5rem; }
    
    .hero-container { gap: 40px; }
    .hero-image-main { width: 380px; height: 480px; }
    
    .about-container,
    .doctor-container { gap: 50px; }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px;
    }
    
    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }
}

/* ---------- Tablet (max-width: 992px) ---------- */
@media (max-width: 992px) {
    .section { padding: 80px 0; }
    .section-lg { padding: 100px 0; }
    
    .top-bar-info { gap: 1rem; font-size: 0.8rem; }
    .top-bar-social { display: none; }
    
    .menu-toggle { display: flex; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px 40px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        transition: right 0.4s var(--ease-smooth);
        overflow-y: auto;
        z-index: 1001;
        gap: 0;
    }
    
    .main-nav.active { right: 0; }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: stretch;
    }
    
    .nav-list > li {
        width: 100%;
        border-bottom: 1px solid var(--border-soft);
    }
    
    .nav-list > li > a {
        padding: 15px 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .mega-menu {
        position: static;
        transform: none;
        min-width: 100%;
        grid-template-columns: 1fr;
        padding: 15px 0;
        box-shadow: none;
        border: none;
        background: var(--beige-light);
        border-radius: var(--radius-sm);
        margin: 10px 0;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list > li.mobile-open .mega-menu { display: grid; }
    
    .hero { padding: 120px 0 60px; min-height: auto; }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-visual {
        height: 450px;
        order: -1;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-image-main { width: 320px; height: 420px; }
    
    .hero-float-card-1 { left: 0; top: 5%; }
    .hero-float-card-2 { right: 0; }
    .hero-float-card-3 { display: none; }
    
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    
    .about-container,
    .doctor-container,
    .appointment-container,
    .contact-container,
    .enquiry-cta-container,
    .service-single-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content .section-title,
    .doctor-content .section-title { text-align: center; }
    
    .about-content .section-subtitle,
    .doctor-content .section-subtitle { padding: 0 3rem; }
    
    .about-content .section-subtitle::before,
    .doctor-content .section-subtitle::before { display: block; }
    
    .services-grid,
    .blog-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-grid { grid-template-columns: repeat(2, 1fr); }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .process-timeline::before { display: none; }
    
    .counter-grid { grid-template-columns: repeat(2, 1fr); }
    
    .counter-item:not(:last-child)::after { display: none; }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 20px);
    }
    
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
    
    .appointment-image { min-height: 350px; }
    .appointment-form-wrap { padding: 40px 30px; }
    
    .popup-modal { grid-template-columns: 1fr; max-width: 500px; }
    .popup-image {
        min-height: auto;
        padding: 30px;
    }
    .popup-image-doctor { display: none; }
    .popup-form-wrap { padding: 30px; }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .service-single-content { padding: 35px; }
    
    .service-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .sidebar-widget { margin-bottom: 0; }
    
    .enquiry-cta-container { padding: 40px; }
    .enquiry-cta-image { height: 350px; }
    
    .blog-single-content { padding: 35px; }
    .blog-single-header h1 { font-size: 2rem; }
    
    .contact-form-wrap { padding: 35px; }
    .contact-info-wrap { padding: 40px 30px; }
}

/* ---------- Mobile (max-width: 768px) ---------- */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    body { padding-bottom: 75px; }
    
    .section { padding: 60px 0; }
    .section-lg { padding: 80px 0; }
    .section-title { margin-bottom: 45px; }
    
    .top-bar { display: none; }
    .main-header.has-topbar { top: 0; }
    
    .logo-text .brand { font-size: 1.2rem; }
    .logo-text .tagline { font-size: 0.65rem; letter-spacing: 1px; }
    .logo-icon { width: 40px; height: 40px; font-size: 1rem; }
    
    .header-cta .btn { display: none; }
    .header-cta .dark-toggle {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .hero { padding: 100px 0 50px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-description { font-size: 1rem; }
    
    .hero-visual { height: 380px; }
    .hero-image-main { width: 260px; height: 340px; }
    
    .hero-float-card {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .hero-float-icon { width: 38px; height: 38px; font-size: 1rem; }
    .hero-float-info strong { font-size: 0.82rem; }
    .hero-float-info span { font-size: 0.7rem; }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .hero-stat-item { text-align: center; }
    .hero-stat-number { font-size: 2rem; }
    
    .scroll-indicator { display: none; }
    
    .about-image-accent {
        width: 140px;
        height: 140px;
        bottom: -20px;
        right: -10px;
    }
    
    .about-experience-badge {
        left: 10px;
        top: 10px;
        padding: 18px 20px;
    }
    
    .about-experience-badge .number { font-size: 2rem; }
    .about-experience-badge .label { font-size: 0.7rem; }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .about-image-main img,
    .doctor-image-main img { height: 400px; }
    
    .doctor-name { font-size: 2rem; }
    .doctor-title { font-size: 1.05rem; }
    
    .doctor-skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .doctor-skill-item .skill-label { min-width: auto; }
    .doctor-skill-bar { width: 100%; }
    
    .doctor-awards {
        flex-direction: column;
        gap: 10px;
    }
    
    .doctor-certs {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .services-grid,
    .blog-grid,
    .team-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card { padding: 30px 25px; }
    
    .process-timeline { grid-template-columns: 1fr; gap: 30px; }
    
    .process-step-number {
        width: 80px;
        height: 80px;
    }
    
    .process-step-number i,
    .process-step-number span { font-size: 1.5rem; }
    
    .counter-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .counter-number { font-size: 2.8rem; }
    .counter-number .suffix { font-size: 1.8rem; }
    .counter-label { font-size: 0.78rem; letter-spacing: 1px; }
    
    .testimonial-card {
        flex: 0 0 100%;
        margin: 0 5px;
        padding: 28px 22px;
    }
    
    .video-section { min-height: 400px; }
    .video-play-btn { width: 70px; height: 70px; font-size: 1.2rem; }
    
    .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .brand-item { padding: 20px 15px; }
    
    .appointment-container {
        border-radius: var(--radius-md);
    }
    
    .appointment-image {
        min-height: 280px;
        padding: 30px;
    }
    
    .appointment-image-content h3 { font-size: 1.5rem; }
    .appointment-form-wrap { padding: 30px 20px; }
    .appointment-form-wrap h3 { font-size: 1.5rem; }
    
    .form-row { grid-template-columns: 1fr; gap: 0; }
    
    .contact-container { gap: 30px; }
    .contact-info-wrap { padding: 35px 25px; }
    .contact-info-wrap h3 { font-size: 1.6rem; }
    .contact-form-wrap { padding: 30px 20px; }
    .contact-map { height: 300px; margin-top: 40px; }
    
    .enquiry-cta-container {
        padding: 30px 20px;
        gap: 30px;
    }
    
    .enquiry-cta-content h2 { font-size: 1.8rem; }
    .enquiry-cta-image { height: 280px; }
    .enquiry-cta-buttons { flex-direction: column; }
    .enquiry-cta-buttons .btn { width: 100%; }
    .enquiry-cta-features { grid-template-columns: 1fr; }
    
    .service-single-container { gap: 30px; }
    .service-single-content { padding: 25px 20px; }
    .service-single-content h2 { font-size: 1.7rem; }
    .service-benefits { grid-template-columns: 1fr; }
    
    .service-sidebar { grid-template-columns: 1fr; }
    
    .blog-single-content { padding: 25px 20px; }
    .blog-single-header h1 { font-size: 1.6rem; }
    .blog-single-content h2 { font-size: 1.4rem; }
    .blog-single-content p { font-size: 0.98rem; }
    
    .page-header { padding: 140px 0 60px; }
    .page-header h1 { font-size: 2rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .footer-col h4 { margin-bottom: 1.25rem; }
    
    .floating-buttons {
        right: 15px;
        bottom: 30px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .floating-btn-tooltip { display: none; }
    
    .mobile-sticky-bar { display: block; }
    
    .popup-modal { max-width: 95%; }
    .popup-form-wrap { padding: 25px 20px; }
    .popup-form .form-row { grid-template-columns: 1fr; }
    .popup-form .form-group { margin-bottom: 10px; }
    
    .faq-question { padding: 18px 20px; }
    .faq-question h4 { font-size: 0.95rem; }
    .faq-answer-content { padding: 0 20px 18px; }
}

/* ---------- Small Mobile (max-width: 480px) ---------- */
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    
    .hero h1 { font-size: 1.9rem; }
    .hero-description { font-size: 0.95rem; }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn { width: 100%; }
    
    .hero-visual { height: 340px; }
    .hero-image-main { width: 220px; height: 290px; }
    
    .hero-float-card-1 {
        left: 5px;
        top: 20%;
        padding: 10px 12px;
    }
    
    .hero-float-card-2 {
        right: 5px;
        bottom: 10%;
        padding: 10px 12px;
    }
    
    .hero-rating {
        left: 50%;
        transform: translateX(-50%);
        bottom: 2%;
        padding: 10px 15px;
    }
    
    .section-title h2 { font-size: 1.7rem; }
    .section-subtitle { font-size: 1rem; padding: 0 2.5rem; }
    
    .about-image-main img,
    .doctor-image-main img { height: 320px; }
    
    .doctor-name { font-size: 1.7rem; }
    
    .counter-number { font-size: 2.3rem; }
    .counter-number .suffix { font-size: 1.5rem; }
    
    .btn { padding: 13px 26px; font-size: 0.82rem; }
    .btn-lg { padding: 15px 32px; }
    
    .logo-text .tagline { display: none; }
}

/* ---------- Large Desktop (min-width: 1600px) ---------- */
@media (min-width: 1600px) {
    :root {
        --container-max: 1440px;
    }
    
    .hero-image-main { width: 480px; height: 580px; }
}

/* ---------- Print Styles ---------- */
@media print {
    .top-bar,
    .main-header,
    .floating-buttons,
    .mobile-sticky-bar,
    .popup-overlay { display: none !important; }
    
    body { color: #000; background: #fff; }
    
    .section { padding: 30px 0; }
}