/* Responsive Design for Vintage Furniture Restoration Studio */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.77rem;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 55%;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 55%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.54rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.58rem;
    }
    
    /* Timeline adjustments for tablets */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 80px;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-year {
        left: 30px;
        transform: translateX(-50%) translateY(-50%);
    }
    
    /* Process section */
    .process-step {
        padding: 1.5rem 0.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.39rem;
    }
    
    /* Contact form */
    .contact-info-card {
        margin-top: 2rem;
    }
    
    /* Team section */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding-top: 90px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.34rem;
        margin-bottom: 1rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.46rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.52rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.62rem;
    }
    
    /* Services */
    #services .card-body {
        padding: 1.5rem;
    }
    
    /* Features */
    .feature-item {
        padding: 1.5rem;
        margin-bottom: 1.58rem;
    }
    
    /* Timeline - mobile version */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-year {
        left: 20px;
        transform: translateX(-50%) translateY(-50%);
        font-size: 1.02rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Process */
    .process-step {
        padding: 1.25rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    /* Contact */
    .contact-info-card {
        margin-top: 2rem;
    }
    
    .contact-item {
        margin-bottom: 1.70rem;
    }
    
    /* Gallery */
    #gallery .col-lg-4,
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Base adjustments */
    body {
        font-size: 0.93rem;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 80px;
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section h1 {
        font-size: 1.94rem;
        line-height: 1.2;
        margin-bottom: 0.87rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.30rem;
        line-height: 1.3;
        margin-bottom: 0.88rem;
    }
    
    .hero-section p {
        font-size: 1.09rem;
        margin-bottom: 1.69rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.36rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 1.09rem;
    }
    
    /* Typography */
    h2 {
        font-size: 1.79rem;
    }
    
    h3 {
        font-size: 1.39rem;
    }
    
    h4, h5 {
        font-size: 1.24rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.93rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.75rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.45rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.27rem;
        margin-bottom: 0.87rem;
    }
    
    /* Services */
    #services ul li {
        font-size: 1.01rem;
        padding: 0.2rem 0;
    }
    
    #services .price {
        font-size: 1.27rem;
        margin-top: 0.83rem;
    }
    
    /* Features */
    .feature-item {
        padding: 1.25rem;
        margin-bottom: 1.43rem;
    }
    
    .feature-item i {
        font-size: 1.62rem;
    }
    
    /* Process */
    .process-step {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
        margin-bottom: 1.00rem;
    }
    
    /* Timeline - mobile optimized */
    .timeline {
        padding: 1rem 0;
    }
    
    .timeline::before {
        left: 15px;
        width: 1px;
    }
    
    .timeline-item {
        padding-left: 45px;
        padding-top: 1rem;
        padding-bottom: 1rem;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 45px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-year {
        left: 15px;
        transform: translateX(-50%) translateY(-50%);
        font-size: 0.87rem;
        padding: 0.25rem 0.5rem;
        min-width: 60px;
    }
    
    .timeline-item h5 {
        font-size: 1rem;
        margin-bottom: 0.68rem;
    }
    
    .timeline-item p {
        font-size: 0.94rem;
        margin-bottom: 0;
    }
    
    /* Team */
    .team-member {
        margin-bottom: 1.70rem;
        text-align: center;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .team-member h5 {
        font-size: 1.25rem;
        margin-bottom: 0.30rem;
        margin-top: 0.81rem;
    }
    
    .team-member p {
        font-size: 0.97rem;
        margin-bottom: 0;
    }
    
    /* Contact */
    .contact-form {
        margin-bottom: 2rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1.38rem;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-bottom: 0.59rem;
        font-size: 1.33rem;
    }
    
    .service-highlight {
        padding: 1.25rem;
        margin-bottom: 1.36rem;
    }
    
    .service-highlight i {
        font-size: 1.56rem;
    }
    
    .service-highlight h5 {
        font-size: 1.24rem;
        margin-bottom: 0.98rem;
    }
    
    /* Gallery */
    #gallery img {
        margin-bottom: 1rem;
        width: 100%;
        height: auto;
    }
    
    /* Info cards */
    .info-card {
        padding: 1.25rem;
        margin-bottom: 1.33rem;
    }
    
    .info-card i {
        font-size: 1.60rem;
        margin-bottom: 0.85rem;
    }
    
    .info-card h5 {
        font-size: 1.27rem;
        margin-bottom: 0.55rem;
    }
    
    .info-card p {
        font-size: 1.02rem;
        margin-bottom: 0;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Space adjustments */
    .mb-4 {
        margin-bottom: 1.36rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .mt-4,
    .mt-5 {
        margin-top: 1.57rem !important;
    }
    
    /* Form improvements */
    .form-control {
        font-size: 1.07rem;
    }
    
    .form-label {
        font-size: 0.97rem;
        font-weight: 600;
        margin-bottom: 0.55rem;
    }
    
    /* Footer adjustments */
    footer {
        padding: 2.5rem 0 !important;
    }
    
    footer h5 {
        font-size: 1.17rem;
        margin-bottom: 1rem;
    }
    
    footer p,
    footer li {
        font-size: 1.02rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        margin-bottom: 1rem;
    }
    
    .breadcrumb img {
        width: 16px;
        height: 16px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding-top: 70px;
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.45rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
}

/* High contrast and accessibility improvements */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--dark-color);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-dark);
    }
    
    .feature-item,
    .info-card,
    .service-highlight {
        border: 1px solid var(--secondary-dark);
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 2rem;
        background: none !important;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dac7c8;
        margin-bottom: 1rem;
    }
} 