﻿/* ============================================================
   SIX Theme - Layout CSS (NO BOOTSTRAP)
   Header + Navigation + Footer + Utilities
   ============================================================ */

/* ============ FONTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ============ THEME VARIABLES ============ */
/* Centralized in Pages/Shared/_FrontendThemeVariables.cshtml */

/* ============ BASE RESET ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    margin: 0;
    --userbar-height: 39px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

/* ============ UTILITIES ============ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-smooth);
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    --header-bg: var(--color-surface);
    --header-shadow: 0 10px 30px rgba(var(--theme-shadow-rgb), 0.08);
    --header-border: rgba(0, 0, 0, 0.04);
    --header-scrolled-bg: var(--header-bg);
    --header-scrolled-shadow: 0 16px 34px rgba(var(--theme-shadow-rgb), 0.14);
    --header-scrolled-border: rgba(0, 0, 0, 0.06);
}

    #header.header-home-visible,
    #header.header-subpage-visible {
        background: var(--color-surface);
        background: var(--header-bg-override, var(--header-bg));
        box-shadow: var(--header-shadow);
        border-bottom-color: var(--header-border);
    }

    #header.header-home-overlay {
        background: transparent;
        background-image: none;
        border-bottom-color: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 20px 0;
    }

    #header.scrolled,
    #header.header-home-overlay.scrolled,
    #header.header-home-visible.scrolled,
    #header.header-subpage-visible.scrolled {
        background: none;
        background-color: var(--header-scrolled-bg-override, var(--header-scrolled-bg));
        background-image: none;
        padding: 12px 0;
        opacity: 1;
        box-shadow: var(--header-scrolled-shadow);
        border-bottom-color: var(--header-scrolled-border);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    #header.header-style-default {
        --header-bg: #f3e7db;
        --header-shadow:
            0 10px 24px rgba(var(--theme-shadow-rgb), 0.08),
            0 18px 36px rgba(var(--theme-shadow-rgb), 0.06);
        --header-border: rgba(182, 154, 122, 0.1);
        --header-scrolled-bg: #ecd9c4;
        --header-scrolled-shadow:
            0 14px 28px rgba(var(--theme-shadow-rgb), 0.11),
            0 24px 46px rgba(var(--theme-shadow-rgb), 0.09);
        --header-scrolled-border: rgba(166, 136, 103, 0.12);
    }

    #header.header-style-soft {
        --header-bg: #fcfbf8;
        --header-shadow:
            0 8px 18px rgba(var(--theme-shadow-rgb), 0.05),
            0 14px 28px rgba(var(--theme-shadow-rgb), 0.03);
        --header-border: rgba(205, 194, 179, 0.08);
        --header-scrolled-bg: #f7f2ea;
        --header-scrolled-shadow:
            0 12px 24px rgba(var(--theme-shadow-rgb), 0.08),
            0 18px 34px rgba(var(--theme-shadow-rgb), 0.05);
        --header-scrolled-border: rgba(190, 177, 160, 0.1);
    }

    #header.header-style-strong {
        --header-bg: #dfc0a0;
        --header-shadow:
            0 16px 34px rgba(var(--theme-shadow-rgb), 0.15),
            0 28px 56px rgba(77, 57, 34, 0.12);
        --header-border: rgba(153, 121, 86, 0.12);
        --header-scrolled-bg: #d4ae87;
        --header-scrolled-shadow:
            0 20px 40px rgba(var(--theme-shadow-rgb), 0.19),
            0 34px 62px rgba(77, 57, 34, 0.16);
        --header-scrolled-border: rgba(140, 107, 71, 0.14);
    }

    #header.header-style-strong #navbar > ul > li > a:hover,
    #header.header-style-strong #navbar > ul > li > a.active,
    #header.header-style-strong #navbar > ul > li.active > a,
    #header.header-style-strong #navbar > ul > li.active-parent > a {
        background: var(--color-accent-soft);
        background: color-mix(in srgb, var(--color-accent-soft) 78%, var(--color-surface) 22%);
    }

    #header.header-style-strong #navbar .nav-link.nav-cta:hover,
    #header.header-style-strong #navbar .nav-link.nav-cta.active,
    #header.header-style-strong #navbar .nav-cta-item.active > .nav-link.nav-cta,
    #header.header-style-strong #navbar .nav-cta-item.active-parent > .nav-link.nav-cta {
        background: var(--color-dark) !important;
        color: #fff !important;
        box-shadow: var(--shadow-md);
    }

    /* Logo */
    #header .logo {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: var(--color-text);
        font-family: var(--font-display);
        font-size: 1.75rem;
        font-weight: 600;
        transition: var(--transition-fast);
        z-index: 1002;
        position: relative;
    }

        #header .logo img {
            height: 48px;
            width: auto;
            border-radius: var(--radius-sm);
            transition: var(--transition-fast);
        }

    #header.scrolled .logo img {
        height: 40px;
    }

    #header .logo:hover {
        color: var(--color-primary);
    }

    #header .logo span {
        color: var(--color-primary);
    }

    #header .logo:hover span {
        color: var(--color-primary-dark);
    }

