/* Responsive Design - Tablet (768px and below) */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    .mobile-menu-btn {
        display: flex;
        order: 2; /* Position between logo and emergency button */
        margin-left: auto; /* Push to the right side */
        margin-right: 1rem; /* Add some spacing */
        position: relative;
        z-index: 1001; /* Ensure it's above other elements */
        pointer-events: auto; /* Ensure it's clickable */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        text-align: left;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        margin: 0;
    }

    .emergency-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    /* Animation for menu button */
    .mobile-menu-btn.active span:first-child {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:last-child {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        min-height: 400px;
    }

    .hero-background {
        width: 100%;
        opacity: 0.3; /* More transparent on mobile */
    }

    .hero-content {
        width: 100%;
        text-align: center;
        padding-top: 3rem;
    }

    .service-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-features,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    /* Service detail specific styles */
    .service-image {
        display: none;
    }

    .service-detail {
        padding: 2rem;
        margin-bottom: 2rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .service-detail.alternate {
        background: #f8f9fa;
    }

    .service-text h3 {
        font-family: 'TildaSans', sans-serif;
        font-weight: 800;
        background: linear-gradient(90deg, var(--primary-blue), #4a90e2);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid rgba(42, 135, 237, 0.2);
    }

    .hero {
        padding: 4rem 1rem 2rem;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .location {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta button {
        margin: 0.5rem;
    }

    .cta-primary, 
    .cta-secondary {
        width: 100%;
        max-width: 300px;
        animation: float 4s ease-in-out infinite; /* Shorter animation on mobile */
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .messaging-buttons {
        justify-content: center;
    }

    .materials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
