/* ==========================================================================
   b-content.css – patička, blog, kontakty (podle brooksrunning.com/en_us)
   Využívá tokeny a třídy z b-base.css.
   ========================================================================== */

/* ==========================================================================
   PATIČKA
   ========================================================================== */
.b-footer { margin-top: 80px; }

/* modrý pruh Run Happy */
.b-runhappy { background: var(--b-blue); padding: 32px var(--b-gutter); }
.b-runhappy__inner { display: flex; align-items: center; justify-content: center; max-width: 1440px; margin: 0 auto; }
.b-runhappy__logo { display: block; width: auto; max-width: 100%; max-height: 74px; }

/* bílá patička */
.b-footer__main { padding-top: 56px; padding-bottom: 0; }

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 40px 96px;
    align-items: start;
}
.footer-grid > * { min-width: 0; }

/* ---- newsletter ---- */
.footer-news__title {
    margin: 0 0 8px;
    font-size: 1rem; font-weight: 500; font-stretch: 125%;
    line-height: 1.25; letter-spacing: 0; text-transform: uppercase;
}
.footer-news__lead { margin: 0 0 16px; font-size: .875rem; line-height: 20px; color: var(--b-ink); }
.footer-news__form { margin: 0; }

.footer-news__field { display: flex; align-items: stretch; height: 40px; }
.footer-news__input {
    flex: 1 1 auto; min-width: 0; height: 100%;
    padding: 0 14px;
    border: 1px solid var(--b-field); border-right: 0; border-radius: 0;
    background: #fff; color: var(--b-ink);
    font-family: var(--b-font); font-size: .875rem; text-transform: none;
    box-shadow: none; outline: 0;
}
.footer-news__input::placeholder { color: var(--b-alt); }
.footer-news__input:focus { border-color: var(--b-blue); box-shadow: inset 0 0 0 1px var(--b-blue); }

.footer-news__btnwrap { display: flex; flex: none; }
.footer-news__btn {
    height: 100%; margin: 0; padding: 0 26px;
    border: 1px solid var(--b-ink); border-radius: 0;
    background: var(--b-ink); color: #fff;
    font-family: var(--b-font); font-size: .875rem; font-weight: 700; line-height: 1;
    letter-spacing: .64px; text-transform: uppercase; white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease-in-out, color .2s ease-in-out;
}
.footer-news__btn:hover,
.footer-news__btn:focus-visible { background: #fff; color: var(--b-ink); }
.footer-news__btn:focus-visible { outline: 2px solid var(--b-blue); outline-offset: 2px; }
.footer-news__btn:disabled { opacity: .5; cursor: progress; }

.footer-news__consent {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 14px 0 0;
    font-size: .75rem; font-weight: 400; line-height: 16px; color: var(--b-ink);
    cursor: pointer;
}
.footer-news__consent input {
    flex: none; width: 18px; height: 18px; margin: 0;
    accent-color: var(--b-ink); cursor: pointer;
}
.footer-news__consent a { text-decoration: underline; text-underline-offset: 3px; }

.footer-news__msg { min-height: 20px; margin: 10px 0 0; font-size: .75rem; font-weight: 500; line-height: 16px; }
.footer-news__msg.is-ok { color: #1f7a3e; }
.footer-news__msg.is-error { color: var(--b-red); }
.footer-news__form.is-busy .footer-news__field { opacity: .6; }
.footer-news__form.is-done .footer-news__field,
.footer-news__form.is-done .footer-news__consent { opacity: .5; }

/* ---- sloupce odkazů (menu, kontakt, sociální sítě) ---- */
.footer-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 32px 32px;
    text-align: left;
}
.footer-col { min-width: 0; }

.footer-menu .menu-parent {
    margin: 0 0 20px;
    font-size: 1rem; font-weight: 500; font-stretch: 125%;
    line-height: 1.25; letter-spacing: 0; text-transform: uppercase;
}

.footer-menu .menu-children { margin: 0; padding: 0; list-style: none; font-size: .875rem; line-height: 20px; }
.footer-menu .menu-children > a { display: block; padding: 5px 0; color: var(--b-ink); }
.footer-menu .menu-children > a:hover,
.footer-menu .menu-children a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* kontakt a sociální sítě = prosté řádky s ikonou */
.footer-social { margin: 0; padding: 0; list-style: none; }
.footer-social > li { margin: 0; padding: 0; }
.footer-social__item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 5px 0;
    color: var(--b-ink); font-size: .875rem; font-weight: 400; line-height: 20px;
    text-decoration: none; cursor: pointer;
}
.footer-social__item:hover .footer-social__name,
.footer-social__item:focus-visible .footer-social__name { text-decoration: underline; text-underline-offset: 3px; }
.footer-social__item:focus-visible { outline: 2px solid var(--b-blue); outline-offset: 2px; }
.footer-social__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: var(--b-ink); }
.footer-social__icon svg { width: 18px; height: 18px; fill: currentColor; }
.footer-social__icon svg.is-stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.footer-social__name { min-width: 0; overflow-wrap: anywhere; }

