/* 
* cloud24bridge - Responsive Stylesheet
* Handles responsive layout and styling across different device sizes
*/

/* ===============================
   1. Base Mobile Adjustments
   =============================== */
@media (max-width: 1024px) {
    :root {
        /* Slightly reduce font sizes on smaller screens */
        --fs-4xl: 2rem;      /* 32px */
        --fs-5xl: 2.5rem;    /* 40px */
        --fs-6xl: 3rem;      /* 48px */
    }
    
    /* General spacing adjustments */
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    .container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
}

/* ===============================
   2. Mobile Navigation
   =============================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: var(--z-fixed);
    }
    
    .main-nav {
        position: relative;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px var(--spacing-lg) var(--spacing-lg);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
        z-index: var(--z-popup);
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-item {
        margin: 0 0 var(--spacing-md) 0;
    }
    
    /* Hamburger menu animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Overlay for mobile menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: var(--z-overlay);
        display: none;
    }
    
    .menu-overlay.active {
        display: block;
    }
}

/* ===============================
   3. Hero Section
   =============================== */
@media (max-width: 992px) {
    .hero {
        text-align: center;
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: var(--fs-4xl);
    }
    
    .hero p {
        font-size: var(--fs-lg);
    }
    
    .hero-visual {
        position: relative;
        width: 100%;
        height: 200px;
        margin-top: var(--spacing-xl);
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: var(--fs-3xl);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ===============================
   4. Features & Services
   =============================== */
@media (max-width: 768px) {
    .features-grid,
    .services-grid,
    .values-grid,
    .team-grid,
    .partners-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .service-visual {
        order: -1;
        margin-bottom: var(--spacing-lg);
    }
    
    .service-grid.reverse .service-visual {
        order: -1;
    }
}

/* ===============================
   5. Testimonials
   =============================== */
@media (max-width: 768px) {
    .testimonial-slide blockquote {
        font-size: var(--fs-base);
        padding: 0;
    }
    
    .testimonial-slide blockquote::before,
    .testimonial-slide blockquote::after {
        display: none;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   6. Process Steps
   =============================== */
@media (max-width: 992px) {
    .process-steps {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .process-step {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
}

/* ===============================
   7. About Page
   =============================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .about-visual {
        height: 300px;
        order: -1;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-date {
        width: 80px;
        padding-right: var(--spacing-sm);
        font-size: var(--fs-sm);
    }
    
    .timeline-content {
        padding-left: var(--spacing-lg);
    }
    
    .timeline-content::before {
        left: 13px;
    }
}

/* ===============================
   8. Contact Page
   =============================== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-info-column {
        padding-right: 0;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===============================
   9. Footer
   =============================== */
@media (max-width: 768px) {
    .footer-grid {
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
}

/* ===============================
   10. Form Elements
   =============================== */
@media (max-width: 576px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: var(--fs-base);
        padding: var(--spacing-sm) var(--spacing-sm);
    }
    
    .checkbox-group {
        align-items: flex-start;
    }
    
    .checkbox-group label {
        font-size: var(--fs-sm);
    }
}

/* ===============================
   11. FAQ Section
   =============================== */
@media (max-width: 768px) {
    .faq-question h3 {
        font-size: var(--fs-lg);
    }
}

/* ===============================
   12. Case Studies
   =============================== */
@media (max-width: 768px) {
    .case-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* ===============================
   13. Call-to-Action Sections
   =============================== */
@media (max-width: 576px) {
    .cta-section h2 {
        font-size: var(--fs-2xl);
    }
    
    .cta-section p {
        font-size: var(--fs-base);
    }
}

/* ===============================
   14. Utility Classes
   =============================== */
@media (max-width: 768px) {
    .section-title {
        font-size: var(--fs-2xl);
    }
    
    .page-banner h1 {
        font-size: var(--fs-3xl);
    }
}

/* ===============================
   15. Print Styles
   =============================== */
@media print {
    .header, .footer, .cta-section, .mobile-menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .section-title::after {
        display: none;
    }
}
