/*
Theme Name: Regioplus Nová Šablona
Author: ZerO & AI
Description: Finální prémiová verze - Obsidian & Emerald. Přísný vertikální rytmus bloků a responzivita.
Version: 1.9
Requires PHP: 7.4
*/

/* --- 1. ZÁKLADNÍ ARCHITEKTURA A RESET --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    background-color: #0F1115; /* Obsidian Night */
    font-family: 'Inter', sans-serif;
    font-weight: 200; 
    line-height: 1.8;
    color: #B3B9C1; 
    -webkit-font-smoothing: antialiased;
}

.site {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- 2. JEDNOTNÁ TYPOGRAFIE (DTP DISCIPLÍNA) --- */
h1, h2, h3, h4 {
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    color: #ffffff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 { 
    font-size: 1.8rem; 
    line-height: 1.4; 
    margin-bottom: 50px; 
    color: #ffffff;
}

h2, 
.card-content h3 { 
    font-size: 1.4rem; 
    color: #109E74; /* Emerald Glow */
    font-weight: 200;
    letter-spacing: 0.1em;
}

strong { 
    font-weight: 400; 
    color: #ffffff; 
}

/* --- 3. HLAVIČKA A MENU --- */
.site-header {
    background-color: #16191E;
    padding: 30px 50px;
    margin-bottom: 60px;
    border-radius: 0 0 12px 12px;
    border-top: 4px solid #109E74;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.8rem;
    letter-spacing: 0.15em;
}

.main-navigation ul { 
    list-style: none; 
    display: flex; 
    gap: 24px; 
    flex-wrap: wrap; 
    justify-content: flex-end;
}

.main-navigation ul li {
    position: relative;
    white-space: nowrap; 
}

.main-navigation a {
    font-family: 'Jost', sans-serif;
    color: #A3A7AF;
    text-decoration: none;
    font-size: 0.8rem; 
    text-transform: uppercase;
    letter-spacing: 0.12em; 
    transition: 0.3s ease;
}

.main-navigation a:hover { color: #ffffff; }

/* Dropdown (podmenu) */
.main-navigation ul ul {
    display: none; 
    position: absolute; 
    background: #16191E;
    padding: 20px; 
    min-width: 200px; 
    flex-direction: column;
    border-top: 2px solid #109E74; 
    z-index: 99;
}

.main-navigation ul li:hover > ul { display: flex; }

/* --- 4. TOK OBSAHU A VERTIKÁLNÍ RYTMUS --- */
.hero-section { 
    padding: 20px 0 60px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    margin-bottom: 60px; 
}

.emerald-line { 
    width: 60px; 
    height: 3px; 
    background: #109E74; 
    margin-bottom: 40px; 
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 60px; 
    align-items: start;
}

.main-content-flow { grid-column: span 8; }

.main-content-flow h2 {
    font-size: 2rem; 
    color: #109E74; 
    margin-top: 50px; 
    margin-bottom: 30px; 
    font-weight: 200;
    line-height: 1.3;
    letter-spacing: 0.05em;
}

.main-content-flow > h2:first-child {
    margin-top: 0;
}

.main-content-flow p { 
    font-size: 1.15rem; 
    color: #B3B9C1; 
    line-height: 1.8;
    margin-bottom: 25px; 
}

.main-content-flow p:first-of-type { color: #ffffff; }

.main-content-flow ul,
.main-content-flow ol {
    margin-bottom: 35px; 
    padding-left: 25px; 
}

.main-content-flow li {
    margin-bottom: 14px; 
    font-size: 1.15rem; 
    color: #B3B9C1;
    line-height: 1.8;
}

.main-content-flow li:last-child {
    margin-bottom: 0;
}

/* Boční poznámka */
.side-note { 
    grid-column: span 4; 
    border-left: 1px solid rgba(16,158,116,0.2); 
    padding-left: 30px; 
}

.side-note h3 {
    font-size: 0.9rem;
    color: #109E74;
    margin-bottom: 15px;
}

.side-note p {
    font-size: 1.15rem; 
    color: #B3B9C1; 
    line-height: 1.8;
}

/* --- 5. PORTFOLIO KARTY (KAZETY) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0 100px 0;
}

.card {
    background: #16191E;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s ease;
    text-decoration: none;
}

.card:hover { 
    transform: translateY(-10px); 
    border-color: #109E74; 
}

.card-img { 
    height: 240px; 
    background: #111418; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}

.card-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.4; 
    transition: opacity 0.4s ease;
}

.card:hover .card-img img { opacity: 0.85; }

.card-content { padding: 40px; }
.card-content h3 { margin-bottom: 15px; }
.card-content p { font-size: 1.15rem; color: #B3B9C1; line-height: 1.8; }

/* --- 6. PATIČKA --- */
.site-footer {
    margin-top: 100px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0;
    color: #626B7A;
    font-size: 0.9rem;
}

.site-footer a {
    color: #626B7A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover { color: #109E74; }

/* --- Korekce typografie a textů --- */
p {
    margin-top: 0;
    margin-bottom: 1.6rem; 
    line-height: 1.65;     
    color: #bcbcc2;        
}

h2, .h2-napis { 
    margin-top: 4rem;      
    margin-bottom: 1.5rem; 
    letter-spacing: 0.03em;
    line-height: 1.3;
}

ul {
    margin-top: 0;
    margin-bottom: 2rem;
    list-style-position: inside;
}

li {
    margin-bottom: 0.8rem; 
    line-height: 1.6;
}

/* --- Reset linků a likvidace fialové/modré --- */
a[href^="tel:"], 
a[href^="mailto:"],
.entry-content a,
html body a,
html body main a {
    color: #ffffff !important;             
    text-decoration: none !important;      
    transition: color 0.25s ease-in-out !important; 
}

a[href^="tel:"]:visited, 
a[href^="mailto:"]:visited,
html body a:visited {
    color: #ffffff !important;             
}

a[href^="tel:"]:hover, 
a[href^="tel:"]:active,
a[href^="mailto:"]:hover, 
a[href^="mailto:"]:active,
.entry-content a:hover,
html body a:hover,
html body main a:hover {
    color: #00b074 !important;             
}

/* --- 7. MOBILNÍ RESPONSIVITA --- */
@media (max-width: 900px) {
    .site { padding: 0 20px; }

    .site-header {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 20px;
    }

    .main-navigation ul {
        justify-content: center;
        gap: 15px;
    }

    .magazine-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .main-content-flow, .side-note {
        width: 100%;
        border-left: none;
        padding-left: 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
    }

    h1 { font-size: 1.4rem; }
    .main-content-flow h2 { font-size: 1.6rem; margin-top: 35px; }
}

/* --- 8. WOOCOMMERCE ÚPRAVY --- */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    padding: 0;
    margin: 40px 0;
    list-style: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;  
    float: none !important;  
    margin: 0 !important;    
    
    background: #141619; 
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px); 
}

.woocommerce ul.products li.product img {
    border-radius: 6px;
    margin-bottom: 15px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    color: #059669; 
    margin: 10px 0;
    padding: 0;
}

.woocommerce ul.products li.product .price {
    color: #fff;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.woocommerce ul.products li.product .button {
    background-color: #059669 !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #047857 !important; 
}

/* --- Maximálně agresivní stylování roletky řazení --- */
select.orderby,
form.woocommerce-ordering select,
.woocommerce-ordering select {
    background-color: #141619 !important; 
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23059669'><path d='M0 3l5 5 5-5z'/></svg>") !important; 
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 10px !important;
    
    color: #ffffff !important;            
    border: 1px solid #059669 !important; 
    padding: 8px 35px 8px 16px !important;
    border-radius: 4px !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 0.9rem !important;
    
    cursor: pointer !important;
    outline: none !important;
    
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

select.orderby option {
    background-color: #141619 !important;
    color: #ffffff !important;
}

select.orderby:hover,
form.woocommerce-ordering select:hover,
.woocommerce .woocommerce-ordering select:hover {
    border-color: #047857 !important;     
}

/* --- ÚPRAVA WOOCOMMERCE COMING SOON STRÁNKY --- */

/* Hlavní pozadí celé stránky */
.wp-block-woocommerce-coming-soon,
.wp-block-woocommerce-coming-soon .wp-block-cover {
    background-color: #0F1115 !important; /* Obsidian Night */
    color: #B3B9C1 !important;
}

/* Hlavička na coming soon stránce */
.wp-block-woocommerce-coming-soon .woocommerce-coming-soon-header {
    background-color: #16191E !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Název webu v hlavičce */
.wp-block-woocommerce-coming-soon .wp-block-site-title a {
    color: #ffffff !important;
    font-family: 'Jost', sans-serif !important;
    letter-spacing: 0.15em !important;
}

/* Hlavní nápis uprostřed (Omluvte nepořádek...) */
.wp-block-woocommerce-coming-soon h1.woocommerce-coming-soon-banner {
    color: #109E74 !important; /* Emerald Glow */
    font-family: 'Jost', sans-serif !important;
    font-weight: 200 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

/* Tlačítko Přihlásit se */
.wp-block-woocommerce-coming-soon .wp-block-loginout a {
    background-color: #059669 !important;
    color: #ffffff !important;
    font-family: 'Jost', sans-serif !important;
    border-radius: 4px !important;
    transition: background 0.2s !important;
}

.wp-block-woocommerce-coming-soon .wp-block-loginout a:hover {
    background-color: #047857 !important;
}

/* Sociální ikony */
.wp-block-woocommerce-coming-soon .wp-social-link a {
    color: #A3A7AF !important;
}

.wp-block-woocommerce-coming-soon .wp-social-link a:hover {
    color: #ffffff !important;
}