/* Responsive CSS for Flux-Vault Ski */

/* Mobile First Approach - Base styles are for mobile, then we enhance for larger screens */

/* Extra Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .service-card {
        padding: 3rem 2.5rem;
    }
    
    .review-card {
        padding: 2.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cookie-content {
        flex-wrap: nowrap;
    }
    
    .cookie-text {
        flex: 1;
        margin-right: 2rem;
    }
    
    .cookie-buttons {
        flex-shrink: 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 2.5rem 2rem;
    }
    
    .resort-card {
        margin-bottom: 2rem;
    }
    
    .review-card {
        padding: 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 2rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: row;
    }
    
    .newsletter-form .form-control {
        border-radius: 50px 0 0 50px;
    }
    
    .newsletter-form .btn {
        border-radius: 0 50px 50px 0;
    }
    
    .thank-you-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cookie-buttons {
        justify-content: flex-end;
    }
    
    .thank-you-actions {
        gap: 1rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Navigation */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-nav {
        margin-top: 1rem;
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        margin: 0.25rem 0;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .hero-image img,
    .about-image img {
        max-height: 200px;
        object-fit: cover;
    }
    
    .resort-image img {
        height: 150px;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    /* Services */
    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        width: 30px;
        height: 30px;
    }
    
    .service-card h4 {
        font-size: 1.2rem;
    }
    
    /* Resorts */
    .resort-card {
        margin-bottom: 2rem;
    }
    
    .resort-info {
        padding: 1.5rem;
    }
    
    .resort-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Reviews */
    .review-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .review-stars {
        justify-content: center;
    }
    
    /* Newsletter */
    .newsletter-form {
        padding: 0 1rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: 25px;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .newsletter-form .btn {
        border-radius: 25px;
        width: 100%;
    }
    
    /* Contact */
    .contact-info,
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .contact-item i {
        margin-top: 0;
    }
    
    /* Footer */
    footer .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .text-md-end {
        text-align: center !important;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-text {
        margin-right: 0;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Cookie Modal */
    .cookie-modal {
        padding: 0.5rem;
    }
    
    .cookie-modal-content {
        margin: 0;
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cookie-modal-footer .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Thank You Page */
    .thank-you-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .thank-you-section h1 {
        font-size: 2.5rem;
    }
    
    .thank-you-content {
        text-align: center;
    }
    
    .thank-you-content ul {
        text-align: left;
        display: block;
        margin: 0 auto;
        max-width: 300px;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }
    
    .thank-you-actions .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Info Cards */
    .info-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Legal Pages */
    .legal-content {
        padding-top: 1rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.3rem;
    }
    
    .legal-navigation {
        padding-top: 1.5rem;
    }
    
    .legal-navigation .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .legal-navigation .btn {
        width: 100%;
        justify-content: center;
    }
    
    .legal-navigation .text-md-end {
        text-align: center !important;
    }
    
    /* Tables */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        vertical-align: top;
    }
    
    /* Stats */
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image-placeholder,
    .about-image-placeholder,
    .resort-image-placeholder {
        border-width: 1px;
    }
    
    .service-icon {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Reduced motion preference */
@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;
    }
    
    .animate-fade-in-up {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hero-image-placeholder,
    .about-image-placeholder,
    .resort-image-placeholder {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* Print optimizations */
@media print {
    .hero-section {
        min-height: auto !important;
        page-break-after: always;
    }
    
    .service-card,
    .resort-card,
    .review-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .legal-section {
        break-inside: avoid;
    }
    
    .cookie-banner,
    .cookie-modal {
        display: none !important;
    }
}

/* Focus and accessibility improvements */
@media (max-width: 575.98px) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline-offset: 1px;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-links a {
        width: 44px;
        height: 44px;
        line-height: 44px;
    }
}

/* Container adjustments for very small screens */
@media (max-width: 320px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .review-card,
    .info-card {
        padding: 1rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1rem;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 0.75rem;
    }
}