/* Desktop navbar */
#navbar {
    display: flex;
    align-items: center;
}

    #navbar ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #navbar a {
        text-decoration: none;
    }

    #navbar > ul {
        display: flex;
        align-items: center;
        gap: 4px;
    }

        #navbar > ul > li {
            position: relative;
        }

            #navbar > ul > li > a {
                display: flex;
                align-items: center;
                gap: 6px;
                padding: 10px 20px;
                font-size: 0.9rem;
                font-weight: 500;
                color: var(--color-text);
                border-radius: var(--radius-xl);
                transition: var(--transition-fast);
                white-space: nowrap;
            }

                #navbar > ul > li > a:hover {
                    color: var(--color-primary);
                    background: var(--color-bg-accent);
                }

                #navbar > ul > li > a.active,
                #navbar > ul > li.active > a,
                #navbar > ul > li.active-parent > a {
                    color: var(--color-primary);
                    background: var(--color-accent-soft);
                    box-shadow: inset 0 0 0 1px var(--color-accent-border);
                }

            /* Dropdown arrow (desktop) */
            #navbar > ul > li.dropdown > a::after {
                content: '';
                display: inline-block;
                width: 0;
                height: 0;
                margin-left: 6px;
                border-left: 4px solid transparent;
                border-right: 4px solid transparent;
                border-top: 5px solid currentColor;
                transition: var(--transition-fast);
            }

            #navbar > ul > li.dropdown:hover > a::after {
                transform: rotate(180deg);
            }

            /* Level 2 dropdown */
            #navbar > ul > li > ul,
            #navbar > ul > li.dropdown > ul {
                position: absolute;
                top: 100%;
                left: 0;
                min-width: 240px;
                background: var(--color-white);
                border-radius: var(--radius-md);
                box-shadow: var(--shadow-dropdown);
                padding: 12px 0;
                margin-top: 8px;
                opacity: 0;
                visibility: hidden;
                transform: translateY(10px);
                transition: var(--transition-fast);
                z-index: 100;
                display: block;
            }

            #navbar > ul > li:hover > ul,
            #navbar > ul > li.dropdown:hover > ul {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }

/* Keyboard support: open on .hover class */
@media (min-width: 769px) {
    #navbar > ul > li.dropdown.hover > ul {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #navbar > ul > li.dropdown.hover > a::after {
        transform: rotate(180deg);
    }
}

#navbar > ul > li > ul::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 24px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-white);
}

