/* QuestMaster Legal Branding - Responsive Styles */

/* ===== TABLET STYLES (768px and below) ===== */
@media (max-width: 768px) {
    
    /* Typography adjustments */
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 998;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
    }
    
    .nav-list li {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        padding: 1rem;
        display: block;
        width: 100%;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: row;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        flex: 1;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    /* Process Section */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Testimonials Section */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    /* Newsletter Section */
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .subscription-form .form-group {
        flex-direction: column;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Thank You Page */
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Legal Pages */
    .legal-content {
        padding: 0 20px;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .cookie-table {
        font-size: 0.8rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 8px;
    }
}

/* ===== MOBILE STYLES (480px and below) ===== */
@media (max-width: 480px) {
    
    /* Container adjustments */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 1.875rem;
    }
    
    .section-title {
        font-size: 1.625rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Navigation */
    .brand-text {
        font-size: 1.25rem;
    }
    
    .logo {
        height: 32px;
    }
    
    /* Sections padding */
    .hero-section {
        padding: 90px 0 50px;
    }
    
    .services-section,
    .about-section,
    .process-section,
    .testimonials-section,
    .newsletter-section,
    .contact-section {
        padding: 60px 0;
    }
    
    /* Cards */
    .service-card,
    .testimonial-card,
    .process-step {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Stats */
    .about-stats {
        flex-direction: column;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Cookie management */
    .cookie-modal {
        padding: 15px;
    }
    
    .cookie-modal-content {
        padding: 20px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer */
    .main-footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    /* Legal pages */
    .legal-page-section {
        padding: 80px 0 40px;
    }
    
    .cookie-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .cookie-preferences-section {
        padding: 1.5rem;
    }
    
    /* Thank you page */
    .thank-you-section {
        padding: 100px 0 60px;
    }
    
    .thank-you-details {
        padding: 1.5rem;
    }
    
    .resources-section {
        padding: 40px 0;
    }
    
    .resource-card {
        padding: 1.5rem;
    }
}

/* ===== LARGE SCREENS (1200px and above) ===== */
@media (min-width: 1200px) {
    
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        gap: 5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    
    /* Hide non-essential elements */
    .main-header,
    .hero-section,
    .newsletter-section,
    .main-footer,
    .cookie-banner,
    .cookie-modal,
    .nav-toggle {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000000 !important;
        background: white !important;
    }
    
    .about-section {
        background: white !important;
        color: #000000 !important;
    }
    
    .about-section h2,
    .about-section h3 {
        color: #000000 !important;
    }
    
    /* Ensure good contrast */
    a {
        color: #000000 !important;
        text-decoration: underline !important;
    }
    
    /* Page breaks */
    .services-section,
    .about-section,
    .process-section,
    .testimonials-section,
    .contact-section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    /* Remove shadows and borders */
    .service-card,
    .testimonial-card,
    .process-step,
    .contact-form {
        box-shadow: none !important;
        border: 1px solid #cccccc !important;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    /* Optimize for retina displays */
    .logo,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    
    .hero-section {
        min-height: auto;
        padding: 80px 0 50px;
    }
    
    .nav-menu {
        top: 60px;
    }
    
    .main-header {
        padding: 0.5rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .testimonial-card:hover,
    .process-step:hover,
    .resource-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    
    .nav-menu {
        transition: none;
    }
    
    .service-card,
    .testimonial-card,
    .process-step,
    .btn {
        transition: none;
    }
    
    .hero-section {
        scroll-behavior: auto;
    }
}


