/* ===== RESPONSIVE STYLES - MOBILE FIRST ===== */

/* Extra Small devices (phones, 576px and up) */
@media (max-width: 575.98px) {
    /* Typography */
    h1, .hero-title {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.56rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    p {
        font-size: 0.93rem;
    }
    
    /* Spacing */
    :root {
        --section-padding: 40px 0;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.30rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 1.65rem;
    }
    
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Decorative Elements */
    .hero-decoration {
        width: 122px;
        height: 121px;
    }
    
    .hero-decoration.top-right {
        top: 5%;
        right: 5%;
    }
    
    .hero-decoration.bottom-left {
        bottom: 5%;
        left: 5%;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.71rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.67rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.56rem;
    }
    
    .service-price {
        font-size: 1.31rem;
    }
    
    /* Feature Items */
    .feature-item {
        padding: 1.5rem;
        margin-bottom: 1.66rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.38rem;
    }
    
    /* Team Cards */
    .team-card {
        padding: 1.5rem;
        margin-bottom: 1.67rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Review Cards */
    .review-card {
        padding: 1.5rem;
        margin-bottom: 1.73rem;
    }
    
    /* FAQ Cards */
    .faq-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Gallery Items */
    .gallery-item {
        margin-bottom: 1.74rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    /* Contact Section */
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .contact-info-item {
        margin-bottom: 1rem;
    }
    
    .contact-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer h5 {
        font-size: 1.24rem;
        margin-bottom: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 1.01rem;
    }
    
    .btn-primary,
    .btn-outline-primary {
        padding: 10px 25px;
        font-size: 0.98rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .hero-title {
        font-size: 2.38rem;
    }
    
    h2 {
        font-size: 1.87rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.61rem;
    }
    
    .hero-subtitle {
        font-size: 1.27rem;
    }
    
    /* Decorative Elements */
    .hero-decoration {
        width: 150px;
        height: 150px;
    }
    
    /* Service Cards */
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.89rem;
    }
    
    .service-price {
        font-size: 1.42rem;
    }
    
    /* Feature Items */
    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.45rem;
    }
    
    /* Team Cards */
    .team-photo {
        width: 110px;
        height: 110px;
    }
    
    /* Gallery Items */
    .gallery-item img {
        height: 220px;
    }
    
    /* Contact Info */
    .contact-info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.22rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1, .hero-title {
        font-size: 2.57rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.86rem;
    }
    
    .hero-subtitle {
        font-size: 1.28rem;
    }
    
    /* Decorative Elements */
    .hero-decoration {
        width: 180px;
        height: 180px;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1.75rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.75rem;
    }
    
    .service-icon {
        width: 75px;
        height: 75px;
        font-size: 1.86rem;
    }
    
    .service-price {
        font-size: 1.45rem;
    }
    
    /* Feature Items */
    .feature-item {
        padding: 1.75rem;
    }
    
    .feature-icon {
        width: 58px;
        height: 58px;
        font-size: 1.44rem;
    }
    
    /* Team Cards */
    .team-card {
        padding: 1.75rem;
    }
    
    .team-photo {
        width: 115px;
        height: 115px;
    }
    
    /* Review Cards */
    .review-card {
        padding: 1.75rem;
    }
    
    /* Gallery Items */
    .gallery-item img {
        height: 240px;
    }
    
    /* Contact Info */
    .contact-info {
        padding: 1.75rem;
    }
    
    .contact-info-icon {
        width: 48px;
        height: 48px;
        font-size: 1.33rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Typography */
    h1, .hero-title {
        font-size: 2.86rem;
    }
    
    h2 {
        font-size: 2.38rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.39rem;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
    }
    
    /* Gallery Items */
    .gallery-item img {
        height: 250px;
    }
    
    /* Spacing adjustments */
    .section-title {
        margin-bottom: 3.68rem;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Typography */
    h1, .hero-title {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.52rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 3.58rem;
    }
    
    .hero-subtitle {
        font-size: 1.43rem;
    }
    
    /* Container adjustments */
    .container {
        max-width: var(--container-max-width);
    }
    
    /* Gallery Items */
    .gallery-item img {
        height: 280px;
    }
    
    /* Spacing adjustments */
    .section-title {
        margin-bottom: 4rem;
    }
    
    /* Enhanced hover effects for larger screens */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }
    
    .service-card:hover,
    .team-card:hover,
    .review-card:hover,
    .gallery-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }
}

/* Print Styles */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .navbar,
    .btn,
    .footer {
        display: none !important;
    }
    
    .hero-decoration {
        display: none !important;
    }
    
    .card,
    .service-card,
    .team-card,
    .review-card,
    .faq-card {
        box-shadow: none !important;
        border: 1px solid #dddddd !important;
    }
    
    .gallery-item img {
        width: 100% !important;
        height: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #232323;
        --primary-sage: #2c6932;
        --primary-terracotta: #7d302f;
    }
    
    .card,
    .service-card,
    .team-card,
    .review-card,
    .faq-card {
        border: 2px solid #000000;
    }
    
    .btn-primary,
    .btn-outline-primary {
        border-width: 2px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-desc {
        font-size: 1.02rem;
        margin-bottom: 1.58rem;
    }
    
    .hero-decoration {
        width: 80px;
        height: 80px;
    }
}

/* Focus visible improvements */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus-visible,
    .form-control:focus,
    .nav-link:focus-visible {
        outline: 2px solid var(--primary-sage);
        outline-offset: 2px;
    }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hover-lift:hover {
        transform: none;
    }
    
    .card:hover,
    .service-card:hover,
    .team-card:hover,
    .review-card:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: none;
    }
}

/* Dark mode support */

.hero-content {
    padding-top: 150px;
}