/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet (768px and below) */
@media (max-width: 968px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .welcome-grid,
    .founders-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .founders-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .welcome-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .conditions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Mobile (640px and below) */
@media (max-width: 640px) {
    .nav-menu {
        display: none;
    }

    .btn-book {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero-section {
        height: 80vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .welcome-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-item {
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .founders-content {
        gap: 2rem;
    }

    .wood-frame {
        padding: 1.5rem;
    }

    .founders-signature {
        font-size: 1.1rem;
        padding-left: 1rem;
    }

    .snow-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .condition-card {
        padding: 1.5rem;
    }
}

/* Animations and Transitions */
@media (prefers-reduced-motion: no-preference) {
    .condition-card,
    .feature-item,
    .gallery-main img,
    .gallery-grid img,
    .wood-frame {
        animation: fadeInUp 0.6s ease-out;
    }

    .condition-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .condition-card:nth-child(3) {
        animation-delay: 0.4s;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll,
    .btn-primary,
    .btn-secondary,
    .btn-view-all,
    .btn-book {
        display: none;
    }

    .hero-section {
        height: auto;
        padding: 2rem;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=2400');
    }
}

/* Landscape Orientation for Tablets */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 7rem;
    }

    .section-title {
        font-size: 4rem;
    }
}

/* Accessibility - Focus Styles */
a:focus,
button:focus {
    outline: 3px solid var(--primary-black);
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--soft-black);
        color: var(--off-white);
    }

    .navbar {
        background: rgba(26, 26, 26, 0.98);
        border-bottom-color: var(--charcoal);
    }

    .nav-menu a {
        color: var(--off-white);
    }

    .welcome-section,
    .founders-section {
        background: var(--primary-black);
    }

    .section-title {
        color: var(--pure-white);
    }

    .welcome-text,
    .founders-story,
    .founders-intro {
        color: var(--light-gray);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Utility Classes for Responsiveness */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 640px) {
    .hide-mobile {
        display: none;
    }

    .show-mobile {
        display: block;
    }
}

/* Container Variations */
.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Spacing Utilities for Different Screen Sizes */
@media (max-width: 640px) {
    .welcome-section,
    .founders-section,
    .conditions-section {
        padding: 4rem 0;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-secondary,
    .btn-book,
    .btn-view-all {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .nav-menu a {
        padding: 0.5rem 0;
    }
}