/* WriteFlow - Responsive CSS */

/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 { font-size: 1.58rem; }
    h2 { font-size: 1.33rem; }
    h3 { font-size: 1.25rem; }
    
    /* Hero section mobile */
    #hero {
        padding-top: 80px;
        text-align: center;
    }
    
    #hero .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Navigation mobile */
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    /* Cards mobile spacing */
    .feature-card, .service-card, .review-card,
    .case-study-card, .career-card, .info-card, .blog-card {
        padding: 1.5rem;
        margin-bottom: 1.70rem;
    }
    
    /* Price cards mobile */
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    /* Team photos mobile */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps mobile */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Timeline mobile */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 60px !important;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Gallery mobile */
    .gallery-img {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    /* Footer mobile */
    footer .col-lg-4, footer .col-lg-2, footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero {
        padding-top: 90px;
    }
    
    /* Cards tablet spacing */
    .feature-card, .service-card, .review-card {
        margin-bottom: 2rem;
    }
    
    /* Timeline tablet */
    .timeline-item {
        width: 45%;
    }
    
    /* Team grid tablet */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation adjustments */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Hero section */
    #hero h1 {
        font-size: 2.65rem;
    }
    
    /* Process steps layout */
    .process-step {
        margin-bottom: 3rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
    /* Full desktop layout */
    .container {
        max-width: 1200px;
    }
    
    /* Hero optimal spacing */
    #hero {
        padding-top: 120px;
    }
    
    /* Team layout optimization */
    .team-member {
        margin-bottom: 3rem;
    }
    
    /* Timeline full layout */
    .timeline-item:nth-child(odd) {
        text-align: right;
    }
    
    .timeline-item:nth-child(even) {
        text-align: left;
    }
}

/* Print styles */
@media print {
    .navbar, .breadcrumb-section, #space, footer {
        display: none !important;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    :root {
        --primary-purple: #66259a;
        --primary-blue: #13387e;
        --primary-teal: #0c4d5d;
        --primary-coral: #70290f;
        --primary-rose: #8b0e30;
    }
    
    .btn-primary, .btn-outline-primary {
        border-width: 3px;
    }
    
    .form-control:focus {
        border-width: 3px;
    }
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
    /* Note: Template doesn't use dark theme for accessibility */
    /* This is just for future reference */
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .feature-card:hover, .service-card:hover, .review-card:hover,
    .case-study-card:hover, .career-card:hover, .info-card:hover,
    .blog-card:hover {
        transform: none;
        box-shadow: 0 7px 6px rgba(0,0,0,0.05);
    }
    
    .btn-primary:hover, .btn-outline-primary:hover {
        transform: none;
    }
    
    .gallery-img:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .btn {
        padding: 1rem 2rem;
    }
    
    .nav-link {
        padding: 1rem !important;
    }
}

/* Specific breakpoint adjustments */
@media (max-width: 480px) {
    /* Extra small mobile devices */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
    
    .hero h1 {
  padding-top: 50px !important;
        font-size: 1.86rem;
    }
}

@media (min-width: 1400px) {
    /* Extra large screens */
    .container {
        max-width: 1320px;
    }
    
    .feature-card, .service-card {
        padding: 2.5rem;
    }
}
