/* Responsive Styles for Vintage Patchwork Quilts */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .timeline-item {
        width: 48%;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 52%;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    /* Timeline becomes vertical on tablets */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 60px !important;
        margin-bottom: 2rem;
    }
    
    .timeline-item::before {
        left: -33px !important;
        right: auto !important;
    }
    
    /* Services grid adjustment */
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team member layout */
    .team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Process steps on tablet */
    .process-step .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    :root {
        --font-size-h1: 1.75rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.25rem;
        --font-size-brand: 1.125rem;
    }
    
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section img {
        margin-bottom: 2rem;
    }
    
    /* Navigation adjustments */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    /* Timeline becomes simple vertical */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 50px !important;
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .timeline-item::before {
        left: -25px !important;
        width: 10px;
        height: 10px;
    }
    
    /* Cards grid */
    .card-img-top {
        height: 180px;
    }
    
    /* Process steps */
    .step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1rem;
    }
    
    /* Team members - 2 per row */
    .team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form */
    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Extra Small Devices (below 576px) */
@media (max-width: 575.98px) {
    :root {
        --font-size-h1: 1.5rem;
        --font-size-h2: 1.25rem;
        --font-size-h3: 1.125rem;
        --font-size-h4: 1rem;
        --font-size-h5: 0.975rem;
        --font-size-brand: 1rem;
        --font-size-nav: 0.925rem;
        --font-size-body: 0.925rem;
    }
    
    /* General spacing */
    section {
        padding: 2rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section img {
        margin-bottom: 1.5rem;
        max-height: 250px;
        object-fit: cover;
        border-radius: 12px;
    }
    
    .hero-section h1 {
        margin-bottom: 0.75rem;
    }
    
    .hero-section h2 {
        margin-bottom: 0.5rem;
    }
    
    /* Navigation mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: var(--font-size-brand) !important;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
        background: var(--light-cream);
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    /* Cards mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .card-body {
  overflow-x: hidden !important;
        padding: 1rem;
    }
    
    /* Services mobile - stack cards */
    .services .row .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Process steps mobile */
    .process-step {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.925rem;
    }
    
    /* Timeline mobile - simplified */
    .timeline {
        padding: 1rem 0;
    }
    
    .timeline::before {
        left: 15px;
        width: 2px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 40px !important;
        margin-bottom: 1rem;
        padding: 1rem;
        font-size: 0.925rem;
    }
    
    .timeline-item::before {
        left: -20px !important;
        width: 8px;
        height: 8px;
    }
    
    /* Team members mobile - 1 per row */
    .team .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .rounded-circle {
        width: 80px;
        height: 80px;
    }
    
    /* About features mobile */
    .about .col-md-3 {
        margin-bottom: 1.5rem;
    }
    
    /* Features mobile */
    .features .col-md-6.col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    /* Price plans mobile */
    .priceplan .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Core info mobile */
    .coreinfo .col-lg-4.col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    /* FAQ mobile */
    .accordion-button {
        font-size: 0.925rem;
        padding: 0.75rem 1rem;
    }
    
    .accordion-body {
  overflow-x: hidden !important;
        font-size: 0.925rem;
        padding: 1rem;
    }
    
    /* Gallery mobile */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact form mobile */
    .contact .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    .contact-info {
        padding: 1rem;
        text-align: center;
    }
    
    .contact-info p {
        justify-content: center;
        font-size: 0.925rem;
    }
    
    /* Footer mobile */
    footer {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    footer ul {
        padding-left: 0;
    }
    
    footer li {
        list-style: none;
        margin-bottom: 0.5rem;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb-image {
        height: 25px;
    }
    
    /* Blog mobile */
    .blog .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Additional pages mobile adjustments */
    .restoration-item,
    .technique-card,
    .process-card,
    .gallery-item,
    .care-tip,
    .history-period,
    .pattern-card,
    .region-style,
    .technique-item,
    .meaning-card {
        margin-bottom: 1.5rem;
        padding: 1rem;
        text-align: center;
    }
    
    /* Additional page sections */
    .add-page .col-lg-2.col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* Swiper Mobile Controls - Disable autoplay and effects on mobile */
@media (max-width: 767.98px) {
    /* Swiper will be controlled via JavaScript */
    .reviewsSwiper {
        padding: 1rem 0;
    }
    
    .swiper-slide {
        padding: 0 0.5rem;
    }
    
    .swiper-pagination {
        position: static;
        margin-top: 1rem;
    }
    
    /* Disable hover effects on touch devices */
    .card:hover,
    .info-card:hover,
    .btn-primary:hover,
    .img-fluid.rounded:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on high DPI displays */
    .hero-section::before {
        background-size: 40px 40px;
    }
    
    .timeline::before {
        width: 2px;
    }
    
    .timeline-item::before {
        width: 12px;
        height: 12px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section .container {
        max-height: 80vh;
        overflow: hidden;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .swiper-pagination,
    .contact form,
    footer {
        display: none !important;
    }
    
    .hero-section,
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .timeline-item {
        position: static;
        width: 100%;
        margin: 0 0 1rem 0;
        page-break-inside: avoid;
    }
    
    .timeline::before,
    .timeline-item::before {
        display: none;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
} 