@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,500,700);

/* Shared top app bar for the public, server-rendered pages (landing, about,
   privacy, support, feature requests). Brand #0290C3 bar with the logo + Doozy
   wordmark on the left and navigation on the right. The right-hand links
   collapse into a CSS-only (checkbox-toggled) dropdown on narrow screens, so the
   bar works with no JavaScript. Self-contained: linked alongside landing.css or
   featureboard.css without depending on either. */

.site-nav {
    background: #0290C3;
    color: #ffffff;
    font-family: "Roboto", sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-nav * {
    box-sizing: border-box;
}

.site-nav__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Brand (logo + wordmark) */
.site-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #ffffff;
    flex: 0 0 auto;
}

.site-nav__logo {
    width: 2.25rem;
    height: 2.25rem;
    display: block;
}

.site-nav__brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Links */
.site-nav__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav__link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.92;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.site-nav__link:hover {
    opacity: 1;
    text-decoration: underline;
}

.site-nav__link--active {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

/* Primary call-to-action button */
.site-nav__link--cta {
    background: #ffffff;
    color: #0290C3;
    padding: 0.5rem 1.1rem;
    border-radius: 0.35rem;
    font-weight: 700;
    opacity: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.site-nav__link--cta:hover {
    background: #f0f8fc;
    text-decoration: none;
    opacity: 1;
}

/* Hamburger toggle (hidden on desktop, shown on mobile) */
.site-nav__toggle {
    display: none;
}

.site-nav__hamburger {
    display: none;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.site-nav__hamburger span,
.site-nav__hamburger span::before,
.site-nav__hamburger span::after {
    content: "";
    display: block;
    width: 1.5rem;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav__hamburger span {
    position: relative;
}

.site-nav__hamburger span::before {
    position: absolute;
    top: -0.45rem;
    left: 0;
}

.site-nav__hamburger span::after {
    position: absolute;
    top: 0.45rem;
    left: 0;
}

/* ── Mobile layout ───────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .site-nav__hamburger {
        display: flex;
    }

    .site-nav__links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #0290C3;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        padding: 0.5rem 0;
    }

    /* Checkbox hack: the toggle precedes the links, so :checked reveals them. */
    .site-nav__toggle:checked ~ .site-nav__links {
        display: flex;
    }

    .site-nav__link {
        padding: 0.85rem 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .site-nav__link--cta {
        margin: 0.75rem 1.5rem 0.25rem;
        text-align: center;
        border-top: none;
    }

    /* Morph the hamburger into a close (X) icon when the menu is open. */
    .site-nav__toggle:checked ~ .site-nav__hamburger span {
        background: transparent;
    }

    .site-nav__toggle:checked ~ .site-nav__hamburger span::before {
        top: 0;
        transform: rotate(45deg);
    }

    .site-nav__toggle:checked ~ .site-nav__hamburger span::after {
        top: 0;
        transform: rotate(-45deg);
    }
}
