/* ============================================================
   LAYOUT — navbar, footer, page-header
   ============================================================ */

/* === Navbar === */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 200;
    transition: background var(--transition), box-shadow var(--transition),
                border-color var(--transition);
}

.navbar--scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: transparent;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.07);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo */
.logo {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity var(--transition);
}

.logo:hover {
    text-decoration: none;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(135deg, var(--green) 0%, #00a651 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tag {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 5px;
}

/* Nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.925rem;
    padding: 7px 13px;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    color: var(--green);
    background: var(--green-light);
    text-decoration: none;
}

.nav-links a.nav-active {
    color: var(--green);
    font-weight: 600;
    background: var(--green-light);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.nav-toggle:hover {
    background: var(--gray-100);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.nav-toggle--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === Page Header === */
.page-header {
    padding: 56px 0 0;
}

.page-header h1 {
    margin-bottom: 0.25rem;
}

.page-header-subtitle {
    color: var(--gray-500);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* === Footer === */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    display: inline-flex;
    margin-bottom: 10px;
}

.footer-brand .footer-logo .logo-text {
    font-size: 1.3rem;
}

.footer-brand .footer-logo .logo-tag {
    font-size: 0.72rem;
    margin-bottom: 4px;
}

.footer-tagline {
    margin-top: 10px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* === Responsive: Layout === */
@media (max-width: 768px) {
    .navbar-inner {
        height: 56px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 12px 16px;
        gap: 2px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        z-index: 100;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links a {
        padding: 11px 16px;
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
