/* ===============================================
   Bringer Landing Page - Responsive Styles
   Mobile-First Design
   =============================================== */

/* ===============================================
   Tablet (769px - 1024px)
   =============================================== */

@media (max-width: 1024px) {
    /* Typography adjustments */
    .section-title {
        font-size: 2rem;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    /* Hero */
    .hero-container {
        gap: var(--spacing-md);
    }

    /* Comparison */
    .comparison-table-container {
        gap: 1.5rem;
    }

    /* Features Grid - 2 columns */
    .clean-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Pricing - 2 columns, popular card full width */
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-card.popular {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Demo tabs */
    .tabbed-showcase {
        gap: var(--spacing-md);
    }

    /* FAQ Grid - 2 columns */
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Final CTA */
    .cta-card {
        gap: 3rem;
        padding: 3rem;
    }
}

/* ===============================================
   Mobile (max-width: 768px)
   =============================================== */

@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Typography */
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Buttons */
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* ===============================================
       Navigation
       =============================================== */

    .nav-container {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .logo {
        height: 32px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition-base);
        pointer-events: none;
        gap: 0;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-links a {
        display: block;
        padding: var(--spacing-sm) 0;
    }

    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--gray-800);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* ===============================================
       Hero Section
       =============================================== */

    .hero {
        padding-top: 6rem;
        padding-bottom: var(--spacing-lg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-subheadline {
        font-size: 1.125rem;
    }

    .hero-cta {
        align-items: stretch;
    }

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

    .hero-cta .btn {
        width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* ===============================================
       Social Proof
       =============================================== */

    .social-proof {
        padding: var(--spacing-md) 0;
    }

    .social-proof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .stat-txt {
        font-size: 0.75rem;
    }

    /* ===============================================
       Problem/Solution
       =============================================== */

    .comparison-section {
        padding: var(--spacing-lg) 0;
    }

    .comparison-table-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .new-way {
        transform: scale(1);
    }

    .col-header {
        font-size: 1.25rem;
    }

    /* ===============================================
       How It Works
       =============================================== */

    .how-it-works {
        padding: var(--spacing-lg) 0;
    }

    .zigzag-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .zigzag-row.reverse .zigzag-content {
        order: 1;
    }

    .zigzag-row.reverse .zigzag-visual {
        order: 2;
    }

    .zigzag-content h3 {
        font-size: 1.5rem;
    }

    .zigzag-content p {
        font-size: 1rem;
    }

    .step-badge {
        font-size: 2rem;
    }

    /* ===============================================
       Features
       =============================================== */

    .features-section {
        padding: var(--spacing-lg) 0;
    }

    .clean-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .clean-feature-card {
        padding: 1.5rem;
    }

    .clean-feature-card h3 {
        font-size: 1.125rem;
    }

    /* ===============================================
       Pricing
       =============================================== */

    .pricing-section {
        padding: var(--spacing-lg) 0;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .price-card {
        padding: 1.5rem;
    }

    .price-card.popular {
        transform: scale(1);
        order: -1;
    }

    .price-card.popular:hover {
        transform: scale(1.02);
    }

    .price-header h3 {
        font-size: 1.25rem;
    }

    .price {
        font-size: 2rem;
    }

    .whatsapp-banner {
        margin-top: 2rem;
        padding: 1rem;
        font-size: 0.875rem;
    }

    /* ===============================================
       Demo Section
       =============================================== */

    .demo-section {
        padding: var(--spacing-lg) 0;
    }

    .tabbed-showcase {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        min-height: auto;
    }

    .demo-tabs {
        order: 2;
    }

    .demo-visual {
        order: 1;
        min-height: 400px;
    }

    .demo-tab {
        padding: 1rem;
    }

    .demo-tab.active {
        transform: translateX(0);
    }

    .tab-number {
        font-size: 1.25rem;
    }

    .tab-info h3 {
        font-size: 1rem;
    }

    .tab-info p {
        font-size: 0.8rem;
    }

    /* ===============================================
       FAQ
       =============================================== */

    .faq-section {
        padding: var(--spacing-lg) 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq-card {
        padding: 1.5rem;
    }

    .faq-card h3 {
        font-size: 1rem;
    }

    .faq-card p {
        font-size: 0.875rem;
    }

    /* ===============================================
       Final CTA
       =============================================== */

    .final-cta-section {
        padding: var(--spacing-lg) 0;
    }

    .cta-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

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

    .cta-content p {
        font-size: 1rem;
    }

    .cta-actions {
        align-items: stretch;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .cta-visual {
        display: none;
    }

    /* ===============================================
       Footer
       =============================================== */

    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    /* ===============================================
       Modal
       =============================================== */

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: var(--spacing-md);
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: var(--spacing-sm);
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* ===============================================
   Small Mobile (max-width: 480px)
   =============================================== */

@media (max-width: 480px) {
    /* Typography */
    .section-title {
        font-size: 1.5rem;
    }

    .hero-headline {
        font-size: 1.75rem;
    }

    .hero-subheadline {
        font-size: 1rem;
    }

    .hero-supporting {
        font-size: 0.875rem;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Spacing adjustments */
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    /* Stats */
    .stat-number {
        font-size: 1.25rem;
    }

    /* Cards */
    .comparison-card,
    .feature-card {
        padding: var(--spacing-sm);
    }

    /* Pricing */
    .price-discounted {
        font-size: 1.75rem;
    }

    /* Final CTA */
    .final-cta-headline {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-logo-text,
    .logo-text {
        font-size: 1.125rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* ===============================================
   Touch Device Optimizations
   =============================================== */

@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 48px;
    }

    .faq-question {
        min-height: 48px;
    }

    /* Remove hover effects on touch devices */
    .comparison-card:hover,
    .feature-card:hover,
    .pricing-card:hover {
        transform: none;
    }

    /* Disable parallax and complex animations */
    .scroll-animate {
        opacity: 1;
        transform: none;
    }
}

/* ===============================================
   Landscape Orientation (Mobile)
   =============================================== */

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding-top: 5rem;
        padding-bottom: var(--spacing-md);
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

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

    .hero-subheadline {
        font-size: 0.875rem;
    }
}

/* ===============================================
   Print Styles
   =============================================== */

@media print {
    /* Hide unnecessary elements */
    .navbar,
    .mobile-menu-toggle,
    .demo-modal,
    .carousel-btn,
    .social-proof,
    .final-cta {
        display: none !important;
    }

    /* Optimize for print */
    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    /* Avoid page breaks inside elements */
    .comparison-card,
    .feature-card,
    .pricing-card,
    .faq-item {
        page-break-inside: avoid;
    }
}

/* ===============================================
   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) {
    :root {
        --shadow-sm: none;
        --shadow-md: 0 0 0 2px currentColor;
        --shadow-lg: 0 0 0 3px currentColor;
        --shadow-xl: 0 0 0 4px currentColor;
    }

    .btn-outline,
    .pricing-card.featured {
        border-width: 3px;
    }

    .comparison-card,
    .feature-card,
    .pricing-card {
        border: 2px solid currentColor;
    }
}

/* ===============================================
   Dark Mode Support (Optional)
   =============================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment if dark mode is desired */
    /*
    :root {
        --white: #111827;
        --cream: #1F2937;
        --gray-50: #1F2937;
        --gray-100: #374151;
        --gray-900: #F9FAFB;
        --gray-800: #F3F4F6;
        --gray-700: #E5E7EB;
    }

    body {
        background-color: var(--gray-900);
        color: var(--gray-100);
    }

    .navbar {
        background: var(--gray-800);
    }

    .hero {
        background: linear-gradient(135deg, rgba(252, 211, 77, 0.05) 0%, rgba(251, 146, 60, 0.05) 100%);
    }
    */
}

/* ===============================================
   Performance Optimizations for Mobile
   =============================================== */

@media (max-width: 768px) {
    /* Reduce complexity of gradients on mobile */
    .hero::before,
    .final-cta::before {
        display: none;
    }

    /* Simplify shadows */
    .comparison-card,
    .feature-card {
        box-shadow: var(--shadow-sm);
    }

    /* Optimize hero image on mobile */
    .hero-image {
        max-height: 400px;
        object-fit: cover;
    }
}

/* ===============================================
   Accessibility Enhancements
   =============================================== */

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--secondary-cyan);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-sm);
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-to-main:focus {
    top: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
