/* ========================================
   UK-Transport — custom styles
   ======================================== */

/* Form validation */
.form-control.is-invalid { border-color: #dc3545 !important; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.25) !important; }
.invalid-feedback { display: none; font-size: 0.78rem; color: #dc3545; margin-top: 4px; }
.form-control.is-invalid + .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback { display: block; }
.form-alert { padding: 12px 16px; margin-bottom: 16px; font-size: 0.88rem; display: none; }
.form-alert.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.form-alert.alert-danger { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Footer form */
.footer-wycena-form .form-control::placeholder { color: rgba(255,255,255,0.5); }
.footer-wycena-form .form-control:focus { background: rgba(255,255,255,0.15) !important; border-color: rgba(255,255,255,0.6) !important; box-shadow: none; color: #fff; }

/* Oferta cards */
.oferta-card {
    background: #fff;
    border: 1px solid #e4e8ee;
    border-top: 4px solid #bd0f07;
    padding: 36px 20px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    transition: all 0.28s ease;
    text-decoration: none !important;
}
.oferta-card:hover {
    background: #bd0f07;
    border-top-color: #9a0a05;
    box-shadow: 0 10px 35px rgba(189,15,7,0.22);
    transform: translateY(-4px);
}
.oferta-card .oc-icon {
    width: 72px;
    height: 72px;
    background: #fff0ef;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #bd0f07;
    transition: all 0.28s;
    flex-shrink: 0;
}
.oferta-card:hover .oc-icon {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.oferta-card .oc-icon svg { width: 34px; height: 34px; }
.oferta-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.5;
    margin: 0 0 18px;
    flex-grow: 1;
    transition: color 0.28s;
}
.oferta-card:hover h5 { color: #fff; }
.oferta-card .oc-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #bd0f07;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #bd0f07;
    padding: 7px 18px;
    transition: all 0.28s;
    white-space: nowrap;
}
.oferta-card:hover .oc-btn {
    color: #fff;
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.12);
}

/* Services icon boxes hover */
.about-block a.icon-bx-wraper { transition: background-color 0.3s ease; }
.about-block a.bg-primary-dark-1:hover { background-color: rgba(0,20,80,0.95) !important; }
.about-block a.bg-primary-dark-2:hover { background-color: rgba(0,15,65,0.95) !important; }

/* Sidebar wycena button hover */
.sidebar-contact .site-button { transition: background 0.3s ease, border-color 0.3s ease; }
.sidebar-contact .site-button:hover { background: #00247d !important; border-color: #00247d !important; }

/* Footer submit button hover */
.footer-wycena-form .site-button { transition: background 0.3s ease, border-color 0.3s ease; }
.footer-wycena-form .site-button:hover { background: #00247d !important; border-color: #00247d !important; }

/* Button hovers */
.btn-flota-hover:hover { background: #00247d !important; border-color: #00247d !important; }
.btn-galeria-hover:hover { background: #bd0f07 !important; border-color: #bd0f07 !important; }

/* ========================================
   Mobile menu
   ======================================== */

/* Mobile nav buttons — wrapper */
.mobile-nav-buttons {
    display: none;
    float: right;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    line-height: 1;
}
/* Wspólny styl obu przycisków */
.mobile-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    color: #fff;
    font-size: 1rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
    outline: none !important;
    transition: background 0.3s;
    vertical-align: middle;
    float: none !important;
    position: static !important;
    line-height: 1;
}
/* Reset xmenu-toggler styles gdy jest w naszym wrapperze */
.mobile-nav-buttons .xmenu-toggler {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
}
.mobile-menu-btn { background: #00247d; }
.mobile-menu-btn:hover { background: #001a5c; }
.mobile-menu-btn.open .fa-bars::before { content: "\f00d"; }
.mobile-phone-btn { background: #bd0f07; }
.mobile-phone-btn:hover { background: #00247d; }

/* Przycisk zamknięcia wewnątrz panelu menu — tylko mobile */
.header-nav .nav-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: #bd0f07;
    color: #fff;
    border: none;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}
.header-nav .nav-close:hover { background: #00247d; }
@media (max-width: 991px) {
    .header-nav .nav-close { display: flex; }
}

/* Backdrop za menu */
.menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 998;
}
.menu-backdrop.show { display: block; }

/* Mobile — logo margin fix + show nav buttons */
@media (max-width: 991px) {
    .dez-logo img, .logo-header img, .logo-footer img { margin-top: 0 !important; }
    .mobile-nav-buttons { display: flex !important; margin: 18px 0; }
}

/* Top bar mobile — ukryj telefony, zostaw email */
@media (max-width: 991px) {
    .dez-topbar-left { display: none !important; }
}

/* Modale mobile — margines */
@media (max-width: 575px) {
    .modal-dialog { margin: 1rem; }
}

/* Subpage banner — responsive height + parallax on desktop */
.bg-img-fix {
    background-attachment: fixed !important;
    background-size: cover;
    background-position: center center;
}
@media (max-width: 991px) {
    .bg-img-fix {
        background-attachment: scroll !important;
    }
    .bg-img-fix[style*="height:600px"] {
        height: 350px !important;
    }
    .bg-img-fix h1 {
        font-size: 1.4rem !important;
    }
}
@media (max-width: 575px) {
    .bg-img-fix[style*="height:600px"] {
        height: 260px !important;
    }
    .bg-img-fix h1 {
        font-size: 1.1rem !important;
        letter-spacing: 0 !important;
    }
}

/* Footer mobile */
@media (max-width: 767px) {
    .footer-top .footer-col-4 { margin-bottom: 30px; }
    .footer-top .footer-col-4:last-child { margin-bottom: 0; }
    .footer-top h4 { font-size: 0.9rem !important; letter-spacing: 1px !important; }
    .footer-wycena-form .row .col-6 { flex: 0 0 100%; max-width: 100%; }
}

/* Breadcrumb bar */
.breadcrumb-bar { background: #f5f5f5; border-bottom: 1px solid #e8e8e8; padding: 14px 0; }
.breadcrumb-bar ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.breadcrumb-bar ul li { font-size: 0.88rem; color: #777; display: flex; align-items: center; }
.breadcrumb-bar ul li a { color: #555; text-decoration: none; transition: color 0.2s; }
.breadcrumb-bar ul li a:hover { color: #bd0f07; }
.breadcrumb-bar ul li + li::before { content: "\f105"; font-family: "FontAwesome"; margin: 0 10px; color: #bbb; font-size: 0.75rem; }
.breadcrumb-bar ul li.active { color: #bd0f07; font-weight: 700; }
.breadcrumb-bar .bc-home { font-size: 0.95rem; color: #555; }

/* Scroll-to-top & slider arrows */
.scroltop { border-radius: 0 !important; transition: background 0.3s ease; }
.scroltop:hover { background: #00247d !important; }
.tparrows { border-radius: 0 !important; }
.tparrows::before { border-radius: 0 !important; }
