/**
 * Shared top navigation for Clovi marketing static pages (www.clovi.com).
 * Include after Inter font link: <link rel="stylesheet" href="/site-nav.css">
 * Uses page :root tokens when present (--primary-color, --text-dark, --border-color).
 */

header {
    background: #f9fdf8;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav.container {
    padding: 24px 24px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark, #1e293b);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color, #7cb342);
}

.nav-links a.active {
    color: var(--primary-color, #7cb342);
}

.nav-links .btn-primary {
    padding: 8px 20px;
    font-size: 14px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark, #1e293b);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px 24px;
    flex-direction: column;
    gap: 16px;
}

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

.mobile-nav a {
    color: var(--text-dark, #1e293b);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary-color, #7cb342);
}

/* Nav "Contact Us" — same treatment as main marketing pages */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color, #7cb342);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark, #689f38);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3);
}

/**
 * Full marketing footer (grid) — pages that load site-nav but not help.css
 * (e.g. find-a-vendor). Pages with inline footer CSS keep their own blocks.
 */
footer:has(.footer-content) {
    background: var(--text-dark, #1e293b);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

footer:has(.footer-content) .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

footer:has(.footer-content) .footer-brand h3 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

footer:has(.footer-content) .footer-brand p {
    line-height: 1.7;
    margin-bottom: 24px;
}

footer:has(.footer-content) .footer-links h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
}

footer:has(.footer-content) .footer-links ul {
    list-style: none;
}

footer:has(.footer-content) .footer-links li {
    margin-bottom: 12px;
}

footer:has(.footer-content) .footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

footer:has(.footer-content) .footer-links a:hover {
    color: white;
}

footer:has(.footer-content) .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    footer:has(.footer-content) .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