.footer-extra:empty { display: none; }

/* spodní řádek */
.footer-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
    margin-top: 48px; padding: 20px 0 32px;
    border-top: 1px solid var(--b-line);
    font-size: .75rem; line-height: 16px;
}
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom__copy { color: var(--b-alt); }

@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-news { max-width: 460px; }
}
@media (max-width: 575px) {
    .b-footer { margin-top: 56px; }
    .b-runhappy { padding: 24px var(--b-gutter); }
    .b-runhappy__logo { max-height: 56px; }
    .b-footer__main { padding-top: 40px; }
    .footer-menu { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 32px; }
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.brooks-blog { padding-bottom: 24px; }

.blog-intro { padding: 40px 0 28px; }
.blog-intro h1 { margin: 0 0 8px; }
.blog-intro p { margin: 0; color: var(--b-alt); }

/* kategorie */
.blog-category-nav { margin: 0 0 32px; border-bottom: 1px solid var(--b-line); }
.blog-category-list { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; }
.blog-category-list a {
    display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
    border: 1px solid var(--b-line); background: #fff; color: var(--b-ink);
    font-size: .875rem; font-weight: 500; text-decoration: none;
}
.blog-category-list a:hover { border-color: var(--b-ink); }
.blog-category-list a.active { border: 2px solid var(--b-ink); padding: 0 15px; font-weight: 700; }

.blog-category { margin: 0 0 8px; color: var(--b-alt); font-size: .75rem; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; }
.brooks-blog time, .blog-detail-meta time { color: var(--b-alt); font-size: .75rem; line-height: 16px; }

/* obrázky (čtvercový/3:2 podklad) */
.blog-image-placeholder {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: var(--b-tile); color: var(--b-alt);
    font-size: 1rem; font-weight: 500; font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase;
}

/* featured článek */
.blog-featured { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0; margin: 0 0 56px; background: var(--b-cream); }
.blog-featured-image { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--b-tile); }
.blog-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-featured-content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px; }
.blog-featured-content h2 { margin: 0 0 12px; font-size: 1.5rem; }
.blog-featured-content h2 a { color: var(--b-ink); }
.blog-featured-content h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-featured-content .blog-teaser { margin: 0 0 16px; }
.blog-featured-content time { margin-bottom: 20px; }
.blog-featured-cta {
    display: inline-block; padding: 0 0 2px;
    border-bottom: 3px solid var(--b-ink);
    font-size: .875rem; font-weight: 700; letter-spacing: 1.2px; line-height: 1.3; text-transform: uppercase;
}
.blog-featured-cta i { display: none; }

/* nadpis sekce */
.blog-section-heading { margin: 0 0 24px; }
.blog-section-heading span { display: block; margin: 0 0 4px; color: var(--b-alt); font-size: .75rem; font-weight: 500; font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; }
.blog-section-heading h2 { margin: 0; font-size: 1.5rem; }

