/* =================================================================
   101 Dream OÜ - Responsive Styles
   ================================================================= */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .contact-grid {
        gap: 3rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem;
        width: 100%;
        text-align: center;
        border-radius: 10px;
        font-size: 1.1rem;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero {
        height: 80vh;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Page Header */
    .page-header-content h1 {
        font-size: 2.5rem;
    }
    
    .page-header-content p {
        font-size: 1.1rem;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    /* Grids */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Cookie Consent */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

/* Small Tablet (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Hero */
    .hero {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .mv-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon,
    .mv-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* Statistics */
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 auto 0.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
}

/* Mobile (480px to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    /* Navigation */
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    /* Hero */
    .hero {
        height: 60vh;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 100px 0 50px;
    }
    
    .page-header-content h1 {
        font-size: 1.8rem;
    }
    
    .page-header-content p {
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Grids */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .mv-card,
    .value-card {
        padding: 1.5rem;
    }
    
    .feature-icon,
    .mv-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .service-icon,
    .value-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Service Detail */
    .service-text h2 {
        font-size: 1.8rem;
    }
    
    .service-text h3 {
        font-size: 1.3rem;
    }
    
    /* Statistics */
    .statistics {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    /* Contact */
    .contact-form-container h2 {
        font-size: 1.8rem;
    }
    
    .contact-details h2 {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Legal */
    .legal-document h2 {
        font-size: 1.5rem;
    }
    
    .legal-document h3 {
        font-size: 1.25rem;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-brand-text {
        font-size: 1.25rem;
    }
    
    .footer-logo {
        width: 35px;
        height: 35px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Cookie Consent */
    .cookie-consent {
        padding: 15px;
    }
    
    .cookie-content {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Extra Small Mobile (below 480px) */
@media (max-width: 479px) {
    .container {
        padding: 0 8px;
    }
    
    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }
    
    .logo {
        width: 30px;
        height: 30px;
    }
    
    /* Hero */
    .hero {
        height: 50vh;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header-content h1 {
        font-size: 1.5rem;
    }
    
    .page-header-content p {
        font-size: 0.9rem;
    }
    
    /* Sections */
    section {
        padding: 30px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .mv-card,
    .value-card,
    .faq-item {
        padding: 1.25rem;
    }
    
    .feature-icon,
    .mv-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .service-icon,
    .value-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Step Numbers */
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Statistics */
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1.25rem;
    }
    
    .contact-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 10px;
    }
    
    .footer-brand-text {
        font-size: 1.1rem;
    }
    
    .footer-logo {
        width: 30px;
        height: 30px;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    /* Legal */
    .legal-document {
        font-size: 0.9rem;
    }
    
    .legal-meta,
    .contact-details,
    .legal-footer {
        padding: 1.25rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg img,
    .service-card img,
    .about-image img,
    .contact-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed in the future */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border: 1px solid currentColor;
    }
    
    .feature-card,
    .service-card,
    .mv-card {
        border: 1px solid #ccc;
    }
}

/* Print Styles for Mobile */
@media print and (max-width: 767px) {
    .container {
        padding: 0;
    }
    
    .hero,
    .cta,
    .statistics {
        page-break-inside: avoid;
    }
    
    .service-content,
    .about-grid {
        grid-template-columns: 1fr;
    }
}
