/* --- css/style.css (FINAL VERSION) --- */

:root {
    --nav-height-pc: 80px;
    --nav-height-mobile: 70px;
    --bg-body: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-nav: rgba(5, 5, 5, 0.98); 
    --gold-primary: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --text-main: #E0E0E0;
    --text-muted: #A0A0A0;
    --padding-section: 100px 8%; 
}

/* --- RESET & ZÁKLADNÍ STYLY --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Scroll offset pro kotvy */
#about, #specializace, #proces, #kontakt, #uvery, #investice, #reality, #pojisteni, #penze { 
    scroll-margin-top: var(--nav-height-pc); 
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 300;
}

h1, h2, h3, h4 { 
    font-family: 'Cormorant Garamond', serif; 
    font-weight: 600; 
    color: #fff; 
    line-height: 1.2; 
}

/* --- UTILITY CLASSES --- */
.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200%;
    animation: shine 6s linear infinite;
}
@keyframes shine { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

.btn-luxury { 
    display: inline-block; 
    padding: 16px 45px; 
    border: 1px solid var(--gold-primary); 
    color: var(--gold-primary); 
    text-decoration: none; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    transition: 0.4s;
    background: transparent;
    cursor: pointer;
}
.btn-luxury:hover { 
    background: var(--gold-primary); 
    color: #000; 
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3); 
}

/* --- NAVIGACE --- */
nav {
    position: fixed; top: 0; width: 100%; height: var(--nav-height-pc);
    padding: 0 5%; display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; transition: 0.3s ease; backdrop-filter: blur(10px);
    background: var(--bg-nav);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Specifika pro Home Page */
body.home-page nav { background: rgba(5, 5, 5, 0.1); border-bottom: none; }
body.home-page nav.scrolled { background: var(--bg-nav); border-bottom: 1px solid rgba(212, 175, 55, 0.2); }

.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; text-transform: uppercase; letter-spacing: 2px; color: #fff; text-decoration: none; }
.logo span { color: var(--gold-primary); }

.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links a { color: #fff; text-decoration: none; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-primary); }

.hamburger { display: none; cursor: pointer; color: var(--gold-primary); font-size: 1.5rem; z-index: 1001; }

/* --- HERO SEKCE --- */
.hero-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 60vh;
    background-size: cover; background-position: center; z-index: -1;
    background-repeat: no-repeat;
}

/* Specifické pravidlo pro INDEX (aby byl obrázek přes celou výšku) */
body.home-page .hero-bg {
    height: 100vh !important;
}

/* Home Hero Content */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); margin-bottom: 20px; }
.hero p { margin-bottom: 40px; letter-spacing: 4px; text-transform: uppercase; font-size: 0.9rem; }

/* Subpage Hero Content */
.hero-sub {
    height: 50vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 0 20px; margin-top: var(--nav-height-pc);
    position: relative; z-index: 1;
}
.hero-sub h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 10px; }
.hero-sub p { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--gold-primary); letter-spacing: 2px; text-transform: uppercase; }
/* --- OBECNÉ SEKCE --- */
section, .content-section { 
    position: relative; z-index: 10; 
    background-color: var(--bg-body); 
    padding: var(--padding-section); 
    margin: 0 auto;
}
.section-title { font-size: clamp(2.5rem, 5vw, 4rem); text-align: center; margin-bottom: 15px; }
.section-subtitle { text-align: center; color: var(--gold-primary); text-transform: uppercase; letter-spacing: 3px; font-size: 0.85rem; margin-bottom: 70px; font-weight: 500; }

/* --- PRVKY PODSTRÁNEK --- */
.intro-lead { font-size: 1.2rem; color: #fff; margin-bottom: 40px; text-align: center; border-bottom: 1px solid rgba(212,175,55,0.2); padding-bottom: 30px; max-width: 1000px; margin-left: auto; margin-right: auto; }

.service-block { margin-bottom: 60px; display: grid; grid-template-columns: 60px 1fr; gap: 20px; max-width: 1400px; margin-left: auto; margin-right: auto; }
.service-icon { font-size: 2rem; color: var(--gold-primary); padding-top: 5px; }
.service-text h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--gold-primary); }
.service-text p { color: var(--text-muted); text-align: justify; margin-bottom: 15px; }

