/* www.mf-podlahy.cz – barvy z loga a původního webu: žlutá, námořnická modrá, tmavé dřevo */
:root {
    --mf-yellow: #ffd400;
    --mf-yellow-dark: #e6b800;
    --mf-blue: #1e56a6;
    --mf-navy: #0b1f4d;
    --mf-wood: #2b1d14;
    --mf-wood-2: #3d2a1d;
    --mf-cream: #f7f2ea;
    --mf-text: #2a2522;
    --mf-muted: #6c635c;
    --bs-body-color: var(--mf-text);
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-link-color: var(--mf-blue);
    --bs-link-color-rgb: 30, 86, 166;
    --bs-link-hover-color: var(--mf-navy);
    --bs-link-hover-color-rgb: 11, 31, 77;
    --radius: 14px;
}

html, body { overflow-x: clip; }
body { background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { color: var(--mf-navy); font-weight: 700; letter-spacing: -.01em; }
.text-navy { color: var(--mf-navy); }
.icon { width: 1.05em; height: 1.05em; vertical-align: -.15em; flex-shrink: 0; }
.skip-link { z-index: 2000; }
img { max-width: 100%; height: auto; }

/* ---------- tlačítka ---------- */
.btn { border-radius: 999px; font-weight: 600; padding-inline: 1.25rem; }
.btn-lg { padding: .75rem 1.6rem; font-size: 1.05rem; }
.btn .icon { margin-left: .15rem; }
.btn-mf { --bs-btn-bg: var(--mf-yellow); --bs-btn-border-color: var(--mf-yellow); --bs-btn-color: var(--mf-navy);
    --bs-btn-hover-bg: var(--mf-yellow-dark); --bs-btn-hover-border-color: var(--mf-yellow-dark); --bs-btn-hover-color: var(--mf-navy);
    --bs-btn-active-bg: var(--mf-yellow-dark); --bs-btn-active-border-color: var(--mf-yellow-dark); --bs-btn-active-color: var(--mf-navy);
    --bs-btn-focus-shadow-rgb: 255, 212, 0; box-shadow: 0 4px 14px rgba(255, 212, 0, .25); }
.btn-navy { --bs-btn-bg: var(--mf-navy); --bs-btn-border-color: var(--mf-navy); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--mf-blue); --bs-btn-hover-border-color: var(--mf-blue); --bs-btn-hover-color: #fff; }
.btn-outline-navy { --bs-btn-color: var(--mf-navy); --bs-btn-border-color: var(--mf-navy);
    --bs-btn-hover-bg: var(--mf-navy); --bs-btn-hover-border-color: var(--mf-navy); --bs-btn-hover-color: #fff; }

/* ---------- horní lišta a navigace ---------- */
.topbar { background: var(--mf-wood); color: rgba(255, 255, 255, .8); font-size: .875rem; padding: .4rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--mf-yellow); }
.topbar .icon { color: var(--mf-yellow); }
.site-header { background: rgba(255, 255, 255, .97); box-shadow: 0 2px 18px rgba(43, 29, 20, .08); }
@supports (backdrop-filter: blur(6px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); } }
.navbar { padding-block: .35rem; }
.site-logo { height: 56px; width: auto; }
@media (min-width: 992px) { .site-logo { height: 68px; } }
.navbar-toggler { border: 0; padding: .5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(30, 86, 166, .25); }
.nav-link { color: var(--mf-navy); font-weight: 600; padding: .6rem .9rem !important; border-radius: 8px; }
.nav-link:hover, .nav-link:focus { color: var(--mf-blue); background: rgba(30, 86, 166, .06); }
.nav-link.active { color: var(--mf-blue); }
@media (min-width: 992px) {
    .nav-link { position: relative; }
    .nav-link.active::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 3px; border-radius: 2px; background: var(--mf-yellow); }
}
@media (max-width: 991.98px) {
    .navbar-collapse { padding-bottom: .75rem; }
    .nav-link { font-size: 1.1rem; padding: .7rem .5rem !important; border-bottom: 1px solid rgba(11, 31, 77, .06); border-radius: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 640px); display: flex; align-items: center; overflow: hidden; background: var(--mf-wood); }
