/* Definice barevné palety Figtree */
:root {
    --primary-color: #27445D;       /* Tmavě modrá/šedá - hlavní text, nadpisy, tmavé pozadí v dark mode */
    --secondary-color: #497D74;     /* Tmavší zeleno-modrá - akcenty, tlačítka, ikonky */
    --accent-color: #71BBB2;        /* Světlejší zeleno-modrá - pozadí některých sekcí, rámečky, jemné akcenty */
    --background-light: #F8F9FA;    /* Světle šedá - modernější pozadí */
    --text-color-light: #2D3748;    /* Tmavě šedá - lepší čitelnost */
    --card-bg-light: #FFFFFF;       /* Bílé pozadí pro karty */
    --shadow-color-light: rgba(0, 0, 0, 0.05); /* Jemnější stíny */
    --gradient-primary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --background-dark: #1a1a1a;
    --text-dark: #ffffff; /* Toto se duplikuje s --text-color-dark, použiji jen --text-color-dark */
    --text-color-dark: #F7FAFC; /* Ponechávám to, co je použito v dark mode selektoru */
    --card-bg-dark: #2D3748;
    --shadow-color-dark: rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
    --focus-outline: 2px solid var(--primary-color);
    --focus-outline-offset: 2px;
}

[data-theme="dark"] {
    --primary-color: #71BBB2; /* Tyto barvy se přehazují, ok */
    --secondary-color: #27445D;
    --accent-color: #497D74;
    /* --background-dark: #1A202C; Toto se duplikuje s :root definicí */
    --text-color-dark: #F7FAFC;
    --card-bg-dark: #2D3748;
    --shadow-color-dark: rgba(0, 0, 0, 0.2);
    /* Chybí definice barev pozadí pro dark mode v tomto bloku, doplním pro konzistenci */
    --background-light: #1A202C; /* V dark mode se 'světlá' barva změní na tmavší pozadí */
    --background-dark: #1A202C; /* Opravdu duplikované, sjednotím */
}

/* Sjednotím dark mode barvy */
[data-theme="dark"] {
    --primary-color: #71BBB2;
    --secondary-color: #27445D;
    --accent-color: #497D74;
    --background-light: #1A202C; /* Toto bude nově pozadí většiny sekcí v dark mode */
    --background-dark: #121212; /* Mírně tmavší pro případ potřeby, nebo odstranit pokud se nepoužije */
    --text-color-light: #F7FAFC; /* Text na "světlém" pozadí v dark mode */
    --text-color-dark: #BBBBBB; /* Tmavší text na tmavém pozadí v dark mode */
    --card-bg-light: #2D3748; /* Pozadí karet na "světlém" pozadí v dark mode */
    --card-bg-dark: #1A202C; /* Pozadí karet na "tmavém" pozadí v dark mode */
    --shadow-color-light: rgba(255, 255, 255, 0.1); /* Světlejší stíny v dark mode */
    --shadow-color-dark: rgba(0, 0, 0, 0.5); /* Tmavší stíny v dark mode */
}

/* Moderní reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Figtree', sans-serif;
    background-color: var(--background-light); /* Používám --background-light pro hlavní pozadí */
    color: var(--text-color-light); /* Používám --text-color-light pro hlavní text */
    line-height: 1.6;
    transition: all 0.5s ease; /* Delší přechod pro plynulejší změnu barvy */
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Moderní header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--background-light); /* Pozadí hlavičky odpovídá hlavnímu pozadí */
    box-shadow: 0 2px 10px var(--shadow-color-light);
    z-index: 100;
    padding: 1rem 0;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100px; /* Ponechávám pevnou výšku pro konzistenci */
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px; /* Mírně menší logo v hlavičce */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    animation: logoAppear 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

[data-theme="dark"] .logo img {
    filter: invert(1) brightness(1.2); /* Stále vhodné pro tmavý režim */
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Moderní navigace */
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--text-color-light); /* Barva textu navigace odpovídá hlavnímu textu */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu li a:hover {
    color: var(--secondary-color);
    background-color: rgba(73, 125, 116, 0.1); /* Stále pěkný efekt */
}

/* Moderní hero sekce */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 60px; /* Větší horní padding kvůli fixní hlavičce */
    overflow: hidden;
    /* Používám konkrétní pozadí pro hero, ne obecné background-light */
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(113, 187, 178, 0.8) 100%);
    color: var(--primary-color); /* Tmavší text na světlejším/barevném pozadí */
    gap: 40px;
    flex-wrap: wrap;
    transition: background 0.5s ease, color 0.5s ease;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(39, 68, 93, 0.8) 100%);
    color: var(--text-color-dark); /* Světlý text v tmavém režimu */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-right: 2rem;
    flex-shrink: 0; /* Nescvrkne se */
}

