/* =============================================
   Včelky z Chlumce – Design systém
   ============================================= */

/* --- Fonty --- */
@font-face {
    font-family: Poppins;
    src: url(fonty/Poppins-Regular.ttf);
    font-weight: normal;
    font-display: swap;
}
@font-face {
    font-family: Poppins;
    src: url(fonty/Poppins-ExtraBold.ttf);
    font-weight: bold;
    font-display: swap;
}

/* --- CSS proměnné --- */
:root {
    --honey:        #F7C948;
    --honey-dark:   #E8A800;
    --amber:        #EF6534;
    --brown:        #4b2e12;
    --brown-light:  #6b4226;
    --brown-mid:    #795508;
    --cream:        #FFFBEE;
    --cream-dark:   #FFF8E1;
    --border:       #D2A679;
    --text:         #333333;
    --text-muted:   #666666;
    --white:        #FFFFFF;
    --shadow:       0 4px 16px rgba(75,46,18,0.10);
    --shadow-hover: 0 8px 28px rgba(75,46,18,0.18);
    --radius:       12px;
    --radius-sm:    8px;
    --header-h:     80px;
    --max-w:        1100px;
}

/* --- Reset & base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--brown);
}

body {
    font-family: Poppins, Arial, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: #faf8f2;
    padding-top: var(--header-h);
    min-width: 320px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--amber);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =============================================
   TLAČÍTKA
   ============================================= */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 30px;
    font-size: 0.95em;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}
.btn:hover {
    text-decoration: none;
    filter: brightness(110%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.btn-primary {
    background: var(--honey);
    color: var(--brown);
}
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.7);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--brown);
    border: 2px solid var(--brown);
}
.btn-outline:hover {
    background: var(--brown);
    color: var(--white);
}
.btn-dark {
    background: var(--brown);
    color: var(--white);
}

/* =============================================
   HEADER & NAVIGACE
   ============================================= */
body > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 3px solid var(--honey);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

/* Logo */
#logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
#logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
#logo-text h1 {
    font-size: 1.25em;
    font-weight: bold;
    color: var(--brown);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
