/* Electric Bike Shop - Responsive Stylesheet */

/* Mobile First Approach */

/* Extra Small devices (phones, 320px and up) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 3rem 0;
        min-height: 100vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .services-section .card-img-top {
        height: 150px;
    }
    
    .team-section img {
        width: 80px;
        height: 80px;
    }
    
    .process-step {
        margin-bottom: 1rem;
    }
    
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .gallery-section .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .price-plan-section .card {
        margin-bottom: 1rem;
    }
    
    .reviews-section .card {
        margin-bottom: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section p {
        font-size: 1.125rem;
    }
    
    .services-section .card-img-top {
        height: 180px;
    }
    
    .team-section img {
        width: 90px;
        height: 90px;
    }
    
    .process-step {
        padding: 1rem;
    }
    
    .contact-section .col-md-8 {
        margin-bottom: 2rem;
    }
    
    .gallery-section .col-md-3 {
        width: 50%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.25rem;
    }
    
    .services-section .card-img-top {
        height: 200px;
    }
    
    .team-section img {
        width: 100px;
        height: 100px;
    }
    
    .process-step {
        padding: 1.25rem;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0.5rem;
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .contact-section .col-md-8 {
        margin-bottom: 2rem;
    }
    
    .gallery-section .col-md-3 {
        width: 50%;
    }
    
    .price-plan-section .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section p {
        font-size: 1.375rem;
    }
    
    .services-section .card-img-top {
        height: 220px;
    }
    
    .team-section img {
        width: 120px;
        height: 120px;
    }
    
    .process-step {
        padding: 1.5rem;
    }
    
    .container {
        max-width: 960px;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
    }
    
    .gallery-section .col-md-3 {
        width: 25%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section p {
        font-size: 1.5rem;
    }
    
    .services-section .card-img-top {
        height: 250px;
    }
    
    .team-section img {
        width: 140px;
        height: 140px;
    }
    
    .process-step {
        padding: 2rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0 1rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .gallery-section .col-md-3 {
        width: 25%;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section {
        padding: 6rem 0;
    }
    
    .services-section .card-img-top {
        height: 280px;
    }
    
    .team-section img {
        width: 160px;
        height: 160px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-nav {
        padding: 0.5rem 0;
        margin-top: 60px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-nav,
    footer,
    .btn,
    .gallery-section,
    .contact-section form {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .hero-section::before {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .text-white {
        color: #000 !important;
    }
    
    .bg-dark {
        background: #fff !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    .price {
        font-weight: bold !important;
    }
    
    .team-section img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .process-step::before {
        display: none !important;
    }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 2dppx) {
    .hero-section::before {
        background-image: url('../HUX_images/hero-bg@2x.webp');
    }
    
    .services-section .card-img-top,
    .team-section img,
    .gallery-section img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility improvements for small screens */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .accordion-button {
        min-height: 44px;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
        min-height: 44px;
        min-width: 44px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .card,
    .btn,
    .form-control,
    .team-section img,
    .gallery-section img,
    .process-step,
    .fade-in {
        transition: none !important;
        animation: none !important;
    }
    
    .hero-section::before {
        animation: none !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */

/* Container responsiveness */
@media (max-width: 1199.98px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Navigation responsiveness */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 0 0 0.5rem 0.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Grid system adjustments */
@media (max-width: 767.98px) {
    .row [class*="col-"] {
        margin-bottom: 1rem;
    }
    
    .row [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Image responsiveness */
@media (max-width: 575.98px) {
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
    
    .services-section .card-img-top {
        height: 200px;
        object-fit: cover;
    }
    
    .gallery-section img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}

/* Typography responsiveness */
@media (max-width: 767.98px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }
    
    .display-4 { font-size: 2rem; }
    .lead { font-size: 1rem; }
}

/* Spacing adjustments */
@media (max-width: 575.98px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
} 