/* Clean Mobile Styles - Burger Menu Only */

/* Mobile Navigation */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Tablet and Mobile Styles */
@media (max-width: 768px) {
    /* Base spacing */
    :root {
        --header-height: 60px;
    }
    
    /* Container padding */
    .container {
        padding: 0 20px;
    }
    
    /* Navigation */
    .navbar {
        padding: 12px 0;
        height: var(--header-height);
    }
    
    .navbar .container {
        display: block;
        position: relative;
    }
    
    .nav-header {
        height: 36px;
    }
    
    .logo {
        font-size: 1.25rem;
        line-height: 36px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide nav links, show only on toggle */
    .nav-links {
        display: none;
        position: absolute;
        top: calc(var(--header-height) - 12px);
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: 8px;
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 16px;
        text-align: center;
        font-size: 1rem;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background-color: var(--light-gray);
    }
    
    /* Hero Section */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: var(--header-height) 0 40px;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
        padding: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .hero-text h2 {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .location {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 12px 28px;
    }
    
    .hero-image {
        order: 1;
        max-width: 280px;
        max-height: 350px;
        margin: 0 auto;
    }
    
    .hero-image img {
        max-width: 280px;
        height: 350px;
    }
    
    /* About Section */
    .about {
        padding: 60px 0;
        min-height: auto;
    }
    
    .about .container {
        display: block;
    }
    
    .about h2 {
        font-size: 2rem;
        margin-bottom: 24px;
    }
    
    .about p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .about .lead {
        font-size: 1.125rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    /* Services Section */
    .services {
        padding: 60px 0;
        min-height: auto;
    }
    
    .services .container {
        display: block;
    }
    
    .services h2 {
        font-size: 2rem;
        margin-bottom: 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-item {
        padding: 24px 20px;
    }
    
    .service-item h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .service-item p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    /* Contact Section */
    .contact {
        padding: 60px 0 40px;
        min-height: auto;
    }
    
    .contact .container {
        display: block;
    }
    
    .contact h2 {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .contact-intro {
        font-size: 1rem;
        margin-bottom: 32px;
        line-height: 1.6;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 16px;
    }
    
    .contact-link {
        font-size: 1rem;
        padding: 8px 16px;
    }
    
    /* Footer */
    .footer {
        padding: 32px 20px;
    }
    
    .footer p {
        font-size: 0.875rem;
    }
    
    /* Remove animations and effects */
    .hero-image {
        transform: none !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    section {
        overflow-x: hidden;
    }
}

/* Small Mobile (iPhone SE, etc) */
@media (max-width: 480px) {
    /* Tighter spacing */
    .container {
        padding: 0 16px;
    }
    
    /* Smaller hero text */
    .hero-text h1 {
        font-size: 1.875rem;
    }
    
    .hero-text h2 {
        font-size: 1.125rem;
    }
    
    /* Smaller image */
    .hero-image {
        max-width: 240px;
        max-height: 300px;
    }
    
    .hero-image img {
        max-width: 240px;
        height: 300px;
    }
    
    /* Tighter section padding */
    .about,
    .services,
    .contact {
        padding: 48px 0;
    }
    
    /* Smaller headings */
    .about h2,
    .services h2,
    .contact h2 {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }
    
    /* Smaller service items */
    .service-item {
        padding: 20px 16px;
    }
    
    .service-item h3 {
        font-size: 1.125rem;
    }
    
    .service-item p {
        font-size: 0.875rem;
    }
    
    /* Smaller CTA */
    .cta-button {
        font-size: 0.9375rem;
        padding: 10px 24px;
    }
}

/* Handle notch/safe areas */
@supports (padding-top: env(safe-area-inset-top)) {
    .navbar {
        padding-top: max(12px, env(safe-area-inset-top));
    }
    
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}