#logo-text small {
    font-size: 0.72em;
    color: var(--brown-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Navigace */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
nav ul li a {
    display: block;
    padding: 8px 14px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    font-weight: normal;
}
nav ul li a:hover,
nav ul li a.aktivni {
    background: var(--cream-dark);
    color: var(--brown);
    text-decoration: none;
}
nav ul li a.aktivni {
    font-weight: bold;
    border-bottom: 2px solid var(--honey-dark);
}
.nav-kontakt a {
    background: var(--honey) !important;
    color: var(--brown) !important;
    font-weight: bold !important;
    border-radius: 20px !important;
    padding: 8px 20px !important;
}
.nav-kontakt a:hover {
    background: var(--honey-dark) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    cursor: pointer;
    padding: 4px 0;
}
.hamburger span {
    display: block;
    height: 3px;
    background: var(--brown);
    border-radius: 3px;
    transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =============================================
   HERO (jen homepage)
   ============================================= */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: linear-gradient(120deg, var(--brown) 0%, var(--brown-light) 50%, #a0622a 100%);
    padding: 80px 40px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('obrazky/plastev.JPG') center/cover no-repeat;
    opacity: 0.18;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 580px;
}
.hero-badge {
    display: inline-block;
    background: var(--honey);
    color: var(--brown);
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: 2.8em;
    font-weight: bold;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.1em;
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
    margin-bottom: 32px;
}
.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* =============================================
   OBECNÉ SEKCE
   ============================================= */
section.sekce {
    padding: 70px 20px;
}
.kontejner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.sekce-nadpis {
    text-align: center;
    margin-bottom: 48px;
}
.sekce-nadpis h2 {
    font-size: 2em;
    font-weight: bold;
    color: var(--brown);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding-bottom: 12px;
    display: inline-block;
    border-bottom: 4px solid var(--honey);
}
.sekce-nadpis p {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 1.05em;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.sekce-svetla {
    background: var(--white);
}
.sekce-cream {
    background: var(--cream);
}
.sekce-cream-dark {
    background: var(--cream-dark);
}

/* =============================================
   FEATURES – ikonové bloky
   ============================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.feature-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.feature-ikona {
    font-size: 2.4em;
    margin-bottom: 14px;
}
.feature-item h3 {
    font-size: 1.05em;
    font-weight: bold;
    color: var(--brown);
    margin-bottom: 8px;
}
.feature-item p {
    font-size: 0.92em;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =============================================
   PRODUKTY – karty
   ============================================= */
.produkty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}
.produkt-karta {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.produkt-karta:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.produkt-karta img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.produkt-karta-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.produkt-karta h2 {
    font-size: 1.15em;
    color: var(--brown);
    margin-bottom: 10px;
    font-weight: bold;
}
.produkt-karta ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}
.produkt-karta ul li {
    padding: 4px 0;
    font-size: 0.9em;
    color: var(--text-muted);
    border-bottom: 1px solid #f0e8d8;
}
.produkt-karta ul li:last-child {
    border-bottom: none;
}
.produkt-karta ul li::before {
    content: '🍯 ';
}

/* =============================================
   ABOUT – blok s foto a textem
   ============================================= */
.onas-blok {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 60px;
}
.onas-blok.reverse {
    flex-direction: row-reverse;
}
.onas-text {
    flex: 1;
    font-size: 1.05em;
    line-height: 1.8;
    color: var(--text);
}
.onas-text p {
    margin-bottom: 1.2em;
}
.onas-foto {
    flex: 1;
}
.onas-foto img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
}

/* =============================================
   CERTIFIKÁTY
   ============================================= */
.certifikaty-sekce {
    background: var(--cream-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.certifikaty-sekce h2 {
    font-size: 1.6em;
    color: var(--brown);
    margin-bottom: 12px;
}
.certifikaty-sekce p {
    max-width: 680px;
    margin: 0 auto 14px;
    color: var(--text-muted);
    line-height: 1.7;
}
.certifikaty-sekce a {
    color: var(--amber);
}
.certifikaty-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
}
.certifikaty-grid figure {
    margin: 0;
    text-align: center;
}
.certifikaty-grid img {
    max-width: 220px;
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.certifikaty-grid figcaption {
    margin-top: 8px;
    font-size: 0.88em;
    color: var(--brown-light);
}

/* =============================================
   ČLÁNKY – karty
   ============================================= */
.clanky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.clanek-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: var(--shadow);
}
.clanek-card:hover {
    background: var(--cream-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: var(--text);
}
.clanek-card h2 {
    font-size: 1.05em;
    color: var(--brown);
    margin-bottom: 8px;
    font-weight: bold;
}
.clanek-card p {
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.6;
}
.clanek-card-ikona {
    font-size: 1.8em;
    margin-bottom: 10px;
}

/* Detailní stránka článku */
.clanek-detail {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 780px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    line-height: 1.85;
}
.clanek-detail p {
    margin-bottom: 1.3em;
    color: var(--text);
}
.clanek-detail ul, .clanek-detail ol {
    margin: 0 0 1.3em 1.4em;
}
.clanek-detail li {
    margin-bottom: 0.4em;
}
.clanek-detail a {
    color: var(--amber);
    text-decoration: underline;
}
.zpet-odkaz {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brown-light);
    font-size: 0.9em;
    margin-bottom: 20px;
    text-decoration: none;
}
.zpet-odkaz:hover {
    color: var(--brown);
    text-decoration: none;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
    background: linear-gradient(120deg, var(--brown) 0%, var(--brown-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 70px 20px;
}
.cta-banner h2 {
    font-size: 2em;
    margin-bottom: 14px;
}
.cta-banner p {
    font-size: 1.05em;
    opacity: 0.85;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   STRÁNKA – obecný obsah
   ============================================= */
.page-header {
    background: linear-gradient(120deg, var(--brown) 0%, var(--brown-light) 100%);
    padding: 48px 40px 40px;
    text-align: center;
    color: var(--white);
}
.page-header h1 {
    font-size: 2.2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}
.page-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--honey);
    border-radius: 2px;
}
.page-header p {
    margin-top: 14px;
    opacity: 0.85;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.page-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 50px 30px 60px;
}

/* =============================================
   KONTAKTNÍ STRÁNKA
   ============================================= */
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}
.kontakt-formular {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.kontakt-formular h2 {
    font-size: 1.4em;
    color: var(--brown);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cream-dark);
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-weight: bold;
    color: var(--brown-light);
    margin-bottom: 6px;
    font-size: 0.9em;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: Poppins, Arial, sans-serif;
    font-size: 0.95em;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--honey-dark);
    box-shadow: 0 0 0 3px rgba(247,201,72,0.25);
    background: var(--white);
}
.form-group textarea {
    min-height: 130px;
    resize: vertical;
}
.form-group .btn {
    width: 100%;
    font-size: 1em;
    margin-top: 6px;
}
.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.kontakt-karta {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.kontakt-karta h2 {
    font-size: 1.3em;
    color: var(--brown);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.kontakt-karta p {
    margin-bottom: 10px;
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text);
}
.kontakt-karta a {
    color: var(--amber);
    text-decoration: none;
}
.kontakt-karta a:hover {
    text-decoration: underline;
}
.kontakt-karta iframe {
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

/* =============================================
   PRO VČELAŘE – kalkulačka
   ============================================= */
.kalkulacka {
    max-width: 540px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.kalkulacka h2 {
    font-size: 1.4em;
    color: var(--brown);
    margin-bottom: 6px;
}
.kalkulacka .popis {
    color: var(--text-muted);
    font-size: 0.92em;
    margin-bottom: 24px;
    line-height: 1.6;
}
.pomery {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.pomer-btn {
    flex: 1;
    min-width: 120px;
    padding: 11px 12px;
    background: var(--cream-dark);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    font-size: 0.9em;
    font-family: Poppins, Arial, sans-serif;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pomer-btn:hover {
    background: #f5d9a6;
    border-color: var(--honey-dark);
}
.pomer-btn.active {
    background: var(--honey);
    color: var(--brown);
    border-color: var(--honey-dark);
    font-weight: bold;
}
.kalkulacka .form-group label {
    font-size: 0.95em;
}
.vysledek-box {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 24px;
    font-size: 0.95em;
    color: var(--text-muted);
    line-height: 1.6;
    min-height: 60px;
}
.provcelare-info {
    max-width: 700px;
    margin: 0 auto 40px;
    background: var(--cream-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    line-height: 1.8;
    color: var(--text);
}
.provcelare-info h2 {
    font-size: 1.4em;
    color: var(--brown);
    margin-bottom: 14px;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--brown);
    color: rgba(255,255,255,0.85);
    padding: 56px 40px 28px;
    clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
}
.footer-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo h2 {
    font-size: 1.2em;
    color: var(--honey);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-logo p {
    font-size: 0.88em;
    line-height: 1.7;
    opacity: 0.75;
}
.footer-logo a {
    color: var(--honey);
}
.footer-col h3 {
    font-size: 0.95em;
    font-weight: bold;
    color: var(--honey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.72);
    font-size: 0.88em;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-col ul li a:hover {
    color: var(--honey);
    text-decoration: none;
}
.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.82em;
    opacity: 0.55;
}

/* =============================================
   AVATAR (stará třída, zachována pro kompatibilitu)
   ============================================= */
.avatar {
    float: right;
    width: 280px;
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-left: 24px;
    margin-bottom: 16px;
}
.cistic { clear: both; }

/* =============================================
   RESPONZIVITA
   ============================================= */
@media (max-width: 960px) {
    .kontakt-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-logo {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    body > header {
        padding: 0 16px;
    }

    /* Hamburger – zobrazit */
    .hamburger {
        display: flex;
    }

    /* Navigace – skrýt, roztáhnout pod header */
    nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        display: none;
        border-top: 2px solid var(--honey);
    }
    nav.open {
        display: block;
    }
    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 16px 16px;
    }
    nav ul li a {
        padding: 12px 10px;
        font-size: 0.95em;
        border-radius: 0;
        border-bottom: 1px solid var(--cream-dark);
    }
    .nav-kontakt a {
        margin-top: 8px;
        border-radius: 8px !important;
        text-align: center;
    }

    .hero {
        padding: 60px 20px;
        min-height: 400px;
    }
    .hero h1 { font-size: 2em; }

    .onas-blok,
    .onas-blok.reverse {
        flex-direction: column;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    footer {
        clip-path: polygon(0 14px, 100% 0, 100% 100%, 0 100%);
        padding: 44px 20px 24px;
    }

    .page-header {
        padding: 36px 20px 28px;
    }
    .page-header h1 { font-size: 1.7em; }

    .page-content {
        padding: 30px 16px 40px;
    }

    .certifikaty-sekce {
        padding: 24px 16px;
    }

    .cta-banner {
        padding: 50px 16px;
    }
    .cta-banner h2 { font-size: 1.6em; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.7em; }
    .features-grid { grid-template-columns: 1fr; }
    .produkty-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .cta-btns { flex-direction: column; align-items: center; }
}
