/* Mobile-specific fixes */

/* Fix for Contact Button Overflow Issue */
.header {
    padding: 0 15px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Ensure navigation doesn't overflow */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav li {
    list-style: none;
    white-space: nowrap;
}

/* Fix Contact Button Styling */
.nav-cta {
    background: #3a4853;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    flex-shrink: 0; /* Prevent shrinking */
}

.nav-cta:hover {
    background: #2a3440;
    color: white;
}

/* Improved Text Contrast for Hero Section */
.hero {
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Darker overlay for better contrast */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.subheading,
.tagline {
    color: #f0f0f0 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* Logo Size Fixes - LET IT BE NATURAL SIZE - NO CONSTRAINTS! */
.logo {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
}

/* Mobile Menu Implementation */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    /* Fix mobile header height and padding */
    .header {
        padding: 0.25rem 0 !important;
        height: auto !important;
    }

    /* Mobile hero adjustments */
    .hero {
        padding-top: 60px !important;
    }
    
    .header-content {
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    /* LOGO NATURAL SIZE ON MOBILE - NO CONSTRAINTS */
    .logo {
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 20px;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .main-nav li a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .main-nav li a:hover {
        color: #007bff;
    }
    
    .nav-cta {
        background: #3a4853 !important;
        color: white !important;
        padding: 12px 0 !important;
        border-radius: 4px;
        text-align: center;
        margin-top: 10px;
    }
    
    .nav-call {
        background: #ffc107 !important;
        color: #000 !important;
        padding: 12px 0 !important;
        border-radius: 4px;
        text-align: center;
        margin-top: 10px;
        font-weight: 600;
    }
    
    /* Overlay for mobile menu */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .subheading {
        font-size: 1.1rem;
    }
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
    /* STILL NO LOGO CONSTRAINTS ON SMALL SCREENS */
    .logo {
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    /* Reduce margins to give more space */
    .header .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Position mobile menu toggle closer to edge */
    .mobile-menu-toggle {
        right: 0.5rem !important;
    }
}
