/*
Theme Name: Avas Child
Theme URI: https://x-theme.net/avas/
Author: theme-x
Author URI: https://themeforest.net/user/theme-x
Description: Responsive Multi-Purpose WordPress Theme.
License: GNU General Public License v2 or later
License URI: http://themeforest.net/licenses
Template: avas
Version: 1.1
Text Domain: avas
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* --- Header layout --- */
.topbar {
    background-color: #005b98;
    color: #fff;
    font-size: 14px;
    padding: 6px 0;
}
.topbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.topbar i {
    margin-right: 6px;
}

.main-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.main-header.desktop{
    display:flex;
}
.header-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width:100%;
    padding: 0;
}
/*.logo img {
  max-height: 60px;
}*/
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu li {
    margin: 0 15px;
}
.nav-menu a {
    color: #111;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    display: block;
}
.nav-menu a:hover {
    color: #005b98;
}
.social-icons{
    display:flex;
    flex-direction:row;
    gap:15px;
}
.social-icons a {
    color: #005b98;
    font-size: 18px;
    /*margin-left: 15px;*/
    transition: 0.3s;
}
.social-icons svg{
    width:25px;
}
.social-icons a:hover {
    color: #111;
}


/* --- Topbar --- */
.topbar {
    background: linear-gradient(90deg, #4f93c2 0%, #005b99 100%);
    /*height: 80px;  uprav dle potřeby */
    border-bottom-left-radius: 90px 60px; /* zaoblení rohu */
    border-bottom-right-radius: 0;
    color: #fff;
    font-size: 14px;
    padding: 10px 30px 10px 50px;
    width: fit-content;
    position:relative;

    display:flex;
    flex-direction: row;
    gap:20px;


    font-family: "Titillium Web", Sans-serif;
    font-size: 16px;
    font-weight: 500;
}
.topbar a {
    color:#fff;
    font-weight:700;
}
/*.topbar::after{
    position: absolute;
    content: '';
    left: 100%;
    width: 50vw;
    top: 0;
    background: #005b99;
    z-index: 111111;
    height: -webkit-fill-available;
}*/

/* --- Header --- */
.main-header {
    background: #fff;
    border:0px;
}
.main-header.mobile{
    display:none;
}
.site-logo img {
    max-height: 60px;
}
.nav li {
    margin: 0 15px;
}
.nav a {
    color: #111;
    font-weight: 500;
    text-decoration: none;
}
nav a:hover,
nav li.current-menu-item > a{
    color: #0a74b9;
    text-decoration:underline;
}
.nav li.menu-item-has-children a{
    position:relative;
}
.menu-item-has-children > a::after {
    content: "\25BC"; /* Unicode znak pro šipku dolů (▼) */
    display: inline-block;
    margin-left: 6px;
    font-size: 0.6em;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

/* Pokud chceš, aby se šipka otáčela při hoveru nebo aktivaci dropdownu */
.menu-item-has-children:hover > a::after,
.menu-item-has-children.focus > a::after,
.menu-item-has-children[aria-expanded="true"] > a::after {
    transform: rotate(180deg);
}
.header-social a {
    color: #0a74b9;
    font-size: 18px;
    margin-left: 15px;
    transition: 0.3s;
}
.header-social a:hover {
    color: #111;
}

.logo{
    padding-left:50px;
}
.rightMenuNav{
    display: flex;
    flex-direction: column;
    align-items: end;
    gap:30px;
    padding-bottom: 30px;
}
.rightMenuNav .group{
    display: flex;
    flex-direction: row;
    align-items: end;
    gap:10px;
    padding-right:50px;
}

@media (max-width: 1059px) {
    .logo{
        padding-left:20px;
    }
    .rightMenuNav .group{
        padding-right:20px;
    }
}
/* --- Responsivita --- */
@media (max-width: 991px) {
    .main-header .container {
        flex-direction: column;
    }
    .primary-nav {
        margin-top: 10px;
    }
    .header-social {
        margin-top: 8px;
    }

    .main-header.mobile{
        display:flex;
        flex-direction:column;
        position:relative;
    }
    .main-header.desktop{
        display:none;
    }
    .main-header .header-inner{
        position:relative;
    }

    .topbar{
        border:0;
        border-bottom-left-radius:0;
        padding: 10px 15px;
        width:auto;
        gap:0px;
        justify-content: space-between;
    }
    .topbar::after{
        display:none;
    }
    .logo{
        padding:20px 0px;
        margin:0 auto;
    }
    /*    nav.main-menu{
            display:none;
        }*/

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 20px;
        height: 16px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1000;

        position:absolute;
        right:20px;
        top:20px;
        z-index:999;
    }

    .menu-toggle .bar {
        height: 2px;
        width: 100%;
        background-color: #005b99;
        border-radius: 2px;
        transition: all 0.3s ease;
    }


    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem 0;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Animační efekt pro hamburger na křížek */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    .mobile .nav-menu .menu-item-has-children > .sub-menu {
        display: none;
    }

    .mobile .nav-menu .menu-item-has-children.open > .sub-menu {
        display: block;
    }

    #footer-top{
        padding:30px 30px !important;
    }
    #footer-top .widget_text:not(#text-4){
        width:100% !important;
        margin-left:0px !important;
    }
}
/* === Fixní hlavička na desktopu – trvale nahoře === */
.main-header.desktop {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  z-index: 9999 !important;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* === Fixní hlavička i pro mobil === */
.main-header.mobile {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  z-index: 9999 !important;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* === Odsazení obsahu pod hlavičkou === */
body {
  padding-top: 110px !important; /* desktop */
}

@media (max-width: 991px) {
  body {
    padding-top: 145px !important; /* mobil */
  }
}

/* Pro jistotu */
.header-inner {
  position: relative !important;
  z-index: 10000 !important;
}
/* Custom footer text styling */
.footer .widget_text .textwidget,
.footer .widget_text .textwidget p,
.footer .widget_text .textwidget a {
  font-size: 14px !important;
  line-height: 1.5em !important;
  font-weight: normal !important;
}
/* === Spodní patička (footer bottom) - sjednocení velikosti a váhy === */
#footer p,
#footer a {
  font-size: 13px !important;
  font-weight: normal !important;
  line-height: 1.5em;
}

/* Volitelné - sjednocení mezer mezi odkazy */
#footer p a {
  margin-left: 0.25em;
}
/* Zvýšení rozestupů mezi odrážkami jen pro stránku /provozni-rad/ */
body.page-id-1796 .elementor-widget-text-editor ul li,
body.page-id-1796 .elementor-widget-text-editor ol li {
  margin-bottom: 1.7em !important;
  line-height: 1.6em !important;
}
/* === Odrážky na stránce Obchodní podmínky === */
body.page-id-1797 ul li,
body.page-id-1797 ol li {
  margin-bottom: 0.8em !important;   /* větší mezery mezi jednotlivými body */
  line-height: 1.6em !important;
}