.hero-slides, .hero-slides .carousel-inner, .hero-slides .carousel-item { position: absolute; inset: 0; height: 100%; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; }
.hero-slides .carousel-item { transition-duration: 1.2s; }
.hero-slides .carousel-item.active .hero-img { animation: hero-zoom 7s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-caption { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; font-size: .8rem; color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .35); padding: .3rem .7rem; border-radius: 999px; text-decoration: none; }
.hero-caption:hover { color: #fff; background: rgba(0, 0, 0, .6); }
.hero-caption .icon { color: var(--mf-yellow); }
.hero-overlay { pointer-events: none; z-index: 2; }
@media (max-width: 575.98px) { .hero-caption { display: none; } }
.hero-content { pointer-events: none; }
.hero-content a { pointer-events: auto; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 12, 6, .88) 0%, rgba(20, 12, 6, .65) 45%, rgba(20, 12, 6, .2) 100%); }
@media (max-width: 767.98px) { .hero-overlay { background: linear-gradient(180deg, rgba(20, 12, 6, .55) 0%, rgba(20, 12, 6, .85) 70%); } }
.hero-content { position: relative; z-index: 3; padding-block: 4rem; color: #fff; }
.hero-kicker { display: inline-block; color: var(--mf-yellow); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .75rem; }
.hero-title { color: #fff; font-size: clamp(2rem, 5.2vw, 3.5rem); font-weight: 800; line-height: 1.1; max-width: 16em; margin-bottom: 1rem; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 36em; color: rgba(255, 255, 255, .9); margin-bottom: 2rem; }

/* ---------- výhody ---------- */
.usp { background: var(--mf-navy); color: #fff; padding: 1.5rem 0; }
.usp-item { display: flex; align-items: center; gap: .75rem; height: 100%; }
.usp-num { font-size: 1.9rem; font-weight: 800; color: var(--mf-yellow); line-height: 1; }
.usp-icon { width: 2rem; height: 2rem; color: var(--mf-yellow); flex-shrink: 0; }
.usp-text { font-size: .95rem; line-height: 1.3; color: rgba(255, 255, 255, .92); }

/* ---------- sekce ---------- */
.section { padding: 3.5rem 0; }
@media (min-width: 992px) { .section { padding: 5rem 0; } }
.section-alt { background: var(--mf-cream); }
.section-kicker { color: var(--mf-blue); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .4rem; }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-bottom: 1.25rem; }

/* obsah z editoru administrace */
.content { font-size: 1.05rem; line-height: 1.7; }
.content h2, .content h3, .content h4 { margin-top: 1.75rem; margin-bottom: .75rem; font-size: 1.25rem; }
.content h3:first-child, .content h4:first-child { margin-top: 0; }
.content ul { padding-left: 0; list-style: none; }
.content ul li { position: relative; padding-left: 1.75rem; margin-bottom: .35rem; }
.content ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .8rem; border-radius: 3px; background: var(--mf-yellow); box-shadow: inset 0 0 0 2px var(--mf-yellow-dark); }
.content strong { color: var(--mf-navy); }
.content a { word-break: break-word; }
.content-lists p > strong:only-child { display: block; margin-top: 1.5rem; font-size: 1.1rem; }
@media (min-width: 768px) { .content-lists ul { columns: 2; column-gap: 2rem; } .content-lists ul li { break-inside: avoid; } }
.contact-content p { margin-bottom: .4rem; }

.about-photo { position: relative; max-width: 420px; margin-inline: auto; }
.about-photo img { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(43, 29, 20, .25); }
.about-photo::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 4px solid var(--mf-yellow); border-radius: var(--radius); z-index: -1; }
@media (max-width: 575.98px) { .about-photo::before { inset: .75rem -.5rem -.75rem .75rem; } .about-badge { left: .5rem; } }
.about-badge { position: absolute; left: -.75rem; bottom: 1.5rem; background: var(--mf-navy); color: #fff; padding: .9rem 1.2rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(11, 31, 77, .35); line-height: 1.2; }
.about-badge strong { display: block; color: var(--mf-yellow); font-size: 1.5rem; }
.about-badge span { font-size: .9rem; }

/* ---------- karty referencí ---------- */
.ref-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mf-wood-2); color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(43, 29, 20, .12); }
.ref-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ref-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(20, 12, 6, .85) 100%); }
.ref-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1rem 1.25rem; display: flex; flex-direction: column; }
.ref-card-title { font-weight: 700; font-size: 1.15rem; }
.ref-card-meta { font-size: .875rem; color: rgba(255, 255, 255, .8); }
.ref-card-meta .icon { color: var(--mf-yellow); }
.ref-card:hover img, .ref-card:focus img { transform: scale(1.06); }
.ref-card:hover, .ref-card:focus { color: #fff; }
.ref-card:focus-visible { outline: 3px solid var(--mf-yellow); outline-offset: 3px; }

/* ---------- postup ---------- */
.step { height: 100%; background: #fff; border-radius: var(--radius); padding: 1.75rem 1.5rem; box-shadow: 0 6px 24px rgba(43, 29, 20, .08); border-top: 4px solid var(--mf-yellow); }
.step-num { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--mf-navy); color: var(--mf-yellow); font-weight: 800; margin-bottom: 1rem; }
.step p { margin-bottom: 0; color: var(--mf-muted); }

/* ---------- výzva ---------- */
.cta-band { background: var(--mf-wood) url("/assets/img/hero.webp") center / cover no-repeat; position: relative; color: #fff; padding: 4rem 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(20, 12, 6, .82); }
.cta-band .container { position: relative; }
.cta-motto { color: var(--mf-yellow); font-weight: 800; font-size: 1.25rem; font-style: italic; margin-bottom: .5rem; }
.cta-title { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.cta-lead { color: rgba(255, 255, 255, .85); font-size: 1.1rem; margin-bottom: 1.75rem; }

/* ---------- hlavička podstránek ---------- */
.page-header { background: var(--mf-wood) linear-gradient(120deg, var(--mf-wood) 0%, var(--mf-wood-2) 60%, #4a3322 100%); color: #fff; padding: 2.25rem 0 2.5rem; position: relative; overflow: hidden; }
.page-header::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 18px solid rgba(255, 212, 0, .12); }
.page-title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.75rem); font-weight: 800; margin-bottom: .5rem; }
.page-lead { color: rgba(255, 255, 255, .85); font-size: 1.1rem; max-width: 46em; margin-bottom: 0; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .75); font-size: .875rem; margin-bottom: .75rem; }
.breadcrumb a { color: var(--mf-yellow); text-decoration: none; }

.article-photo { float: right; margin: 0 0 1rem 1.5rem; max-width: 45%; }
.article-photo img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(43, 29, 20, .2); }
@media (max-width: 575.98px) { .article-photo { float: none; display: block; max-width: 100%; margin: 0 0 1.25rem; } }

