/*
 * Responsive Styles for Risala Digital Marketing Theme
 * Mobile-first responsive design
 */

/* ========================================
   Mobile Styles (Base - 320px+)
   ======================================== */

/* Already defined in main.css as mobile-first */

/* ========================================
   Tablet Styles (768px+)
   ======================================== */

@media (max-width: 768px) {

    /* Header & Navigation */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .main-navigation .menu-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .main-navigation .menu-wrapper.active {
        max-height: 500px;
    }

    .menu-wrapper ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .menu-wrapper li {
        width: 100%;
    }

    .menu-wrapper a {
        display: block;
        padding: 1rem 1.5rem;
    }

    .header-cta {
        flex-direction: column;
        width: 100%;
        padding: 1rem;
    }

    .header-cta .btn-call,
    .header-cta .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Hero Section */
    .hero-section {
        min-height: 70vh;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Grids */
    .services-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Buttons */
    .hero-cta,
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-widget-area,
    .footer-info {
        grid-template-columns: 1fr;
    }

    .footer-bottom .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* About Page */
    .about-intro {
        flex-direction: column;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Services Page */
    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
    }

    /* Team Page */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Page */
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info,
    .contact-form-wrapper {
        width: 100%;
    }

    /* Service Page */
    .overview-grid {
        flex-direction: column;
    }

    .overview-stats {
        grid-template-columns: 1fr;
    }

    .included-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        padding-left: 2rem;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   Small Mobile (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ========================================
   Desktop Styles (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .included-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Large Desktop (1280px+)
   ======================================== */

@media (min-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   Extra Large Desktop (1536px+)
   ======================================== */

@media (min-width: 1536px) {
    :root {
        --container-max-width: 1400px;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {

    .site-header,
    .site-footer,
    .back-to-top,
    .cta-section {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
    }
}

/* ========================================
   Landscape Orientation (Mobile)
   ======================================== */

@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .page-hero {
        padding: 2rem 0;
    }
}

/* ========================================
   High DPI Displays
   ======================================== */

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Optimize images and icons for retina displays */
    .service-icon,
    .feature-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ========================================
   Dark Mode Support (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /*
    :root {
        --color-dark: #f8fafc;
        --color-gray-900: #f1f5f9;
        --color-gray-800: #e2e8f0;
        --color-white: #0f172a;
        --color-gray-100: #1e293b;
        --color-gray-200: #334155;
    }

    body {
        background-color: var(--color-dark);
        color: var(--color-gray-800);
    }

    .site-header {
        background: rgba(15, 23, 42, 0.95);
    }

    .service-card,
    .testimonial-card {
        background: var(--color-gray-900);
        border-color: var(--color-gray-700);
    }
    */
}