/* ============================================
   COMPONENTS
   ============================================ */

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    backdrop-filter: saturate(1.2) blur(8px);
    background: color-mix(in oklab, var(--bg-page) 80%, transparent);
    border-bottom: 1px solid color-mix(in oklab, var(--muted) 20%, transparent);
    z-index: 1000;
    box-shadow: 0 2px 10px -5px rgba(0, 0, 0, .3);
    transition: transform 0.3s ease-in-out;
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

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

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.brand .logo {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
}

/* Theme Toggle Button */
#theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid color-mix(in oklab, var(--muted) 25%, transparent);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
}

#theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.2);
    border-color: var(--brand);
    background: color-mix(in oklab, var(--brand) 10%, var(--card));
}

#theme-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.15);
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    background: color-mix(in oklab, var(--brand) 10%, transparent);
    color: var(--brand);
    text-decoration: none;
}

/* Dropdown */
.nav-item.dropdown {
    position: relative;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 260px;
    background: var(--card);
    border: 1px solid color-mix(in oklab, var(--muted) 25%, transparent);
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: saturate(1.2) blur(12px);
    background: color-mix(in oklab, var(--card) 95%, transparent);
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.dropdown-active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    padding-left: 28px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-item.dropdown-overview {
    padding-left: 20px;
}

.dropdown-item:hover {
    background: linear-gradient(135deg,
            color-mix(in oklab, var(--brand) 15%, transparent),
            color-mix(in oklab, var(--brand-2) 10%, transparent));
    color: var(--brand);
    transform: translateX(4px);
    text-decoration: none;
}

.dropdown-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--brand);
}

.dropdown-item span {
    flex: 1;
}

/* Active dropdown item */
.dropdown-item.active {
    background: linear-gradient(135deg,
            color-mix(in oklab, var(--brand) 20%, transparent),
            color-mix(in oklab, var(--brand-2) 15%, transparent));
    color: var(--brand);
    font-weight: 600;
    border-left: 3px solid var(--brand);
    padding-left: 13px;
}

.dropdown-item.active svg {
    color: var(--brand);
}

/* Overview link styling */
.dropdown-item.dropdown-overview {
    border-bottom: 1px solid color-mix(in oklab, var(--muted) 25%, transparent);
    margin-bottom: 8px;
    padding-bottom: 14px;
}

.dropdown-item.dropdown-overview svg {
    color: var(--brand);
}

.dropdown-item.dropdown-overview:hover {
    background: color-mix(in oklab, var(--brand) 10%, transparent);
    transform: translateX(4px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: .85rem 1.1rem;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    box-shadow: 0 14px 30px -12px var(--ring);
}

.btn-outline {
    border-color: color-mix(in oklab, var(--brand) 50%, transparent);
    color: var(--brand);
    background: transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid color-mix(in oklab, var(--muted) 20%, transparent);
    border-radius: 18px;
    padding: 18px;
    display: grid;
    gap: 12px;
}

.card h3 {
    margin: 0;
}

/* Service Cards */
#sluzby .card {
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid var(--brand);
    cursor: pointer;
    background-color: var(--card, #fff);
    border-radius: 12px;
}

:root.light-theme #sluzby .card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

:root.dark-theme #sluzby .card {
    background-color: #1a2332;
}

#sluzby .card:hover {
    background-color: color-mix(in oklab, var(--brand) 5%, var(--card));
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
}

#sluzby .card h3 {
    padding-right: 60px;
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid color-mix(in oklab, var(--muted) 18%, transparent);
    color: var(--muted);
    text-align: center;
}

.inline-list {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.inline-list a {
    color: inherit;
}

/* Hero */
.hero {
    background:
        radial-gradient(1000px 500px at 80% -100%, color-mix(in oklab, var(--brand) 15%, transparent), transparent),
        radial-gradient(800px 400px at -10% 10%, color-mix(in oklab, var(--brand-2) 18%, transparent), transparent),
        var(--bg);
    padding: 100px 0 60px;
}

.hero-with-bg {
    background-image: url('../../public/hana-fotky-web/uvodka.jpg');
    background-size: cover;
    background-position: center 30%;
    min-height: 250px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
}

/* Service-specific backgrounds */
body.page-treatment .hero-with-bg {
    background-image: url('../../public/hana-fotky-web/uvodka_sluzby.jpg');
}

body.page-transport .hero-with-bg {
    background-image: url('../../public/hana-fotky-web/uvodka_sluzby.jpg');
}

body.page-training .hero-with-bg {
    background-image: url('../../public/hana-fotky-web/uvodka_sluzby.jpg');
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 50%;
    background: rgba(0, 0, 0, 0.37);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(0.5px);
}

.hero-title {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-btn-outline {
    border-color: white !important;
    color: var(--brand) !important;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 32px;
    align-items: center;
}

.hero-card {
    background: linear-gradient(180deg, color-mix(in oklab, var(--card) 80%, transparent), var(--card));
    border: 1px solid color-mix(in oklab, var(--muted) 18%, transparent);
    border-radius: 18px;
    padding: 22px;
    display: grid;
    gap: 12px;
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .45);
}

.hero-card .row {
    display: flex;
    align-items: start;
    gap: 12px;
}

.hero-card .row svg {
    flex: 0 0 24px;
}

/* Misc Components */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--muted);
}

.chip svg {
    width: 18px;
    height: 18px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Contact Card Highlight Animation */
@keyframes contactPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    25% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(78, 205, 196, 0.4);
    }

    50% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    75% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(78, 205, 196, 0.4);
    }
}

.contact-highlight {
    animation: contactPulse 1.5s ease-in-out;
}