/* Gastronomic Driving Routes - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .card-body {
    overflow-x: hidden;
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .price-value {
        font-size: 2.5rem;
    }
    
    .service-price {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .coreinfo-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coreinfo-grid {
        grid-template-columns: 1fr;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coreinfo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.75rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero h1 {
        font-size: 3.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .coreinfo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .coreinfo-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Mobile-specific adjustments */
@media (max-width: 767.98px) {
    /* Disable Swiper autoplay and effects on mobile */
    .swiper-container .swiper-pagination {
        display: none;
    }
    
    .swiper-container .swiper-button-next,
    .swiper-container .swiper-button-prev {
        display: none;
    }
    
    /* Stack elements vertically */
    .row > .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .row > .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .row > .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Mobile navigation */
    .navbar-collapse {
        background: var(--burgundy-dark);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--border-radius);
    }
    
    .navbar-nav {
        flex-direction: column;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem;
        border-bottom: 1px solid var(--burgundy-light);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Mobile hero adjustments */
    .hero {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-content {
        margin-top: 2rem;
    }
    
    /* Mobile button adjustments */
    .btn-primary,
    .btn-outline-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Mobile form adjustments */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile table adjustments */
    .table-responsive {
        border: none;
    }
    
    /* Mobile card adjustments */
    .card {
        margin-bottom: 2rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    /* Mobile spacing adjustments */
    .mb-4 {
        margin-bottom: 2rem !important;
    }
    
    .mt-4 {
        margin-top: 2rem !important;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-nav .nav-link {
        font-size: 0.95rem;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    .team-photo {
        width: 180px;
        height: 180px;
    }
}

/* Desktop-specific adjustments */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1rem;
        padding-left: 1rem;
    }
    
    /* Hover effects for desktop */
    .card:hover {
        transform: translateY(-8px);
    }
    
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: translateY(-2px);
    }
    
    .navbar-nav .nav-link:hover {
        transform: translateY(-2px);
    }
}

/* High DPI display adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    h1, h2, h3, h4, h5, h6 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .contact-form {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    * {
        color: #000 !important;
        background: #fff !important;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Focus states for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-gold);
        outline-offset: 2px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .card {
        background: var(--charcoal-light);
        color: var(--cream-light);
    }
    
    .form-control {
        background: var(--charcoal-light);
        color: var(--cream-light);
        border-color: var(--charcoal-dark);
    }
    
    .faq-answer {
        background: var(--charcoal-light);
        color: var(--cream-light);
    }
}

/* Container width adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Image optimization for different screens */
@media (max-width: 767.98px) {
    .card-img-top,
    .gallery-item img {
        object-position: center;
    }
}

@media (min-width: 768px) {
    .hero::before {
        background-attachment: fixed;
    }
}

/* Animation adjustments for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .faq-question {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
} 