#navbar > ul > li > ul > li {
    position: relative;
    display: block;
}

    #navbar > ul > li > ul > li > a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--color-text);
        transition: var(--transition-fast);
        width: 100%;
    }

        #navbar > ul > li > ul > li > a:hover {
            background: var(--color-bg);
            color: var(--color-primary);
            padding-left: 24px;
        }

    #navbar > ul > li > ul > li.active > a {
        color: var(--color-primary);
        background: var(--color-bg);
    }

    /* Level 3 dropdown */
    #navbar > ul > li > ul > li > ul {
        position: absolute;
        top: 0;
        left: 100%;
        min-width: 220px;
        background: var(--color-white);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-dropdown);
        padding: 12px 0;
        margin-left: 4px;
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: var(--transition-fast);
        z-index: 101;
        display: block;
    }

    #navbar > ul > li > ul > li:hover > ul {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    #navbar > ul > li > ul > li.dropdown > a::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: auto;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        border-left: 5px solid currentColor;
    }

    #navbar > ul > li > ul > li > ul::before {
        display: none;
    }

/* Language (legacy active item) */
#navbar > ul > li.active-lang > a {
    background: var(--color-accent-soft);
    box-shadow: inset 0 0 0 1px var(--color-accent-border);
    color: var(--color-primary);
    font-weight: 600;
}

/* ============================================================
   MOBILE TOGGLE (NO ICON LIB)
   ============================================================ */

.mobile-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .mobile-nav-toggle span {
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--color-text);
        border-radius: 2px;
        transition: var(--transition-fast);
    }

        .mobile-nav-toggle span:nth-child(1) {
            transform: translateY(-7px);
        }

        .mobile-nav-toggle span:nth-child(2) {
            transform: translateY(0);
        }

        .mobile-nav-toggle span:nth-child(3) {
            transform: translateY(7px);
        }

    .mobile-nav-toggle:hover span {
        background: var(--color-primary);
    }

    .mobile-nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(0);
    }

    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(0);
    }

/* ============================================================
   MOBILE MENU - FULLSCREEN CENTERED
   ============================================================ */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: inline-flex;
    }

    /* Arrow on mobile */
    #navbar > ul > li.dropdown > a::after,
    #navbar > ul > li > ul > li.dropdown > a::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 8px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid currentColor;
        transition: var(--transition-fast);
    }

    #navbar > ul > li.dropdown.active > a::after,
    #navbar > ul > li > ul > li.dropdown.active > a::after {
        transform: rotate(180deg);
    }

    /* Overlay */
    #navbar {
        display: none !important;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        padding: 40px 24px;
        overflow-y: auto;
        margin: 0;
    }

        #navbar.navbar-mobile {
            display: flex !important;
        }

        #navbar > ul {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            max-width: 420px;
            margin: auto 0;
        }

            #navbar > ul > li {
                width: 100%;
                text-align: center;
                display: block;
            }

                #navbar > ul > li > a {
                    font-size: 1.25rem;
                    padding: 16px 24px;
                    justify-content: center;
                    width: 100%;
                }

                #navbar > ul > li.dropdown > a {
                    justify-content: center;
                    gap: 8px;
                }

                #navbar > ul > li > a:hover {
                    background: var(--color-bg-accent);
                    padding-left: 24px;
                }

                /* Mobile dropdowns */
                #navbar > ul > li > ul {
                    position: static;
                    opacity: 1;
                    visibility: visible;
                    transform: none;
                    box-shadow: none;
                    background: transparent;
                    border-radius: 0;
                    margin: 8px 0;
                    padding: 8px 0;
                    width: 100%;
                    display: none;
                }

                    #navbar > ul > li > ul::before {
                        display: none;
                    }

                #navbar > ul > li.dropdown.active > ul {
                    display: block;
                }

                #navbar > ul > li > ul > li {
                    text-align: center;
                    display: block;
                }

                    #navbar > ul > li > ul > li > a {
                        font-size: 1.1rem;
                        padding: 12px 20px;
                        justify-content: center;
                        color: var(--color-text-muted);
                        width: 100%;
                    }

                    #navbar > ul > li > ul > li.dropdown > a {
                        justify-content: space-between;
                        padding-left: 24px;
                        padding-right: 24px;
                    }

                    /* nested mobile dropdown */
                    #navbar > ul > li > ul > li > ul {
                        position: static;
                        transform: none;
                        margin: 8px 0;
                        padding: 8px 0 8px 16px;
                        box-shadow: none;
                        border-left: 2px solid var(--color-primary);
                        display: none;
                        background: rgba(139, 115, 85, 0.05);
                    }

                    #navbar > ul > li > ul > li.dropdown.active > ul {
                        display: block;
                    }

                    #navbar > ul > li > ul > li > ul > li > a {
                        font-size: 1rem;
                        color: var(--color-text-light);
                        padding: 10px 20px;
                        text-align: left;
                        width: 100%;
                    }

    /* Keep toggle always above overlay */
    .mobile-nav-toggle {
        z-index: 10000;
    }
}