.final-statement { text-align: center; font-size: 1.1rem; color: #fff; line-height: 1.8; margin-top: 40px; padding: 40px; border-top: 1px solid rgba(212,175,55,0.2); font-style: italic; max-width: 1000px; margin-left: auto; margin-right: auto; }

.cta-box { text-align: center; margin-top: 20px; padding: 40px; background: var(--bg-card); border: 1px solid rgba(212,175,55,0.1); max-width: 1000px; margin-left: auto; margin-right: auto; }

/* --- HOME: O MNĚ, PROČ JÁ, PROCES --- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-img { width: 100%; border: 1px solid rgba(255,255,255,0.1); filter: grayscale(100%); transition: filter 1.5s ease; }
.about-img.is-visible { filter: grayscale(0%); }
.about-text p { margin-bottom: 15px; color: var(--text-muted); font-size: 0.95rem; text-align: justify; }

.whyme-section { background: #0a0a0a; }

.process-section { background: #080808; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 50px; }
.process-step { 
    position: relative; padding: 30px 20px; text-align: center; 
    border: 1px solid rgba(255,255,255,0.03); background: rgba(255,255,255,0.01);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.process-step:hover, .process-step.active { transform: translateY(-5px); border-color: rgba(212, 175, 55, 0.3); }
.step-number {
    display: inline-block; width: 50px; height: 50px; line-height: 50px;
    border-radius: 50%; background: transparent; border: 1px solid var(--gold-primary);
    color: var(--gold-primary); font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700;
    margin-bottom: 20px;
}
.process-step h3 { color: var(--gold-primary); font-size: 1.3rem; margin-bottom: 15px; }
.process-step p { font-size: 0.9rem; color: var(--text-muted); }

/* --- HOME: TÝM --- */
.team-section { 
    text-align: center; padding: 80px 10%; 
    background: linear-gradient(rgba(5,5,5,0.9), rgba(5,5,5,0.9)), url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center; background-attachment: fixed;
    border-top: 1px solid rgba(212, 175, 55, 0.1); border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.team-box { max-width: 900px; margin: 0 auto; border: 1px solid rgba(212,175,55,0.3); padding: 50px; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); }
.team-box h2 { font-size: 2.2rem; margin-bottom: 30px; color: #fff; font-family: 'Cormorant Garamond', serif; }
.team-box p { color: var(--text-main); font-size: 1.05rem; margin-bottom: 15px; line-height: 1.7; }

/* --- HOME: SPECIALIZACE (Grid karet) --- */
.services-section { background: #050505; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.feature-card { 
    background: var(--bg-card); padding: 40px 20px; border: 1px solid rgba(255,255,255,0.05); 
    text-align: center; transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); 
    text-decoration: none; color: inherit; display: flex; flex-direction: column; 
    justify-content: center; align-items: center; position: relative; min-height: 280px;
}
.feature-icon { font-size: 2.5rem; color: var(--gold-primary); margin-bottom: 25px; }
.more-link {
    position: absolute; bottom: 20px; right: 25px;
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--gold-primary); opacity: 0.7; transition: 0.3s; font-weight: 600;
}

/* --- KONTAKT --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; max-width: 1400px; margin-left: auto; margin-right: auto; }
.info-box { margin-bottom: 40px; }
.info-item { margin-bottom: 30px; display: grid; grid-template-columns: 40px 1fr; gap: 15px; }
.info-item i { color: var(--gold-primary); font-size: 1.3rem; margin-top: 5px; }
.info-item h4 { font-size: 0.8rem; color: var(--gold-primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 5px; }
.info-item p { font-size: 1.2rem; color: #fff; font-family: 'Cormorant Garamond', serif; }
.info-item a { color: #fff; text-decoration: none; transition: 0.3s; }
.info-item a:hover { color: var(--gold-primary); }

/* Formulář */
.form-card { background: var(--bg-card); padding: 40px; border: 1px solid rgba(212,175,55,0.1); border-radius: 2px; }
.form-title {
    font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--gold-primary); margin-bottom: 30px;
    text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(212, 175, 55, 0.2); padding-bottom: 10px;
}
.form-group { margin-bottom: 25px; }
.form-input { 
    width: 100%; background: transparent; border: none; border-bottom: 1px solid #333; 
    padding: 12px 0; color: #fff; font-family: 'Montserrat', sans-serif; font-size: 0.95rem; transition: 0.3s; 
}
.form-input:focus { outline: none; border-bottom-color: var(--gold-primary); }
textarea.form-input { resize: vertical; min-height: 100px; }

