/* Base */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #222;
    background: #0c1a3a;
    position: relative;
    z-index: 1;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

.container {
    max-width: 1100px;
    width: 90%;
    margin: auto;
}

/* Canvas */
#ai-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: auto;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-logo { height: 36px; }
.brand { font-weight: 700; color: #0c1a3a; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.1rem;
    align-items: center;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.divider {
    width: 1px;
    height: 20px;
    background: #ccc;
}

.nav-login {
    padding: 0.45rem 0.9rem;
    border: 1px solid #0c1a3a;
    border-radius: 4px;
    color: #0c1a3a;
    font-weight: 600;
    transition: all 0.25s ease;
}

.nav-login:not(.employee):hover {
    background: #0c1a3a;
    color: #fff;
}

.nav-login.employee {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.nav-login.employee:hover {
    background: #e0a800;
}

/* Hero */
.hero {
    padding: 4rem 1rem;
    text-align: center;
    background: rgba(12, 26, 58, 0.25);
    color: #fff;
}

.hero h1 { font-size: 2.6rem; }
.hero p { font-size: 1.2rem; }

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.4rem;
    background: #ffc107;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
}

/* Sections */
.section {
    padding: 3rem 0;
    background: #fff;
}

.section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

/* Ideals */
.ideals { background: #f7f8fa; }

.ideals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.ideal-card {
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Footer */
.footer {
    background: #0c1a3a;
    color: #fff;
    text-align: center;
    padding: 1.2rem 0;
}

/* Hamburger */
.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Desktop visibility */
.desktop-only {
    display: list-item;
}

/* Mobile Navigation */
@media (max-width: 768px) {

    .hamburger {
        display: block;
        color: #0c1a3a;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;

        background: #ffffff;
        flex-direction: column;
        align-items: stretch;

        /* SINGLE SOURCE OF HORIZONTAL PADDING */
        padding: 1.25rem
                 1rem
                 calc(1.75rem + env(safe-area-inset-bottom))
                 1rem;

        box-sizing: border-box;

        border-top: 1px solid #ddd;

        max-height: 0;
        overflow-y: auto;
        overflow-x: hidden;

        opacity: 0;
        transform: translateY(-6px);

        transition:
            max-height 0.3s ease,
            opacity 0.2s ease,
            transform 0.25s ease;
    }

    .nav-links.active {
        display: flex;
        max-height: calc(100vh - 64px);
        opacity: 1;
        transform: translateY(0);
    }

    /* Menu items — NO horizontal padding */
    .nav-links li {
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 0;
        box-sizing: border-box;
    }

    .nav-links li:last-child {
        margin-bottom: 0;
    }

    /* Click targets — vertical padding only */
    .nav-links a {
        width: 100%;
        display: block;
        padding: 0.65rem 0; /* vertical only */
        box-sizing: border-box;
    }

    .divider.desktop-only {
        display: none;
    }

    .menu-title {
        font-size: 0.85rem;
        text-transform: uppercase;
        color: #666;
        margin: 0.8rem 0 0.3rem;
    }

    .mobile-login {
        text-align: center;
    }
}