.hero-animation {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%; /* Trochu větší animace */
    height: 100%; /* Pokrývá celou výšku hero */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    opacity: 0.8; /* Mírná průhlednost */
}

.nutrition-circle {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 0;
}

/* Přidám styly pro nutrition-orbit, které byly v HTML, ale ne v CSS */
.nutrition-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--secondary-color);
    border-right-color: var(--accent-color);
    border-bottom-color: var(--primary-color);
    border-left-color: var(--secondary-color);
    animation: spin 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 20px rgba(73, 125, 116, 0.1);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.nutrition-orbit:nth-child(2) {
    width: 80%;
    height: 80%;
    animation-direction: reverse;
    animation-duration: 16s;
    filter: blur(1px);
}

.nutrition-orbit:nth-child(3) {
    width: 60%;
    height: 60%;
    animation-duration: 20s;
    filter: blur(2px);
}

[data-theme="dark"] .nutrition-orbit {
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-bottom-color: var(--accent-color);
    border-left-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(113, 187, 178, 0.1);
}


.nutrition-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spin 30s linear infinite reverse;
    z-index: 1;
}

.nutrition-particle {
    position: absolute;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.15;
    animation: particleFloat 6s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(73, 125, 116, 0.2);
    transition: background-color 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
    z-index: 1;
}

[data-theme="dark"] .nutrition-particle {
    background: var(--accent-color);
    opacity: 0.1;
    box-shadow: 0 0 15px rgba(73, 187, 178, 0.15);
}

/* Particle positions and sizes - ponechávám jak byly */
.nutrition-particle:nth-child(1) { top: 5%; left: 15%; width: 16px; height: 16px; animation-delay: 0s; opacity: 0.1; }
.nutrition-particle:nth-child(2) { top: 20%; right: 5%; width: 8px; height: 8px; animation-delay: 1.2s; opacity: 0.2; }
.nutrition-particle:nth-child(3) { bottom: 10%; left: 10%; width: 12px; height: 12px; animation-delay: 2.4s; opacity: 0.15; }
.nutrition-particle:nth-child(4) { bottom: 5%; right: 20%; width: 10px; height: 10px; animation-delay: 3.6s; opacity: 0.25; }
.nutrition-particle:nth-child(5) { top: 30%; left: 30%; width: 6px; height: 6px; animation-delay: 4.8s; opacity: 0.3; }
.nutrition-particle:nth-child(6) { top: 15%; right: 25%; width: 14px; height: 14px; animation-delay: 6s; opacity: 0.2; }
.nutrition-particle:nth-child(7) { bottom: 25%; left: 25%; width: 7px; height: 7px; animation-delay: 7.2s; opacity: 0.35; }
.nutrition-particle:nth-child(8) { bottom: 15%; right: 10%; width: 11px; height: 11px; animation-delay: 8.4s; opacity: 0.25; }
.nutrition-particle:nth-child(9) { top: 35%; left: 20%; width: 5px; height: 5px; animation-delay: 9.6s; opacity: 0.4; }
.nutrition-particle:nth-child(10) { top: 10%; right: 15%; width: 13px; height: 13px; animation-delay: 10.8s; opacity: 0.15; }
.nutrition-particle:nth-child(11) { top: 25%; left: 40%; width: 9px; height: 9px; animation-delay: 12s; opacity: 0.3; }
.nutrition-particle:nth-child(12) { bottom: 30%; right: 30%; width: 7px; height: 7px; animation-delay: 13.2s; opacity: 0.2; }
.nutrition-particle:nth-child(13) { top: 40%; left: 15%; width: 15px; height: 15px; animation-delay: 14.4s; opacity: 0.1; }
.nutrition-particle:nth-child(14) { bottom: 20%; right: 25%; width: 8px; height: 8px; animation-delay: 15.6s; opacity: 0.35; }
.nutrition-particle:nth-child(15) { top: 45%; left: 35%; width: 6px; height: 6px; animation-delay: 16.8s; opacity: 0.25; }
.nutrition-particle:nth-child(16) { bottom: 35%; right: 15%; width: 12px; height: 12px; animation-delay: 18s; opacity: 0.2; }
.nutrition-particle:nth-child(17) { top: 15%; left: 45%; width: 10px; height: 10px; animation-delay: 19.2s; opacity: 0.3; }
.nutrition-particle:nth-child(18) { bottom: 40%; right: 20%; width: 7px; height: 7px; animation-delay: 20.4s; opacity: 0.4; }
.nutrition-particle:nth-child(19) { top: 30%; left: 25%; width: 14px; height: 14px; animation-delay: 21.6s; opacity: 0.15; }
.nutrition-particle:nth-child(20) { bottom: 25%; right: 35%; width: 9px; height: 9px; animation-delay: 22.8s; opacity: 0.25; }