/* větší rozestupy mezi celými seznamovými bloky */
body.page-id-1797 ul,
body.page-id-1797 ol {
  margin-top: 1.2em !important;
  margin-bottom: 1.2em !important;
}

/* odsazení pro vnořené seznamy (2. úroveň) */
body.page-id-1797 ul ul,
body.page-id-1797 ol ol {
  margin-left: 1.2em !important;  /* můžeš zkusit i 1.5em */
}

/* Volitelné: úprava nadpisů uvnitř seznamů (např. <h5> v prvním li) */
body.page-id-1797 ul li h5 {
  margin-bottom: 0.4em;
  font-size: 1.1em;
  line-height: 1.4em;
}
/* ============================================
   FOOTER BOTTOM – FINÁLNÍ FUNKČNÍ VERZE
============================================ */

/* Společné rozložení řádku */
#footer .footer-style-1 .row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

/* Reset Bootstrap floats */
#footer .footer-style-1 .col-md-5,
#footer .footer-style-1 .col-md-7 {
    float: none !important;
    display: flex !important;
    align-items: center;
}

/* LEFT – copyright */
#footer .footer-style-1 .col-md-5 {
    justify-content: flex-start;
}

/* RIGHT – Podporují nás + loga */
#footer .footer-style-1 .footer-bottom-col {
    justify-content: flex-end;
    margin-left: auto !important;
    margin-right: 150px !important; /* hlavní offset doprava */
    margin-top: -15px !important;   /* výškové srovnání */
}

/* Wrapper — text + loga */
.footer-col.footer-right {
    display: flex !important;
    align-items: center;
    gap: 22px;
    margin-top: -3px !important; /* jemné zarovnání na výšku */
}

/* Text "Podporují nás:" */
.footer-col.footer-right .footer-title {
    margin: 7px 0 0 0 !important;   /* posun textu o 3px dolů */
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* LOGA — držet v jedné řadě, bez deformace */
.footer-col.footer-right .footer-logos {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap !important;  /*  POVOLÍ SPADNUTÍ KDYŽ JE MÁLO MÍSTA */
    min-width: 0;                /*  ZABRÁNÍ FLEX ZKURVENÍ */
}

/* Jednotná velikost log bez zúžení */
.footer-col.footer-right .footer-logos img {
    height: 38px;
    width: auto;
    flex-shrink: 0 !important;   /*  ZABRÁNÍ ZÚŽENÍ */
}

.footer-col.footer-right .footer-logos img:hover {
    opacity: 1;
}

/* ============================================
   MOBILE
============================================ */
@media (max-width: 767px) {

    #footer .footer-style-1 .row {
        flex-direction: column;
        text-align: center;
        flex-wrap: wrap;
    }

    #footer .footer-style-1 .col-md-5,
    #footer .footer-style-1 .col-md-7 {
        justify-content: center;
        margin: 0;
    }

    /* větší mezera pod copyrightem */
    #footer .footer-style-1 .footer-bottom-col {
        margin: 25px 0 0 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .footer-col.footer-right {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 0 !important;
    }

    .footer-col.footer-right .footer-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        white-space: normal;
    }
}
