/*
 * Hostvento brand overrides for Lagom2 (default style).
 * Matches the hostvento.com main site: navy palette, Inter, site header links
 * and site footer. Markup comes from includes/hooks/hostvento_site_chrome.php.
 */

/* ---------- Palette and font ---------- */
:root,
body.lagom {
    --brand-primary: #293c8b;
    --brand-primary-darker: #21326f;
    --brand-primary-lighter: #5d70cf;
    --brand-primary-lighter-2: #c5cdf0;
    --brand-primary-lighter-3: #d8defa;
    --brand-primary-lighter-4: #eef0fa;
    --brand-primary-gradient-start: #21326f;
    --brand-primary-gradient-end: #293c8b;
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.lagom {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Header: logo + wordmark + main-site links ---------- */
.app-nav-header {
    border-bottom: 1px solid #e2e8f0;
}

.app-nav-header a.logo {
    gap: 8px;
    text-decoration: none;
}

.app-nav-header a.logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.app-nav-header a.logo::after {
    content: "Hostvento";
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
}

/* The mobile/tablet logo link is not a flex box, so space the wordmark here */
.app-nav-header a.logo.visible-xs img {
    margin-right: 8px;
    vertical-align: middle;
}

.app-nav-header a.logo.visible-xs::after {
    vertical-align: middle;
}

/* Login page backdrop: navy instead of Lagom's bright blue */
.page-login-secondary .main-body {
    background: linear-gradient(180deg, #0a1230 0%, #293c8b 100%) !important;
}

.app-nav-header .top-nav {
    margin-left: auto;
}

.hv-site-nav {
    display: none;
}

@media (min-width: 1200px) {
    .hv-site-nav:not([hidden]) {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-left: 32px;
    }

    .hv-site-nav a {
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        color: #334155;
        text-decoration: none;
        transition: color 0.15s;
    }

    .hv-site-nav a:hover {
        color: #21326f;
    }
}

/* ---------- Footer: main-site footer above Lagom's footer bar ---------- */
.hv-footer {
    background: #0a1230;
    color: #cbd5e1;
    padding: 56px 0 8px;
    font-size: 14px;
}

.hv-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hv-footer a {
    text-decoration: none;
    transition: color 0.15s;
}

.hv-footer-grid {
    display: grid;
    gap: 40px;
}

.hv-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hv-footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.hv-footer-brand span {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.hv-footer-about p {
    margin: 16px 0 0;
    line-height: 1.625;
    color: #94a3b8;
}

.hv-footer-contact {
    margin-top: 20px !important;
    line-height: 1.45;
}

.hv-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.hv-footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #5d70cf;
}

.hv-footer-contact a {
    color: #cbd5e1;
}

.hv-footer-contact a:hover {
    color: #5d70cf;
}

.hv-footer-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.hv-footer-cols h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

.hv-footer-cols ul {
    margin-top: 16px;
}

.hv-footer-cols li {
    margin-bottom: 10px;
}

.hv-footer-cols a {
    color: #94a3b8;
}

.hv-footer-cols a:hover {
    color: #5d70cf;
}

@media (min-width: 768px) {
    .hv-footer-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .hv-footer-grid {
        grid-template-columns: 3fr 9fr;
    }

    .hv-footer-cols {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Lagom's own footer bar (copyright + language) becomes the dark bottom bar */
.main-footer.hv-has-site-footer {
    background: #0a1230;
    border-top: 0;
}

.main-footer.hv-has-site-footer .footer-bottom {
    border-top: 0;
}

.main-footer.hv-has-site-footer .footer-bottom .container {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer.hv-has-site-footer .footer-copyright {
    font-size: 12px;
    color: #64748b;
}

.main-footer.hv-has-site-footer .footer-nav-h > li > a,
.main-footer.hv-has-site-footer .footer-nav-h > li > a span,
.main-footer.hv-has-site-footer .footer-nav-h > li > a i {
    color: #94a3b8;
}

.main-footer.hv-has-site-footer .footer-nav-h > li > a:hover,
.main-footer.hv-has-site-footer .footer-nav-h > li > a:hover span {
    color: #fff;
}
