/*
Theme Name: Interiéry Martínek
Author: Regioplus - Radek Šnábl
Version: 85.12 - UNIFIED FOOTER & MENU FIX
*/

:root {
    --accent: #FBC02D;
    --bg-dark: #1A1A1A;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* 1. GLOBÁLNÍ NASTAVENÍ PRO STICKY FOOTER */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-body);
    background-color: #ffffff;
    overflow-x: hidden;
}

main.standard-page, 
.hero-container {
    flex: 1 0 auto;
}

/* --- HLAVIČKA --- */
header.custom-header {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120px;
    background-color: transparent !important;
    z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 8%; box-sizing: border-box;
}

.logo-wrapper { max-width: 350px; }
.main-logo { height: 85px !important; width: auto !important; display: block; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 15px; }
.nav-list li a {
    position: relative; display: block; padding: 10px 25px;
    text-decoration: none; color: #1A1A1A; font-weight: 700;
    text-transform: uppercase; font-size: 0.9rem; z-index: 10;
}
.nav-list li a::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-dark);
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    opacity: 0; transform: scaleX(0.7); transition: 0.3s ease; z-index: -1;
}
.nav-list li a:hover { color: #ffffff !important; }
.nav-list li a:hover::before { opacity: 1; transform: scaleX(1); }

/* FIX DUPLICITNÍ GALERIE (Kdybys ji nemohl smazat v adminu) */
#menu-item-41 { display: none !important; }

/* --- ŽLUŤÁK --- */
.shape-top-right {
    position: absolute; top: 0; left: 45%; 
    height: 250px; width: 1100px; 
    object-fit: cover; object-position: left;
    z-index: 5; pointer-events: none;
}

/* --- PANELY NA HP --- */
.content-panel {
    position: absolute; top: 120px; left: 0; width: 100%; height: calc(100% - 120px);
    background-color: var(--bg-dark);
    display: flex; align-items: center; z-index: 20;
    clip-path: polygon(0 0, 45% 0, 30% 100%, 0 100%);
}
.inner-content { padding-left: 8%; padding-bottom: 180px; }
.yellow-label { color: var(--accent) !important; letter-spacing: 0.3rem; font-weight: 700; margin-bottom: 25px; display: block; }
.inner-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: bold; line-height: 1.1; color: #ffffff; text-transform: uppercase; margin: 0; }

.cta-svg-button { position: relative; width: fit-content; display: block; }
.cta-svg-button img { height: 55px; transform: rotate(180deg); }
.cta-svg-button a {
    position: absolute; top: 50%; left: 45%; transform: translate(-50%, -50%);
    color: var(--bg-dark) !important; text-decoration: none; font-weight: 800; text-transform: uppercase;
}
.icons { color: var(--accent) !important; letter-spacing: 15px; margin-top: 30px; font-weight: 700; }

.image-panel {
    position: absolute; top: 120px; left: 0; width: 100%; height: calc(100% - 120px);
    background-size: cover; background-position: center; z-index: 10;
    clip-path: polygon(49% 0, 100% 0, 100% 100%, 34% 100%);
}

/* ==========================================================
   SJEDNOCENÁ PATIČKA (Všude stejná jako na HP)
   ========================================================== */

/* Schování textů z editoru na HP */
.home .standard-page { display: none !important; }

.main-footer {
    position: relative;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2) !important; /* Ten skleněný vzhled */
    backdrop-filter: blur(10px);
    z-index: 100;
    border-top: 3px solid var(--accent);
    flex-shrink: 0;
}

/* Na HP zůstává přikovaná k monitoru */
.home .main-footer {
    position: absolute !important;
    bottom: 0 !important;
}

/* Na podstránkách se odtlačí až dolů pod text */
body:not(.home) .main-footer {
    position: relative !important;
    margin-top: auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 8%;
}

.footer-bottom-flex { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: white; }
.footer-links a { color: white; text-decoration: none; margin-left: 15px; }

/* ========================================================== */

/* --- STYLY PRO STANDARDNÍ STRÁNKU --- */
.standard-page {
    padding-top: 150px; 
    min-height: 60vh;
    background-color: #ffffff;
    color: var(--bg-dark);
}
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 8%;
}
.page-title {
    font-family: var(--font-heading);
    color: var(--bg-dark);
    font-size: 3rem; margin-bottom: 30px; text-transform: uppercase;
}
.page-content { line-height: 1.8; font-size: 1.1rem; color: #444; }

body:not(.home) header.custom-header {
    background-color: var(--bg-dark) !important;
    position: fixed; 
}
body:not(.home) .nav-list li a { color: #ffffff; }

/* BEER SLIDER (Srovnávač) */
.beer-slider-wrapper {
    max-width: 1000px; margin: 40px auto;
    border: 5px solid #ffffff; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.beer-handle { background: var(--accent) !important; color: var(--bg-dark) !important; }
.beer-slider[data-beer-label]::after, 
.beer-reveal[data-beer-label]::after {
    background: rgba(26, 26, 26, 0.7) !important;
    padding: 5px 15px !important;
    font-weight: 700 !important; text-transform: uppercase;
}

/* --- MOBIL --- */
@media (max-width: 992px) {
    .hero-container { height: auto; overflow: visible; }
    .main-footer { position: relative; margin-top: 0; background: var(--bg-dark) !important; }
    .content-panel, .image-panel { position: relative; height: auto; top: 0; clip-path: none; }
    .inner-content { padding-bottom: 40px; }
    header.custom-header { position: relative; height: auto; flex-direction: column; padding: 20px; }
}