/* Statek Krotil - Traditional Clean Styling (Zero-JS Slider) */

/* ==========================================
   1. Design Variables
   ========================================== */
:root {
    --color-primary: #000000;          /* Forest Green */
    --color-accent: #c8963e;           /* Warm Amber Gold */
    --color-bg-light: #ffffff;         /* Soft Cream */
    --color-bg-dark: #121816;          /* Dark Charcoal */
    --color-text: #000000;             /* Charcoal Text */
    --color-text-light: #5a6b66;       /* Slate Text */
    --color-white: #ffffff;
    --color-border: #e0d9cf;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
}

/* ==========================================
   2. Base Resets
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-muted {
    color: var(--color-text-light);
}

.text-right {
    text-align: right;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }

/* Explicit list resets to ensure no dots appear */
ul, ol {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0;
    margin: 0;
}

li {
    list-style: none !important;
    list-style-type: none !important;
}

/* ==========================================
   3. Typography
   ========================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 16px;
    font-weight: 700;
}

h1 { font-size: 3rem;}
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 16px;
}

p.lead {
    font-size: 1.15rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Section Headers */
.section-header {
    text-align: left;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.2;
}

.section-header .divider {
    display: none;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-top: 12px;
}

/* ==========================================
   4. Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #2b4b42;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================
   5. Header & Navigation
   ========================================== */
.main-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

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

.logo-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    color: #000000;
    line-height: 1.1;
}

.main-nav ul.nav-list {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    list-style: none !important;
    list-style-type: none !important;
}

.main-nav li.nav-item {
    list-style: none !important;
    list-style-type: none !important;
}