/* Header CTA button in nav */
#navbar .nav-cta-item {
    margin-left: 12px;
    margin-right: 12px;
}

#navbar .nav-link.nav-cta {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--color-dark);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

    #navbar .nav-link.nav-cta.active,
    #navbar li.active > .nav-link.nav-cta,
    #navbar li.active-parent > .nav-link.nav-cta,
    #navbar .nav-link.nav-cta[aria-current="page"] {
        background: var(--color-dark);
        color: #fff !important;
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: var(--shadow-sm);
    }

    #navbar .nav-link.nav-cta:hover {
        background: #2a2622;
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

    #navbar .nav-link.nav-cta:active {
        transform: translateY(0);
        box-shadow: var(--shadow-sm);
    }

    #navbar .nav-link.nav-cta i {
        font-size: 1rem;
    }

#navbar .nav-lang-item {
    margin-left: 12px;
}

#navbar .lang-switcher-nav {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

#navbar .lang-switcher-nav .lang-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    padding: 2px 0 4px;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
    text-decoration: none;
    line-height: 1;
    border-bottom: 1px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

#navbar .lang-switcher-nav .lang-option:hover {
    color: var(--color-text);
}

#navbar .lang-switcher-nav .lang-option.is-active {
    color: var(--color-text);
    font-weight: 600;
    border-bottom-color: color-mix(in srgb, var(--color-text) 24%, transparent);
}

@media (max-width: 991px) {
    #navbar.navbar-mobile .nav-cta-item {
        margin: 8px 0 16px;
    }

    #navbar.navbar-mobile .nav-link.nav-cta {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }

    #navbar.navbar-mobile .nav-lang-item {
        margin-top: 8px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    #navbar.navbar-mobile .lang-switcher-nav {
        gap: 14px;
    }

    #navbar.navbar-mobile .lang-switcher-nav .lang-option {
        color: rgba(255, 255, 255, 0.72);
        border-bottom-color: transparent;
    }

    #navbar.navbar-mobile .lang-switcher-nav .lang-option:hover {
        color: #fff;
    }

    #navbar.navbar-mobile .lang-switcher-nav .lang-option.is-active {
        color: #fff;
        font-weight: 600;
        border-bottom-color: rgba(255, 255, 255, 0.55);
    }
}

/* ============================================================
   BODY SCROLL LOCK WHEN MOBILE MENU IS OPEN
   ============================================================ */
body.mobile-nav-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
#main {
    padding-top: 0;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

    .back-to-top:hover {
        background: var(--color-text);
        transform: translateY(-4px);
    }

    .back-to-top.active {
        opacity: 1;
        visibility: visible;
    }

/* ============================================================
   FOOTER — UPDATED DESIGN
   ============================================================ */

.footer {
    background: var(--color-dark);
    background: var(--footer-bg-override, var(--color-dark));
    color: var(--color-white);
    padding: 0;
    position: relative;
    overflow: hidden;
}

    /* Subtle decorative top edge */
    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(255, 255, 255, 0.12);
    }

    /* Ambient glow in top-left */
    .footer::after {
        content: none;
    }

    .footer > .container {
        position: relative;
        z-index: 1;
        padding-top: 80px;
        padding-bottom: 40px;
    }

/* ---- Grid ---- */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 48px 64px;
    margin-bottom: 56px;
}