.side-card { background: var(--mf-cream); border-radius: var(--radius); padding: 1.75rem; top: 110px; border-left: 5px solid var(--mf-yellow); }
.side-phone { font-size: 1.35rem; font-weight: 800; color: var(--mf-navy); text-decoration: none; }

/* ---------- galerie ---------- */
.photo-link { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #eee; }
.photo-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-link:hover img { transform: scale(1.05); }
.photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .6rem .45rem; font-size: .8rem; line-height: 1.25; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75)); }
.gallery-intro { max-width: 52rem; }
.docs a { display: inline-flex; gap: .5rem; align-items: center; padding: .4rem 0; }

/* ---------- partneři ---------- */
.partner-card { display: flex; flex-direction: column; height: 100%; padding: 1.5rem; border-radius: var(--radius); background: #fff; box-shadow: 0 6px 24px rgba(43, 29, 20, .08); color: var(--mf-text); text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.partner-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(43, 29, 20, .14); color: var(--mf-text); }
.partner-logo { display: flex; align-items: center; justify-content: center; height: 140px; margin-bottom: 1rem; background: var(--mf-cream); border-radius: 10px; padding: .75rem; }
.partner-logo img { max-height: 100%; width: auto; object-fit: contain; }
.partner-initial { font-size: 3rem; font-weight: 800; color: var(--mf-navy); }
.partner-name { font-weight: 700; font-size: 1.1rem; color: var(--mf-navy); margin-bottom: .35rem; }
.partner-text { font-size: .95rem; color: var(--mf-muted); flex-grow: 1; }
.partner-url { margin-top: .75rem; font-size: .875rem; color: var(--mf-blue); font-weight: 600; }

/* ---------- kontakt ---------- */
.quick-card { display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.25rem; border-radius: var(--radius); background: var(--mf-navy); color: #fff; text-decoration: none; transition: background .2s; }
.quick-card:hover { background: var(--mf-blue); color: #fff; }
.quick-icon { width: 2.4rem; height: 2.4rem; padding: .5rem; border-radius: 50%; background: var(--mf-yellow); color: var(--mf-navy); flex-shrink: 0; }
.quick-label { display: block; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.quick-card strong { font-size: 1.05rem; word-break: break-word; }
.hours th { font-weight: 600; width: 6rem; }
.form-card { background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 10px 40px rgba(43, 29, 20, .12); border-top: 5px solid var(--mf-yellow); scroll-margin-top: 110px; }
@media (min-width: 992px) { .form-card { padding: 2.25rem; } }
.form-control { border-radius: 10px; padding: .7rem .9rem; }
.form-control:focus, .form-check-input:focus { border-color: var(--mf-blue); box-shadow: 0 0 0 .2rem rgba(30, 86, 166, .18); }
.form-check-input:checked { background-color: var(--mf-blue); border-color: var(--mf-blue); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- patička ---------- */
.site-footer { background: var(--mf-wood); color: rgba(255, 255, 255, .78); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--mf-yellow); }
.site-footer .icon { color: var(--mf-yellow); }
.site-footer hr { border-color: rgba(255, 255, 255, .15); opacity: 1; }
.footer-logo { background: #fff; padding: .5rem .75rem; border-radius: 10px; height: auto; }
.footer-title { color: var(--mf-yellow); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .4rem; }

/* ---------- mobilní lišta ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; box-shadow: 0 -4px 20px rgba(0, 0, 0, .2); padding-bottom: env(safe-area-inset-bottom); background: var(--mf-navy); }
.mobile-cta a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem .5rem; font-weight: 700; text-decoration: none; }
.mobile-cta-call { background: var(--mf-yellow); color: var(--mf-navy); }
.mobile-cta-form { background: var(--mf-navy); color: #fff; }
@media (max-width: 991.98px) { body { padding-bottom: calc(3.4rem + env(safe-area-inset-bottom)); } }

/* ---------- lightbox ---------- */
#lightbox .modal-content { box-shadow: none; }
.lightbox-img { max-height: 82vh; width: auto; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 2rem; line-height: 1; }
.lightbox-nav:hover { background: var(--mf-yellow); color: var(--mf-navy); }
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }
.modal-backdrop.show { opacity: .9; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
