/* ====== ZÁKLADNÍ NASTAVENÍ ====== */
body {
            margin: 0;
            font-family: "Public Sans", Arial, sans-serif;
            background: white;
            font-optical-sizing: auto;
            font-weight: 400;
            font-style: normal;
        }
        .public-sans-regular {
            font-family: "Public Sans", sans-serif;
            font-optical-sizing: auto;
            font-weight: 400;
            font-style: normal;
        }
        html {
    scroll-behavior: smooth;
}

/* ====== HLAVIČKA (HEADER) ====== */
header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 3em 10%;
            background: rgba(255,255,255,0.97);
            box-shadow: 0 2px 8px rgba(0,0,0,0.03);
            position: sticky;
            top: 0;
            z-index: 100;
            transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
        }
        header.header-scrolled {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 4px 16px rgba(137,108,163,0.10);
}
        header.hide-on-scroll {
    transform: translateY(-100%);
}
        .logo {
            display: flex;
            align-items: center;
            position:relative;
            z-index:01;
        }
        .logo img {
            height: 55px;
            margin-right: 15px;
        }
        .logo span {
            font-size: 1.5em;
            font-weight: bold;
            color: #2e7d32;
        }
         h1 {
            position: absolute;
            left:11%;
            top:-2em;
            font-size:0.9em;
            z-index:0;
            color: white;
        }
        h2 {
            font-weight: 400;
            margin-top: 0em;
            font-size: 1.4em;
        }

/* ====== NAVIGACE ====== */
nav ul {
            list-style: none;
            display: flex;
            gap: 30px;
            margin: 0;
            padding: 0;
        }
        nav ul li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.2s;
    padding: 0;
}

nav ul li::after {
    content: "";
    display: block;
    margin: 7px auto 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #896ca3;
    transition: background 0.2s;
}

/* Zelená tečka a pozadí na hover celé položky */

nav ul li:hover::after,
nav ul li:focus-within::after {
    background: #2e7d32;
}

nav a {
    text-decoration: none;
    color: #878487;
    font-weight: 400;
    font-size: 1.2em;
    transition: color 0.2s;
}
nav a:hover {
    color: #2e7d32;
}
nav ul .lang {
    border-bottom: none !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    justify-content: center;
}
nav ul .lang::after {
    display: none !important;
}
nav ul .lang a {
    border: 2px solid #896ca3;
    border-radius: 50%;
    padding: 0.40em 0.35em;
    background: transparent;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    box-sizing: border-box;
    display: inline-block;
    line-height: 1.2;
    font-size:1em;
    font-weight: 600;
}
nav ul .lang a:hover,
nav ul .lang a:focus {
    border-color: #2e7d32;
    color: white;
    background: #2e7d32;
    text-decoration: none;
}

/* ====== HAMBURGER MENU ====== */
.menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 40px;
            height: 40px;
            cursor: pointer;
            border: none;
            background: transparent;
            margin-left: 10px;
            position: absolute;
            top: 20px;
            right: 10%;
            z-index: 20;
        }
        .menu-toggle span {
            height: 4px;
            width: 28px;
            background: #2e7d32;
            margin: 4px 0;
            border-radius: 2px;
            transition: 0.3s;
            display: block;
        }

/* ====== HERO SEKCE ====== */
.hero-container {
            position: relative;
            width: 100%;
            max-width: 100vw;
        }
        .hero-image {
            width: 100%;
            height: 600px;
            object-fit: cover;
            object-position: top;
            display: block;
            position: relative;
            z-index: 1;
        }
        .motto {
            position: absolute;
            left: 50%;
            bottom: 6%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 900px;
            color: white;
            background: none;
            font-family: "Public Sans", Arial, sans-serif;
            font-size: 3.5em;
            font-weight: 700;
            text-align: center;
            padding: 0 18px 24px 18px;
            border-radius: 0;
            box-shadow: none;
            z-index: 2;
            letter-spacing: 0.00em;
            pointer-events: none;
            text-transform: uppercase;
            
        }
        .smallMotto {
            font-size: 1.7em;
            display: block;
            margin: 0;
            padding: 2em 0;
            font-family: "Public Sans", Arial, sans-serif;
            font-weight: 400;
            background: #896ca3;
            min-height: 12.7vh;
            text-align: center;
            color: white;
        }
        .smallMotto .purple-lines-link {
    clear:bottom
}
        .smallMotto .purple-line {
    background: #ffffff;
}

/* ====== OBSAH (CONTENT) ====== */
.content {
            margin: 40px 10%;
            background: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            font-size: 1.1em;
            color: #4e4b4b;
        }

