/* TravelBook - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.125rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* No animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Cards padding */
    .feature-card,
    .service-card .card-body,
    .pricing-card,
    .review-card,
    .contact-form,
    .faq-card {
        padding: 1rem;
    }
    
    /* Process steps */
    .process-step {
        padding: 1rem 0.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Timeline */
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(odd) {
        flex-direction: row !important;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        min-width: 60px;
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    /* Team photos */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery */
    .gallery-image {
        height: 200px;
    }
    
    /* Article preview */
    .article-preview {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        height: 150px;
    }
    
    /* Contact info */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Price tag */
    .price-tag .amount {
        font-size: 2rem;
    }
    
    /* Navbar brand */
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
    }
    
    /* Timeline adjustments */
    .timeline-container::before {
        left: 50px;
    }
    
    .timeline-item {
        padding-left: 80px;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        min-width: 70px;
    }
    
    /* No scroll animations on small screens */
    @media (prefers-reduced-motion: no-preference) {
        * {
            animation-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Timeline back to center */
    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        padding-left: 0;
    }
    
    .timeline-year {
        position: static;
        min-width: 80px;
    }
    
    /* Gallery grid */
    .gallery-image {
        height: 220px;
    }
    
    /* Service cards */
    .service-card .card-img-top {
        height: 180px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    /* Full animations enabled */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .info-card:hover {
        transform: translateY(-5px);
    }
    
    .gallery-image:hover {
        transform: scale(1.05);
    }
    
    /* Gallery full height */
    .gallery-image {
        height: 250px;
    }
    
    /* Article preview layout */
    .article-preview:not(.featured) {
        flex-direction: row;
    }
    
    .article-preview:not(.featured) .article-image {
        width: 200px;
        height: 150px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.75rem;
    }
    
    /* Larger cards on big screens */
    .feature-card,
    .service-card .card-body,
    .pricing-card,
    .review-card {
        padding: 2.5rem;
    }
    
    /* Gallery */
    .gallery-image {
        height: 300px;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    /* Even larger cards for very big screens */
    .feature-card,
    .service-card .card-body,
    .pricing-card,
    .review-card {
        padding: 3rem;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp borders and shadows */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .contact-form,
    .faq-card {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }
}

/* Print styles */
@media print {
    .navbar,
    #footer,
    .hero-buttons,
    .contact-form,
    .newsletter-form {
        display: none !important;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 1rem 0;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-shapes .shape-1,
    .hero-shapes .shape-2 {
        display: none;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .case-study-card,
    .blog-card,
    .info-card,
    .gallery-image,
    .article-preview {
        transition: none;
        transform: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .info-card:hover,
    .gallery-image:hover {
        transform: none;
    }
}

/* Focus accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000FF;
        --secondary-color: #FF0000;
        --accent-color: #FFD700;
        --success-color: #008000;
        --info-color: #00FFFF;
        --dark-text: #000000;
        --gray-text: #666666;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .contact-form,
    .faq-card {
        border: 2px solid var(--dark-text);
    }
}

/* Dark mode support */

/* Landscape orientation for mobile */
@media (max-width: 991.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .feature-card,
    .service-card .card-body,
    .pricing-card,
    .review-card {
        padding: 0.75rem;
    }
    
    .price-tag .amount {
        font-size: 1.75rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
} 