/* ===== RESPONSIVE DESIGN ===== */

/* Large screens (desktops) */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Medium screens (tablets) */
@media (max-width: 992px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    /* Navigation adjustments */
    .nav-menu {
        gap: 1.5rem;
    }
    
    /* Grid adjustments */
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    /* Timeline adjustments */
    .timeline:before {
        left: 30px;
    }
    
    .timeline-year {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    /* Map info stack */
    .map-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Small screens (mobile landscape) */
@media (max-width: 768px) {
    /* Hide desktop navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        gap: 1rem;
        transition: top 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        top: 100%;
    }
    
    /* Show hamburger menu */
    .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 adjustments */
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Grid adjustments */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .goals-grid,
    .services-grid,
    .services-grid-detailed,
    .membership-grid,
    .info-grid,
    .team-grid,
    .values-grid,
    .contact-info-grid,
    .quick-contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Success stats adjustment */
    .success-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Button adjustments */
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Cookie banner adjustments */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Mission & Vision */
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Timeline mobile */
    .timeline:before {
        left: 20px;
    }
    
    .timeline-year {
        left: 20px;
        min-width: 60px;
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px !important;
    }
    
    /* Thank you page */
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Extra small screens (mobile portrait) */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Hero further adjustments */
    .hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    /* Section padding */
    .section {
        padding: 2rem 0;
    }
    
    .page-header {
        padding: 3rem 0 1.5rem;
    }
    
    /* Card padding */
    .card,
    .goal-card,
    .service-card,
    .service-card-detailed,
    .membership-card,
    .team-member,
    .value-card,
    .contact-card,
    .quick-contact-card {
        padding: 1.5rem;
    }
    
    /* Stat cards mobile layout */
    .success-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 2.5rem;
    }
    
    /* Button full width on mobile */
    .btn-large {
        width: 100%;
        padding: 1rem;
    }
    
    /* Form adjustments */
    .form-row {
        flex-direction: column;
    }
    
    /* Table responsive */
    .cookie-table {
        overflow-x: auto;
    }
    
    .cookie-table table {
        min-width: 600px;
    }
    
    /* Legal document */
    .legal-document {
        padding: 0;
    }
    
    /* Navigation logo */
    .logo-text {
        display: none;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    /* Footer adjustments */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    /* Mission/Vision cards */
    .mv-card {
        padding: 2rem;
    }
    
    .mv-icon {
        width: 48px;
        height: 48px;
    }
    
    /* Timeline mobile final */
    .timeline-year {
        min-width: 50px;
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        padding: 1.5rem;
    }
}

/* Extra extra small screens */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.375rem;
    }
    
    .membership-price {
        font-size: 2rem;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
        width: 95vw;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        padding: 1rem;
    }
}

/* Landscape mobile phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 90vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure SVGs and icons look crisp */
    .logo-img,
    .section-icon,
    .service-icon,
    .contact-icon,
    .team-avatar {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .btn,
    .hamburger {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
        background: none;
        color: #000;
    }
    
    .hero-title,
    .hero-subtitle {
        color: #000;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card,
    .goal-card,
    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .page-header {
        background: none;
        color: #000;
        padding: 1rem 0;
    }
    
    .page-header h1,
    .page-header p {
        color: #000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .card:hover,
    .goal-card:hover,
    .service-card:hover,
    .team-member:hover,
    .value-card:hover,
    .contact-card:hover {
        transform: none;
    }
    
    .nav-menu {
        transition: none;
    }
    
    .hamburger span {
        transition: none;
    }
    
    .faq-toggle,
    .faq-answer {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
        color: #fff;
    }
    
    .btn-primary {
        border: 2px solid #fff;
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    .card,
    .goal-card,
    .service-card {
        border: 2px solid #000;
    }
}