/* GDPR Text pod tlačítkem */
.form-disclaimer {
    margin-top: 15px;
    font-size: 0.7rem;
    color: #666;
    line-height: 1.4;
    text-align: center;
}

/* Captcha */
.captcha-wrapper { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.captcha-box { 
    background: #222; color: var(--gold-primary); padding: 10px 20px; 
    font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.4rem; 
    letter-spacing: 5px; user-select: none; border: 1px dashed var(--gold-primary);
}
.refresh-captcha { cursor: pointer; color: var(--text-muted); font-size: 0.9rem; }

/* Loader v tlačítku */
.btn-luxury.sending { pointer-events: none; opacity: 0.8; }
.loader {
    display: none; width: 18px; height: 18px; border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%; border-top-color: var(--gold-primary); animation: spin 0.8s linear infinite; margin-right: 10px;
}
.sending .loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 404 & THANK YOU --- */
.error-card, .thank-you-card { max-width: 600px; margin: 0 auto; text-align: center; }
.error-code { font-family: 'Cormorant Garamond', serif; font-size: 8rem; font-weight: 700; color: rgba(212, 175, 55, 0.1); line-height: 1; margin-bottom: -40px; }
.thank-you-card { padding: 60px 40px; border: 1px solid rgba(212, 175, 55, 0.2); background: rgba(255, 255, 255, 0.02); }
.icon-circle { font-size: 4rem; color: var(--gold-primary); margin-bottom: 30px; }

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed; bottom: -200px; left: 5%; width: 90%; max-width: 1200px;
    background: rgba(10, 10, 10, 0.95); border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px); padding: 25px 40px; z-index: 9999;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8); transition: bottom 0.6s cubic-bezier(0.23, 1, 0.32, 1); border-radius: 2px;
}
.cookie-banner.show { bottom: 30px; }
.cookie-content { display: flex; align-items: center; gap: 20px; }
.cookie-icon { font-size: 1.8rem; color: var(--gold-primary); }
.cookie-text { color: #ccc; font-size: 0.9rem; line-height: 1.5; font-family: 'Montserrat', sans-serif; }
.cookie-buttons { display: flex; gap: 15px; flex-shrink: 0; }
.btn-cookie-accept {
    padding: 12px 30px; background: var(--gold-primary); color: #000;
    border: 1px solid var(--gold-primary); font-weight: 600; text-transform: uppercase;
    font-size: 0.75rem; letter-spacing: 1px; cursor: pointer; transition: 0.3s;
}
.btn-cookie-accept:hover { background: #fff; border-color: #fff; box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
.btn-cookie-reject {
    padding: 12px 20px; background: transparent; color: #888;
    border: 1px solid #333; font-weight: 500; text-transform: uppercase;
    font-size: 0.75rem; letter-spacing: 1px; cursor: pointer; transition: 0.3s;
}
.btn-cookie-reject:hover { border-color: #666; color: #fff; }

/* --- FOOTER --- */
footer { 
    padding: 40px 20px; 
    background: #050505; 
    border-top: 1px solid #111; 
    color: #555; 
    font-size: 0.8rem; 
    position: relative; 
    z-index: 10;
    
    /* VŽDY pod sebou a vycentrované (Mobil i PC) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

/* První řádek (Copyright) */
.footer-copy {
    display: block;
    width: 100%;
    margin: 0;
}

/* Druhý řádek (Autor) */
.footer-author {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
}

/* Odkaz na Kommo.cz */
.kommo-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #777;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}
.kommo-link:hover { color: #fff; }


/* --- MEDIA QUERIES (DESKTOP) --- */
@media (min-width: 1025px) {
    .about-img {
        height: auto; max-height: 550px; width: auto; max-width: 100%;
        object-fit: contain; display: block; margin: 0 auto;
    }
    .feature-card:hover { 
        transform: translateY(-15px); border-color: var(--gold-primary); 
        background: rgba(255, 255, 255, 0.05); box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    }
    .feature-card:hover .more-link { opacity: 1; letter-spacing: 3px; color: #fff; }
}

/* --- MEDIA QUERIES (TABLET A MOBIL) --- */
@media (max-width: 1024px) {
    :root { --padding-section: 40px 6%; }
    
    #about, #specializace, #proces, #kontakt, #uvery, #investice, #reality, #pojisteni, #penze { scroll-margin-top: var(--nav-height-mobile); }
    nav { height: var(--nav-height-mobile); }
    
    .hero-bg { height: 50vh !important; } 
    body.home-page .hero-bg { height: 100vh !important; }

    .hero-sub { height: 40vh; margin-top: var(--nav-height-mobile); }
    .hero-sub h1 { font-size: 3.3rem; }
    
    .about { grid-template-columns: 1fr; gap: 40px; }
    .hamburger { display: block; }
    
    .nav-links { 
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; 
        background: #050505; flex-direction: column; justify-content: center; align-items: center; 
        transition: 0.5s; gap: 30px; 
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; }
    
    /* --- LOGIKA ZOBRAZOVÁNÍ RÁMEČKŮ NA MOBILU --- */

    /* 1. Sekce "Proč já" (.whyme-section) - Rámeček při scrollu */
    .whyme-section .feature-card {
        border-color: rgba(255, 255, 255, 0.05);
        transition: border-color 0.6s ease, transform 0.6s ease;
    }
    .whyme-section .feature-card.active {
        border-color: var(--gold-primary);
        background: rgba(255, 255, 255, 0.06);
        transform: translateY(-5px);
    }

    /* 2. Sekce "Specializace" (.services-section) - Vždy viditelný */
    .services-section .feature-card {
        border-color: var(--gold-primary);
        background: rgba(255, 255, 255, 0.06);
    }
    .services-section .feature-card.active {
        transform: translateY(-5px);
    }
    
    /* Grid adjustments */
    .service-block, .contact-grid, .reality-block, .pension-block, .insurance-block, .loan-block, .investment-block { 
        grid-template-columns: 1fr; text-align: center; 
    }
    .team-section { background-attachment: scroll; padding: 50px 5%; }
    .team-box { padding: 30px 20px; }

    /* Cookie Mobile */
    .cookie-banner {
        flex-direction: column; align-items: flex-start; padding: 25px; bottom: -300px;
        width: 100%; left: 0; border-radius: 0; border: none; border-top: 1px solid rgba(212, 175, 55, 0.3);
    }
    .cookie-banner.show { bottom: 0; }
    .cookie-buttons { width: 100%; justify-content: flex-end; }
    .cookie-content { align-items: flex-start; }
}

/* --- MEDIA QUERIES (MALÉ TELEFONY) --- */
@media (max-width: 600px) {
    /* 1. Grid pod sebe (1 sloupec) */
    .services-section .features-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        padding: 0 20px; 
    }
    
    /* 2. Karty jako čtverce */
    .services-section .feature-card { 
        width: 100%;
        aspect-ratio: 1 / 1; /* Vynutí čtvercový tvar */
        min-height: auto; 
        padding: 20px;
        
        /* Centrování obsahu */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative; /* Nutné pro absolutní pozici odkazu */
    }
    
    /* Reset pro poslední element (aby byl stejný jako ostatní) */
    .services-section .feature-card:last-child { 
        grid-column: auto; 
        width: 100%; 
        margin: 0; 
    }
    
    /* Úprava ikon a textu pro čtvercový formát */
    .services-section .feature-icon { 
        font-size: 2.5rem; 
        margin-bottom: 15px; 
    }
    .services-section h3 { 
        font-size: 1.2rem; 
        line-height: 1.3; 
        margin-bottom: 20px;
    }

    /* 3. Odkaz v pravém dolním rohu */
    .more-link { 
        position: absolute; /* Absolutní pozice vůči kartě */
        bottom: 15px; 
        right: 15px; 
        margin-top: 0; 
        font-size: 0.65rem; 
        letter-spacing: 1px;
        display: block;
        opacity: 0.8; 
    }
}

/* --- THANK YOU PAGE (Centrování) --- */
body.thank-you-page {
    min-height: 100vh; /* Roztáhne body na celou výšku okna */
    display: flex;     /* Zapne Flexbox */
    align-items: center; /* Zarovná vertikálně na střed */
    justify-content: center; /* Zarovná horizontálně na střed */
    padding: 20px; /* Aby se to na mobilu nelepilo úplně ke krajům */
}

/* Zvětšení mezery mezi textem a tlačítkem */
.thank-you-card p {
    margin-bottom: 50px; /* Původně bylo méně */
}