/* ===== RESPONSIVE STYLES ===== */

/* Tablet Styles */
@media (max-width: 768px) {
    /* Grid System */
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: white;
        flex-direction: column;
        padding: 50px 0;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Page Header */
    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    /* Process Timeline */
    .process-timeline {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Stats */
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    /* Contact Form */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Legal Document */
    .legal-document {
        padding: 30px 20px;
    }

    /* Thank You Page */
    .thank-you-content h1 {
        font-size: 2.5rem;
    }

    .thank-you-details {
        padding: 30px 20px;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }

    /* CTA Sections */
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* About Page */
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .reason-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .reason-item:hover {
        transform: translateY(-5px);
    }

    /* Services Page */
    .process-detail-item {
        flex-direction: column !important;
        gap: 30px;
        padding: 30px 20px;
    }

    .process-step-number {
        position: static;
        margin-bottom: 20px;
    }

    .process-detail-content h3 {
        margin-left: 0;
    }

    .nice-areas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .legal-documents-showcase {
        margin-top: 30px;
    }

    .legal-overlay-images {
        position: static;
        margin-top: 20px;
    }

    .legal-overlay-image {
        width: 100%;
        height: 150px;
    }

    /* Team Page */
    .team-stats .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    /* Contact Page */
    .contact-sidebar {
        margin-top: 30px;
        position: static;
    }

    .testimonial-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    /* Footer */
    .footer .row {
        flex-direction: column;
    }

    .footer .col-md-2,
    .footer .col-md-3,
    .footer .col-md-4 {
        flex: none;
        max-width: none;
        margin-bottom: 40px;
    }

    .contact-info .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Section Padding */
    .section {
        padding: 60px 0;
    }

    /* Typography */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .btn-small {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* Cards */
    .service-card,
    .value-card,
    .team-card,
    .contact-card {
        padding: 20px;
    }

    .testimonial-card {
        padding: 20px;
    }

    /* Process Steps */
    .process-step {
        padding: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Stats */
    .stat-number {
        font-size: 2rem;
    }

    .achievement-number {
        font-size: 2.5rem;
    }

    .stat-large .stat-number {
        font-size: 2.5rem;
    }

    /* Cookie Banner */
    .cookie-banner {
        padding: 15px;
    }

    .cookie-buttons .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* Modal */
    .modal-content {
        padding: 25px 20px;
    }

    /* Contact Form */
    .contact-form-container {
        padding: 25px 20px;
    }

    .contact-form h2 {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    /* Legal Document */
    .legal-document {
        padding: 20px 15px;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .cookie-table {
        font-size: 0.8rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px;
    }

    /* Thank You Page */
    .thank-you-content h1 {
        font-size: 2rem;
    }

    .thank-you-subtitle {
        font-size: 1.1rem;
    }

    .thank-you-details {
        padding: 20px 15px;
    }

    .thank-you-text h2 {
        font-size: 1.5rem;
    }

    .step-item {
        padding: 20px 15px;
    }

    .contact-reminder {
        padding: 25px 20px;
    }

    /* CTA Sections */
    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* About Page */
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .achievement-item {
        padding: 20px;
    }

    /* Services Page */
    .process-detail-item {
        padding: 20px 15px;
    }

    .process-detail-content h3 {
        font-size: 1.5rem;
    }

    .service-detail-content {
        padding: 20px;
    }

    .area-content {
        padding: 20px;
    }

    .legal-service-item {
        padding: 20px 15px;
    }

    /* Team Page */
    .team-content {
        padding: 20px;
    }

    .team-content h3 {
        font-size: 1.2rem;
    }

    .value-item {
        padding: 20px 15px;
    }

    .stat-large {
        padding: 20px;
    }

    /* Contact Page */
    .contact-card {
        padding: 25px 20px;
    }

    .contact-sidebar {
        padding: 20px;
    }

    .consultation-info {
        padding: 0;
    }

    .emergency-contact {
        padding: 20px 15px;
    }

    .faq-item {
        padding: 20px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 15px 0;
    }

    .footer-section {
        text-align: center;
        margin-bottom: 30px;
    }

    .social-links {
        justify-content: center;
    }

    /* Images */
    .hero-bg-img,
    .section-image,
    .service-image,
    .service-detail-image,
    .team-image,
    .area-image,
    .testimonial-image,
    .achievement-image,
    .resource-image,
    .sidebar-image,
    .thank-you-image,
    .legal-main-image {
        height: auto;
        min-height: 200px;
    }

    .process-detail-image img {
        height: 200px;
    }

    .testimonial-image img {
        height: 200px;
    }
}

/* Landscape Phone and Small Tablet */
@media (max-width: 992px) and (min-width: 769px) {
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nice-areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .page-header h1 {
        font-size: 3.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .modal,
    .hero-buttons,
    .cta-section,
    .social-links,
    .btn,
    .hamburger {
        display: none !important;
    }

    .page-header {
        margin-top: 0;
        padding: 40px 0 20px 0;
    }

    .section {
        padding: 30px 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
    }

    .legal-document {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .contact-info a {
        color: #000 !important;
        text-decoration: underline;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border-color: #000;
        color: #fff;
    }

    .btn-outline {
        border-color: #000;
        color: #000;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #000;
    }

    .section-icon img,
    .service-icon img,
    .value-icon img,
    .contact-icon img,
    .resource-icon img {
        filter: none;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #2980b9;
    outline-offset: 2px;
}

/* Sticky Navigation Adjustments */
@media (max-width: 768px) {
    .contact-sidebar {
        position: static;
        top: auto;
    }
}

/* Form Validation Responsive */
@media (max-width: 480px) {
    .error-message {
        font-size: 0.8rem;
    }
}

/* Image Loading States */
.section-image,
.service-image,
.team-image,
.area-image {
    background-color: #f8f9fa;
    min-height: 200px;
}

/* Smooth Scrolling Adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 75px;
    }
}

/* Cookie Banner Responsive */
@media (max-width: 480px) {
    .cookie-content {
        gap: 15px;
    }

    .cookie-content p {
        min-width: auto;
        font-size: 0.9rem;
    }

    .cookie-buttons {
        gap: 10px;
    }

    .cookie-buttons .btn {
        flex: 1;
        min-width: auto;
    }
}

/* Modal Responsive */
@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        padding: 20px 15px;
        margin: 0;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .modal-buttons .btn {
        width: 100%;
    }
}

/* Table Responsive */
@media (max-width: 768px) {
    .cookie-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation Keyframes for Mobile */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    .service-card,
    .value-card,
    .team-card,
    .testimonial-card {
        animation: fadeInUp 0.6s ease-out;
    }
}

/* Touch Target Improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 14px 30px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .social-links a {
        min-width: 44px;
        min-height: 44px;
    }
}
