/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Body --- */
body {
    padding-top: 80px;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #020a12;
    color: whitesmoke;
}

/* --- Fonts --- */
p.lato {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: whitesmoke;
}

/* --- Logo --- */
.logo img {
    height: 70px;
    width: 214px;
    transition: transform 0.3s ease;
}

a:link {
    color: dodgerblue;
    background-color: transparent;
    text-decoration: underline;
}

a:visited {
    color: blue;
    background-color: transparent;
    text-decoration: none;
}

a:hover {
    color: deepskyblue;
    background-color: transparent;
    text-decoration: underline;
}

a:active {
    color: deepskyblue;
    background-color: transparent;
    text-decoration: underline;
    font-variant-caps: small-caps;
}

/* --- Fonts --- */
p.lato {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: whitesmoke;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: linear-gradient(180deg, #0b1c2d, #020a12);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1300px;
    margin: auto;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Nav Menu (Desktop) --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu a,
.dropbtn {
    color: whitesmoke;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
}

.nav-menu a:hover,
.dropbtn:hover,
.nav-menu a:focus-visible,
.dropbtn:focus-visible {
    color: #3fa9f5;
    outline: none;
}

/* --- Dropdown --- */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 40px;
    left: 0;
    min-width: 180px;
    background-color: #0b1c2d;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    z-index: 999;
}

.dropdown-content a {
    padding: 12px 16px;
    font-size: 14px;
    color: whitesmoke;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dropdown-content a:hover {
    color: #3fa9f5;
}

/* Desktop hover for dropdown */
@media (min-width: 901px) {
    .dropdown:hover .dropdown-content {
        display: flex;
    }

    .hamburger {
        display: none;
    }
}

/* --- Hamburger --- */
.hamburger {
    display: none; /* hidden by default; shown on mobile via media query */
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: whitesmoke;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    background: url("images/heroHomea.avif") center / cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(2,10,18,0.85) 0%,
        rgba(2,10,18,0.65) 45%,
        rgba(2,10,18,0.35) 100%
    );
}

.hero-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    padding: 60px 25px 40px;
}

.hero-content h1 {
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.7rem);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 16px;
    background-color: navy;
    color: whitesmoke;
    font-size: 0.9rem;
    line-height: 1.8;
}



/* =============================================
   MOBILE — max-width: 900px
   ============================================= */
@media (max-width: 900px) {

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #020a12;
        flex-direction: column;
        align-items: center;
        display: none; /* toggled by .active */
        padding: 25px 0;
        gap: 20px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .nav-menu.active {
        display: flex;
    }

    /* Dropdown on mobile: static, toggled by JS */
    .dropdown-content {
        position: static;
        background: rgba(255,255,255,0.05);
        box-shadow: none;
        border-radius: 6px;
        margin-top: 6px;
        min-width: 160px;
        text-align: center;
    }

    /* Disable CSS hover on mobile */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    /* JS will toggle .open class instead */
    .dropdown-content.open {
        display: flex;
    }

    .hero-content h1,
    .hero-content h2,
    .hero-content p {
        text-align: center;
    }

    .hero-overlay {
        background: rgba(2,10,18,0.72);
    }
}

/* =============================================
   SMALL PHONES — max-width: 480px
   ============================================= */
@media (max-width: 480px) {
    body {
        padding-top: 80px;
    }

    .logo img {
        height: 70px;
        width: 250px;
    }

    p.lato {
        font-size: 1rem;
    }
}

</style>