@keyframes particleFloat { /* Ponechávám stávající animaci */
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.1;
    }
    25% { 
        transform: translate(25px, -25px) scale(1.4) rotate(90deg);
        opacity: 0.4;
    }
    50% { 
        transform: translate(0, 0) scale(1) rotate(180deg);
        opacity: 0.1;
    }
    75% { 
        transform: translate(-25px, 25px) scale(0.6) rotate(270deg);
        opacity: 0.3;
    }
}

/* Odebráno - bylo duplicitní s nutrition-orbit */
/*
.nutrition-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--secondary-color);
    border-right-color: var(--accent-color);
    border-bottom-color: var(--primary-color);
    border-left-color: var(--secondary-color);
    animation: spin 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 20px rgba(73, 125, 116, 0.1);
}

.nutrition-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    animation-direction: reverse;
    animation-duration: 16s;
    filter: blur(1px);
}

.nutrition-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    animation-duration: 20s;
    filter: blur(2px);
}
*/

.nutrition-mini-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spin 25s linear infinite;
    z-index: 1;
}

.nutrition-mini-icon {
    position: absolute;
    font-size: 1.2rem;
    color: var(--secondary-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.2;
    animation: miniIconFloat 5s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(73, 125, 116, 0.2);
    transition: color 0.5s ease, text-shadow 0.5s ease, opacity 0.5s ease;
    z-index: 1;
}

[data-theme="dark"] .nutrition-mini-icon {
    color: var(--accent-color);
    opacity: 0.15;
    text-shadow: 0 0 8px rgba(73, 187, 178, 0.15);
}

/* Mini icon positions - ponechávám jak byly */
.nutrition-mini-icon:nth-child(1) { top: 15%; left: 15%; animation-delay: 0s; }
.nutrition-mini-icon:nth-child(2) { top: 15%; right: 15%; animation-delay: 1s; }
.nutrition-mini-icon:nth-child(3) { bottom: 15%; left: 15%; animation-delay: 2s; }
.nutrition-mini-icon:nth-child(4) { bottom: 15%; right: 15%; animation-delay: 3s; }
.nutrition-mini-icon:nth-child(5) { top: 30%; left: 30%; animation-delay: 0.5s; }
.nutrition-mini-icon:nth-child(6) { top: 30%; right: 30%; animation-delay: 1.5s; }
.nutrition-mini-icon:nth-child(7) { bottom: 30%; left: 30%; animation-delay: 2.5s; }
.nutrition-mini-icon:nth-child(8) { bottom: 30%; right: 30%; animation-delay: 3.5s; }

.nutrition-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: orbit 20s linear infinite;
    z-index: 1;
}

.nutrition-icon {
    position: absolute;
    font-size: 2.5rem;
    color: var(--secondary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 15px rgba(73, 125, 116, 0.3);
    background: transparent;
    border-radius: 50%;
    animation: counterRotate 20s linear infinite;
    transform-origin: center;
    transition: color 0.5s ease, text-shadow 0.5s ease;
    z-index: 1;
}

[data-theme="dark"] .nutrition-icon {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(73, 187, 178, 0.2);
}

/* Main icon positions - ponechávám jak byly */
.nutrition-icon:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.nutrition-icon:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.nutrition-icon:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.nutrition-icon:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }


.nutrition-center {
    position: absolute;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: transparent;
    border-radius: 50%;
    animation: centerPulse 3s ease-in-out infinite;
    box-shadow: none; /* Žádný stín na kontejneru */
}

.nutrition-center i {
    font-size: 4rem;
    color: var(--secondary-color);
    text-shadow: 0 0 25px rgba(73, 125, 116, 0.4);
    animation: heartbeat 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    background: transparent;
    transition: color 0.5s ease, text-shadow 0.5s ease;
    z-index: 2;
}

[data-theme="dark"] .nutrition-center i {
    color: var(--accent-color);
    text-shadow: 0 0 25px rgba(73, 187, 178, 0.3);
}

