/* Brothers Across Borders – theme styles (block styles live in theme.json; this file covers layout details). */

/* Header: 80px white bar, logo left, uppercase nav right, no page title. */
.bab-header { position: relative; z-index: 20; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.bab-header__inner { min-height: 80px; }
.bab-header__logo img { height: 70px; width: auto; }
.bab-nav a { color: #000 !important; text-decoration: none; }
.bab-nav .current-menu-item > a, .bab-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.bab-nav .wp-block-navigation__responsive-container-open { color: #000; }
.bab-nav .wp-block-navigation__responsive-container.is-menu-open a { color: #111 !important; font-size: 18px; }

/* Full-bleed hero (cover block). Height = viewport minus header. */
.bab-hero { min-height: calc(100vh - 80px); margin-top: 0 !important; }
.bab-hero .wp-block-cover__inner-container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.bab-hero__title img { max-width: min(800px, 80vw); height: auto; }
.bab-hero__button { line-height: 0; }
.bab-hero__button img { width: min(330px, 70vw); height: auto; transition: transform .15s ease; }
.bab-hero__button:hover img { transform: scale(1.04); }
.bab-hero__scroll img { width: 190px; height: auto; }

/* Red stamp heading artwork (PNG from the original site) and text fall-back. */
.bab-stamp { margin: 72px auto 48px; text-align: center; }
.bab-stamp img { max-width: min(420px, 80vw); height: auto; }

/* Content rhythm */
.bab-main { padding-bottom: 72px; }
.bab-main > .wp-block-post-content > * + * { margin-block-start: 28px; }
.bab-section { padding-block: 40px; }
.bab-text p { font-weight: 300; }
.bab-text strong { font-weight: 700; }

/* Cast grid: name lines as compact rows, portrait with soft edge */
.bab-cast .wp-block-column { text-align: left; }
.bab-cast h3 { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.5; }
.bab-cast h3 + h3 { margin-top: 0; }
.bab-cast h3:first-of-type { font-size: 20px; margin-top: 18px; }
.bab-cast p { margin-top: 14px; }
.bab-cast img { width: 100%; height: auto; }

/* Video / media trio */
.bab-media-trio .wp-block-column { display: flex; flex-direction: column; gap: 10px; }
.bab-media-trio video, .bab-media-trio img { width: 100%; height: auto; border-radius: 2px; }

/* About-page films (Mux player, three across, stacked on phones) */
.bab-films__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bab-films__item mux-player { display: block; width: 100%; border-radius: 2px; overflow: hidden; background: #000; }
@media (max-width: 781px) { .bab-films__row { grid-template-columns: 1fr; } }

/* Language selector (front page): paper background, black title artwork, round flags */
.bab-selector { min-height: calc(100vh - 80px); }
.bab-selector .wp-block-cover__inner-container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; }
.bab-selector__title img { max-width: min(380px, 70vw); height: auto; }
.bab-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.bab-flags li { margin: 0; }
.bab-flags a { display: block; width: 124px; height: 124px; border-radius: 50%; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .15s ease; }
.bab-flags a:hover, .bab-flags a:focus-visible { transform: scale(1.06); outline: 3px solid #fff; }
.bab-flags img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bab-flags span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Stats page */
.bab-stat { text-align: center; }
.bab-stat__number { font-family: var(--wp--preset--font-family--stencil); font-size: clamp(44px, 8vw, 96px); line-height: 1; color: var(--wp--preset--color--accent); }
.bab-stat__label { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin-top: 8px; }
.bab-quotes .wp-block-quote { background: rgba(255,255,255,.04); padding: 24px 28px; border-radius: 2px; }
.bab-quotes cite { font-family: var(--wp--preset--font-family--montserrat); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--muted); font-style: normal; }

/* Footer */
.bab-footer__logo img { height: 50px; width: auto; background: #fff; padding: 6px 10px; border-radius: 3px; }
.bab-footer__credit { color: var(--wp--preset--color--muted); max-width: 48ch; }
.bab-footer .wp-block-polylang-language-switcher ul, .bab-footer .pll-switcher { display: flex; gap: 14px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* Cookie notice */
.bab-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 20px; background: #fff; color: #111; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: 13px; max-width: 900px; margin: 0 auto; }
.bab-cookie p { margin: 0; }
.bab-cookie a { color: #111; }
.bab-cookie__btn { background: var(--wp--preset--color--accent); color: #fff; border: 0; border-radius: 999px; padding: 10px 26px; font: inherit; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }

@media (max-width: 781px) {
	.bab-header__logo img { height: 48px; }
	.bab-hero, .bab-selector { min-height: calc(100vh - 64px); }
	.bab-flags a { width: 88px; height: 88px; }
}

/* No gap between the header bar and a full-width first block (hero / selector). */
.bab-main > .wp-block-post-content > .alignfull:first-child { margin-top: 0 !important; }
.bab-selector-page .bab-nav { display: none; }

/* Languages with long menu labels: tighter nav so it stays on one line at laptop width. */
.lang-fr .bab-nav, .lang-es .bab-nav, .lang-de .bab-nav, .lang-no .bab-nav, .lang-se .bab-nav { font-size: 12px; letter-spacing: .6px; }
.lang-fr .bab-nav .wp-block-navigation__container, .lang-es .bab-nav .wp-block-navigation__container { gap: 22px; }
@media (max-width: 1100px) { .bab-nav { font-size: 12px; } .bab-nav .wp-block-navigation__container { gap: 20px; } }

/* Footer language switcher: one horizontal row regardless of the block's own layout class. */
.bab-footer .wp-block-polylang-language-switcher ul, .bab-footer ul.pll-switcher { display: flex !important; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.bab-footer .wp-block-polylang-language-switcher li, .bab-footer ul.pll-switcher li { display: inline-block; margin: 0; }
.bab-footer .wp-block-polylang-language-switcher a { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; color: var(--wp--preset--color--muted); }
.bab-footer .wp-block-polylang-language-switcher .current-lang a { color: var(--wp--preset--color--contrast); text-decoration: underline; text-underline-offset: 4px; }
.bab-download .wp-block-file__button { font-size: 15px; padding: 12px 30px; }
.bab-footer .wp-block-polylang-language-switcher, .bab-footer .wp-block-polylang-language-switcher > * { display: flex !important; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.bab-footer .wp-block-polylang-language-switcher * { margin: 0; }
.bab-footer .pll-switcher ul, .bab-footer .pll-switcher.pll-layout-vertical ul { flex-direction: row !important; justify-content: flex-start; }

/* Thank-you page: stats row, year bars, country grid */
.bab-stats__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin: 48px 0 64px; }
.bab-stats__heading { text-align: center; margin: 64px 0 8px; }
.bab-stats__note { text-align: center; color: var(--wp--preset--color--muted); margin: 0 0 32px; }
.bab-years { display: flex; align-items: flex-end; gap: 10px; height: 220px; margin: 24px 0 0; padding: 0 0 28px; list-style: none; position: relative; }
.bab-years li { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.bab-years__bar { display: block; width: 100%; max-width: 72px; height: var(--h); background: var(--wp--preset--color--accent); border-radius: 3px 3px 0 0; position: relative; }
.bab-years__value { position: absolute; bottom: 100%; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .04em; padding-bottom: 4px; color: var(--wp--preset--color--contrast); }
.bab-years__year { position: absolute; top: 100%; font-size: 12px; letter-spacing: .08em; margin-top: 6px; color: var(--wp--preset--color--muted); }
.bab-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 20px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.bab-country { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: rgba(255,255,255,.04); border-radius: 4px; }
.bab-country__rank { width: 22px; font-size: 11px; color: var(--wp--preset--color--muted); text-align: right; }
.bab-country__flag { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.4); flex: none; }
.bab-country__name { font-size: 14px; }
/* Home page thank-you strip */
.bab-thanks { text-align: center; padding: 72px 20px; background: rgba(216,18,27,.9); color: #fff; }
.bab-thanks__title { font-family: var(--wp--preset--font-family--stencil); font-size: clamp(26px, 4vw, 40px); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.bab-thanks__text { max-width: 60ch; margin: 0 auto 22px; font-size: 16px; }
.bab-thanks__link { display: inline-block; border: 2px solid #fff; border-radius: 999px; padding: 12px 32px; color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 600; }
.bab-thanks__link:hover { background: #fff; color: var(--wp--preset--color--accent); }
@media (min-width: 782px) { .bab-stats__row { grid-template-columns: repeat(4, 1fr); } }
.bab-stat__number { word-break: keep-all; }
