/* Responsive Design - Mobile First Approach */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Desktop-only adjustments (avoid mobile/tablet) */
@media (min-width: 992px) {
    /* Move hero text slightly higher by reducing the top padding */
    .hero {
        padding-top: 40px;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .image-collage {
        height: 450px;
    }
    
    .image-1 {
        width: 220px;
        height: 270px;
    }
    
    .image-2 {
        width: 180px;
        height: 220px;
    }
    
    .image-3 {
        width: 160px;
        height: 200px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .nav-social {
        justify-content: center;
    }
    
    .nav-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .hero {
        min-height: 90vh;
        padding-top: 120px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .image-collage {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }
    
    .about-img { height: 280px; max-width: 520px; border-radius: 24px; }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        justify-content: center;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .gallery-header { justify-content:center; }
    .gallery-headings { text-align:center; }
    .gallery-headings .section-subtitle { text-align:center; }
    
    /* Testimonials */
    .testimonials-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; text-align:center; }
    .footer-right { align-items:center; }
}

/* Small Tablet */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }
    
    /* Spacing */
    .hero,
    .about,
    .services,
    .gallery,
    .conditions,
    .testimonials,
    .contact { padding: 3rem 0; }
    
    /* Navigation */
    .nav-container {
        padding: 0.5rem 15px;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
        transform: scale(6.0);
    }
    
    /* Hero */
    .hero {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .image-collage {
        height: 350px;
    }
    
    .image-1 {
        width: 180px;
        height: 220px;
    }
    
    .image-2 {
        width: 150px;
        height: 180px;
        top: 30px;
    }
    
    .image-3 {
        width: 130px;
        height: 160px;
        left: 80px;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon img {
        width: 40px;
        height: 40px;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Conditions */
    .condition-tag {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .conditions-cta {
        flex-direction: column;
        align-items: center;
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-item i {
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0.75rem 10px;
    }
    
    .nav-menu {
        padding: 1.5rem;
    }
    
    .nav-cta {
        gap: 0.75rem;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.625rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Hero */
    .hero {
        background-image: url('../images/uploads/mobilehero.png');
        /* Make hero artwork a bit smaller and positioned higher */
        background-size: 92% auto;
        background-repeat: no-repeat;
        background-position: top center;
        /* Push text and buttons lower to match reference */
        padding-top: 320px;
        position: relative;
        z-index: 1;
    }
    .hero-content {
        position: relative;
        z-index: 2;
    }
    .hero-bg-pattern {
        z-index: 0;
    }
    .hero-cta {
        position: relative;
        z-index: 3;
    }
    .hero-cta .btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        min-height: 44px;
    }
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-top: 2px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-top: 2px;
    }
    
    .image-collage {
        height: 300px;
    }
    
    .image-1 {
        width: 150px;
        height: 180px;
    }
    
    .image-2 {
        width: 120px;
        height: 150px;
        top: 20px;
        right: 10px;
    }
    
    .image-3 {
        width: 110px;
        height: 130px;
        left: 60px;
        bottom: 10px;
    }
    
    /* About */
    .about-img {
        height: 240px;
        max-width: 360px;
        border-radius: 20px;
    }
    /* Center the about image on mobile */
    .about-image { display: flex; justify-content: center; }
    .about-img { display: block; margin-left: auto; margin-right: auto; }
    
    .about-description {
        font-size: 1rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon img {
        width: 35px;
        height: 35px;
    }
    
    .service-title {
        font-size: 1.125rem;
    }
    
    .service-description {
        font-size: 0.95rem;
    }
    
    /* Conditions */
    .conditions-grid { display: flex; flex-wrap: wrap; gap: 12px; max-width: 640px; }
    .condition-tag { font-size: 1rem; padding: 14px 22px; }
    
    .condition-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-avatar {
        width: 45px;
        height: 45px;
    }
    
    .testimonial-name {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    /* Contact */
    .contact-map iframe {
        height: 300px;
        touch-action: manipulation;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
    }
    /* Center contact content on mobile */
    .contact-info {
        text-align: center;
    }
    .contact-item {
        align-items: center;
    }
    
    /* Footer */
    .footer-logo-text {
        font-size: 1.25rem;
    }
    
    .footer-tagline {
        font-size: 0.8rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    /* Navigation */
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
        transform: scale(5.25);
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.5rem;
    }
    
    .image-collage {
        height: 250px;
    }
    
    .image-1 {
        width: 130px;
        height: 160px;
    }
    
    .image-2 {
        width: 100px;
        height: 130px;
        top: 15px;
        right: 5px;
    }
    
    .image-3 {
        width: 90px;
        height: 110px;
        left: 50px;
        bottom: 5px;
    }
    
    /* Services */
    .service-card {
        padding: 1rem;
    }
    
    /* Contact */
    .contact-map iframe {
        height: 250px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .image-collage {
        height: 250px;
    }
    
    .sections {
        padding: 2rem 0;
    }
}

/* Touch device specific styles */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .service-card:hover,
    .gallery-item:hover,
    .image-item:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    .service-card:active,
    .gallery-item:active {
        transform: scale(0.98);
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    .nav-link,
    .social-link,
    .condition-tag {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Force light theme on all devices */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #FAFAFA;
        --bg-white: #FFFFFF;
        --text-dark: #333333;
        --text-medium: #666666;
        --text-light: #999999;
        --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
        --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    .navbar { background: rgba(255,255,255,0.95); border-bottom: 1px solid rgba(0,0,0,0.1); }
    .hero { background-image: url('../images/uploads/header.png'); background-size: cover; background-position: center; }
    .testimonial-card { border: 1px solid #e0e0e0; }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn,
    .service-card,
    .testimonial-card,
    .gallery-item {
        border: 2px solid currentColor;
    }
    
    .image-item {
        border: 2px solid white;
    }
}

/* Ensure mobile hero image also applies in dark mode on mobile */
@media (prefers-color-scheme: dark) and (max-width: 575px) {
    .hero {
        background-image: url('../images/uploads/mobilehero.png');
        background-size: cover;
        background-position: center;
    }
}
