/* ==========================================================================
   NASTAVENÍ A DESIGN SYSTÉM
   ========================================================================== */
:root {
    --primary: #2D3C5F;        /* Původní tmavě modrá */
    --primary-dark: #1b263e;   /* Ještě tmavší modrá pro hloubku */
    --accent: #A32250;         /* Původní vínová/magenta */
    --accent-light: #C4376A;   /* Světlejší růžová pro efekty */
    --admin: #6A1B4D;          /* Původní admin barva */
    
    --text-main: #2b364c;
    --text-muted: #64748b;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 12px 30px rgba(45, 60, 95, 0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --radius: 16px;
    --speed: 0.3s;
}

/* Reset a základ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    /* Tmavý přechod přes celé pozadí webu pro moderní vzhled a čitelnost bílých textů */
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Plynulý nástup obsahu */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   HLAVNÍ STICKY HEADER & NAVIGACE
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 0.8rem 0;
}

.header-container {
    width: 90%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand-logo img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
    font-weight: 400;
}

/* Navigační odkazy */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--speed);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--speed);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    text-decoration: none;
    background-color: var(--primary);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(45, 60, 95, 0.2);
    transition: var(--speed);
}

.nav-btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(163, 34, 80, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
   ADMIN STICKY BAR
   ========================================================================== */
.admin-sticky-bar {
    background-color: var(--admin);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.admin-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-links {
    display: flex;
    gap: 1.2rem;
}

.admin-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--speed);
}

.admin-links a:hover {
    color: white;
}

/* ==========================================================================
   HERO SEKCE
   ========================================================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 12rem 2rem 10rem 2rem; 
    min-height: 60vh;
    color: white;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-compact {
    padding: 8rem 2rem 5rem 2rem !important;
    min-height: auto !important;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(163, 34, 80, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    z-index: 2;
}

.hero-tagline {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-light);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--speed);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 8px 24px rgba(163, 34, 80, 0.4);
}

.btn-accent:hover {
    background-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(163, 34, 80, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ==========================================================================
   HLAVNÍ STRUKTURA OBSAHU & KARTY
   ========================================================================== */
.content-wrapper {
    width: 90%;             
    max-width: 1700px;      
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-spacing-bottom {
    margin-bottom: 5rem;
}

.section-spacing-small {
    margin-bottom: 2rem;
}

/* Intro Grid (Video + Text) */
.intro-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr; 
    gap: 6rem;                        
    align-items: center;
    margin-bottom: 8rem;              
}

.video-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: black;
}

.video-wrapper video {
    width: 100%;
    display: block;
}

.intro-text-box h2 {
    font-size: 2.2rem;
    color: #ffffff; 
    margin-bottom: 1.5rem;
}

.highlight-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-light); 
    margin-bottom: 1.5rem;
}

.intro-text-box p {
    color: rgba(255, 255, 255, 0.85); 
}

/* Sekce Služeb / Bento Grid */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #ffffff; 
    margin-bottom: 1rem;
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
}

/* UNIVERZÁLNÍ DESIGN KARET */
.service-card, .trener-card, .kontakty-card, .mesic-box, .day, .map-location-card {
    background-color: var(--surface);
    padding: 2rem; 
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform var(--speed), box-shadow var(--speed);
    border: 1px solid rgba(0,0,0,0.02);
    color: var(--text-main);
}

.service-card:hover, .trener-card:hover, .mesic-box:hover, .map-location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Detaily trenérských karet */
.trener-foto {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
    margin-bottom: 1.5rem;
}

.trener-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.trener-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.trener-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.trener-contact-info {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.8;
}