/* ---- Brand column ---- */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0;
}

    .footer-brand .logo {
        display: inline-flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 18px;
        text-decoration: none;
        transition: var(--transition-fast);
    }

        .footer-brand .logo:hover {
            opacity: 0.85;
        }

        .footer-brand .logo img {
            height: 44px;
            width: auto;
            border-radius: var(--radius-sm);
            filter: brightness(1.05);
        }

    .footer-brand .logo-text {
        font-family: var(--font-display);
        font-size: 1.6rem;
        font-weight: 600;
        color: var(--footer-logo-text-override, var(--color-white));
        letter-spacing: 0.01em;
    }

.footer-brand-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0 0 22px;
    max-width: 360px;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

    .footer-social a {
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 1.05rem;
        transition: var(--transition-fast);
    }

        .footer-social a:hover {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: var(--color-white);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(139, 115, 85, 0.35);
        }

/* ---- Section headings ---- */
.footer-section h4 {
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--color-white);
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 10px;
}

    .footer-section h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 22px;
        height: 1px;
        background: rgba(255, 255, 255, 0.16);
        border-radius: 2px;
    }

/* ---- Quick links ---- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .footer-links li {
        margin: 0;
    }

    .footer-links .footer-links-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 6px;
    }

.footer-link-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.footer-links-sub {
    gap: 4px;
}

    .footer-links a {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 0;
        font-size: 0.92rem;
        line-height: 1.5;
        transition: var(--transition-fast);
        position: relative;
    }

        .footer-links a i {
            width: 10px;
            flex: 0 0 10px;
            font-size: 0.55rem;
            color: rgba(255, 255, 255, 0.42);
            opacity: 1;
            transition: var(--transition-fast);
        }

        .footer-links a:hover {
            color: var(--color-white);
            padding-left: 2px;
        }

            .footer-links a:hover i {
                color: rgba(255, 255, 255, 0.62);
            }

/* ---- Contact items ---- */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    line-height: 1.55;
}

    .footer-contact-item i {
        width: 12px;
        flex: 0 0 12px;
        color: rgba(255, 255, 255, 0.42);
        opacity: 1;
        font-size: 0.9rem;
        margin-top: 4px;
    }

    .footer-contact-item a {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        transition: var(--transition-fast);
    }

        .footer-contact-item a:hover {
            color: var(--color-white);
        }

/* ---- Full-width DB text block ---- */
.footer-wide-text {
    margin-top: 40px;
    margin-bottom: 8px;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.03);
    max-width: 100%;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.85;
    font-size: 0.93rem;
    letter-spacing: 0.015em;
}

.footer-wide-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.footer-wide-text p {
    margin: 0;
}

.footer-wide-text > * + * {
    margin-top: 10px;
}

.footer-wide-text strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.footer-wide-text em {
    color: rgba(255, 255, 255, 0.78);
}

.footer-wide-text a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 167, 125, 0.3);
    transition: var(--transition-fast);
}

    .footer-wide-text a:hover {
        color: rgba(255, 255, 255, 0.92);
        border-bottom-color: rgba(255, 255, 255, 0.3);
    }

