:root {
  --primary-color: #2B2A70;
  --secondary-color: #ECE94D;
}

/* Preloader – replace GIF with CSS spinner */
.preload {
  background-image: none !important;
  background-color: #fff !important;
}
.preload::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  border: 4px solid rgba(22, 39, 102, 0.12);
  border-top-color: var(--secondary-color);
  animation: preload-spin 1s ease-in-out infinite;
  z-index: 100000;
}
.preload::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  border: 4px solid rgba(242, 230, 61, 0.2);
  border-top-color: var(--primary-color);
  animation: preload-spin 0.65s linear infinite reverse;
  z-index: 100000;
}
@keyframes preload-spin {
  to { transform: rotate(360deg); }
}

.prices {
    width: 100% !important;
    margin-top: 20px !important;
}
.prices td {
    font-size: 80% !important;
}
.prices tr:nth-child(even) {
    background: lightgrey !important;
}
.prices td:nth-child(1) {
    width: 50px !important;
    text-align: center;
    color: lightgrey !important;
}
.prices td:nth-child(2) {
    width: 400px !important;
    text-transform: uppercase !important;
}
.prices td:nth-child(3) {
    color: grey !important;
}
.prices td:nth-child(4) {
    text-align: right !important;
}
.prices td:nth-child(5) {
    text-align: right !important;
}
.prices input{
    width: 55px !important;
    text-align: right;
}

.prices-footer {
    width: 100% !important;
    margin-top: 20px;
}
.prices-footer tr {
    height: 50px !important;
    background: var(--primary-color) !important;
}
.prices-footer td:nth-child(1) {
    width: 50px !important;
}
/* Call to action box – secondary color */
.call-to-action-box .action-style-box {
    background: var(--secondary-color);
}

/* Slider – text styling */
.box-slider-text {
    background: none;
    color: #fff;
    max-width: 700px;
}
/* clamp(min, preferred, max) – font plynule škáluje podle šířky viewportu */
.box-slide-sub-title {
    color: #fff;
    font-size: clamp(24px, 6vw, 53px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 clamp(6px, 1vw, 10px);
    overflow-wrap: break-word;
}
.box-slide-sub-title::after {
    display: none;
}
.box-slide-title {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: clamp(13px, 2.2vw, 20px);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.3vw, 3px);
    margin-bottom: clamp(10px, 2vw, 20px);
    padding-bottom: clamp(10px, 2vw, 20px);
    position: relative;
}
.box-slide-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}
.box-slide-description,
.box-slider-text ul,
.box-slider-text li {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(14px, 2.2vw, 19px);
    line-height: 1.7;
}
.box-slider-text ul {
    padding-left: 20px;
    margin-bottom: 20px;
}
.box-slider-text li {
    margin-bottom: 4px;
}
.box-slider-text .btn.btn-primary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #111;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}
.box-slider-text .btn.btn-primary:hover {
    opacity: 0.85;
}

/* Slider – BW background + primary color overlay */
.page-slider .item {
    position: relative;
    background-image: none !important;
}
.page-slider .item .slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: 50% 50%;
    z-index: 0;
}
.page-slider .item::after {
    display: none;
}
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    z-index: 1;
    /* opacity se nastavuje dynamicky z admin */
}
.page-slider .item > .container {
    position: relative;
    z-index: 2;
    min-height: clamp(350px, 55vw, 600px);
}

/* ── Slider – mobilní drobné úpravy (clamp řeší fonty automaticky) ── */
@media (max-width: 767px) {
    .box-slider-text {
        max-width: 85%;
    }
    .box-slider-text .btn.btn-primary {
        font-size: clamp(11px, 1.8vw, 14px);
        padding: 8px 18px;
    }
}

/* Footer action boxes – equal height */
.footer-top .row {
    display: flex;
    flex-wrap: wrap;
}
.footer-top .row > [class*="col-"] {
    display: flex;
}
.footer-top .action-box {
    flex: 1;
    width: 100%;
}

/* Banner area – overlay with primary color */
.banner-area-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: 50% 50%;
    filter: grayscale(100%);
    z-index: 0;
}
.banner-area::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0.9;
    z-index: 1;
}
.banner-area .banner-text {
    z-index: 2;
}