.trener-socials {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.trener-socials a {
    font-size: 1.6rem;
    transition: transform var(--speed);
    display: inline-block;
}

.trener-socials a:hover {
    transform: scale(1.15);
}

.instagram-link { color: #E4405F; }
.facebook-link { color: #1877F2; }

/* Pomocné layout utility */
.flex-center {
    display: flex;
    justify-content: center;
}

.card-width-limit {
    width: 100%;
    max-width: 400px;
}

.spacing-top-sm {
    margin-top: 1rem;
}

.icon-small {
    color: var(--accent);
    margin-right: 6px;
    width: 18px;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3, .mesic-box h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.text-center-max {
    max-width: 900px;
    margin: 0 auto;
}

/* ==========================================================================
   OPRAVA: STYLING MAP A LOKACÍ (Úplná eliminace vytékání)
   ========================================================================== */
.map-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.map-location-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.8rem;
    height: 100%;
}

.map-text-content {
    margin-bottom: 1.5rem;
}

.map-text-content h3 {
    color: var(--primary);
    border-bottom: 2px solid var(--surface-muted);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.map-text-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Neprůstřelný fluidní 16:9 poměr pro iframy */
.map-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Poměr 16:9 */
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: calc(var(--radius) - 6px);
    box-shadow: var(--shadow-sm);
    background: #e2e8f0;
}

.map-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}

/* ==========================================================================
   JEDNOBAREVNÝ RESPONSIVNÍ CTA BOX (Výzva k akci)
   ========================================================================== */
.cta-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-top: 6rem;
    padding: 3.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    text-align: left;
    position: relative;
    width: 100%;
}

.cta-section-content {
    flex: 1;
}

.cta-section h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 !important;
}

.cta-section .btn-primary {
    flex-shrink: 0;
    background-color: #ffffff;
    color: var(--accent);
    padding: 1.1rem 2.4rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform var(--speed), background-color var(--speed), box-shadow var(--speed);
    text-decoration: none;
    display: inline-block;
}

.cta-section .btn-primary:hover {
    background-color: var(--surface-muted);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   PATIČKA (Footer)
   ========================================================================== */
.main-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 2rem 2rem 2rem; 
    font-size: 0.9rem;
}

.footer-top {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; 
    gap: 4rem; 
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
}

.footer-brand-col .footer-logo-text {
    font-weight: 800;
    font-size: 1.6rem;
    color: white;
    display: block;
    margin-bottom: 1rem;
}

.footer-brand-col .footer-logo-text span {
    color: var(--accent-light);
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

.footer-links-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.sponsor-badges img {
    height: auto;             
    max-width: 240px;         
    width: 100%;              
    background-color: #ffffff; 
    padding: 12px 20px;       
    border-radius: 8px;       
    box-shadow: var(--shadow-sm);
    display: inline-block;
    object-fit: contain;      
    transition: transform var(--speed);
}

.sponsor-badges img:hover {
    transform: scale(1.05);   
}

.social-grid {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 0.8rem;
}

.social-grid a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--speed);
}

.social-grid a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   MEDIA QUERIES (Responzivita)
   ========================================================================== */

/* --- NOTEBOOKY & DROBNÉ MONITORY (Do 1200px) --- */
@media screen and (max-width: 1200px) {
    .cta-section {
        padding: 3rem;
        gap: 2.5rem;
    }
    .cta-section h3 {
        font-size: 1.6rem;
    }
    .cta-section p {
        font-size: 1rem;
    }
}

/* --- TABLETY & MENŠÍ OBRAZOVKY (Do 992px) --- */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    
    .map-grid-container {
        grid-template-columns: 1fr; /* Pod sebe na tabletech */
        gap: 2rem;
    }

    .cta-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding: 3rem;
    }
    .cta-section .btn-primary {
        align-self: flex-start;
        padding: 1rem 2.2rem;
    }
}

/* --- MOBILNÍ TELEFONY (Do 768px) --- */
@media (max-width: 768px) {
    .main-header { padding: 1rem 0; }
    .menu-toggle { display: block; }
    
    .main-nav {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: var(--surface);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    
    .main-nav.open { display: flex; }
    .nav-link { width: 100%; text-align: center; color: var(--text-main); }
    .nav-btn { width: 100%; text-align: center; }
    
    .hero-section { padding: 7rem 1.5rem 5rem 1.5rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    
    .content-wrapper { padding: 3rem 1rem; }
    .admin-container { flex-direction: column; gap: 0.5rem; }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .footer-brand-col {
        align-items: center;
    }
}

/* --- VELMI MALÉ MOBILY (Do 576px) --- */
@media screen and (max-width: 576px) {
    .map-grid-container {
        grid-template-columns: 1fr;
    }
    .cta-section {
        align-items: center;
        text-align: center;
        padding: 2.5rem 1.5rem;
        margin-top: 4rem;
    }
    .cta-section h3 {
        font-size: 1.4rem;
    }
    .cta-section .btn-primary {
        align-self: center;
        width: 100%;
        text-align: center;
    }
}