/* ---- Bottom bar ---- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.01em;
}

    .footer-copyright a {
        color: var(--color-accent);
        text-decoration: none;
        transition: var(--transition-fast);
    }

        .footer-copyright a:hover {
            color: var(--color-white);
        }

.footer-legal {
    display: flex;
    gap: 28px;
}

    .footer-legal a {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.4);
        text-decoration: none;
        transition: var(--transition-fast);
        position: relative;
    }

        .footer-legal a:hover {
            color: rgba(255, 255, 255, 0.8);
        }

        /* Separator dot between legal links */
        .footer-legal a + a::before {
            content: '·';
            position: absolute;
            left: -17px;
            color: rgba(255, 255, 255, 0.2);
            pointer-events: none;
        }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .footer > .container {
        padding-top: 56px;
        padding-bottom: 32px;
    }

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

    /* BRAND = na střed */
    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .footer-brand-sub {
        max-width: 100%;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* DEFAULT pro sekce = na střed (Kontakt chceme takhle) */
    .footer-section {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .footer-section h4::after {
            left: 50%;
            transform: translateX(-50%);
        }

    /* DEFAULT pro seznamy = na střed */
    .footer-links {
        width: 100%;
        max-width: 320px;
        align-items: center;
    }

        .footer-links a {
            justify-content: center;
        }

    /* KONTAKT = nech střed nadpis, položky hezky zarovnané */
    .footer-contact-item {
        justify-content: flex-start; /* text začne stejně */
        text-align: left;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    /* ====== QUICK LINKS (prostřední sloupec) = hierarchie jako Kontakt ====== */
    .footer-grid > .footer-section:nth-child(2) {
        align-items: center; /* blok na střed */
        text-align: center; /* nadpis na střed */
    }

        .footer-grid > .footer-section:nth-child(2) .footer-links {
            width: 100%;
            max-width: 360px;
            margin: 0 auto;
            align-items: stretch; /* ať se řádky mohou zarovnat vlevo */
            text-align: left; /* ✅ celý seznam vlevo (jako Kontakt položky) */
        }

            /* Root skupina (li) */
            .footer-grid > .footer-section:nth-child(2) .footer-links li {
                margin: 0;
            }

            /* Klikací odkazy: vlevo + chevron fixní šířka */
            .footer-grid > .footer-section:nth-child(2) .footer-links a {
                justify-content: flex-start;
                display: flex;
                align-items: center;
                gap: 10px;
                text-align: left;
                padding: 7px 0;
            }

                /* Chevron fixní šířka => text začíná stejně */
                .footer-grid > .footer-section:nth-child(2) .footer-links a i {
                    width: 18px;
                    min-width: 18px;
                    text-align: center;
                    opacity: .75;
                }

            /* Nadpis skupiny (např. "Odkazy") – bez chevronu, ale zarovnaný stejně jako text odkazů */
            .footer-grid > .footer-section:nth-child(2) .footer-links .footer-link-title {
                display: block;
                padding: 8px 0 4px;
                margin-left: 28px; /* ✅ zarovnat na začátek textu (18 + gap 10) */
                font-size: 0.92rem;
                font-weight: 600;
                color: rgba(255, 255, 255, 0.85);
            }

            /* Submenu (děti) – odsazení doprava + jemnější styl */
            .footer-grid > .footer-section:nth-child(2) .footer-links .footer-links-sub {
                padding-left: 28px; /* ✅ hierarchie doprava */
                margin-top: 2px;
                gap: 4px;
            }

                .footer-grid > .footer-section:nth-child(2) .footer-links .footer-links-sub a {
                    padding: 6px 0;
                    font-size: 0.9rem;
                    color: rgba(255, 255, 255, 0.55);
                }

                    .footer-grid > .footer-section:nth-child(2) .footer-links .footer-links-sub a i {
                        opacity: .55;
                    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .footer-legal {
        flex-direction: row;
        gap: 24px;
        justify-content: center;
    }

    .footer-wide-text {
        padding: 20px 20px;
        margin-top: 24px;
    }
}

/* ============================================================
   FOOTER USER MINI LINKS (pill buttons in footer only)
   ============================================================ */

.footer-user {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-user-link,
.footer-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: .9rem;
    color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    transition: var(--transition-fast);
}

    .footer-user-link:hover,
    .footer-user-btn:hover {
        color: rgba(255,255,255,.95);
        background: rgba(255,255,255,.10);
        transform: translateY(-1px);
    }

.footer-user-logout {
    margin: 0;
}

.footer-user-btn {
    cursor: pointer;
}

    .footer-user-link i,
    .footer-user-btn i {
        color: var(--color-accent);
    }

/* Footer: mobile spacing so buttons don't stick to social icons */
@media (max-width: 991px) {
    .footer-brand .footer-user {
        margin-bottom: 18px;
    }

    .footer-brand .footer-social {
        margin-top: 10px;
    }

    .footer-user {
        justify-content: center;
    }
}

@media (max-width: 991px) {

    /* =========================================================
       MOBILE: obsah do užšího sloupce (víc na střed)
       ========================================================= */

    /* QUICK LINKS: užší sloupec + centrovat, ale text vlevo */
    .footer-grid > .footer-section:nth-child(2) .footer-links {
        max-width: 280px; /* ✅ víc na střed (zkus 260–320) */
        margin: 0 auto;
        padding-left: 10px; /* ✅ jemné “odtažení” od levé hrany sloupce */
        padding-right: 10px;
    }

    /* Kontakt položky: stejný princip (užší sloupec + centrovat) */
    .footer-contact-item {
        max-width: 280px; /* ✅ stejné jako odkazy */
        margin: 0 auto 18px;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Ať i text odkazu začne víc “uvnitř” (když chceš ještě víc prostoru) */
    .footer-grid > .footer-section:nth-child(2) .footer-links a {
        padding-left: 4px;
    }

    /* Skupinový titulek (Odkazy) zarovnat na stejnou linii jako text linků */
    .footer-grid > .footer-section:nth-child(2) .footer-links .footer-link-title {
        margin-left: 28px; /* nech, nebo klidně 30 */
    }

    /* Submenu odsazení může být o chlup větší */
    .footer-grid > .footer-section:nth-child(2) .footer-links .footer-links-sub {
        padding-left: 34px; /* původně 28 */
    }
}

/* ============================================================
   USER BAR (top strip when logged in) — PLAIN LINKS (NO BUTTONS)
   ============================================================ */

.userbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200; /* nad header */
    background: rgba(26,24,22,.92);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: rgba(255,255,255,.86);
    font-family: var(--font-body);
    min-height: var(--userbar-height);
}

.userbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--userbar-height);
    padding: 6px 0;
}

.userbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.userbar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0 4px rgba(122,158,122,.18);
    flex: 0 0 auto;
}

