/* Responsive Styles */

@media (max-width: 768px) {

    /* Header */
    .mobile-menu-toggle {
        display: block;
        z-index: 200;
    }

    .main-nav ul {
        display: none;
        /* Hide by default */
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--c-white);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: var(--sp-md);
        text-align: center;
    }

    .main-nav ul.active {
        display: flex;
    }

    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image img {
        -webkit-mask-image: none;
        mask-image: none;
        width: 100%;
        /* Ensure full width on mobile */
    }

    .hero-text p {
        margin: 0 auto var(--sp-md);
    }

    /* About & Contact Grid */
    .about-grid,
    .contact-content,
    .footer-inner,
    .service-columns {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-wrapper {
        order: 1;
    }

    /* Typography */
    .hero-text h1 {
        font-size: 2.2rem;
    }

    h1 {
        font-size: 2rem;
    }
}

/* Granular Breakpoints for Mobile Variance */

/* Small Phones (iPhone SE, old Androids) - < 380px */
@media (max-width: 380px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }
}

/* Tall & Narrow Screens (Modern Androids/Xperia) - 20:9 & 21:9 Aspect Ratios */
@media (min-height: 800px) and (max-width: 450px) {
    .hero {
        min-height: 80vh;
        /* Ensure hero takes up vertical space */
        display: flex;
        align-items: center;
    }
}

/* Service Preview Horizontal Scrolling for Mobile */
@media (max-width: 900px) {
    .service-cards-row {
        gap: var(--sp-sm);
    }
}

@media (max-width: 600px) {
    .service-preview {
        padding: var(--sp-sm) 0;
    }

    /* Force vertical stack on very small, but allow horizontal scroll if desired? 
       User requested "no overlap", vertical stack is safest for cards. */
    .service-cards-row {
        flex-direction: column;
        align-items: stretch;
    }

    .service-card {
        margin-bottom: var(--sp-md);
    }
}