/* PhotoWalk Tours - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 180px;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-6 {
        margin-bottom: 1rem;
    }
    
    /* Team member images */
    .rounded-circle {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Section padding */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Navbar brand size */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 1.875rem;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 190px;
    }
    
    /* Team member images */
    .rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Enable subtle animations for tablets */
    .card:hover {
        transform: translateY(-3px);
    }
    
    /* Gallery hover effects */
    #gallery img:hover {
        transform: scale(1.02);
    }
    
    /* Team member hover */
    .rounded-circle:hover {
        transform: scale(1.05);
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 200px;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 100px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full animations enabled */
    .hero-section {
        padding-top: 120px;
    }
    
    /* Services grid optimization */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Full desktop experience */
    .hero-section {
        padding-top: 140px;
    }
    
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero section height on landscape mobile */
    .hero-section {
        padding-top: 60px;
        min-height: auto;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto !important;
    }
    
    /* Reduce section padding */
    .py-5 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high-resolution displays */
    .card-img-top,
    .rounded-circle,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    #footer,
    .breadcrumb-nav {
        display: none !important;
    }
    
    /* Optimize typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    /* Remove backgrounds and shadows */
    * {
        background: transparent !important;
        box-shadow: none !important;
    }
    
    /* Ensure good contrast */
    .text-muted {
        color: #666 !important;
    }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #6600cc;
        --accent-color: #008080;
        --success-color: #008000;
        --warning-color: #cc6600;
    }
    
    .card {
        border: 2px solid #333;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Override any remaining animations */
    .card:hover,
    #gallery img:hover,
    .rounded-circle:hover,
    .btn-primary:hover {
        transform: none !important;
    }
    
    /* Remove smooth scrolling */
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (if browser supports it) */

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    /* Touch devices - remove hover effects */
    .card:hover,
    #gallery img:hover,
    .rounded-circle:hover {
        transform: none;
    }
}

/* Specific adjustments for common mobile devices */

/* iPhone SE, 5s, 5c, 5 */
@media only screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* iPhone 6, 6s, 7, 8 */
@media only screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) {
    .hero-section {
        padding-top: 70px;
    }
}

/* iPhone 6+, 6s+, 7+, 8+ */
@media only screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) {
    .hero-section {
        padding-top: 75px;
    }
}

/* iPhone X, XS */
@media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
    .hero-section {
        padding-top: 88px; /* Account for notch */
    }
    
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
}

/* iPad */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    /* Enable hover effects for iPad */
    .card:hover {
        transform: translateY(-5px);
    }
    
    /* Optimize touch targets */
    .btn {
        min-height: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Surface and similar tablets */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section .row {
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
} 

.hero-section h1 {
    padding-top: 275px;
}