/* Responsive CSS for KeyCraft Studio */

/* Mobile First Approach */
/* Base styles are mobile (320px+) */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .hero-section h1 {
        font-size: 2.53rem;
    }
    
    .hero-section h2 {
        font-size: 1.33rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .hero-section h1 {
        font-size: 3.01rem;
    }
    
    .hero-section h2 {
        font-size: 1.63rem;
    }
    
    /* Swiper effects enabled for tablets and desktop */
    .swiper {
        overflow: hidden;
    }
    
    /* Timeline responsive adjustments */
    .timeline-item {
        margin-left: 55%;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        margin-right: 55%;
    }
    
    /* Process steps - better spacing on tablets */
    .col-lg-5th {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2.09rem;
    }
    
    /* Contact form layout improvements */
    .contact-form {
        padding: 2.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    /* Process steps back to 5 columns */
    .col-lg-5th {
        flex: 0 0 20%;
        max-width: 20%;
        margin-bottom: 0;
    }
    
    /* Hero section full effect */
    .hero-section {
  padding-top: 50px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    /* Navbar improvements */
    .navbar-nav .nav-link {
        padding: 0.75rem 1.25rem;
        margin: 0 0.25rem;
        border-radius: 0.5rem;
    }
    
    /* Better card hover effects on desktop */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .team-member:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 30px 50px -12px rgba(0, 0, 0, 0.15);
    }
    
    /* Timeline full desktop layout */
    .timeline-item {
        margin-left: 60%;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        margin-right: 60%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.64rem;
    }
    
    .hero-section h2 {
        font-size: 1.87rem;
    }
    
    /* Enhanced spacing for larger screens */
    .py-5 {
        padding-top: 4.22rem !important;
        padding-bottom: 4.25rem !important;
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 4.12rem;
    }
}

/* Mobile-specific styles (max-width: 767px) */
@media (max-width: 767px) {
    /* Disable Swiper autoplay and effects on mobile */
    .swiper {
        overflow: visible;
    }
    
    .swiper-slide {
        width: 100% !important;
        margin-bottom: 1.20rem;
    }
    
    .swiper-wrapper {
        display: block !important;
        transform: none !important;
    }
    
    /* Mobile navbar */
    .navbar-brand {
        font-size: 1.24rem !important;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1.22rem;
        background: var(--white);
        border-radius: 0.5rem;
        box-shadow: 0 8px 6px -1px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }
    
    /* Hero section mobile */
    .hero-section {
  padding-top: 50px;
        padding-top: 102.00px;
        padding-bottom: 3.22rem;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.07rem;
        margin-bottom: 0.93rem;
    }
    
    .hero-section h2 {
        font-size: 1.23rem;
        margin-bottom: 1.20rem;
    }
    
    .hero-section p {
        font-size: 1.07rem;
    }
    
    /* Mobile cards */
    .feature-card,
    .service-card,
    .price-card,
    .team-member,
    .case-study-card,
    .career-card,
    .info-card,
    .blog-card,
    .guide-card,
    .profile-card,
    .custom-card,
    .compat-card,
    .care-card,
    .technique-card,
    .color-card,
    .mold-card,
    .finish-card {
        padding: 1.5rem;
        margin-bottom: 1.66rem;
    }
    
    /* Mobile timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        margin-left: 50px;
        margin-right: 0 !important;
        padding: 1.5rem;
    }
    
    .timeline-item::before {
        left: -30px !important;
        right: auto !important;
    }
    
    /* Mobile contact form */
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2.09rem;
    }
    
    /* Mobile gallery - 2 columns */
    #gallery .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Mobile text sizes */
    h1 { font-size: 1.87rem; }
    h2 { font-size: 1.63rem; }
    h3 { font-size: 1.33rem; }
    h4 { font-size: 1.23rem; }
    
    /* Mobile spacing adjustments */
    .mb-5 {
        margin-bottom: 2.09rem !important;
    }
    
    .py-5 {
        padding-top: 2.13rem !important;
        padding-bottom: 2.15rem !important;
    }
    
    /* Mobile buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1.02rem;
    }
    
    /* Mobile price cards */
    .price-card.featured {
        transform: none;
        margin-bottom: 2.09rem;
    }
    
    /* Mobile team images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Mobile process steps */
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.33rem;
    }
}

/* Tablet-specific styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    /* 3 columns for services on tablets */
    .service-card {
        margin-bottom: 2.09rem;
    }
    
    /* 2 columns for gallery on tablets */
    #gallery .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Tablet timeline adjustments */
    .timeline-item {
        margin-left: 50%;
        margin-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        margin-right: 50%;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .swiper-pagination,
    .contact-form,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .hero-section {
  padding-top: 50px;
        background: none !important;
        color: black !important;
        page-break-after: always;
    }
    
    .feature-card,
    .service-card,
    .price-card {
        border: 1px solid #c5c5c5;
        page-break-inside: avoid;
        margin-bottom: 1.20rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-purple: #461a8f;
        --primary-orange: #ad2c12;
        --primary-teal: #1f5a51;
        --primary-rose: #8e0236;
        --slate-dark: #050813;
        --slate-light: #435669;
    }
    
    .feature-card,
    .service-card,
    .price-card {
        border: 2px solid var(--slate-dark);
    }
    
    .btn-primary {
        background: var(--slate-dark);
        border: 2px solid var(--slate-dark);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .feature-card,
    .service-card,
    .price-card {
        animation: none;
    }
    
    .swiper {
        overflow: visible;
    }
    
    .swiper-wrapper {
        display: block !important;
        transform: none !important;
    }
    
    .swiper-slide {
        width: 100% !important;
        margin-bottom: 1.20rem;
    }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-orange);
        outline-offset: 2px;
    }
}