/* Keyframes pro animace */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes miniIconFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% { 
        transform: translate(8px, -8px) scale(1.1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    75% { 
        transform: translate(-8px, 8px) scale(0.9);
        opacity: 0.3;
    }
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes counterRotate {
    from { transform: rotate(-360deg); }
    to { transform: rotate(0deg); }
}

@keyframes centerPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes heartbeat {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    14% { 
        transform: scale(1.3);
        opacity: 0.8;
    }
    28% { 
        transform: scale(1);
        opacity: 1;
    }
    42% { 
        transform: scale(1.3);
        opacity: 0.8;
    }
    70% { 
        transform: scale(1);
        opacity: 1;
    }
}


.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary); /* Ponechávám gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: inherit; /* Dědí barvu z .hero-section */
    transition: color 0.5s ease;
}

.hero-section p {
    font-size: 1.1rem; /* Trochu větší text v hero */
    line-height: 1.7;
    color: inherit; /* Dědí barvu */
    transition: color 0.5s ease;
}


.cta-button { /* Styly pro CTA tlačítko, pokud by bylo v hero */
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(73, 125, 116, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(73, 125, 116, 0.3);
}

/* Sekce "Co nabízím" */
#nabidka.section-padding { /* Explicitní cíl na ID + třídu */
    background-color: var(--background-light); /* Pozadí */
    color: var(--text-color-light); /* Text */
    transition: background-color 0.5s ease, color 0.5s ease;
}

#nabidka .section-title {
     color: var(--primary-color); /* Barva nadpisu */
}

.card-container { /* Kontejner pro 3 karty v sekci "Co nabízím" */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem; /* Přidán padding pro responzivitu */
    max-width: 1200px;
    margin: 0 auto;
}

.card { /* Jednotlivé karty v sekci "Co nabízím" */
    background: var(--card-bg-light);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color-light);
    transition: all 0.3s ease;
    text-align: center;
    display: flex; /* Flexbox pro lepší zarovnání obsahu */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

[data-theme="dark"] .card {
    background: var(--card-bg-light); /* V dark mode použij dark card background */
    box-shadow: 0 4px 20px var(--shadow-color-dark);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color-light);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 8px 25px var(--shadow-color-dark);
}

.icon-card { /* Ikony v kartách "Co nabízím" */
    font-size: 3rem; /* Větší ikony */
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: color 0.5s ease;
}

[data-theme="dark"] .icon-card {
    color: var(--accent-color);
}

.card h3 { /* Nadpisy v kartách "Co nabízím" */
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem; /* Větší nadpis */
    transition: color 0.5s ease;
}

[data-theme="dark"] .card h3 {
    color: var(--text-color-light); /* V dark mode použij světlý text */
}

.card p { /* Text v kartách "Co nabízím" */
    color: var(--text-color-light);
    line-height: 1.6;
    font-size: 1rem;
    transition: color 0.5s ease;
}

[data-theme="dark"] .card p {
    color: var(--text-color-dark); /* V dark mode použij tmavší světlý text */
}

/* Sekce "Výživové poradenství" a "Motivační doprovod" */
/* Původní service-category-section nahrazeno IDmi sekcí */

#vyzivove-poradenstvi {
    background-color: var(--accent-color); /* Světlejší zelená */
    color: var(--primary-color); /* Tmavý text */
    transition: background-color 0.5s ease, color 0.5s ease;
}
[data-theme="dark"] #vyzivove-poradenstvi {
    background-color: var(--accent-color); /* Stejná barva v dark mode pro odlišení */
    color: var(--text-color-dark); /* Světlý text */
}

#motivacni-doprovod {
    background-color: var(--background-light); /* Světlé pozadí */
    color: var(--text-color-light); /* Tmavý text */
    transition: background-color 0.5s ease, color 0.5s ease;
}
[data-theme="dark"] #motivacni-doprovod {
    background-color: var(--background-light); /* V dark mode použij dark pozadí */
    color: var(--text-color-light); /* Světlý text */
}

#vyzivove-poradenstvi .section-title,
#motivacni-doprovod .section-title { /* Styly pro nadpisy v těchto sekcích */
    color: inherit; /* Dědí barvu z rodičovské sekce */
    transition: color 0.5s ease;
}


.service-grid { /* Kontejner pro karty služeb */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 2-4 sloupce podle místa */
    gap: 30px;
    justify-content: center;
    max-width: 900px; /* Maximální šířka mřížky */
    margin: 0 auto;
    padding: 0 20px; /* Přidán padding pro responzivitu */
}

