/* ==========================================================================
   b-base.css – základ nového vzhledu (podle brooksrunning.com/en_us)
   tokeny · typografie · tlačítka · formuláře · Bootstrap přepisy · pomocné třídy
   ========================================================================== */

:root {
    --b-blue: #003789;
    --b-blue-dark: #14295f;
    --b-ink: #0e131f;
    --b-alt: #707070;
    --b-line: #e5e5e5;
    --b-field: #cdcdcd;
    --b-tile: #e5e5e5;
    --b-cream: #f8f5f0;
    --b-teal: #b8dde1;
    --b-panel: #f8f8f8;
    --b-red: #c8102e;
    --b-yellow: #fff200;
    --b-font: "Roboto Flex", "Helvetica Neue", Arial, sans-serif;
    --b-font-cond: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    --b-gutter: 60px;
    --b-header-h: 106px;   /* utility 36 + modrá lišta 70 */
}

@media (max-width: 1199px) { :root { --b-gutter: 40px; } }
@media (max-width: 767px) { :root { --b-gutter: 16px; } }

/* ---------- základ ---------- */
*, *::before, *::after { font-style: normal; }
html { -webkit-text-size-adjust: 100%; }

html, body {
    margin: 0;
    background: #fff;
    color: var(--b-ink);
    font-family: var(--b-font);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    font-stretch: 103%;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
b, strong, th, button, .btn, .b-btn, .nav-link { font-stretch: 100%; }

main { min-height: 60vh; }

a { color: var(--b-ink); text-decoration: none; }
a:hover { color: var(--b-ink); }
main a:not([class]):hover,
.b-link:hover { text-decoration: underline; text-underline-offset: 3px; }

hr { border: 0; height: 1px; background: var(--b-line); opacity: 1; margin: 1rem 0; }
img { max-width: 100%; }
::placeholder { opacity: 1; }

.container-xxl { max-width: none; padding-left: var(--b-gutter); padding-right: var(--b-gutter); }

/* nenačtený / chybný obrázek: žádná ikona ani alt text */
img:not(.is-loaded) { color: transparent; font-size: 0; }
img.is-failed { visibility: hidden; }

/* ---------- nadpisy ---------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    margin: 0 0 .5em;
    color: var(--b-ink);
    font-family: var(--b-font);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-transform: none;
    text-decoration: none;
}
h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.5rem; }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.125rem; }
h5, .h5, h6, .h6 { font-size: 1rem; }

/* "Extended" nadpis jako na Brooks (GT America Extended 500 uppercase) */
.b-ext {
    font-family: var(--b-font);
    font-size: 1rem;
    font-weight: 500;
    font-stretch: 125%;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
}

.b-small { font-size: .875rem; line-height: 20px; }
.b-xsmall { font-size: .75rem; line-height: 16px; }
.b-alt { color: var(--b-alt); }

/* ---------- tlačítka ---------- */
.b-btn,
.btn.btn-primary,
.btn-primary,
.btn-dark {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 190px; height: 50px; padding: 0 20px;
    border: 0; border-radius: 0;
    background: var(--b-ink); color: #fff;
    font-family: var(--b-font); font-size: 16px; font-weight: 700; line-height: 1;
    letter-spacing: .64px; text-transform: uppercase; text-decoration: none; text-align: center;
    cursor: pointer;
    transition: box-shadow .2s ease-in-out, background-color .2s ease-in-out, color .2s ease-in-out;
}

.b-btn--secondary,
.btn.btn-secondary,
.btn-secondary,
.btn-outline-primary,
.btn-outline-dark {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 190px; height: 50px; padding: 0 20px;
    border: 3px solid var(--b-ink); border-radius: 0;
    background: #fff; color: var(--b-ink);
    font-family: var(--b-font); font-size: 16px; font-weight: 700; line-height: 1;
    letter-spacing: .64px; text-transform: uppercase; text-decoration: none; text-align: center;
    cursor: pointer;
    transition: box-shadow .2s ease-in-out;
}

.b-btn:hover, .b-btn:focus-visible,
.btn.btn-primary:hover, .btn-primary:hover, .btn-primary:focus-visible, .btn-dark:hover,
.b-btn--secondary:hover, .b-btn--secondary:focus-visible,
.btn.btn-secondary:hover, .btn-secondary:hover, .btn-outline-primary:hover, .btn-outline-dark:hover {
    box-shadow: 6px 6px 0 -3px #fff, 6px 6px 0 0 var(--b-ink);
    color: #fff;
}
.b-btn--secondary:hover, .b-btn--secondary:focus-visible,
.btn.btn-secondary:hover, .btn-secondary:hover, .btn-outline-primary:hover, .btn-outline-dark:hover { color: var(--b-ink); background: #fff; }

.b-btn--block { display: flex; width: 100%; max-width: none; }
.b-btn--small { height: 40px; min-width: 0; padding: 0 16px; font-size: 14px; }

/* na tmavém / modrém pozadí */
.b-on-dark .b-btn,
.b-btn--on-dark { background: #fff; color: var(--b-ink); }
.b-on-dark .b-btn:hover,
.b-btn--on-dark:hover { box-shadow: 6px 6px 0 -3px var(--b-blue-dark), 6px 6px 0 0 #fff; color: var(--b-ink); }

.b-btn:disabled, .b-btn.disabled, .btn:disabled, .btn.disabled { opacity: .4; box-shadow: none; cursor: default; pointer-events: none; }

/* textové CTA (tertiary) */
.b-btn--text,
.b-cta {
    display: inline-block; padding: 0 0 2px;
    border: 0; border-bottom: 3px solid currentColor; background: none; color: inherit;
    font-family: var(--b-font); font-size: 14px; font-weight: 700; letter-spacing: 1.2px; line-height: 1.3;
    text-transform: uppercase; text-decoration: none; cursor: pointer;
    transition: border-color .2s ease;
}
.b-btn--text:hover, .b-cta:hover { color: inherit; border-bottom-color: var(--b-teal); text-decoration: none; }

/* ---------- formuláře ---------- */
label, .form-label { font-size: .875rem; font-weight: 500; color: var(--b-ink); margin-bottom: 4px; }

.form-control, .form-select, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], textarea, select {
    font-family: var(--b-font);
}

.form-control, .form-select {
    height: 48px; padding: 0 14px;
    border: 1px solid var(--b-field); border-radius: 0;
    background-color: #fff; color: var(--b-ink);
    font-size: 16px; box-shadow: none;
}
textarea.form-control { height: auto; min-height: 120px; padding: 12px 14px; }
.form-control:focus, .form-select:focus { border-color: var(--b-blue); box-shadow: 0 0 0 1px var(--b-blue); outline: 0; background: #fff; color: var(--b-ink); }
.form-control::placeholder { color: var(--b-alt); }
.form-control.is-invalid, .input-validation-error { border-color: var(--b-red); box-shadow: 0 0 0 1px var(--b-red); }
.invalid-feedback, .field-validation-error, .text-danger { color: var(--b-red) !important; font-size: .8125rem; }

.form-check-input {
    width: 18px; height: 18px; margin-top: 3px;
    border: 1px solid var(--b-ink); border-radius: 0; background-color: #fff; box-shadow: none;
}
.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-input:checked { background-color: var(--b-ink); border-color: var(--b-ink); }
.form-check-input:focus { box-shadow: 0 0 0 1px var(--b-blue); border-color: var(--b-blue); }
.form-check-label { font-size: .875rem; font-weight: 400; }

/* honeypoty (antibot) – musí zůstat mimo obrazovku */
.registration-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }

/* ---------- Bootstrap komponenty ---------- */
.alert { border: 1px solid var(--b-line); border-radius: 0; background: var(--b-cream); color: var(--b-ink); }
.alert-danger { background: #fdecee; border-color: var(--b-red); color: #8a0b20; }
.alert-success { background: #eaf5ee; border-color: #1f7a3e; color: #145a2c; }

.modal-content { border: 0; border-radius: 0; box-shadow: 0 8px 32px rgba(14,19,31,.25); }
.modal-header { border-bottom: 1px solid var(--b-line); padding: 20px 24px; }
.modal-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.005em; text-transform: none; }
.modal-footer { border-top: 1px solid var(--b-line); }
.modal-backdrop.show { opacity: .5; background: var(--b-ink); }
.btn-close { border-radius: 0; opacity: 1; }

.dropdown-menu { border: 1px solid var(--b-line); border-radius: 0; box-shadow: 0 4px 12px rgba(14,19,31,.12); padding: 8px 0; }
.dropdown-item { font-size: .875rem; padding: 10px 16px; color: var(--b-ink); }
.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active { background: var(--b-cream); color: var(--b-ink); }

.breadcrumb { margin: 0; padding: 0; font-size: .875rem; background: none; }
.breadcrumb-item a { color: var(--b-ink); }
.breadcrumb-item.active { color: var(--b-alt); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--b-alt); }

.pagination .page-link { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--b-line); border-radius: 0; background: #fff; color: var(--b-ink); font-size: .875rem; }
.pagination .page-item.active .page-link, .pagination .page-link:hover { background: var(--b-ink); border-color: var(--b-ink); color: #fff; }

.table { --bs-table-bg: transparent; color: var(--b-ink); }
.table > :not(caption) > * > * { border-bottom-color: var(--b-line); }
.card, .list-group-item, .badge, .input-group-text, .nav-link, .nav-tabs .nav-link { border-radius: 0; }
.tooltip-inner { border-radius: 0; font-size: .75rem; }

/* ---------- pomocné třídy používané v markupu ---------- */
.text-blue { color: var(--b-blue); }
.text-green { color: #1f7a3e; }
.text-smaller { font-size: .8125rem; }
.dark-gray-text { color: var(--b-alt); }
.bg-brand { background: var(--b-blue); }
.cursor-pointer { cursor: pointer; }
.li-style-none { list-style: none; }
.no-text-decoration { text-decoration: none; }
.link-gray { color: var(--b-alt); font-size: .875rem; font-weight: 500; text-decoration: none; text-transform: none; }

@media (max-width: 575px) { .hb-xxs-hide { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* zaškrtávátka vždy ostré čtverce (Bootstrap pro [type=checkbox] nastavuje radius .25em) */
.form-check-input[type="checkbox"] { border-radius: 0; }
