/* TrailBlaze Way - Responsive Styles */

/* ===== TABLET STYLES ===== */
@media screen and (max-width: 768px) {
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    /* Header responsive */
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav.mobile-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg);
    }
    
    .nav.mobile-active .nav-list {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    /* Hero section responsive */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Services responsive */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* About section responsive */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Testimonials responsive */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Newsletter responsive */
    .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Contact section responsive */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Cookie management responsive */
    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-modal {
        padding: var(--spacing-md);
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .cookie-category {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }
    
    .cookie-category div:first-child {
        margin-right: 0;
    }
    
    /* Thank you page responsive */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    /* Legal pages responsive */
    .legal-content {
        padding: 0 var(--spacing-md);
    }
    
    .cookies-table {
        font-size: 0.875rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: var(--spacing-sm);
    }
}

/* ===== MOBILE STYLES ===== */
@media screen and (max-width: 480px) {
    
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Spacing adjustments */
    .hero {
        padding: 100px 0 var(--spacing-2xl);
    }
    
    .services,
    .about,
    .testimonials,
    .newsletter,
    .contact {
        padding: var(--spacing-2xl) 0;
    }
    
    .legal-page,
    .thank-you-section {
        padding: 100px 0 var(--spacing-2xl);
    }
    
    /* Button adjustments */
    .btn {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 0.875rem;
        width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Card adjustments */
    .service-card,
    .testimonial-card,
    .contact-card,
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    /* Header adjustments */
    .header-content {
        padding: var(--spacing-md) 0;
    }
    
    .logo {
        height: 35px;
    }
    
    /* Form adjustments */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--spacing-md);
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Newsletter form specific */
    .newsletter-form input[type="email"] {
        padding: var(--spacing-md);
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Cookie management mobile */
    .cookie-banner {
        padding: var(--spacing-md);
    }
    
    .cookie-content h3 {
        font-size: 1.125rem;
    }
    
    .cookie-content p {
        font-size: 0.875rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--spacing-lg);
    }
    
    /* Stats section mobile */
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Social links mobile */
    .social-links {
        gap: var(--spacing-md);
    }
    
    .social-link {
        margin: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
    }
    
    /* Table responsive */
    .cookies-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.75rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    /* Thank you page mobile */
    .thank-you-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 1rem;
    }
    
    /* Legal content mobile */
    .legal-section h2 {
        font-size: 1.25rem;
    }
    
    .legal-section h3 {
        font-size: 1.125rem;
    }
    
    .legal-section h4 {
        font-size: 1rem;
    }
}

/* ===== LANDSCAPE PHONE STYLES ===== */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 var(--spacing-xl);
    }
    
    .hero-content {
        gap: var(--spacing-xl);
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== LARGE SCREEN STYLES ===== */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .newsletter,
    .btn {
        display: none !important;
    }
    
    .hero {
        margin-top: 0;
        padding: var(--spacing-lg) 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
    
    .service-card,
    .testimonial-card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ===== ACCESSIBILITY & MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --text-primary: #000000;
        --text-secondary: #000000;
        --bg-primary: #ffffff;
        --bg-secondary: #ffffff;
        --border-color: #000000;
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    .service-card,
    .testimonial-card,
    .contact-card,
    .contact-form {
        border: 2px solid #000000;
    }
}

/* ===== FOCUS STYLES ===== */
@media (any-hover: hover) {
    .btn:hover,
    .nav-list a:hover,
    .service-card:hover {
        transition: var(--transition);
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-list a:focus,
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-to-content:focus {
    top: 6px;
}