/* Odebráno - nepoužívá se v HTML */
/*
.service-items-container.single-column {
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
}
*/

.service-item { /* Jednotlivé karty služeb - Přejmenováno z .service-item-block */
    background-color: var(--card-bg-light); /* Pozadí karty */
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px var(--shadow-color-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease, border-color 0.5s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 4px solid var(--secondary-color); /* Barevný proužek */
    position: relative;
    z-index: 100;
}

[data-theme="dark"] .service-item {
    background-color: var(--card-bg-light); /* V dark mode použij dark card background */
    box-shadow: 0 2px 10px var(--shadow-color-dark);
    border-left-color: var(--accent-color); /* Jiná barva proužku v dark mode */
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px var(--shadow-color-light);
}
[data-theme="dark"] .service-item:hover {
    box-shadow: 0 4px 15px var(--shadow-color-dark);
}

.service-item h4 { /* Nadpisy v kartách služeb - Přejmenováno z .service-item-block h4 */
    text-align: left;
    margin-bottom: 10px;
    font-size: 1.3rem; /* Větší font */
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    z-index: 100;
    transition: color 0.5s ease;
}

[data-theme="dark"] .service-item h4 {
    color: var(--text-color-light); /* V dark mode světlý text */
    text-shadow: none; /* Odstraněn stín */
}

.service-item p { /* Text v kartách služeb - Přejmenováno z .service-item-block p */
    text-align: left;
    font-size: 1rem; /* Standardní velikost textu */
    color: var(--text-color-light);
    margin-bottom: 0;
    line-height: 1.6;
    position: relative;
    z-index: 100;
    transition: color 0.5s ease;
}

[data-theme="dark"] .service-item p {
    color: var(--text-color-dark); /* V dark mode tmavší světlý text */
    text-shadow: none; /* Odstraněn stín */
}


.icon-service { /* Ikony v kartách služeb */
    font-size: 2.8rem; /* Větší ikony */
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: color 0.5s ease;
    position: relative;
    z-index: 100;
}

[data-theme="dark"] .icon-service {
    color: var(--accent-color); /* Jiná barva v dark mode */
    text-shadow: none; /* Odstraněn stín */
}


/* Sekce Reference */
#reference {
    /* padding definováno pomocí třídy section-padding */
    background-color: var(--secondary-color); /* Tmavší zelená/modrá */
    color: white;
    transition: background-color 0.5s ease, color 0.5s ease;
}
[data-theme="dark"] #reference {
    background-color: var(--primary-color); /* Tmavý modrý */
    color: var(--text-color-light); /* Světlý text */
}

#reference .section-title { /* Nadpis v sekci Reference */
    color: inherit; /* Dědí barvu z rodiče */
}

/* Styly pro počítadlo v referencích - pokud ho chceš zachovat */
/*
.counter-container {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
}

.counter {
    font-size: 5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: inherit;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.counter-container p {
    font-size: 1.8em;
    margin: 0;
    color: inherit;
}
*/

/* Testimonials section */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin: 3rem auto 0 auto; /* Zarovnání na střed */
    padding: 0 20px; /* Přidán padding */
}

.testimonial-item {
    background-color: var(--card-bg-light); /* Pozadí reference */
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow-color-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .testimonial-item {
    background-color: var(--card-bg-light); /* V dark mode použij dark card background */
    box-shadow: 0 4px 20px var(--shadow-color-dark);
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color-light);
}

[data-theme="dark"] .testimonial-item:hover {
    box-shadow: 0 8px 25px var(--shadow-color-dark);
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-content i { /* Ikona uvozovek */
    font-size: 2.5rem; /* Větší ikona */
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: -0.5rem; /* Posunuto blíže k textu */
    left: -0.5rem;
    transition: color 0.5s ease, opacity 0.5s ease;
}

[data-theme="dark"] .testimonial-content i {
    color: var(--accent-color);
}


.testimonial-item .quote { /* Text reference */
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color-light); /* Text barva */
    font-style: italic;
    transition: color 0.5s ease;
}