.nav-link-item {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #000000;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.nav-link-item:hover,
.nav-link-item.active {
    color: var(--color-accent);
}

/* ==========================================
   6. Hero Section
   ========================================== */
.hero-section {
    position: relative;
    background-image: url('Imgs/FrontPage image.jpg');
    background-size: cover;
    background-position: center center;
    color: var(--color-white);
    padding: 60px 0 300px 0;
    text-align: center;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

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

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.hero-lead {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
    color: #ffffff;
}

/* ==========================================
   7. Rows & Columns (Classic Grid Layout)
   ========================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.row.align-center {
    align-items: center;
}

.col-text {
    flex: 1;
    min-width: 300px;
}

.col-image {
    flex: 1;
    min-width: 300px;
}

.about-img {
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    width: 100%;
    object-fit: cover;
    height: 250px;
}

/* Process Timeline List */
.process-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-list li {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid var(--color-primary);
    border-top: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.process-list li strong {
    display: block;
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 6px;
}

/* ==========================================
   8. Price List Table
   ========================================== */
.price-table-container {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 30px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.price-table th, .price-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
}

.price-table th {
    background-color: #f0eae1;
    font-weight: 700;
    color: var(--color-primary);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.highlight-row {
    background-color: rgba(200, 150, 62, 0.08);
}

/* Ordering Information Box */
.ordering-info {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: 4px;
    margin-top: 30px;
}

.ordering-info h3 {
    margin-bottom: 15px;
}

.ordering-info ul {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ordering-info li {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ordering-info i {
    color: var(--color-accent);
    font-size: 1.1rem;
    width: 20px;
}

.text-link {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
}

.text-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* ==========================================
   9. Horizontal Scroll Recipes Slider
   ========================================== */
.recipe-slider-outer {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    width: 100%;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: #717171;
    color: var(--color-white);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.slider-arrow:hover {
    background-color: var(--color-primary);
}

.recipe-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.recipe-slides-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.recipe-slides-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.recipe-slide-item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    padding: 10px;
}

.recipe-slide-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.recipe-slide-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.recipe-slide-content {
    display: flex;
    gap: 40px;
    width: 100%;
    align-items: flex-start;
}

.recipe-slide-ingredients {
    flex: 1;
    text-align: left;
}

.recipe-slide-ingredients ul {
    list-style-type: disc !important;
    list-style: disc !important;
    padding-left: 20px !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-slide-ingredients li {
    list-style-type: disc !important;
    list-style: disc !important;
    display: list-item !important;
    font-size: 0.95rem;
    color: var(--color-text);
}

.recipe-slide-image-box {
    flex: 1.2;
    display: flex;
    justify-content: center;
}

.recipe-slide-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.recipe-slide-description {
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.6;
    margin-top: 24px;
    width: 100%;
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

/* ==========================================
   10. Contacts Section
   ========================================== */
.contact-box {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: 4px;
    height: 100%;
}

.contact-divider {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 24px 0;
}

.map-container {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: 4px;
    height: 100%;
}

.map-label {
    margin-bottom: 15px;
}

.map-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.map-links .btn {
    flex: 1;
    min-width: 140px;
}

.map-fallback-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

/* --- Krava Slider (Náš chov) --- */
.left-divider {
    margin: 0 0 20px 0;
}

.main-krava-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.kravy-slider-outer {
    position: relative;
    width: 100%;
    margin-top: 50px;
    display: flex;
    align-items: center;
}

.kravy-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: rgba(18, 24, 22, 0.6);
    color: var(--color-white);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.kravy-slider-arrow:hover {
    background-color: var(--color-primary);
}

.kravy-slider-arrow.prev-arrow {
    left: 15px;
}

.kravy-slider-arrow.next-arrow {
    right: 15px;
}

.kravy-slider-container {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.kravy-slides-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.kravy-slides-wrapper::-webkit-scrollbar {
    display: none;
}

.kravy-slide-item {
    flex: 0 0 calc(50% - 10px);
    scroll-snap-align: start;
}

.kravy-slide-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.kravy-slide-img:hover {
    transform: scale(1.02);
}

/* ==========================================
   11. Footer
   ========================================== */
.main-footer {
    background-color: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--color-primary);
}

/* --- Prodej Section Styling --- */
.check-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list li {
    list-style: none !important;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-blue {
    color: #2a75d3;
    font-weight: bold;
    font-size: 1.15rem;
}

.product-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 50px;
    flex-wrap: wrap;
    width: 100%;
}

.product-card {
    flex: 1;
    min-width: 150px;
    text-align: center;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.product-card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

.product-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
    margin-top: 12px;
    line-height: 1.3;
}

/* ==========================================
   12. Responsive Adjustments
   ========================================== */
@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-section {
        padding: 40px 0 180px 0;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul.nav-list {
        justify-content: center;
        gap: 16px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .row {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-img {
        height: 200px;
    }
    
    .recipe-slider-outer {
        gap: 10px;
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .recipe-slide-card {
        padding: 20px;
    }
    
    .recipe-slide-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .recipe-slide-img {
        height: 200px;
    }
    
    .recipe-slide-image-box {
        width: 100%;
    }

    /* Krava Slider Responsive */
    .kravy-slide-item {
        flex: 0 0 100%;
    }
    .kravy-slide-img {
        height: 200px;
    }
    .kravy-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .main-krava-img {
        height: 250px;
        margin-top: 20px;
    }

    /* Product Grid Responsive */
    .product-grid {
        gap: 10px;
    }
    .product-card {
        min-width: 120px;
        flex: 0 0 calc(50% - 5px);
    }
}

/* --- Lightbox Overlay --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s ease;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--color-accent);
}

.lightbox-container {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
    transition: transform 0.2s ease;
    user-select: none;
}

.lightbox-img.zoomed {
    transform: scale(1.4);
    cursor: zoom-out;
}

/* Reduce spacing between Recepty and Kontakty sections */
#recepty {
    padding-bottom: 40px;
}
#kontakty {
    padding-top: 40px;
}

/* Contact Grid Separator Line */
.contact-row {
    gap: 0 !important;
}

.contact-col-left {
    padding-right: 40px;
    flex: 1;
}

.contact-col-right {
    border-left: 1px solid var(--color-border);
    padding-left: 60px;
    flex: 1;
}

@media (max-width: 768px) {
    .contact-col-left {
        padding-right: 0;
        margin-bottom: 30px;
    }
    .contact-col-right {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-left: 0;
        padding-top: 30px;
    }
}

/* Footer-specific Divider Overrides (Opaque White) */
.main-footer .contact-col-right {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .main-footer .contact-col-right {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}
