/* Hlavní styly pro Dishabavno */

/* CSS proměnné pro barvy */
:root {
    --primary-color: #2d7d32;
    --secondary-color: #81c784;
    --accent-color: #ff7043;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8fdf9;
    --white: #ffffff;
}

/* Základní resetování a globální styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden; /* Oprava horizontálního scrollu */
}

.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Navigace */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 50, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2845, 125, 50, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
    transition: transform 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Collapse переходы */
.navbar-collapse {
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Mobilní navigace */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(45, 125, 50, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-20px);
    }
    
    .navbar-collapse.show {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        animation: mobileMenuSlide 0.4s ease forwards;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        margin-bottom: 0.25rem;
        transition: all 0.3s ease;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover {
        background-color: rgba(45, 125, 50, 0.1);
        transform: translateX(5px);
    }
    
    .nav-link.active {
        background-color: var(--primary-color);
        color: white !important;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        transform: rotate(90deg);
    }
}

@keyframes mobileMenuSlide {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Дополнительная анимация для desktop */
@media (min-width: 992px) {
    .nav-link {
        margin: 0 0.25rem;
        border-radius: 25px;
        padding: 0.5rem 1rem !important;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: rgba(45, 125, 50, 0.05);
    }
}

/* Hero sekce */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/hero-background.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Tlačítka */
.btn-primary {
    background: var(--accent-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 112, 67, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Sekce styly */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

/* Karty */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Týmové karty */
.team-card {
    text-align: center;
    padding: 2rem;
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--secondary-color);
    display: block;
}

.team-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.team-motto {
    color: var(--primary-color);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Statistiky */
.stats {
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Ikony */
.icon-box {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

/* Zpětná vazba - testimonials */
.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    position: relative;
    height: 100%;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

/* Kontaktní formulář */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 50, 0.25);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 30px;
}

.footer h5, .footer h6 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: white;
    padding: 1.5rem;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-banner .btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.cookie-banner .btn-light:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
}

.cookie-banner .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* Animace pro cookie banner */
@keyframes cookieSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.show {
    animation: cookieSlideUp 0.5s ease forwards;
}

/* Responzivní cookie banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .cookie-banner .btn {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
        margin-bottom: 0.5rem;
    }
    
    .cookie-banner .d-flex {
        flex-direction: column;
    }
}

/* Speciální efekty */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animace */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Kontaktní stránka */
.hero-small {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/hero-background.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-small .container {
    position: relative;
    z-index: 2;
}

.contact-info-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

/* Accordion styly */
.accordion-item {
    border: none;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.accordion-button {
    background: white;
    border: none;
    font-weight: 500;
    color: var(--text-dark);
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-light);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(45, 125, 50, 0.25);
}

.accordion-body {
    padding: 1.25rem 1.5rem;
    background: white;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Responzivní úpravy pro mobilní zařízení */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .hero-small {
        min-height: 30vh;
        margin-top: 70px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .team-avatar {
        width: 120px;
        height: 120px;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .navbar-brand {
        font-size: 1.6rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-small h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .hero-content {
        padding: 0 5px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-auto, .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md-auto, .col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-auto, .col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-auto, .col-xxl, .col-xxl-1, .col-xxl-2, .col-xxl-3, .col-xxl-4, .col-xxl-5, .col-xxl-6, .col-xxl-7, .col-xxl-8, .col-xxl-9, .col-xxl-10, .col-xxl-11, .col-xxl-12, .col-xxl-auto {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Speciální styly pro různé sekce */
.badge {
    font-size: 0.8rem;
    padding: 0.5em 0.8em;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--secondary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-secondary {
    border-color: #6c757d !important;
}

/* Týdenní plán tabulka */
.weekly-plan-table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
}

.weekly-plan-table th {
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.weekly-plan-table td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.weekly-plan-table tbody tr:hover {
    background-color: rgba(129, 199, 132, 0.1);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.weekly-plan-table tbody tr:last-child td {
    border-bottom: none;
}

.health-tip {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.health-tip:hover {
    transform: translateY(-5px);
}

.health-tip h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Responzivní tabulka */
@media (max-width: 768px) {
    .weekly-plan-table {
        font-size: 0.9rem;
    }
    
    .weekly-plan-table th,
    .weekly-plan-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .weekly-plan-table th:nth-child(4),
    .weekly-plan-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 576px) {
    .weekly-plan-table {
        font-size: 0.8rem;
    }
    
    .weekly-plan-table th:nth-child(3),
    .weekly-plan-table td:nth-child(3) {
        display: none;
    }
    
    .health-tip {
        padding: 1rem;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Vylepšení pro formuláře */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control:focus {
    outline: none;
}

select.form-control {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23666' d='m2 0l2 3h-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 8px 10px;
}

/* Vylepšení pro smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Efekt při načítání stránky */
body {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Zlepšení přístupnosti */
.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;
}

/* Focus styly pro lepší přístupnost */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Vylepšení pro tiskovou verzi */
@media print {
    .navbar,
    .cookie-banner,
    .btn {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
    }
}