[data-theme="dark"] .testimonial-item .quote {
    color: var(--text-color-dark); /* V dark mode tmavší světlý text */
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.testimonial-author .author { /* Jméno autora */
    font-weight: 600;
    color: var(--primary-color); /* Tmavý text */
    margin: 0;
    transition: color 0.5s ease;
}

[data-theme="dark"] .testimonial-author .author {
    color: var(--text-color-light); /* V dark mode světlý text */
}

.testimonial-author .author-role { /* Popis autora */
    font-size: 0.9rem;
    color: var(--secondary-color); /* Akcentní barva */
    margin: 0;
    transition: color 0.5s ease;
}

[data-theme="dark"] .testimonial-author .author-role {
    color: var(--accent-color); /* Jiná akcentní barva v dark mode */
}


/* Sekce Kontakt */
#kontakt.section-padding { /* Explicitní cíl na ID + třídu */
    background-color: var(--background-light); /* Pozadí */
    color: var(--text-color-light); /* Text */
    transition: background-color 0.5s ease, color 0.5s ease;
}

#kontakt .section-title {
    color: var(--primary-color); /* Barva nadpisu */
}

#kontakt > p { /* Text hned pod nadpisem v sekci Kontakt */
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: inherit; /* Dědí barvu z rodiče */
    transition: color 0.5s ease;
}


#kontakt form {
    max-width: 500px;
    margin: 0 auto 30px auto; /* Zarovnání formuláře na střed a mezera pod ním */
    background-color: var(--card-bg-light); /* Pozadí formuláře */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px var(--shadow-color-light);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

[data-theme="dark"] #kontakt form {
    background-color: var(--card-bg-light); /* V dark mode použij dark card background */
    box-shadow: 0 4px 20px var(--shadow-color-dark);
}


#kontakt label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color); /* Barva labelu */
    transition: color 0.5s ease;
}
[data-theme="dark"] #kontakt label {
    color: var(--text-color-light); /* V dark mode světlý text */
}

#kontakt input, #kontakt textarea {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    background-color: var(--card-bg-light); /* Pozadí inputu/textarea */
    color: var(--text-color-light); /* Text barva inputu/textarea */
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] #kontakt input, [data-theme="dark"] #kontakt textarea {
    background-color: var(--card-bg-dark);
    color: var(--text-color-dark);
    border-color: var(--secondary-color); /* Stále akcentní barva pro rámeček */
}


#kontakt input:focus, #kontakt textarea:focus {
    outline: none;
    border-color: var(--accent-color); /* Světlejší akcentní barva při focusu */
    box-shadow: 0 0 0 3px rgba(113, 187, 178, 0.4); /* Světlejší stín */
}


#kontakt button {
    background-color: var(--secondary-color); /* Tlačítko s akcentní barvou */
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#kontakt button:hover {
    background-color: var(--primary-color); /* Tmavší barva při najetí */
    transform: translateY(-2px);
}


.email-link { /* Styl pro text pod formulářem */
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    color: inherit; /* Dědí barvu z rodiče */
    transition: color 0.5s ease;
}


footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
    color: var(--text-color-dark); /* Tmavší světlý text */
    background-color: var(--card-bg-light); /* Pozadí footeru */
    transition: color 0.5s ease, background-color 0.5s ease;
}

[data-theme="dark"] footer {
    color: var(--text-color-dark);
    background-color: var(--card-bg-light); /* V dark mode použij dark card background */
}


html {
    scroll-behavior: smooth;
}

.skip-link { /* Styl pro "Přeskočit na hlavní obsah" */
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: white;
    padding: 8px;
    z-index: 1000;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}


/* Sticky CTA tlačítko */
#sticky-cta {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--shadow-color-light);
    transition: all 0.3s ease, opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); /* Upraven transition pro plynulejší objevování */
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none; /* Zajistí, že na skryté tlačítko nelze kliknout */
}

#sticky-cta.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Povolí klikání, když je viditelné */
}

[data-theme="dark"] #sticky-cta {
    background-color: var(--primary-color);
    color: var(--text-color-dark);
    box-shadow: 0 4px 15px var(--shadow-color-dark);
}

#sticky-cta:hover {
    background-color: var(--primary-color); /* Změna barvy při hoveru */
    transform: translateY(-3px); /* Mírně větší posun */
    box-shadow: 0 6px 20px var(--shadow-color-light);
}
[data-theme="dark"] #sticky-cta:hover {
    background-color: var(--secondary-color); /* Jiná barva při hoveru v dark mode */
    box-shadow: 0 6px 20px var(--shadow-color-dark);
}

/* Tlačítko zpět nahoru */
#scrollToTop {
    display: none; /* Skryto standardně, JS ho ukáže */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: linear-gradient(145deg, var(--accent-color), var(--secondary-color));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--shadow-color-light);
    transition: all 0.3s ease;
    display: flex; /* Flexbox pro centrování ikony */
    justify-content: center;
    align-items: center;
}

