/* ============================================
   نفاذ للتعميد - Responsive Stylesheet
   Mobile-First Approach
   ============================================ */

/* ============================================
   TABLET (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }

    .stat-card:not(:last-child)::after {
        display: none;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

/* ============================================
   MOBILE (< 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
        --header-height: 60px;
    }

    /* Top Bar */
    .top-bar-info {
        justify-content: center;
        width: 100%;
    }

    .top-bar-social {
        display: none;
    }

    /* Header */
    .main-nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-title {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    /* Hero */
    .hero {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: var(--font-size-sm);
    }

    /* Stats */
    .stats-section {
        margin-top: -30px;
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 16px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 30px 24px;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step-card {
        max-width: 300px;
        margin: 0 auto;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-about {
        grid-column: 1;
    }

    .footer-title {
        margin-bottom: 16px;
    }

    /* Floating Elements */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        left: 20px;
    }

    /* Cookie */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    /* Breadcrumb */
    .breadcrumb-list {
        font-size: var(--font-size-xs);
    }
}

/* ============================================
   SMALL MOBILE (< 480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .mobile-nav {
        width: 100%;
    }
}

/* ============================================
   LARGE SCREENS (> 1400px)
   ============================================ */
@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .top-bar,
    .main-header,
    .mobile-nav,
    .mobile-nav-overlay,
    .back-to-top,
    .whatsapp-float,
    .cookie-consent,
    .footer-wave,
    .footer-social,
    .footer-certifications {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        padding: 20px 0;
    }

    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;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --primary: #000080;
        --accent: #cc0000;
    }

    .feature-card,
    .testimonial-card,
    .stat-card {
        border: 2px solid currentColor;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #1a202c;
        --gray-100: #2d3748;
        --gray-200: #4a5568;
        --gray-700: #e2e8f0;
        --gray-800: #f7fafc;
    }

    body {
        background-color: var(--gray-50);
        color: var(--gray-700);
    }

    .feature-card,
    .stat-card {
        background: var(--gray-100);
        border-color: var(--gray-200);
    }
}