/* Banner area – use secondary color */
.banner-area a {
    color: var(--secondary-color);
}
.banner-area .border-title:before {
    background: var(--secondary-color);
}

/* Footer – BW background + primary color overlay */
.footer {
    background-image: none !important;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../images/parallax1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 50% 50%;
    filter: grayscale(100%);
    z-index: 0;
}
.footer.bg-overlay:after {
    background-color: var(--primary-color) !important;
    opacity: 0.95;
}

.footer .copyright {
    background: var(--secondary-color);
}
#back-to-top .btn.btn-primary {
    color: var(--secondary-color);
}

/* Footer – use secondary color */
.footer .action-box-icon i {
    color: var(--secondary-color);
}
.footer .action-box:hover .action-box-icon i {
    background: var(--secondary-color);
    color: #fff;
}
.footer .widget-title:before {
    background: var(--secondary-color);
}
.footer a {
    color: var(--secondary-color);
}
.footer-widget ul li a {
    color: var(--secondary-color);
}
.footer-widget ul.list-arrow li:hover a,
.footer-widget ul.list-arrow li:hover {
    color: var(--secondary-color);
}

.prices-footer td:nth-child(3) {
    width: 200px !important;
    padding-right: 20px;
    font-size: 24px;
    font-weight: bold;
}

/* Price table – selected row (qty > 0) */
.prices tr.row-selected td {
    background: rgba(242, 230, 61, 0.5) !important;
}

/* Price table footer – white text on dark primary background */
.prices-footer td {
    color: #fff !important;
}

/* POPTÁVKA button – zachovat pozadí i při :focus/:hover
   (přebíjí .nav > li > a:focus { background: none } ze style.css) */
.header-get-a-quote .btn-primary,
.header-get-a-quote .btn-primary:focus,
.header-get-a-quote .btn-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ── Checkboxy – primary color ── */
input[type="checkbox"] {
    accent-color: var(--primary-color);
}

/* ── Ceníky – responsivní kartičky na mobilu ── */
@media (max-width: 767px) {
    .prices thead {
        display: none;
    }
    .prices,
    .prices tbody,
    .prices tr,
    .prices td {
        display: block !important;
        width: 100% !important;
    }
    .prices tr {
        background: #fff !important;
        border: 1px solid #e5e5e5;
        margin-bottom: 10px;
        padding: 12px 14px;
        position: relative;
    }
    .prices tr:nth-child(even) {
        background: #fafafa !important;
    }
    .prices tr.row-selected {
        border-left: 3px solid var(--secondary-color);
    }
    /* Skrýt index sloupec */
    .prices td:nth-child(1) {
        display: none !important;
    }
    /* Název produktu – velký tučný */
    .prices td:nth-child(2) {
        width: 100% !important;
        font-size: 14px !important;
        font-weight: 700;
        padding: 0 0 4px !important;
        text-transform: uppercase !important;
    }
    /* Norma */
    .prices td:nth-child(3) {
        font-size: 12px !important;
        color: #888 !important;
        padding: 0 0 6px !important;
    }
    /* Cena */
    .prices td:nth-child(4) {
        text-align: left !important;
        font-size: 15px !important;
        font-weight: 700;
        color: var(--primary-color);
        padding: 4px 0 !important;
    }
    /* Input množství */
    .prices td:nth-child(5) {
        text-align: left !important;
        padding: 6px 0 0 !important;
    }
    .prices td:nth-child(5)::before {
        content: "Množství: ";
        font-size: 12px;
        color: #888;
    }
    .prices input {
        width: 80px !important;
    }

    /* Footer – celkem */
    .prices-footer,
    .prices-footer tbody,
    .prices-footer tr,
    .prices-footer td {
        display: block !important;
        width: 100% !important;
    }
    .prices-footer tr {
        height: auto !important;
        padding: 12px 14px;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }
    .prices-footer td {
        display: inline !important;
        width: auto !important;
        padding: 0 !important;
    }
    .prices-footer td:nth-child(1) {
        display: none !important;
    }
    .prices-footer td:nth-child(2) {
        font-size: 13px;
    }
    .prices-footer td:nth-child(3) {
        font-size: 20px;
        font-weight: 700;
    }
}
