/* Responsive Design for MailGuard Website */

/* ========== LARGE DESKTOP (1280px+) ========== */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== DESKTOP (1024px - 1279px) ========== */
@media (max-width: 1279px) {
    .container {
        max-width: 1024px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== TABLET (768px - 1023px) ========== */
@media (max-width: 1023px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== SMALL TABLET (600px - 767px) ========== */
@media (max-width: 767px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .logos-grid {
        gap: 1rem;
    }
    
    .logo-placeholder {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ========== MOBILE (480px - 599px) ========== */
@media (max-width: 599px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar .container {
        padding: 0.75rem 1rem;
    }
    
    .nav-brand .logo svg {
        width: 140px;
        height: 40px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem 1rem;
        transform: translateX(-100%);
        opacity: 0;
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding-top: 60px;
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .step {
        min-width: 100%;
        padding: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .step-icon {
        width: 48px;
        height: 48px;
    }
    
    .step h3 {
        font-size: 1.1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-badges {
        flex-wrap: wrap;
    }
    
    .trust-badges .badge {
        font-size: 0.8rem;
    }
}

/* ========== EXTRA SMALL MOBILE (< 480px) ========== */
@media (max-width: 479px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .pricing-header h3 {
        font-size: 1.3rem;
    }
    
    .amount {
        font-size: 2rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* ========== LANDSCAPE ORIENTATION (Mobile) ========== */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding-top: 60px;
        min-height: auto;
        padding-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar,
    .hero-ctas,
    .contact-form-wrapper,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ========== ACCESSIBILITY - 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;
    }
}

/* ========== HIGH CONTRAST MODE ========== */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid white;
    }
    
    .feature-card,
    .pricing-card,
    .testimonial-card {
        border: 2px solid var(--color-accent);
    }
}

/* ========== DARK MODE SUPPORT (System Preference) ========== */
@media (prefers-color-scheme: dark) {
    /* Already dark, no changes needed */
}

/* ========== FOCUS VISIBLE FOR KEYBOARD NAVIGATION ========== */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn:focus-visible,
.nav-link:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