[data-theme="dark"] #scrollToTop {
    background: linear-gradient(145deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 6px 20px var(--shadow-color-dark);
}


#scrollToTop:hover {
    background: var(--secondary-color); /* Změna barvy při hoveru */
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-color-light);
}
[data-theme="dark"] #scrollToTop:hover {
    background: var(--accent-color); /* Jiná barva při hoveru v dark mode */
    box-shadow: 0 8pkpx 25px var(--shadow-color-dark);
}

#scrollToTop i {
    font-size: 20px;
}

/* Scroll animations */
/* Cílení na sekce pro reveal efekt */
#domu .hero-content,
#nabidka .card-container,
#vyzivove-poradenstvi .service-grid,
#motivacni-doprovod .service-grid,
#reference .testimonials-container,
#kontakt form,
#kontakt > p { /* Cílení i na odstavec v kontaktu */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Cílení na jednotlivé karty uvnitř gridů pro odložený reveal */
.service-grid .service-item,
.testimonials-container .testimonial-item {
     opacity: 0;
     transform: translateY(30px);
     transition: all 0.8s ease-out;
}


.reveal.active { /* Třída přidaná JavaScriptem */
    opacity: 1;
    transform: translateY(0);
}


/* Hamburger Menu */
.hamburger {
    display: none; /* Skryto na desktopu */
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Nad navigačním menu */
    transition: color 0.5s ease;
}

[data-theme="dark"] .hamburger {
    color: var(--accent-color);
}


/* Theme Switcher */
.theme-switch {
    /* position: fixed; top, right, z-index nastaveno v media query */
    display: inline-block;
    width: 50px; /* Šířka přepínače */
    height: 28px; /* Výška přepínače */
    position: relative;
    cursor: pointer;
    margin-left: 1rem;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-color); /* Barva pozadí vypnutého přepínače */
    border-radius: 28px;
    transition: background-color 0.4s;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 5px;
}

[data-theme="dark"] .slider {
    background-color: var(--primary-color); /* Barva pozadí zapnutého přepínače */
}


.slider:before {
    position: absolute;
    content: "";
    height: 20px; /* Velikost posuvníku */
    width: 20px;
    left: 4px; /* Počáteční pozice */
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s;
}

input:checked + .slider {
    background-color: var(--primary-color); /* Barva pozadí zapnutého přepínače */
}
[data-theme="dark"] input:checked + .slider {
     background-color: var(--secondary-color); /* Barva pozadí zapnutého přepínače v dark mode */
}


input:checked + .slider:before {
    transform: translateX(22px); /* Posuvník se posune doprava */
}

.slider i { /* Ikony uvnitř slideru */
    color: white;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.slider .fa-sun {
    opacity: 1; /* Ikona slunce viditelná ve světlém režimu */
}

.slider .fa-moon {
    opacity: 0; /* Ikona měsíce skrytá ve světlém režimu */
}

input:checked + .slider .fa-sun {
    opacity: 0; /* Skryje slunce v tmavém režimu */
}

input:checked + .slider .fa-moon {
    opacity: 1; /* Zobrazí měsíc v tmavém režimu */
}

/* Responsivní úpravy */
@media (max-width: 992px) { /* Pro tablety a menší */
    .navbar {
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 1rem; /* Menší mezera v navigaci */
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px; /* Úprava paddingu */
    }

    .hero-content {
        margin-right: 0;
        margin-bottom: 3rem;
        max-width: 100%; /* Plná šířka textu */
    }

    .hero-section h1 {
        font-size: 2.8rem; /* Menší nadpis */
    }

     .hero-section h2 {
        font-size: 1.5rem; /* Menší podnadpis */
    }

    .hero-animation {
        position: relative;
        width: 80%; /* Menší animace */
        height: 300px; /* Pevná výška pro animaci */
        top: auto;
        transform: none;
        margin: 0 auto; /* Centrování animace */
        opacity: 1; /* Plná průhlednost na menších obrazovkách */
    }

    .nutrition-circle {
        width: 300px;
        height: 300px;
    }

    .logo img {
        height: 70px; /* Menší logo */
    }

     .section-padding {
        padding: 80px 20px; /* Menší padding sekcí */
    }

    .section-title {
        margin-bottom: 40px;
        font-size: 2rem;
    }

    .card-container,
    .service-grid,
    .testimonials-container {
         grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Menší min šířka karet */
         padding: 0 1rem;
    }

     .card,
     .service-item,
     .testimonial-item {
         padding: 1.5rem; /* Menší padding karet */
     }

     .icon-card, .icon-service {
         font-size: 2.5rem; /* Menší ikony */
     }

     .card h3 {
         font-size: 1.3rem; /* Menší nadpisy karet */
     }

     .testimonial-content i {
         font-size: 2rem; /* Menší ikona uvozovek */
     }

     #sticky-cta {
         left: 20px;
         bottom: 20px;
         padding: 10px 20px; /* Menší padding CTA */
         font-size: 0.9em;
     }

     #scrollToTop {
         right: 20px;
         bottom: 20px;
         width: 40px;
         height: 40px;
         font-size: 18px;
     }

     #scrollToTop i {
         font-size: 16px;
     }

}


