/* =====================================================
   Responsive Styles 
   ===================================================== */

/* ===== Tablet (max-width: 1024px) ===== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .navbar-menu {
        gap: var(--spacing-md);
    }

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

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Timeline Mobile */
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px !important;
        padding-right: var(--spacing-lg) !important;
        text-align: left !important;
        left: 0 !important;
    }

    .timeline-marker {
        left: 20px !important;
        right: auto !important;
    }
}

/* ===== Mobile (max-width: 768px) ===== */
@media screen and (max-width: 768px) {
    /* Navigation Mobile */
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-xl);
        box-shadow: var(--shadow-xl);
        transition: var(--transition-base);
        max-width: 300px;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }

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

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu a {
        display: block;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--light-gray);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        margin-left: var(--spacing-md);
    }

    /* Hero Mobile */
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }

    .hero-content {
        padding: var(--spacing-lg);
    }

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

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

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Sections Mobile */
    .section-header {
        padding: 0 var(--spacing-md);
    }

    .section-title {
        font-size: 2rem;
    }

    /* Cards Mobile */
    .card {
        padding: var(--spacing-lg);
    }

    /* Stats Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

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

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    /* Contact Form Mobile */
    .contact-form {
        padding: var(--spacing-lg);
    }

    /* Back to Top Mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

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

    .cookie-notice-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Small Mobile (max-width: 480px) ===== */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card {
        padding: var(--spacing-md);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .timeline-item {
        padding-left: 40px !important;
        padding-right: var(--spacing-sm) !important;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: 5px !important;
        width: 16px;
        height: 16px;
    }
}

/* ===== Large Screens (min-width: 1400px) ===== */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

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

    .section-title {
        font-size: 3rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .cookie-notice,
    .social-links,
    .navbar-toggle {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: black !important;
        background: white !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .hero {
        min-height: auto;
        background: none !important;
        color: black !important;
        page-break-after: always;
    }

    .btn {
        border: 1px solid black;
        color: black !important;
    }

    a {
        color: black !important;
        text-decoration: underline;
    }

    .card {
        border: 1px solid #ddd;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .section {
        page-break-inside: avoid;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        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) {
    :root {
        --primary-navy: #000000;
        --primary-gold: #ffcc00;
        --text-primary: #000000;
        --text-secondary: #333333;
    }

    .btn-primary {
        border: 2px solid currentColor;
    }

    .card {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* ===== Hover Effects for Touch Devices ===== */
@media (hover: none) {
    .card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .gallery-item:hover img {
        transform: none;
    }

    .gallery-item:hover .gallery-overlay {
        opacity: 0;
    }
}

/* ===== Landscape Mobile ===== */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }

    .hero-content {
        padding: var(--spacing-md);
    }

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