/* karty */
.blog-card { display: flex; flex-direction: column; background: #fff; }
.blog-card-image { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--b-tile); }
.blog-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card-content { padding: 16px 0 0; }
.blog-card-content h3 { margin: 0 0 8px; font-size: 1.125rem; line-height: 1.3; }
.blog-card-content h3 a { color: var(--b-ink); }
.blog-card:hover .blog-card-content h3 a,
.blog-card-content h3 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.blog-teaser { font-size: .875rem; line-height: 20px; color: var(--b-ink); }
.blog-card-content .blog-teaser { margin: 0 0 10px; }
.blog-teaser p:last-child { margin-bottom: 0; }

.blog-empty { padding: 48px 0; text-align: center; color: var(--b-alt); }

/* stránkování */
.blog-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 48px 0 0; font-size: .875rem; }
.blog-pagination a {
    display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 40px; padding: 0 20px;
    border: 2px solid var(--b-ink); background: #fff; color: var(--b-ink);
    font-weight: 700; letter-spacing: .64px; text-transform: uppercase;
    transition: box-shadow .2s ease-in-out;
}
.blog-pagination a:hover { box-shadow: 6px 6px 0 -3px #fff, 6px 6px 0 0 var(--b-ink); }

/* detail článku */
.blog-detail-hero { padding: 40px 0 24px; text-align: left; }
.blog-detail-hero .container-xl, .blog-detail-image, .blog-article-content-wrap { max-width: 960px; }
.blog-back-link { display: inline-block; margin: 0 0 24px; font-size: .875rem; color: var(--b-ink); }
.blog-back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 12px; }
.blog-detail-meta .blog-category { margin: 0; }
.blog-detail-hero h1 { margin: 0 0 16px; font-size: 2rem; }
.blog-detail-teaser { font-size: 1.125rem; line-height: 28px; color: var(--b-ink); }
.blog-detail-teaser p:last-child { margin-bottom: 0; }

.blog-detail-image { margin-bottom: 32px; }
.blog-detail-image img { display: block; width: 100%; height: auto; background: var(--b-tile); }

