/* Proekspert Group AS - Responsive Stylesheet */
/* =========================================== */

/* Large Desktop - 1200px and up */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop - 992px to 1199px */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
}

/* Tablet - 768px to 991px */
@media (max-width: 991px) {
    /* Typography Adjustments */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        height: 100%;
    }
    
    .nav-list li {
        margin-bottom: 1rem;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.2rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    /* Grids */
    .about-grid,
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    /* Cookie Consent */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Legal Content */
    .legal-text {
        padding: 3rem;
    }
}

/* Small Tablet - 576px to 767px */
@media (max-width: 767px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    /* Hero */
    .hero-content {
        padding: 100px 0 40px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Page Header */
    .page-header {
        padding: 100px 0 60px;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    /* Service Cards */
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    /* Service Details */
    .service-detail .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-detail .service-icon i {
        font-size: 1.8rem;
    }
    
    .service-detail h3 {
        font-size: 1.5rem;
    }
    
    .service-image {
        height: 250px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    /* Grids - Single Column */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Stats */
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    /* Mission & Vision */
    .mv-item {
        padding: 2rem 1.5rem;
    }
    
    .mv-icon {
        width: 70px;
        height: 70px;
    }
    
    .mv-icon i {
        font-size: 2rem;
    }
    
    /* Value Items */
    .value-item {
        padding: 2rem 1.5rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
    }
    
    .value-icon i {
        font-size: 1.8rem;
    }
    
    /* Feature Items */
    .feature-item {
        padding: 2.5rem 1.5rem;
    }
    
    .feature-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: -12px;
    }
    
    /* Process Steps */
    .process-step {
        padding: 2rem 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* Contact Form */
    .contact-form-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-info-container {
        padding: 2rem 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .contact-cta {
        padding: 1.5rem;
    }
    
    /* FAQ Items */
    .faq-item {
        padding: 1.5rem;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-section {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Legal Content */
    .legal-content {
        padding: 100px 0 60px;
    }
    
    .legal-header h1 {
        font-size: 2.5rem;
    }
    
    .legal-text {
        padding: 2rem;
    }
    
    .contact-details {
        padding: 1.5rem;
    }
    
    /* Tables */
    .cookies-table {
        font-size: 0.9rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 0.75rem;
    }
}

/* Mobile - 480px to 575px */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding: 0 10px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    /* Hero */
    .hero-content {
        padding: 90px 0 30px;
    }
    
    /* Page Header */
    .page-header {
        padding: 90px 0 50px;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.8rem;
    }
    
    /* Service Details */
    .service-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .service-detail .service-icon {
        margin: 0;
    }
    
    .service-detail h3 {
        font-size: 1.4rem;
        margin: 0;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    /* Company Stats */
    .company-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2.2rem;
    }
    
    /* Mission & Vision */
    .mv-item {
        padding: 1.5rem;
    }
    
    /* Value Items */
    .value-item {
        padding: 1.5rem;
    }
    
    /* Feature Items */
    .feature-item {
        padding: 2rem 1rem;
    }
    
    .feature-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        top: -10px;
    }
    
    /* Process Steps */
    .process-step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Team Members */
    .member-image {
        height: 250px;
    }
    
    /* Info Cards */
    .info-card {
        padding: 2rem 1.5rem;
    }
    
    /* Contact */
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-form-container h2 {
        font-size: 1.8rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
    
    .contact-info-container {
        padding: 1.5rem;
    }
    
    .contact-info-container h2 {
        font-size: 1.8rem;
    }
    
    .contact-content h3 {
        font-size: 1.1rem;
    }
    
    .contact-content p {
        font-size: 0.95rem;
    }
    
    /* FAQ */
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-item h3 {
        font-size: 1.2rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-brand {
        font-size: 1.3rem;
    }
    
    .footer-brand i {
        font-size: 1.8rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .contact-info i {
        width: 16px;
    }
    
    /* Legal Content */
    .legal-content {
        padding: 90px 0 50px;
    }
    
    .legal-header h1 {
        font-size: 2.2rem;
    }
    
    .legal-text {
        padding: 1.5rem;
    }
    
    .legal-text h2 {
        font-size: 1.6rem;
        margin-top: 2rem;
    }
    
    .legal-text h3 {
        font-size: 1.3rem;
    }
    
    .contact-details {
        padding: 1rem;
    }
    
    /* Cookie Consent */
    .cookie-content {
        padding: 0 10px;
    }
    
    .cookie-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .cookie-actions {
        gap: 10px;
    }
    
    .cookie-actions .btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    /* Tables */
    .cookies-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 0.5rem;
        min-width: 120px;
    }
}

/* Small Mobile - 320px to 479px */
@media (max-width: 479px) {
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Navigation */
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .nav-brand i {
        font-size: 1.8rem;
    }
    
    /* Sections */
    section {
        padding: 35px 0;
    }
    
    /* Cards and Items */
    .service-card,
    .value-item,
    .mv-item,
    .feature-item,
    .process-step,
    .advantage-item,
    .info-card,
    .faq-item {
        padding: 1rem;
    }
    
    /* Icons */
    .service-icon,
    .mv-icon,
    .value-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i,
    .mv-icon i,
    .value-icon i {
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .feature-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        top: -8px;
    }
    
    /* Contact */
    .contact-form-container,
    .contact-info-container {
        padding: 1rem;
    }
    
    .contact-item {
        gap: 0.75rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    /* Legal Content */
    .legal-text {
        padding: 1rem;
    }
    
    .legal-text h2 {
        font-size: 1.4rem;
    }
    
    .legal-text h3 {
        font-size: 1.2rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-content {
        padding: 60px 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .page-header {
        padding: 60px 0 40px;
    }
    
    section {
        padding: 30px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images and icons for retina displays */
    .service-icon,
    .mv-icon,
    .value-icon,
    .contact-icon {
        background-size: contain;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .social-links a {
        min-width: 48px;
        min-height: 48px;
    }
    
    /* Remove hover effects */
    .service-card:hover,
    .value-item:hover,
    .feature-item:hover,
    .btn:hover {
        transform: none;
    }
}

/* Container Query Support (Future-proofing) */
@supports (container-type: inline-size) {
    .services-grid {
        container-type: inline-size;
    }
    
    @container (max-width: 600px) {
        .services-grid {
            grid-template-columns: 1fr;
        }
    }
}
