/* ==========================================================================
   Autoservis Hejný – custom vrstva nad Bootstrap 5 (lokální)
   Barvy: #11367E (modrá), #0A1F4B (tmavá), bílá
   ========================================================================== */

:root {
    --blue: #11367e;
    --blue-dark: #0c2a63;
    --blue-deep: #0a1f4b;
    --blue-soft: #eaf0fa;
    --blue-line: #d6e0f1;
    --blue-glow: #2e5fc8;
    --ink: #17202e;
    --muted: #5b667a;
    --bg-soft: #f4f6fb;
    --line: #e4e9f2;
    --shadow: 0 10px 30px rgba(17, 54, 126, .08);
    --shadow-lg: 0 22px 50px rgba(10, 31, 75, .18);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Bootstrap overrides */
    --bs-primary: #11367e;
    --bs-primary-rgb: 17, 54, 126;
    --bs-link-color: #11367e;
    --bs-link-color-rgb: 17, 54, 126;
    --bs-link-hover-color: #0c2a63;
    --bs-link-hover-color-rgb: 12, 42, 99;
    --bs-border-radius: 1rem;
    --bs-border-radius-sm: .75rem;
    --bs-body-font-family: var(--font);
    --bs-body-color: #17202e;
    --bs-body-color-rgb: 23, 32, 46;
    --bs-secondary-color: #5b667a;
    --bs-heading-color: #17202e;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px; /* odsazení ukotvení pod sticky header */
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

body {
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img { max-width: 100%; height: auto; }

/* Prevence přetečení na mobilu (flex/grid blowout) */
.row > *,
.hvc-row,
.contact-list li,
.check-list li,
.hero-facts li,
.trust-list li { min-width: 0; }

h1, h2, h3, .h1, .h2, .h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
    outline: 3px solid #2e5fc8;
    outline-offset: 2px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    background: var(--blue);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(10, 31, 75, .35);
    transition: top .15s ease;
}
.skip-link:focus-visible { top: 12px; outline-color: #b7c9fa; }

.icon { width: 24px; height: 24px; flex: 0 0 auto; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 30px; height: 30px; }

/* --------------------------------------------------------------------------
   Buttons (brand)
   -------------------------------------------------------------------------- */
.btn {
    border-radius: 999px;
    transition: box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:focus-visible { outline-offset: 3px; }

.btn-primary {
    --bs-btn-bg: #11367e;
    --bs-btn-border-color: #11367e;
    --bs-btn-hover-bg: #0c2a63;
    --bs-btn-hover-border-color: #0c2a63;
    --bs-btn-active-bg: #0a1f4b;
    --bs-btn-active-border-color: #0a1f4b;
    --bs-btn-disabled-bg: #11367e;
    --bs-btn-disabled-border-color: #11367e;
    box-shadow: 0 8px 20px rgba(17, 54, 126, .25);
}

.btn-light {
    --bs-btn-color: #11367e;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: #0c2a63;
    --bs-btn-hover-bg: #eaf0fa;
    --bs-btn-hover-border-color: #eaf0fa;
    --bs-btn-active-color: #0c2a63;
    --bs-btn-active-bg: #eaf0fa;
    --bs-btn-active-border-color: #eaf0fa;
    box-shadow: 0 10px 26px rgba(10, 31, 75, .28);
}

/* --------------------------------------------------------------------------
   Header / navbar
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(17, 54, 126, .05);
}

.site-header .navbar { padding-top: .5rem; padding-bottom: .5rem; }

.brand { color: var(--ink); }
.brand:hover { color: var(--ink); }

.brand-text { line-height: 1.2; }
.brand-text strong { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.brand-text em { font-style: normal; font-size: 13px; color: var(--muted); }

.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.brand-light .brand-text em { color: rgba(255, 255, 255, .65); }

.site-header .navbar-nav .nav-link {
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    border-radius: 999px;
    padding: .5rem .95rem;
    transition: color .15s ease, background-color .15s ease;
}
.site-header .navbar-nav .nav-link:hover { color: var(--blue); background: var(--blue-soft); }
.site-header .navbar-nav .nav-link.active { color: var(--blue); background: var(--blue-soft); }

.site-header .navbar-toggler {
    border-color: var(--blue-line);
    padding: .45rem .6rem;
}
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 .15rem rgba(17, 54, 126, .25); }
.site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(17,54,126,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(46, 95, 200, .55), transparent 60%),
        radial-gradient(800px 400px at -10% 110%, rgba(46, 95, 200, .35), transparent 55%),
        linear-gradient(140deg, var(--blue-deep) 0%, var(--blue) 70%);
}

/* servis.jpg – rozpuštěný podklad, více napravo, bez opakování */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../servis.jpg');
    background-position: 85% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .16;
    pointer-events: none;
}

.hero-inner { position: relative; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
}
.hero-eyebrow .icon { width: 16px; height: 16px; }

.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; color: #fff; }
.hero h1 span { color: #b7c9fa; }

.hero-lead { font-size: 19px; color: rgba(255, 255, 255, .85); max-width: 560px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 0; }
.hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 8px 16px;
}
.hero-facts .icon { width: 20px; height: 20px; color: #9db8f2; }
.hero-facts a { color: #fff; }
.hero-facts a:hover { color: #9db8f2; text-decoration: underline; text-underline-offset: 3px; }

/* Hero visual – floating service cards */
.hero-visual { position: relative; max-width: 480px; }

@media (min-width: 992px) {
    .hero-visual { margin-left: auto; }
}

.hero-visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 430px;
    height: 430px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(157, 184, 242, .28), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hvc {
    position: relative;
    z-index: 1;
}

.hvc-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, .97);
    color: var(--ink);
    border-radius: var(--bs-border-radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(4px);
    text-decoration: none;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.hvc-row:hover { background: #fff; box-shadow: 0 24px 54px rgba(10, 31, 75, .22); }
.hvc-row:hover strong { color: var(--blue); }
.hvc-row:focus-visible { outline: 3px solid #b7c9fa; outline-offset: 3px; }
.hvc-row .icon { color: var(--blue); }
.hvc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: var(--blue-soft);
    flex: 0 0 auto;
}
.hvc-row strong { display: block; font-size: 17px; transition: color .15s ease; }
.hvc-row small { color: var(--muted); font-size: 14px; }
.hvc-arrow {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    flex: 0 0 auto;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.hvc-row:hover .hvc-arrow { transform: translateX(3px); color: var(--blue-dark); }

@media (min-width: 992px) {
    .hvc-row:nth-child(1) { transform: translateX(-6px); }
    .hvc-row:nth-child(2) { transform: translateX(10px); }
    .hvc-row:nth-child(3) { transform: translateX(-2px); }
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--blue);
}
.section-head h2 { font-size: clamp(27px, 3.8vw, 38px); font-weight: 800; }
.section-head p { font-size: 18px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust { border-bottom: 1px solid var(--line); }
.trust-list li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}
.trust-list .icon { width: 20px; height: 20px; color: var(--blue); }

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */
.card-service {
    --bs-card-border-color: var(--line);
    --bs-card-border-radius: var(--bs-border-radius);
    --bs-card-bg: #fff;
    padding: 30px 28px;
    box-shadow: var(--shadow);
}

.card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    flex: 0 0 auto;
    box-shadow: 0 6px 14px rgba(17, 54, 126, .2);
}
.card-head h3 { margin-bottom: 0; font-weight: 800; }
.card-service p { font-size: 15.5px; margin-bottom: 0; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-weight: 700;
    font-size: 15px;
    color: var(--blue);
}
.card-link:hover { color: var(--blue-dark); }
.card-link .icon { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Why us
   -------------------------------------------------------------------------- */
.why-item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--bs-border-radius);
    padding: 26px 24px;
    height: 100%;
    box-shadow: var(--shadow);
}
.why-item .icon { width: 34px; height: 34px; color: var(--blue); }
.why-item p { font-size: 15px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(700px 300px at 15% 120%, rgba(46, 95, 200, .5), transparent 60%),
        radial-gradient(600px 300px at 110% -30%, rgba(46, 95, 200, .4), transparent 55%),
        linear-gradient(140deg, var(--blue-deep) 0%, var(--blue) 75%);
    border-radius: 24px;
    padding: 56px 48px;
    box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: clamp(25px, 3.4vw, 34px); font-weight: 800; color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); font-size: 18px; max-width: 640px; margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* --------------------------------------------------------------------------
   Contact list / hours
   -------------------------------------------------------------------------- */
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list .icon {
    box-sizing: content-box;
    width: 22px;
    height: 22px;
    padding: 11px;
    border-radius: 13px;
    background: var(--blue-soft);
    color: var(--blue);
}
.contact-list strong { font-size: 17px; }
.contact-list small { font-size: 15px; }
.contact-list a { font-size: 17px; font-weight: 700; color: var(--blue); }
.contact-list a:hover { color: var(--blue-dark); }

.hours-box {
    background: var(--blue-deep);
    color: #fff;
    border-radius: var(--bs-border-radius);
    padding: 26px;
    box-shadow: var(--shadow-lg);
}
.hours-box h3 { font-size: 19px; font-weight: 700; color: #fff; }
.hours-box li { display: flex; justify-content: space-between; gap: 20px; font-size: 15.5px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hours-box li:last-child { padding-bottom: 0; border-bottom: 0; }
.hours-box li span { color: rgba(255, 255, 255, .72); }
.hours-box li strong { font-weight: 600; }

/* --------------------------------------------------------------------------
   Page hero (subpages)
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 400px at 90% -20%, rgba(46, 95, 200, .5), transparent 60%),
        linear-gradient(140deg, var(--blue-deep) 0%, var(--blue) 75%);
    padding: 40px 0;
    text-align: center;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../servis.jpg');
    background-position: 85% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .14;
    pointer-events: none;
}
.page-hero-inner {
    position: relative;
    max-width: 760px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.crumbs {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
}
.crumbs a { color: rgba(255, 255, 255, .65); }
.crumbs a:hover { color: #fff; }

.page-hero h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; color: #fff; }
.page-hero p { color: rgba(255, 255, 255, .85); font-size: 18px; max-width: 640px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Service sections (detail pages)
   -------------------------------------------------------------------------- */
.service-block + .service-block { border-top: 1px solid var(--line); }

@media (min-width: 992px) {
    .service-block-lead { position: sticky; top: 100px; }
}
.block-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.block-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    flex: 0 0 auto;
    box-shadow: 0 6px 14px rgba(17, 54, 126, .2);
}
.block-head h2 { margin-bottom: 0; }

.check-list { display: grid; gap: 14px; }
.check-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--ink);
}
.check-list .icon {
    width: 28px;
    height: 28px;
    padding: 5px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    flex: 0 0 auto;
}
@media (min-width: 992px) {
    .service-block .check-list { grid-template-columns: 1fr 1fr; }
}

.partner-note-wrap {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}
.partner-note {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.partner-note h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 8px;
}
.partner-note p {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Kontakt page
   -------------------------------------------------------------------------- */
.contact-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--bs-border-radius);
    padding: 24px 22px;
    height: 100%;
    box-shadow: var(--shadow);
}
.contact-card .icon {
    box-sizing: content-box;
    width: 24px;
    height: 24px;
    padding: 14px;
    border-radius: 15px;
    background: var(--blue-soft);
    color: var(--blue);
    margin-bottom: 14px;
}
.contact-card h2 { margin-bottom: 6px; font-weight: 800; }
.contact-card p { font-size: 15.5px; margin-bottom: 0; }
.contact-card a { color: var(--blue); font-weight: 700; word-break: break-word; }
.contact-card a:hover { color: var(--blue-dark); }

/* --------------------------------------------------------------------------
   Mapa (iframe, bez externí JS knihovny)
   -------------------------------------------------------------------------- */
.map-frame {
    width: 100%;
    max-width: 100%;
    height: 420px;
    border: 0;
    border-radius: var(--bs-border-radius);
    box-shadow: var(--shadow);
    display: block;
    overflow: hidden;
    background: var(--blue-soft);
}
/* brandové zabarvení OSM dlaždic (modrý odstín), marker zůstává nefiltrovaný */
.map-tiles {
    filter: grayscale(100%) sepia(30%) hue-rotate(185deg) saturate(160%) brightness(1.03);
}
/* mapa na celou šířku (bez zaoblení a stínu) */
.map-wide { border-radius: 0; box-shadow: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--blue-deep);
    color: #fff;
}
.site-footer .footer-col h2 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .5);
    font-weight: 700;
    margin-bottom: 18px;
}
.site-footer .brand-text strong { font-size: 26px; }
.site-footer .brand-text em { font-size: 15px; }
.site-footer .footer-col ul { gap: 11px; }
.site-footer .footer-col a { color: rgba(255, 255, 255, .85); font-size: 15.5px; text-decoration: none; }
.site-footer .footer-col a:hover { color: #fff; text-decoration: none; }

.footer-about p { color: rgba(255, 255, 255, .7); font-size: 15px; margin-bottom: 0; }

.site-footer .contact-list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.site-footer .contact-list .icon {
    box-sizing: content-box;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #9db8f2;
}
.site-footer .contact-list a { color: rgba(255, 255, 255, .85); font-size: 15.5px; text-decoration: none; }
.site-footer .contact-list a:hover { color: #fff; text-decoration: none; }

.hours-list li { display: flex; justify-content: space-between; gap: 18px; font-size: 15px; }
.hours-list li span { color: rgba(255, 255, 255, .6); }
.hours-list li strong { font-weight: 600; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom p { font-size: 14px; color: rgba(255, 255, 255, .55); }
.footer-bottom a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: none; }

/* --------------------------------------------------------------------------
   Responsive tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .site-header .navbar-nav .nav-link { padding: .5rem .75rem; font-size: 15.5px; }
}

@media (max-width: 991.98px) {
    .site-header .navbar-nav .nav-link { border-radius: 10px; font-size: 16px; }
    .site-header .nav-cta { margin-top: .5rem; }
}

@media (max-width: 767.98px) {
    .section { padding: 64px 0; }
    .page-hero-inner { min-height: 260px; }
    .hero h1 { font-size: 32px; }
    .hero-lead { font-size: 17px; }
    .cta { padding: 44px 26px; }
    .map-frame { height: 320px; }
}

@media (max-width: 575.98px) {
    .hero-inner { padding-top: 1rem; }
}
