/* Responsive Styles */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #hero-title-1 {
        font-size: 4rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 1199.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    #hero-title-1 {
        font-size: 3rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
    
    #hero-title-1 {
        font-size: 2.59rem;
    }
    
    .hero-section {
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 40px;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
        text-align: left;
    }
    
    .timeline-content::before {
        left: -8px;
        border-right-color: var(--white);
        border-left: none;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.83rem;
    }
    
    h3 {
        font-size: 1.41rem;
    }
    
    #hero-title-1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    #hero-subtitle-1 {
        font-size: 1.16rem;
    }
    
    .hero-section {
        padding: 60px 0 30px;
    }
    
    .feature-card, .service-card, .review-card, .case-study-card, .blog-card {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.28rem;
    }
    
    .process-step h5 {
        font-size: 1rem;
    }
    
    .gallery-img {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.31rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .text-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Extra extra small devices (very small phones, less than 400px) */
@media (max-width: 399.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    #hero-title-1 {
        font-size: 1.82rem;
    }
    
    #hero-subtitle-1 {
        font-size: 1rem;
    }
    
    .feature-card, .service-card, .review-card, .case-study-card, .blog-card {
        padding: 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem 1rem;
    }
    
    .price-tag {
        font-size: 2.61rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .btn-primary {
        padding: 0.5rem 1.5rem;
        font-size: 1.01rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 40px 0 20px;
    }
    
    #hero-title-1 {
        font-size: 2rem;
        margin-bottom: 0.68rem;
    }
    
    #hero-subtitle-1 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    #hero-desc-1 {
        font-size: 0.99rem;
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .breadcrumb-nav {
        display: none !important;
    }
    
    .hero-section {
        padding: 20px 0;
        min-height: auto;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .feature-card,
    .service-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .pricing-card {
        box-shadow: none;
        border: 1px solid #c6b8ba;
        break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    h4 { font-size: 13pt; }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .pricing-card {
        border: 2px solid var(--dark-gray);
    }
    
    .btn-primary {
        border: 2px solid var(--dark-blue);
    }
    
    .form-control:focus {
        border-width: 3px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Focus management 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;
    }
}

/* Grid adjustments for very small screens */
@media (max-width: 575.98px) {
    .row > * {
        margin-bottom: 1rem;
    }
    
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .timeline-item {
        margin: 1rem 0;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        padding: 90px 0 50px;
    }
    
    .feature-card,
    .service-card {
        height: auto;
        min-height: 280px;
    }
    
    .pricing-card {
        min-height: 400px;
    }
    
    .team-photo {
        width: 130px;
        height: 130px;
    }
}

/* Large phone specific adjustments */
@media (min-width: 576px) and (max-width: 767px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .pricing-card.featured {
        transform: scale(1.02);
    }
}

/* Navigation improvements for touch devices */
@media (hover: none) and (pointer: coarse) {
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover {
        transform: none;
    }
} 