/* --- 1. GLOBAL STYLES (Works on everything) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: #ffffff; /* Matches your logo box */
    border-bottom: 1px solid #eeeeee; /* A very light line to define the header */
    /* Optional: Add a tiny shadow instead of a border for a "floating" look */
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
}

/* Ensure your text links are dark enough to read on white */
.nav-links a {
    color: #333333; 
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: #023e8a; /* Changes to your navy blue when hovered */
}


/* THE HERO FIX: Defined here so it shows on Desktop AND Mobile */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('coastal-maintenance.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh; /* Tall on desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* --- 2. MOBILE SPECIFIC FIXES (Screen size 768px and down) --- */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .main-logo {
        height: 75px;
    }

    .nav-links {
        padding: 0;
        margin: 0;
        font-size: 0.9rem;
        gap: 10px;
    }

    .hero {
        min-height: 400px; /* Shorter on mobile */
        background-attachment: scroll; /* Fixes disappearing image on iPhones */
    }

    .hero h1 {
        font-size: 1.6rem;
        padding: 0 20px;
    }

    #contact-form > div {
        margin: 20px 15px !important;
        padding: 25px !important;
        max-width: none !important;
    }
}
