/* 
Modern Business Solutions - Responsive Stylesheet
Author: Cascade
Version: 1.0
*/

/* Extra Large Devices (large desktops, 1200px and up) */
@media (max-width: 1280px) {
    .container {
        max-width: 1140px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-2xl) var(--spacing-xl);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .about-text {
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .main-nav .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 80px var(--spacing-xl) var(--spacing-xl);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-normal);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active .nav-list {
        right: 0;
    }
    
    .main-nav.active .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .main-nav.active .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .main-nav.active .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-width: 260px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    #back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* Extra Small Devices (phones, 375px and below) */
@media (max-width: 375px) {
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .logo img {
        height: 30px;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .cta, #back-to-top {
        display: none;
    }
    
    body {
        color: black;
        background-color: white;
    }
    
    .container {
        max-width: 100%;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    
    section {
        page-break-inside: avoid;
    }
}
