/* =============================================
   NAIDU CHAMBERS - Responsive Styles
   ============================================= */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

/* Tablets */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--spacing-lg) var(--spacing-lg);
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        color: var(--color-text) !important;
        padding: var(--spacing-sm) 0;
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-menu .btn-nav {
        margin-top: var(--spacing-md);
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: var(--spacing-md);
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 120px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Practice Areas */
    .practice-grid {
        grid-template-columns: 1fr;
    }
    
    /* Why Us */
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-image {
        order: -1;
    }
    
    /* Insights */
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-single-header h1 {
        font-size: 2rem;
    }
    
    /* Author Box */
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: var(--spacing-xl) 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .practice-card {
        padding: var(--spacing-lg);
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .blog-content {
        font-size: 1rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .cta,
    .footer {
        display: none;
    }
    
    .hero {
        background: none;
        color: var(--color-text);
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero h1,
    .hero-subtitle {
        color: var(--color-text);
    }
    
    a {
        text-decoration: underline;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    :root {
        --color-white: #1a1a2e;
        --color-off-white: #16213e;
        --color-text: #e0e0e0;
        --color-text-light: #b0b0b0;
        --color-border: #333;
    }
    */
}
