/* ===== Responsive Design ===== */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: var(--font-size-2xl);
    }
    
    h2 {
        font-size: var(--font-size-xl);
    }
    
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: var(--spacing-xl);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .btn-large, .btn-xlarge {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-xs);
    }
    
    .stat-number {
        font-size: var(--font-size-xl);
    }
    
    .hero-form {
        padding: var(--spacing-lg);
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .process-step {
        padding: var(--spacing-lg);
    }
    
    .media-logos-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .video-testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-slider-track {
        gap: var(--spacing-xl);
        animation-duration: 20s;
    }
    
    .logo-slider-item {
        min-width: 100px;
    }
    
    .logo-slider-icon {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }
    
    .popup-content {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-sm);
    }
    
    .blog-badge {
        position: static;
        display: inline-block;
        margin-left: var(--spacing-xs);
    }
    
    .footer-bottom {
    display: block;
}
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .media-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .desktop-only {
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
    }
    
    .nav-cta-mobile {
        display: none;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scam-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .media-logos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .video-testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-contact-info {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .recovery-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Extra Large Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ===== Mobile Menu Styles ===== */
@media (max-width: 767.98px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-xl);
        box-shadow: var(--shadow-lg);
        display: none;
        z-index: var(--z-fixed);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--gray-lighter);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-cta-mobile {
        display: flex;
        width: 100%;
    }
}

/* ===== Banner Height Mobile ===== */
@media (max-height: 700px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--spacing-xl);
    }
    
    .hero-stats {
        display: none;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header, .footer, .hero-actions, .btn, .popup-modal {
        display: none !important;
    }
    
    .hero, .services, .testimonials, .blog-preview, .final-cta {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .section-title {
        page-break-after: avoid;
    }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #ffd700;
        --accent-color: #0000ff;
    }
    
    .btn-primary, .btn-secondary {
        border: 2px solid #000;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .pulse {
        animation: none;
    }
    
    .logo-slider-track {
        animation: none;
    }
    
    .process-step:hover,
    .service-card:hover,
    .blog-card:hover,
    .scam-card:hover,
    .recovery-step:hover,
    .media-logo:hover,
    .video-testimonial-item:hover {
        transform: none;
    }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #f3f4f6;
        --gray-dark: #d1d5db;
        --gray: #9ca3af;
        --gray-light: #4b5563;
        --gray-lighter: #1f2937;
        --white: #111827;
        --bg-light: #111827;
    }
    
    .header {
        background-color: rgba(17, 24, 39, 0.95);
    }
    
    .logo-title {
        color: var(--dark-color);
    }
    
    .nav-link {
        color: var(--gray-dark);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--dark-color);
    }
    
    .phone-link {
        color: var(--dark-color);
    }
    
    .hero-form, .service-card, .testimonial-card, .blog-card,
    .process-step, .media-logo, .scam-card {
        background-color: #1f2937;
        color: var(--dark-color);
    }
    
    .hero-form h3, .service-title, .blog-title, .client-name,
    .process-step h3, .media-logo span {
        color: var(--dark-color);
    }
    
    input, select, textarea {
        background-color: #374151;
        border-color: #4b5563;
        color: var(--dark-color);
    }
    
    input:focus, select:focus, textarea:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
    }
    
    .trustpilot-widget {
        background-color: #374151;
        border-color: #4b5563;
    }
    
    .video-testimonials-grid, .recovery-step {
        background: rgba(31, 41, 55, 0.5);
    }
    
    .logo-slider-section {
        background-color: var(--white);
    }
    
    .logo-slider-text {
        color: var(--dark-color);
    }
    
    .scam-icon {
        background: var(--primary-light);
    }
    
    .footer {
        background-color: #030712;
    }
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover, .nav-link:hover, .service-link:hover, .blog-link:hover, .social-link:hover {
        transform: none;
    }
    
    .service-card:hover, .scam-card:hover, .blog-card:hover,
    .process-step:hover, .media-logo:hover, .video-testimonial-item:hover,
    .recovery-step:hover {
        transform: none;
    }
    
    .menu-toggle:active, .btn:active {
        opacity: 0.7;
    }
}

/* ===== Very Small Height Devices ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding-top: 100px;
        padding-bottom: var(--spacing-xl);
    }
    
    .hero-stats {
        display: none;
    }
    
    .section-padding {
        padding: 80px 20px;
    }
}

/* Form improvements for mobile */
@media (max-width: 767px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .badge-container {
        justify-content: center;
    }
    
    .footer-legal {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .footer-legal span {
        display: none;
    }
}



/* ===== Blog Page Responsive Styles ===== */

/* Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .blog-hero .hero-title {
        font-size: 1.75rem;
    }
    
    .blog-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .blog-card.featured .blog-title {
        font-size: 1.25rem;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .blog-hero {
        min-height: 50vh;
    }
    
    .blog-card.featured {
        margin-bottom: var(--spacing-2xl);
    }
    
    .newsletter-form {
        max-width: 600px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .blog-hero {
        min-height: 60vh;
    }
    
    .blog-card.featured .blog-title {
        font-size: 2rem;
    }
}

/* Dark mode support for blog page */
@media (prefers-color-scheme: dark) {
    .blog-card {
        background-color: #1f2937;
        color: var(--dark-color);
    }
    
    .blog-title {
        color: var(--dark-color);
    }
    
    .blog-excerpt {
        color: var(--gray);
    }
    
    .blog-tag {
        background-color: #374151;
        color: var(--dark-color);
    }
    
    .search-form {
        background: rgba(31, 41, 55, 0.5);
    }
    
    .search-input {
        color: var(--dark-color);
    }
    
    .search-input::placeholder {
        color: rgba(209, 213, 219, 0.7);
    }
}

/* Print styles for blog */
@media print {
    .blog-hero, .hero-search, .newsletter-section, .social-links {
        display: none !important;
    }
    
    .blog-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .blog-image {
        display: none;
    }
}