/* ========================================
   GreenBites - Responsive CSS
   Mobile-first responsive design
   ======================================== */

/* Base Mobile Styles (already in main.css) */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-section {
        padding: 140px 0 80px;
    }
    
    h1 {
        font-size: 2.29rem;
    }
    
    .navbar-brand {
        font-size: 1.52rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    :root {
        --section-padding: 6rem 0;
        --card-padding: 2.5rem;
    }
    
    .hero-section {
        padding: 160px 0 100px;
    }
    
    h1 {
        font-size: 2.55rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .navbar {
        padding: 1.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1.64rem;
    }
    
    .hero-image {
        width: 600px;
    }
    
    .feature-card {
        min-height: 250px;
    }
    
    .service-card .card-img-top {
        height: 220px;
    }
    
    .team-photo {
        width: 180px;
        height: 180px;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.89rem;
    }
    
    .gallery-image {
        height: 220px;
    }
    
    .contact-form {
        padding: 3rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    :root {
        --section-padding: 7rem 0;
        --card-padding: 3rem;
    }
    
    .hero-section {
        padding: 180px 0 120px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.37rem;
    }
    
    .navbar {
        padding: 1.5rem 0;
    }
    
    .hero-image {
        width: 700px;
    }
    
    .feature-card {
        min-height: 280px;
    }
    
    .service-card .card-img-top {
        height: 240px;
    }
    
    .pricing-card.featured {
        transform: scale(1.08);
    }
    
    .team-photo {
        width: 200px;
        height: 200px;
    }
    
    .step-number {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .blog-image {
        height: 220px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        padding: 200px 0 140px;
    }
    
    h1 {
        font-size: 3.31rem;
    }
    
    .hero-image {
        width: 800px;
    }
    
    .feature-card {
        min-height: 300px;
    }
    
    .service-card .card-img-top {
        height: 260px;
    }
    
    .gallery-image {
        height: 280px;
    }
    
    .blog-image {
        height: 240px;
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-image {
        width: 900px;
    }
    
    .feature-card {
        min-height: 320px;
    }
}

/* Mobile-specific adjustments (below 768px) */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    h1 {
        font-size: 1.97rem;
    }
    
    h2 {
        font-size: 1.59rem;
    }
    
    .navbar-brand {
        font-size: 1.18rem;
    }
    
    .hero-image {
        margin-top: 2rem;
        width: 100%;
        max-width: 400px;
    }
    
    .feature-card {
        margin-bottom: 1.73rem;
        min-height: auto;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
        border-color: var(--primary-accent);
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .review-card {
        margin-bottom: 1.57rem;
    }
    
    .case-study-card {
        margin-bottom: 1.60rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.33rem;
    }
    
    .timeline-item {
        margin-bottom: 1.62rem;
    }
    
    .career-card {
        margin-bottom: 1.68rem;
    }
    
    .info-card {
        margin-bottom: 1.62rem;
    }
    
    .blog-card {
        margin-bottom: 2rem;
    }
    
    .blog-image {
        height: 160px;
    }
    
    .gallery-image {
        height: 160px;
        margin-bottom: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Stack hero content vertically on mobile */
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Adjust navbar on mobile */
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        text-align: center;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .col-lg-4:last-child {
        margin-bottom: 0;
    }
}

/* Very small devices (320px and below) */
@media (max-width: 320px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.54rem;
    }
    
    .navbar-brand {
        font-size: 1.40rem;
    }
    
    .hero-image {
        max-width: 280px;
    }
    
    .feature-card,
    .service-card,
    .contact-form,
    .contact-info {
        padding: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
}

/* Landscape phone adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .hero-image {
        max-width: 300px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-nav,
    footer,
    .btn,
    .accordion-button {
        display: none;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .blog-card {
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid var(--medium-gray);
    }
    
    .gallery-image {
        max-width: 100%;
        height: auto;
    }
    
    .contact-form {
        border: 1px solid var(--medium-gray);
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: var(--medium-gray);
    }
    
    a[href^="#"]::after {
        content: "";
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #234a1f;
        --primary-light-green: #387234;
        --primary-accent: #3e7c51;
        --dark-gray: #000000;
        --medium-gray: #232323;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .career-card,
    .info-card,
    .blog-card,
    .contact-form {
        border: 2px solid var(--dark-gray);
    }
    
    .btn-primary {
        border: 2px solid var(--dark-gray);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    .hero-section,
    .feature-card,
    .service-card {
        animation: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .team-member:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .gallery-image:hover,
    .btn-primary:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
@media (any-hover: none) {
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .team-member:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .gallery-image:hover {
        transform: none;
    }
}

/* Focus visible for keyboard navigation */
.feature-card:focus-visible,
.service-card:focus-visible,
.pricing-card:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.navbar-brand:focus-visible {
    outline: 3px solid var(--primary-accent);
    outline-offset: 2px;
}

/* Dark mode (if browser supports) */

.hero-section h1 {
    padding-top: 200px;
}