/* ============================= */
/* CLEAN PREMIUM HEADER */
/* ============================= */

header {
    position: relative;
    z-index: 1050;
}

html, body {
    width: 100%;
}

body {
    overflow-x: hidden;
}

body {
    margin: 0;
}

/* ============================= */
/* TOPBAR */
/* ============================= */

.utility-bar {
    background: #0b1f3a;
    color: #ffffff;
    font-size: 0.9rem;
    padding: 8px 0;
    transition: transform .3s ease, opacity .3s ease;
        position: relative;
            z-index: 1040;
}

.utility-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.utility-bar a {
    color: #ffffff !important;
    text-decoration: none;
    margin-left: 28px;
    font-weight: 500;
    transition: opacity .2s ease;
}

.utility-bar a:hover {
    opacity: 0.8;
}

/* ============================= */
/* MAIN HEADER */
/* ============================= */

.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: box-shadow .3s ease;
}


.main-header.scrolled {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 18px 0;
    transition: padding .25s ease;
}

.main-header.scrolled .main-header-inner {
    padding: 14px 0;
}

/* ============================= */
/* LOGO */
/* ============================= */

.brand-logo {
    height: 44px;
    transition: height .25s ease;
}

.main-header.scrolled .brand-logo {
    height: 38px;
}

/* ============================= */
/* DESKTOP NAV */
/* ============================= */

.main-nav>a {
    margin-left: 32px;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    position: relative;
    transition: color .2s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ============================= */
/* LOGIN BUTTON */
/* ============================= */

.login-btn {
    margin-left: 40px;
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(to bottom,
            var(--primary, #0d6efd),
            color-mix(in srgb, var(--primary, #0d6efd) 92%, black));
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    filter: brightness(1.03);
}

.main-nav a.login-btn::after {
    display: none;
}



/* ============================= */
/* DROPDOWN */
/* ============================= */

.main-nav .dropdown {
    position: relative;
}

.main-nav-link {
    margin-left: 40px;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    transition: color .2s ease;
}

.main-nav-link:hover {
    color: var(--primary);
}

/* ============================= */
/* DROPDOWN PREMIUM */
/* ============================= */

.main-dropdown {
    position: relative;
}

/* Trigger */
.dropdown-toggle-custom {
    margin-left: 40px;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s ease;
}

.dropdown-toggle-custom:hover {
    color: var(--primary);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform .25s ease;
}

.main-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* PANEL */

.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    min-width: 260px;
    display: none;
}

/* Desktop hover */
@media (min-width: 992px) {
    .main-dropdown:hover .custom-dropdown {
        display: block;
    }
}

/* ITEMS */

.custom-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.65rem 1.3rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: #1f2937;
    transition: background .2s ease, color .2s ease;
}

.custom-dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.custom-dropdown li {
    margin: 0;
}

.custom-divider {
    height: 2px;
    margin: 0.6rem 0;
    background: linear-gradient(to right,
            transparent,
            #e5e7eb,
            transparent);
}

/* ============================= */
/* MOBILE TOGGLE */
/* ============================= */

.mobile-toggle {
    border: none;
    background: none;
    font-size: 1.6rem;
    color: #1f2937;
    padding: 6px 10px;
    flex-shrink: 0;
}

/* ============================= */
/* OFFCANVAS */
/* ============================= */

.offcanvas {
    background: #ffffff;
    width: 320px;
}

.mobile-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: color .2s ease, padding-left .2s ease;
}

.mobile-nav a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.mobile-secondary-link {
    display: block;
    padding: 10px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
}

.mobile-secondary-link:hover {
    color: var(--primary);
}

.mobile-login-link {
    display: block;
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--primary);
    color: #ffffff !important;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 991px) {

    .brand-logo {
        height: 36px;
    }

    .main-header-inner {
        padding: 14px 0;
    }

}

@media (max-width: 768px) {

    .brand-logo {
        max-width: 70%;
        height: auto;
    }

}

/* ============================= */
/* PREMIUM FOOTER */
/* ============================= */

.site-footer {
    position: relative;
    background: linear-gradient(135deg, #1e2228, #0f1114);
    color: #d1d5db;
    overflow: hidden;
}

/* ============================= */
/* MAIN GRID */
/* ============================= */

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: 60px;
    padding: 70px 0;
}

/* ============================= */
/* HEADINGS */
/* ============================= */

.footer-col h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #ffffff;
    letter-spacing: .5px;
}

/* ============================= */
/* BRAND COLUMN */
/* ============================= */

.footer-logo img {
    height: 36px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-company {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5e1;
}

/* ============================= */
/* LINKS */
/* ============================= */

.footer-links a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color .2s ease, transform .2s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* ============================= */
/* SOCIAL */
/* ============================= */

.footer-social-brand {
    margin-top: 20px;
}

.footer-social-brand a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: all .25s ease;
}

.footer-social-brand a:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

/* ============================= */
/* BOTTOM BAR */
/* ============================= */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    background: rgba(0, 0, 0, 0.25);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

/* Tablet */
@media (max-width: 992px) {

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 60px 0;
    }

    /* Quote full width */
    .footer-quote {
        grid-column: 1 / -1;
    }

}

/* Mobile */
@media (max-width: 576px) {

    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 50px 0;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto 20px;
    }

    .footer-company {
        margin-bottom: 15px;
    }

    .footer-social-brand {
        display: flex;
        justify-content: center;
    }

    .footer-links a {
        margin-bottom: 12px;
    }

    .footer-quote p {
        max-width: 420px;
        margin: 0 auto 14px;
    }

}

/* Bottom bar mobile */
@media (max-width: 768px) {

    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

}


/* ============================= */
/* BRAND LOADER */
/* ============================= */

.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Spinner */

.brand-loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary);
    animation: brandSpin 0.8s linear infinite;
}

@keyframes brandSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================= */
/* Arne */
/* ============================= */

.memorial-box {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 28px;
    padding: 4rem 3rem;
    margin-top: 5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
}

.memorial-box .heart-icon {
    font-size: 2.8rem;
    color: #e11d48;
    margin-bottom: 1.5rem;
}

.memorial-box h4 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.memorial-box p {
    max-width: 780px;
    margin: 0 auto 1.4rem auto;
    line-height: 1.9;
    font-size: 1.08rem;
    color: #334155;
}