.blog-detail-page .container-xl { max-width: 960px; padding-left: var(--b-gutter); padding-right: var(--b-gutter); }
.blog-article-content { padding-bottom: 40px; font-size: 1rem; line-height: 26px; }
.blog-article-content h2 { margin: 40px 0 16px; font-size: 1.5rem; }
.blog-article-content h3 { margin: 32px 0 12px; font-size: 1.25rem; }
.blog-article-content p, .blog-article-content ul, .blog-article-content ol { margin: 0 0 20px; }
.blog-article-content a { text-decoration: underline; text-underline-offset: 3px; }
.blog-article-content img, .blog-article-content iframe, .blog-article-content video { max-width: 100%; height: auto; }
.blog-article-content blockquote { margin: 28px 0; padding: 0 0 0 20px; border-left: 3px solid var(--b-ink); font-size: 1.125rem; }
.blog-detail-cta { margin: 32px 0 0; }
.blog-button { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; height: 50px; padding: 0 20px; background: var(--b-ink); color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .64px; text-transform: uppercase; text-decoration: none; transition: box-shadow .2s ease-in-out; }
.blog-article-content a.blog-button { text-decoration: none; }
.blog-button:hover { color: #fff; box-shadow: 6px 6px 0 -3px #fff, 6px 6px 0 0 var(--b-ink); }

.blog-related { margin-top: 24px; padding: 48px 0; background: var(--b-cream); }

/* starší výpisy (kalendář, novinky) */
.home-items { display: flex; flex-wrap: wrap; gap: 24px 16px; }
.home-item { flex: 1 1 280px; min-width: 0; }
.home-item .image-container img, .novinky-akce-item img { display: block; width: 100%; height: auto; background: var(--b-tile); }
.home-item h3 { margin: 8px 0 4px; font-size: 1.125rem; }
.home-item .date { display: block; margin-bottom: 8px; color: var(--b-alt); font-size: .75rem; }
.home-item a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.see-all, .see-more { margin-top: 16px; }

@media (max-width: 991px) {
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured-content { padding: 24px var(--b-gutter) 32px; }
}
@media (max-width: 767px) {
    .blog-intro { padding: 28px 0 20px; }
    .blog-detail-hero h1 { font-size: 1.5rem; }
    .blog-section-heading h2 { font-size: 1.25rem; }
    .blog-pagination a { min-width: 0; padding: 0 14px; }
}

/* ==========================================================================
   KONTAKTY
   ========================================================================== */
.ct-page { padding: 40px 0 24px; }

.ct-hero { max-width: 720px; margin: 0 0 40px; }
.ct-eyebrow { display: block; margin: 0 0 8px; color: var(--b-alt); font-size: .75rem; font-weight: 500; font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; }
.ct-title { margin: 0 0 12px; font-size: 2rem; }
.ct-lead { margin: 0 0 20px; }
.ct-country { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .875rem; }
.ct-flag { flex: none; width: 20px; height: 15px; }
.ct-link { padding: 0; border: 0; background: none; color: var(--b-ink); font: inherit; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ct-link--plain { display: inline-block; }
.ct-link:hover { color: var(--b-blue); }

/* karty telefon / e-mail / adresa */
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 48px; }
.ct-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 28px 24px;
    border: 1px solid var(--b-line); background: #fff; color: var(--b-ink); text-decoration: none;
}
a.ct-card { cursor: pointer; }
a.ct-card:hover { border-color: var(--b-ink); color: var(--b-ink); }
.ct-card-icon { display: inline-flex; width: 28px; height: 28px; margin-bottom: 12px; color: var(--b-ink); }
.ct-card-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ct-card-label { color: var(--b-alt); font-size: .75rem; font-weight: 500; font-stretch: 125%; letter-spacing: .04em; text-transform: uppercase; }
.ct-card-value { font-size: 1.25rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ct-card-value--mail { font-size: 1.125rem; }
.ct-card-value--address { font-size: 1rem; font-weight: 400; line-height: 24px; margin: 0; }
.ct-card-value--address strong { font-weight: 700; }
.ct-card-cta { margin-top: 12px; padding-bottom: 2px; border-bottom: 3px solid var(--b-ink); font-size: .875rem; font-weight: 700; letter-spacing: 1.2px; line-height: 1.3; text-transform: uppercase; }
a.ct-card:hover .ct-card-cta { border-bottom-color: var(--b-blue); }

/* mapa */
.ct-map { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0; margin: 0 0 56px; background: var(--b-panel); }
.ct-map-frame { min-height: 360px; background: var(--b-tile); }
.ct-map-frame iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.ct-map-card { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
.ct-map-title { margin: 0 0 16px; font-size: 1.25rem; }
.ct-map-card address { margin: 0 0 24px; font-size: 1rem; line-height: 24px; }
.ct-map-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ct-btn svg { width: 16px; height: 16px; margin-left: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* další země */
.ct-others { margin: 0 0 56px; }
.ct-section-title { margin: 0 0 20px; font-size: 1.5rem; }
.ct-others-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ct-country-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--b-line); font-size: .875rem; overflow-wrap: anywhere; }
.ct-country-card.is-current { border: 2px solid var(--b-ink); padding: 19px; }
.ct-country-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 1rem; }
.ct-country-card a:not(.btn) { color: var(--b-ink); }
.ct-country-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ct-badge { padding: 2px 8px; background: var(--b-ink); color: #fff; font-size: .75rem; font-weight: 700; line-height: 16px; }

/* firemní údaje */
.ct-company { display: flex; align-items: flex-start; gap: 20px; padding: 28px 0 0; border-top: 1px solid var(--b-line); font-size: .875rem; line-height: 20px; }
.ct-company p { margin: 0 0 4px; }
.ct-company-mark { flex: none; width: 32px; height: 32px; color: var(--b-ink); }
.ct-company-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.ct-company-reg { color: var(--b-alt); }

@media (max-width: 991px) {
    .ct-grid { grid-template-columns: 1fr; }
    .ct-map { grid-template-columns: 1fr; }
    .ct-map-frame, .ct-map-frame iframe { min-height: 280px; }
}
@media (max-width: 575px) {
    .ct-page { padding: 28px 0 16px; }
    .ct-title { font-size: 1.5rem; }
    .ct-map-card { padding: 24px var(--b-gutter); }
}
