/* Mobile First Responsive Design */

/* Large Screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 { font-size: 2.63rem; }
    h2 { font-size: 2rem; }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 0 2rem;
    }
    
    .section-padding {
        padding: 6rem 0;
    }
}

/* Medium Screens (992px to 1199px) */
@media (max-width: 1199.98px) {
    .price-card.featured {
        transform: scale(1.02);
    }
    
    .hero-section img {
        max-height: 400px;
        height: 400px;
    }
}

/* Small Screens (768px to 991px) */
@media (max-width: 991.98px) {
    .navbar-nav {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: 0 10px 15px rgba(45, 101, 23, 0.10);
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 80vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section::before {
        width: 100%;
        height: 100%;
        top: 0;
        right: 0;
        transform: none;
        opacity: 0.05;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section img {
        margin-bottom: 2rem;
        max-height: 300px;
        height: 300px;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.87rem; }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .impact-number {
        font-size: 2.53rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.39rem;
    }
}

/* Extra Small Screens (576px to 767px) */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.32rem;
    }
    
    .nav-link {
        padding: 0.5rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 70vh;
        padding: 1rem 0;
    }
    
    .hero-section img {
        max-height: 250px;
        height: 250px;
        margin-bottom: 1.68rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    h1 { font-size: 1.87rem; }
    h2 { font-size: 1.58rem; }
    h3 { font-size: 1.34rem; }
    h4 { font-size: 1.24rem; }
    
    .card {
        margin-bottom: 1.61rem;
    }
    
    .feature-box, .material-card, .info-card, .action-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .impact-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .impact-number {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    .timeline-item {
        margin-bottom: 1.72rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .process-step {
        margin-bottom: 1.59rem;
    }
    
    .breadcrumb-section {
        padding: 1rem 0 0.5rem;
    }
    
    .breadcrumb-icon {
        height: 25px;
    }
}

/* Extra Extra Small Screens (up to 575px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.16rem;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 60vh;
        padding: 0.5rem 0;
    }
    
    .hero-section img {
        max-height: 200px;
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    h1 { font-size: 1.62rem; }
    h2 { font-size: 1.38rem; }
    h3 { font-size: 1.21rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.90rem; }
    
    p {
        font-size: 0.99rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.88rem;
    }
    
    .feature-box, .material-card, .info-card, .action-card {
        padding: 1rem;
    }
    
    .impact-card {
        padding: 1rem;
    }
    
    .impact-number {
        font-size: 1.77rem;
    }
    
    .contact-form {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .team-member img {
        width: 60px;
        height: 60px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.94rem;
    }
    
    .timeline-year {
        font-size: 0.87rem;
        padding: 0.25rem 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .service-card img, .brand-card img, .blog-card img {
        height: 150px;
    }
    
    .footer {
        padding: 2rem 0;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 1.69rem;
    }
    
    #gallery img {
        height: 150px;
    }
    
    .space-section {
        min-height: 50vh;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 100vh;
    }
    
    .hero-section img {
        max-height: 200px;
        height: 200px;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section img,
    .service-card img,
    .brand-card img,
    .blog-card img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    #gallery {
        display: none !important;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: auto;
        background: white !important;
    }
    
    .section-padding {
        padding: 1rem 0;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #c5bdbd !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
    
    p {
        color: black !important;
    }
    
    .contact-form {
        background: white !important;
        box-shadow: none !important;
    }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #28470f;
        --secondary-sage: #59803f;
        --accent-earth: #aa8f4d;
        --contrast-charcoal: #000000;
    }
    
    .card {
        border: 2px solid var(--contrast-charcoal);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card:hover,
    .feature-box:hover,
    .material-card:hover,
    .info-card:hover,
    .action-card:hover,
    .impact-card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* Focus Visible for Better Accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible,
.navbar-brand:focus-visible {
    outline: 3px solid var(--secondary-sage);
    outline-offset: 2px;
} 