/* ====== SEKCE TÝM ====== */
#Tym, #Team, #Kontakt, #Contact {
    background: #faf7fd;
}
.team-list {
    display: flex;
    flex-direction: column;
    gap: 2.5em;
    margin-top: 2em;
}
.team-member {
    display: flex;
    gap: 2em;
    align-items: flex-start;
    background: white;
    border-radius: 12px;
    padding: 1.5em 1.2em;
    box-shadow: 0 2px 8px rgba(137,108,163,0.06);
}
.team-photo {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(137,108,163,0.10);
    flex-shrink: 0;
}
.team-info h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.0em;
    color: #2e7d32;
}
.team-info p {
    margin: 0 0 0.7em 0;
    font-size: 0.9em;
    color: #4e4b4b;
    line-height: 1.6;
}
.team-contact {
    font-size: 0.98em;
    color: #896ca3;
    margin-top: 0.3em;
}
.team-contact a {
    word-break: break-all;
}
.team-contact .phone-icon svg {
    vertical-align: middle;
    color: #2e7d32;
    margin-right: 0.3em;
}

/* ====== POJIŠŤOVNY ====== */
.insuranceLogos {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 480px;
    gap: 2em;
    margin: 1em 0 1em;
}
.insuranceLogos .item {
    text-align: center;
}
.insuranceLogos .item img {
    width: 100%;
}

/* ====== PURPLE LINES (DEKORACE) ====== */
.purple-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2em 0 0 0;
    gap: 5px;
}
.purple-line {
    background: #896ca3;
    height: 2px;
    border-radius: 1px;
    margin: 0 auto;
}
.purple-line.line1 { width: 45px; }
.purple-line.line2 { width: 30px; }
.purple-line.line3 { width: 10px; }
.purple-lines-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s;
}
.purple-lines-link:active {
    transform: scale(0.96);
}
.purple-lines-link .purple-lines {
    pointer-events: none;
}
.purple-lines-rotate {
    transform: rotate(180deg);
}

/* ====== SEZNAMY ====== */
.seznam li::marker {
    color: #896ca3;
}

/* ====== ODKAZY ====== */
a {
    color: #896ca3;
    text-decoration: none;
}
a:hover {
    color: #2e7d32;
    text-decoration: underline;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 990px) {
    .insuranceLogos {
        gap: 1em;
        width: 80%;
    }
}
@media (max-width: 800px) {
    header, .content {
        padding-left: 5%;
        padding-right: 5%;
    }
    .content {
        margin-left: 5%;
        margin-right: 5%;
    }
    .logo img {
        height: 50px;
    }
    .motto {
        font-size: 1.8em;
        padding: 0 10px 14px 10px;
    }
    .smallMotto {
        font-size: 1.3em;
        padding: 3em 9% 3.5em 9%;
        height: auto;
    }
    .hero-image {
        height: 260px;
    }
    .menu-toggle {
        right: 5%;
        top: 18px;
    }
    nav ul {
        gap: 14px;
    }
    nav a {
        font-size: 1.0em;
    }
    .team-member {
        flex-direction: column;
        align-items: flex-start;
    }
    .team-photo {
        margin-bottom: 1em;
    }
}
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px 3%;
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(255,255,255,0.97);
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }
    .logo img {
        height: 45px;
    }
    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        position: absolute;
        right: 0;
        top: 70px;
        z-index: 110;
        align-items: center;
        font-size: 1.4em;
        padding: 0 3% 0 2em;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s;
        display: flex;
        pointer-events: none;
    }
    nav ul.open {
        max-height: 500px;
        opacity: 1;
        padding: 2em 3% 2em 2em;
        pointer-events: auto;
        transition: max-height 0.45s cubic-bezier(.4,0,.2,1), opacity 0.3s;
        display: flex;
    }
    nav ul li {
        padding: 0 0 0.8em;
    }
    .menu-toggle {
        display: flex;
        right: 3%;
        top: 25px;
    }
    .motto {
        font-size: 1.9em;
        padding: 0 5px 8px 5px;
        bottom: 20px;
    }
    .smallMotto {
        font-size: 1.2em;
    }
    .hero-image {
        height: 240px;
    }
    .content {
        margin-top: 20px;
    }
    section {
        padding: 10px 30px 20px;
    }
    h2 {
        margin-top: 0em;
        font-size: 1.4em;
    }
    .insuranceLogos {
        width: 100%;
    }
    nav ul .lang a {
        font-size: 0.75em;
    }
}

/* ====== VÝŠKA HERO SEKCE PRO MENŠÍ OBRAZOVKY ====== */
@media (max-height:980px) {
    .smallMotto {
        min-height: 100px;
        padding: 1em 0;
    }
    .hero-image {
        width: 100%;
        height: 380px;
    }
}

