/* --- DEFINICE BAREV A PROMĚNNÝCH --- */
:root {
    --color-bg-main: #1a0024; /* Hluboká ametystová */
    --color-bg-secondary: #2c003e; /* O něco světlejší fialová pro sekce */
    --color-gold: #d4af37; /* Základní zlatá */
    --color-gold-light: #f3e5ab; /* Světlá zlatá pro text */
    --color-cream: #f8f5e1; /* Krémová pro běžný text */
    --color-dark-text: #0a0a0a;
    
    --font-heading: 'Cinzel', serif; /* Luxusní patkový font */
    --font-body: 'Lato', sans-serif; /* Čistý bezpatkový font */
    
    --section-padding: 120px 0;
}

/* --- ZÁKLADNÍ NASTAVENÍ --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-cream);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-weight: 700;
}

h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
h2 { font-size: 2.5rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--color-gold-light); }
p { margin-bottom: 20px; font-size: 1.1rem; opacity: 0.9; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.section-intro { max-width: 700px; margin: 0 auto 50px auto; font-size: 1.2rem; }

/* --- TLAČÍTKA (GOLD GRADIENT) --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--color-gold), #f7d87c);
    color: var(--color-dark-text);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(212, 175, 55, 0.5);
}

.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-large { padding: 20px 40px; font-size: 1.1rem; }

/* Sekundární tlačítko - outline styl */
.btn-outline {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background: linear-gradient(45deg, var(--color-gold), #f7d87c);
    color: var(--color-dark-text);
}

/* --- OBRÁZKY --- */
.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.shadow-image {
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* --- HEADER / NAVIGACE --- */
.site-header {
    padding: 20px 0;
    position: absolute; /* Aby ležel přes hero obrázek */
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO V HLAVIČCE --- */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-icon {
    height: 40px;
    width: auto;
    transition: filter 0.3s ease;
}

.logo-container:hover .logo-icon {
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.logo-text {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-menu a {
    color: var(--color-cream);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover:not(.btn) { color: var(--color-gold); }

/* Hamburger tlačítko - skryté na desktopu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-gold);
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--color-gold);
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Animace hamburger -> X */
.nav-active .hamburger { background: transparent; }
.nav-active .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-active .hamburger::after { transform: rotate(-45deg); top: 0; }

/* --- 1. HERO SEKCE - DVOUSLOUPCOVÉ ROZLOŽENÍ --- */
.hero-section {
    /* Čisté pozadí bez obrázku - telefony jsou nyní v pravém sloupci */
    background-color: var(--color-bg-main);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px; /* Odsazení shora kvůli fixní hlavičce */
    padding-bottom: 50px;
    overflow: hidden;
}

/* Nový kontejner pro rozložení */
.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Levý sloupec s textem */
.hero-text-column {
    flex: 1;
    max-width: 600px;
}

/* Pravý sloupec s obrázkem */
.hero-image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styl pro obrázek telefonů */
.hero-phones {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

.hero-subtext {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

/* --- OBECNÉ ROZLOŽENÍ SEKCÍ (Dva sloupce) --- */
section { padding: var(--section-padding); }

.two-column-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.column { flex: 1; }

/* --- SPECIFICKÉ ÚPRAVY SEKCÍ --- */
.section-phygital, .section-emotion {
    background-color: var(--color-bg-secondary); /* Mírný kontrast pozadí */
}

/* Sekce Gamifikace */
.centered-image-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-phone {
    max-width: 400px; /* Aby telefon nebyl obří */
    margin-bottom: 50px;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3)); /* Zlatá záře */
}

.gamification-steps {
    display: flex;
    gap: 40px;
    text-align: center;
    max-width: 900px;
}

/* Sekce Benefity (Grid) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: rgba(255,255,255,0.05); /* Velmi jemné průhledné pozadí */
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: border-color 0.3s ease;
    text-align: center;
}

.benefit-card:hover { border-color: var(--color-gold); }

/* Zlaté ikony nad nadpisy */
.benefit-icon {
    display: block;
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1;
}

/* Sekce Kontakt (CTA) */
.section-contact {
    background-image: linear-gradient(to bottom, var(--color-bg-main), var(--color-bg-secondary));
    padding: 120px 0;
}

.contact-content h2 { font-size: 3rem; }
.contact-content p { font-size: 1.4rem; max-width: 700px; margin: 0 auto 50px auto; }

/* Footer */
.site-footer {
    padding: 40px 0;
    background: #110018;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Logo v patičce - decentní */
.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 20px;
    opacity: 0.5;
    filter: grayscale(100%);
}

/* --- RESPONSIVNÍ DESIGN (Pro mobily a tablety) --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-subtext { font-size: 1.1rem; }

    /* Hlavička zůstává v řádku */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Zobrazit hamburger tlačítko */
    .nav-toggle {
        display: block;
    }

    /* Skrýt navigaci - vysune se z pravé strany */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg-main);
        border-left: 1px solid rgba(212, 175, 55, 0.2);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    /* Otevřené menu */
    .nav-menu.nav-open {
        right: 0;
    }

    .nav-menu a {
        margin: 0;
        font-size: 1.1rem;
    }

    .two-column-layout { flex-direction: column; gap: 40px; }
    /* Prohození pořadí na mobilu pro sekci Emoce, aby byl obrázek první */
    .reversed-mobile { flex-direction: column-reverse; }

    .gamification-steps { flex-direction: column; gap: 30px; }
    .benefits-grid { grid-template-columns: 1fr; }

    /* Hero sekce - dvousloupcové rozložení na mobilu */
    .hero-section {
        min-height: auto;
        padding-top: 140px;
        align-items: flex-start;
    }

    .hero-layout {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .hero-text-column {
        max-width: 100%;
    }

    .hero-phones {
        max-height: 60vh;
        max-width: 90%;
    }
}

/* Extra úprava pro velmi malé mobily */
@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }

    /* Na malém mobilu necháme jen ikonku MD */
    .logo-text {
        display: none;
    }
}