@media (max-width: 768px) { /* Pro telefony */
    .hamburger {
        display: block; /* Zobrazí hamburger menu */
    }

    .nav-right {
        /* display: none; Odebráno, ovládá se JS třídou .show */
        display: flex; /* Standardně flex */
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Skryto mimo obrazovku */
        width: 100%;
        height: 100vh;
        background-color: var(--background-light); /* Pozadí menu */
        z-index: 998;
        transition: right 0.3s ease; /* Animace vysunutí */
        padding-top: 80px; /* Mezera pod hlavičkou */
    }
    [data-theme="dark"] .nav-right {
         background-color: var(--background-light); /* V dark mode tmavé pozadí */
    }

    .nav-right.show {
        right: 0; /* Vysune menu */
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        align-items: center;
        margin-top: 2rem;
    }

    .nav-menu li {
        margin: 0.8rem 0;
        width: 80%; /* Širší klikatelná plocha */
        text-align: center;
    }

    .nav-menu li a {
        font-size: 1.3rem; /* Větší písmo v menu */
        padding: 1rem;
        display: block;
        border-radius: 4px;
    }

    .theme-switch { /* Přepínač režimu v menu */
        position: static; /* Zruší fixní pozici */
        margin-top: 2rem;
        margin-left: 0;
    }

     .navbar {
         height: 60px; /* Menší hlavička */
     }

    main {
        padding-top: 60px; /* Padding hlavního obsahu pod menší hlavičkou */
    }

     .hero-section {
         padding: 80px 10px 40px; /* Menší padding hero */
     }

     .hero-section h1 {
         font-size: 2.2rem;
     }

     .hero-section h2 {
         font-size: 1.2rem;
     }

     .hero-section p {
         font-size: 1rem;
     }


     .hero-animation {
         width: 100%;
         height: 250px; /* Menší výška animace */
     }

      .nutrition-circle {
         width: 250px;
         height: 250px;
     }

     .nutrition-icon {
         font-size: 2rem;
         width: 50px;
         height: 50px;
     }

     .nutrition-center i {
         font-size: 3rem;
     }

     .logo img {
         height: 50px; /* Ještě menší logo */
     }

     .section-padding {
        padding: 60px 10px; /* Menší padding sekcí */
    }

     .section-title {
         font-size: 1.8rem;
         margin-bottom: 30px;
     }

     .card-container,
     .service-grid,
     .testimonials-container {
         grid-template-columns: 1fr; /* Jediný sloupec */
         padding: 0 10px;
         gap: 1.5rem;
     }

      .card,
      .service-item,
      .testimonial-item {
          padding: 1.2rem; /* Menší padding */
      }

      .icon-card, .icon-service {
         font-size: 2.2rem; /* Menší ikony */
     }

     .card h3 {
         font-size: 1.2rem; /* Menší nadpisy */
     }

     .testimonial-item .quote {
         font-size: 1rem; /* Menší text reference */
     }

     .testimonial-content i {
         font-size: 1.8rem; /* Menší ikona uvozovek */
     }


     #kontakt form {
         padding: 20px; /* Menší padding formuláře */
     }

     #kontakt label {
         margin-top: 10px;
         margin-bottom: 3px;
     }

     #kontakt input, #kontakt textarea {
         padding: 10px; /* Menší padding polí */
         font-size: 0.9em;
     }

     #sticky-cta {
         left: 15px;
         bottom: 15px;
         padding: 8px 15px; /* Ještě menší padding CTA */
         font-size: 0.8em;
     }

     #scrollToTop {
         right: 15px;
         bottom: 15px;
         width: 35px;
         height: 35px;
         font-size: 16px;
     }

     #scrollToTop i {
         font-size: 14px;
     }

     footer {
         padding: 20px 10px; /* Menší padding footeru */
     }

}