.userbar-text {
    font-size: .92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.userbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.userbar-link--plain {
    background: transparent;
    border: 0;
    padding: 6px 0;
    border-radius: 0;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.88);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

    .userbar-link--plain i {
        color: var(--color-accent);
        opacity: .95;
    }

    .userbar-link--plain:hover {
        color: #fff;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

.userbar-logout {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

/* Když je userbar vidět, posuneme header dolů */
body.has-userbar #header {
    top: var(--userbar-height);
}

/* ať se nepřekrývá obsah */
body.has-userbar {
    padding-top: var(--userbar-height);
}

/* Mobile: skryj text vlevo, nech akce */
@media (max-width: 768px) {
    .userbar-text {
        display: none;
    }

    body.has-userbar #header {
        top: var(--userbar-height);
    }

    body.has-userbar {
        padding-top: var(--userbar-height);
    }
}

/* ============================================================
   AUTH BUTTONS — normalize <a.auth-btn> and <button.auth-btn>
   (footer + anywhere)
   ============================================================ */

/* Anchor i button úplně stejný základ */
a.auth-btn,
button.auth-btn {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.92);
    cursor: pointer;
    white-space: nowrap;
}

/* Button extra resety (někdy dělá problém ve WebKitu) */
button.auth-btn {
    margin: 0;
    background-color: rgba(255,255,255,.06);
}

    /* Hover */
    a.auth-btn:hover,
    button.auth-btn:hover {
        background: rgba(255,255,255,.10);
        border-color: rgba(255,255,255,.16);
        transform: translateY(-1px);
    }

    /* Ikony */
    a.auth-btn i,
    button.auth-btn i {
        font-size: 1.05rem;
        line-height: 1;
        color: var(--color-accent);
    }

    /* Logout může mít jinou barvu ikony */
    a.auth-btn.is-logout i,
    button.auth-btn.is-logout i {
        color: var(--color-warning);
    }

/* Footer form ať nerozbíjí výšku */
.footer-user-logout {
    margin: 0;
    display: inline-flex;
    align-items: center;
}
