/* Responsive CSS for Gleam Trek */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    /* Hero adjustments */
    .hero h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero p {
        font-size: var(--font-size-base);
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Newsletter */
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--spacing-2xl);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Typography adjustments */
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    
    /* Hero section */
    .hero {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero h1 {
        font-size: var(--font-size-2xl);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-2xl);
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card {
        padding: var(--spacing-xl);
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Newsletter */
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* About stats */
    .about-stats {
        flex-direction: column;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Cookie banner */
    .cookie-banner {
        padding: var(--spacing-lg);
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Modal adjustments */
    .modal-content {
        width: 95%;
        padding: var(--spacing-lg);
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons button {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Legal pages */
    .legal-content {
        padding: 0 var(--spacing-md);
    }
    
    .legal-navigation {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Cookies table */
    .cookies-table {
        overflow-x: auto;
    }
    
    .cookies-table table {
        min-width: 600px;
    }
    
    /* Thank you page */
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links-large {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Typography */
    h1 { font-size: var(--font-size-2xl); }
    h2 { font-size: var(--font-size-xl); }
    h3 { font-size: var(--font-size-lg); }
    
    /* Hero */
    .hero h1 {
        font-size: var(--font-size-xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* Buttons */
    .btn {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    /* Cards */
    .service-card,
    .team-member,
    .review-card {
        padding: var(--spacing-lg);
    }
    
    /* Contact form */
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    /* Section spacing */
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    /* Newsletter */
    .newsletter .container {
        padding: var(--spacing-lg);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
    
    /* Modal */
    .modal-content {
        margin: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    /* Cookie banner text */
    .cookie-content h3 {
        font-size: var(--font-size-lg);
    }
    
    .cookie-content p {
        font-size: var(--font-size-sm);
    }
    
    /* Legal page adjustments */
    .legal-page {
        padding: 100px 0 var(--spacing-2xl);
    }
    
    .legal-header h1 {
        font-size: var(--font-size-2xl);
    }
    
    /* Thank you page */
    .thank-you-page {
        padding: 100px 0 var(--spacing-2xl);
    }
    
    .thank-you-icon i {
        font-size: 3rem;
    }
    
    .benefit-item {
        padding: var(--spacing-lg);
    }
    
    .benefit-item i {
        font-size: var(--font-size-2xl);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .modal,
    .nav-toggle,
    .social-links,
    .hero-buttons,
    .thank-you-actions,
    .newsletter {
        display: none !important;
    }
    
    .legal-page,
    .thank-you-page {
        padding-top: var(--spacing-lg);
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .legal-content,
    .thank-you-content {
        max-width: none;
    }
    
    .cookies-table table {
        font-size: 10pt;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 6pt;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on high DPI displays */
    .section-icon,
    .hero-svg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (for system preference) */
@media (prefers-color-scheme: dark) {
    /* This is optional - keeping light theme for professional appearance */
    /* Can be implemented if dark mode is desired */
}

/* Landscape Mobile Adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        padding-top: var(--spacing-lg);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav-link,
    .btn,
    .social-links a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects that don't work on touch */
    .service-card:hover,
    .team-member:hover,
    .btn-primary:hover {
        transform: none;
    }
    
    /* Ensure good contrast for touch interactions */
    .btn:active {
        opacity: 0.8;
    }
}
