/* ============================================
   Rauschert — modernized layer (decentní úpravy)
   Vrstvi se přes původní Divi styly, nemění strukturu HTML.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ----- TYPOGRAFIE ----- */
body,
body p,
body li,
body a,
.et_pb_text,
.et_pb_section,
.et_pb_row {
    font-family: 'Inter', 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-size: 15.5px !important;
    line-height: 1.7 !important;
    color: #2a2f36 !important;
    letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, h6,
.et_pb_module_header,
.et_pb_text h1, .et_pb_text h2, .et_pb_text h3, .et_pb_text h4 {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #1a1f2c !important;
    line-height: 1.2 !important;
}

h1 { font-size: 2.6rem !important; }
h2 { font-size: 2.0rem !important; }
h3 { font-size: 1.4rem !important; }

/* ----- BARVY (jemný posun) ----- */
/* Originál: #02993d → modernější: #0aa854 (o trochu více syté, lehčí) */
:root {
    --r-green: #0aa854;
    --r-green-dark: #088346;
    --r-green-soft: #95d2b0;
    --r-dark: #1a1f2c;
}

.et_pb_button,
a.et_pb_button,
.et_pb_button_one,
.et_pb_button_two,
.et_pb_promo_button,
button.et_pb_button {
    background-color: var(--r-green) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.85em 1.6em !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 14px -4px rgba(10,168,84,0.4) !important;
}

.et_pb_button:hover,
a.et_pb_button:hover {
    background-color: var(--r-green-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px -4px rgba(10,168,84,0.5) !important;
}

/* Subtilní zelená podtržení odkazů v textu */
.et_pb_text a:not(.et_pb_button) {
    color: var(--r-green) !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(10,168,84,0.3);
    transition: border-color 0.2s ease;
}
.et_pb_text a:not(.et_pb_button):hover {
    border-bottom-color: var(--r-green);
}

/* ----- HLAVIČKA ----- */
#main-header,
.et_header_style_left #main-header {
    box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 4px 16px -4px rgba(0,0,0,0.06) !important;
    backdrop-filter: saturate(180%) blur(8px);
    background-color: rgba(255,255,255,0.96) !important;
    transition: box-shadow 0.3s ease;
}

#main-header.et-fixed-header {
    box-shadow: 0 2px 0 rgba(0,0,0,0.04), 0 8px 28px -8px rgba(0,0,0,0.1) !important;
}

#top-menu li a {
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.01em !important;
    transition: color 0.2s ease !important;
}

#top-menu li a:hover {
    color: var(--r-green) !important;
    opacity: 1 !important;
}

#top-menu li.current-menu-item > a {
    color: var(--r-green) !important;
}

/* ----- SEKCE A KARTY ----- */
.et_pb_section {
    padding-top: 6% !important;
    padding-bottom: 6% !important;
}

/* Modernější karty (Blurb / promo bloky) */
.et_pb_blurb,
.et_pb_promo,
.et_pb_cta,
.et_pb_pricing_table {
    border-radius: 10px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.et_pb_blurb:hover,
.et_pb_promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -10px rgba(0,0,0,0.15) !important;
}

/* Obrázky — jemné zaoblení */
.et_pb_image img,
.et_pb_blurb_content img,
.entry-content img,
.post-thumbnail img {
    border-radius: 8px !important;
    transition: transform 0.4s ease !important;
}

/* ----- FOOTER ----- */
#footer-bottom {
    background-color: #0f1418 !important;
    padding: 18px 0 !important;
}

#footer-info,
#footer-info a {
    color: #8a949f !important;
    font-size: 12px !important;
    letter-spacing: 0.02em;
}

#main-footer {
    background-color: var(--r-dark) !important;
}

#main-footer h1, #main-footer h2, #main-footer h3, #main-footer h4,
#main-footer .widget-title {
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem !important;
    border-bottom: 2px solid var(--r-green);
    padding-bottom: 0.5em;
    margin-bottom: 1em;
    display: inline-block;
}

#main-footer p, #main-footer li, #main-footer a {
    color: #c2c8cf !important;
}

#main-footer a:hover {
    color: var(--r-green-soft) !important;
}

/* ----- FORMULÁŘE ----- */
input[type=text], input[type=email], input[type=tel],
textarea, select,
.et_pb_contact_field input, .et_pb_contact_field textarea {
    border: 1.5px solid #e0e4ea !important;
    border-radius: 6px !important;
    padding: 0.8em 1em !important;
    font-family: inherit !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    font-size: 15px !important;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--r-green) !important;
    box-shadow: 0 0 0 3px rgba(10,168,84,0.15) !important;
    outline: none !important;
}

/* ----- ODKAZY V MENU ZTMAVIT ZÁPATÍ ----- */
.menu-item a {
    text-transform: none !important;
}

/* ----- DROBNOSTI ----- */
/* Skryj noisy cookie banner pokud někoho ruší (volitelné, nechávám viditelné) */
/* .cmplz-cookiebanner { display: none !important; } */

/* Plynulé scrollování */
html { scroll-behavior: smooth; }

/* Subtilní marker u nadpisů sekcí */
.et_pb_section h2.et_pb_module_header::after,
.et_pb_section h2:not(.et_pb_module_header):first-of-type::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--r-green);
    margin-top: 14px;
    border-radius: 2px;
}

/* Mobile menu polish */
.et_mobile_menu {
    border-top: 3px solid var(--r-green) !important;
    padding-top: 8px !important;
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.15) !important;
}

/* Print friendly */
@media print {
    #main-header, #main-footer, .cmplz-cookiebanner { display: none !important; }
}

/* ============================================
   Scroll-into-view animace (kombinuje s modern.js)
   .mr-anim   = výchozí stav (mimo viewport)
   .mr-in     = aktivováno (v viewportu) → fade + slide
   ============================================ */
.mr-anim {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}
.mr-anim.mr-in {
    opacity: 1;
    transform: translateY(0);
}

/* Obrázky — jemnější zoom-in místo posunu */
.et_pb_image.mr-anim {
    transform: scale(0.96);
}
.et_pb_image.mr-anim.mr-in {
    transform: scale(1);
}

/* Respektovat preferenci uživatele (no motion) */
@media (prefers-reduced-motion: reduce) {
    .mr-anim, .mr-anim.mr-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
