/* Fakt Exhibitions theme – main stylesheet. Written from scratch (Nov 2026). */

/* ---------- Fonts (self-hosted: Orbitron variable 400–900, Poppins) ---------- */
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/orbitron-variable.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--fk-red: #ef3f41;
	--fk-red-dark: #d62f31;
	--fk-navy: #1d345f;
	--fk-navy-dark: #142648;
	--fk-ink: #030303;
	--fk-text: #333333;
	--fk-muted: #6b7280;
	--fk-bg: #ffffff;
	--fk-line: #e7e7e7;
	--fk-max: 1240px;
	--fk-font: "Poppins", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fk-display: "Orbitron", "Poppins", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--fk-font); font-size: 16px; line-height: 1.6; color: var(--fk-text); background: var(--fk-bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--fk-navy); text-decoration: none; }
a:hover { color: var(--fk-red); }
h1, h2, h3, h4, h5, h6 { color: var(--fk-ink); font-weight: 600; line-height: 1.25; margin: 0 0 16px; }
p { margin: 0 0 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fk-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #fff; padding: 8px 14px; }
.fk-skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--fk-red); outline-offset: 2px; }
.fk-container { width: 100%; max-width: var(--fk-max); margin: 0 auto; padding: 0 20px; }
.fk-ico { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }

/* ---------- Header ---------- */
.fk-header { background: #fff; position: sticky; top: 0; z-index: 60; border-bottom: 2px solid var(--fk-red); }
.admin-bar .fk-header { top: 32px; }
.fk-header__inner { display: flex; align-items: center; gap: 30px; min-height: 96px; max-width: 1360px; }
.fk-header__brand .custom-logo-link { display: block; }
.fk-header__brand img { display: block; max-height: 74px; width: auto; }
.fk-header__name { font: 800 24px var(--fk-display); color: var(--fk-navy); }
.fk-nav { margin-left: auto; }
.fk-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.fk-menu > li > a { display: block; padding: 10px 14px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6b7a90; }
.fk-menu > li > a:hover, .fk-menu > li.current-menu-item > a, .fk-menu > li.current_page_item > a { color: var(--fk-red); }
.fk-header__cta { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 30px; border-radius: 30px; background: #000; color: #fff; font: 800 13px var(--fk-display); letter-spacing: .06em; text-transform: uppercase; transform: rotate(-2deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .18); transition: background .2s; }
.fk-header__cta:hover { background: var(--fk-red); color: #fff; }
.fk-header__cta--mobile { display: none; }
.fk-menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.fk-menu-toggle i { display: block; width: 26px; height: 2px; background: var(--fk-ink); margin: 5px 0; transition: .2s; }

/* Social rail (right edge) */
.fk-rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; align-items: center; }
.fk-rail::before, .fk-rail::after { content: ""; width: 2px; height: 34px; background: var(--fk-red); margin: 6px 0; }
.fk-rail__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fk-rail__list a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #fff; color: var(--fk-red); border-radius: 4px 0 0 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.fk-rail__list a:hover { background: var(--fk-red); color: #fff; }
.fk-rail .fk-ico { width: 16px; height: 16px; }

/* ---------- Content ---------- */
.fk-content { padding: 60px 0 80px; }
.fk-content--elementor { padding: 0; }
.fk-prose { max-width: 900px; }
.fk-banner { background: linear-gradient(rgba(29, 52, 95, .92), rgba(29, 52, 95, .92)), url("../img/pattern-topo-lines.png") center / cover no-repeat; color: #fff; text-align: center; padding: 64px 0; }
.fk-banner__title { color: #fff; font: 800 34px/1.25 var(--fk-display); text-transform: uppercase; letter-spacing: .03em; margin: 0; }
.fk-banner__sub { margin: 12px auto 0; max-width: 760px; opacity: .85; }
.fk-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 8px; background: var(--fk-red); color: #fff; font-weight: 600; border: 2px solid var(--fk-red); }
.fk-btn:hover { background: var(--fk-red-dark); color: #fff; }
.fk-btn--outline { background: transparent; color: var(--fk-red); }
.fk-404 { text-align: center; }
.fk-back { margin-top: 30px; }
.fk-entry { border-bottom: 1px solid var(--fk-line); padding-bottom: 20px; margin-bottom: 26px; }

/* Exhibitions archive */
.fk-brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fk-brand-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 16px; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .08); text-align: center; transition: transform .2s; }
.fk-brand-tile:hover { transform: translateY(-4px); }
.fk-brand-tile__logo { height: 120px; display: flex; align-items: center; justify-content: center; }
.fk-brand-tile__logo img { max-height: 120px; width: auto; object-fit: contain; }
.fk-brand-tile__name { font-weight: 600; color: var(--fk-ink); }
.fk-brand-tile__date { font-size: 13px; color: var(--fk-red); font-weight: 600; }

/* ---------- Footer ---------- */
.fk-footer { position: relative; background: #f0ebeb url("../img/footer-bg.png") right bottom / auto 100% no-repeat; border-top: 2px solid var(--fk-red); color: #111; }
.fk-footer__cols { display: grid; grid-template-columns: 1.05fr 1.2fr .8fr; gap: 0; padding-top: 80px; padding-bottom: 70px; max-width: 1300px; }
.fk-footer__col { padding: 0 26px; }
.fk-footer__col + .fk-footer__col { border-left: 1px solid rgba(0, 0, 0, .08); }
.fk-footer__logo img { max-height: 120px; width: auto; display: block; margin-bottom: 22px; }
.fk-footer__about p { font-size: 15px; line-height: 1.55; max-width: 380px; }
.fk-footer__title { display: flex; align-items: center; gap: 12px; color: var(--fk-red); font-weight: 500; font-size: 21px; text-transform: uppercase; margin-bottom: 24px; }
.fk-footer__title .fk-ico { width: 22px; height: 22px; }
.fk-footer__offices h4 { font-size: 17px; font-weight: 600; margin: 0 0 12px; color: #030303; }
.fk-footer__offices p { font-size: 15px; line-height: 1.6; margin-bottom: 18px; max-width: 400px; }
.fk-footer__contact { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.fk-footer__phones, .fk-footer__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.fk-footer__phones a, .fk-footer__mail a { color: #111; font-weight: 600; font-size: 14px; }
.fk-footer__phones a + a { border-left: 2px solid #d4d4d4; padding-left: 24px; }
.fk-footer__badge { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--fk-red); color: var(--fk-red); display: flex; align-items: center; justify-content: center; }
.fk-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.fk-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--fk-red); color: #fff; display: flex; align-items: center; justify-content: center; }
.fk-social a:hover { background: var(--fk-navy); color: #fff; }
.fk-footer__bottom { background: var(--fk-navy); color: #fff; text-align: center; padding: 8px 20px; font-size: 15px; }
.fk-footer__bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.fk-menu > li > a { padding: 10px 9px; font-size: 12px; }
	.fk-header__cta { padding: 0 20px; }
}
@media (max-width: 1024px) {
	.fk-header__inner { min-height: 76px; }
	.fk-header__brand img { max-height: 58px; }
	.fk-menu-toggle { display: block; }
	.fk-header > .fk-container > .fk-header__cta { display: none; }
	.fk-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .08); display: none; padding: 10px 20px 20px; margin: 0; }
	.fk-nav.is-open { display: block; }
	.fk-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.fk-menu > li { border-top: 1px solid #f0f0f0; }
	.fk-menu > li > a { padding: 14px 4px; font-size: 14px; }
	.fk-header__cta--mobile { display: inline-flex; margin-top: 14px; transform: none; }
	.fk-menu-toggle[aria-expanded="true"] i:nth-child(2) { transform: translateY(7px) rotate(45deg); }
	.fk-menu-toggle[aria-expanded="true"] i:nth-child(3) { opacity: 0; }
	.fk-menu-toggle[aria-expanded="true"] i:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
	.fk-footer__cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
	.fk-footer__follow { grid-column: 1 / -1; border-left: 0 !important; }
	.fk-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
	.admin-bar .fk-header { top: 0; }
}
@media (max-width: 767px) {
	.fk-rail { display: none; }
	.fk-footer__cols { grid-template-columns: 1fr; padding-top: 50px; }
	.fk-footer__col + .fk-footer__col { border-left: 0; border-top: 1px solid rgba(0, 0, 0, .08); padding-top: 30px; }
	.fk-banner__title { font-size: 24px; }
	.fk-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Match the old site's header and footer (Nov 2026 pass) ---------- */
.fk-header__inner { min-height: 118px; }
.fk-header__brand img { max-height: 84px; }
.fk-nav { margin: 0 auto; }
.fk-footer { background: #efebeb; overflow: hidden; }
.fk-footer::before { content: ""; position: absolute; inset: 0; background: url("../img/footer-bg.png") center top / 100% auto no-repeat; opacity: .13; pointer-events: none; }
.fk-footer > * { position: relative; }
.fk-footer__cols { grid-template-columns: 1fr 1.45fr .95fr; padding-top: 90px; padding-bottom: 60px; }
.fk-footer__phones { flex-wrap: nowrap; }
.fk-footer__phones a { white-space: nowrap; }
@media (max-width: 1024px) {
	.fk-header__inner { min-height: 76px; }
	.fk-header__brand img { max-height: 58px; }
	.fk-nav { margin: 0; }
	.fk-footer__phones { flex-wrap: wrap; }
}
.fk-footer__cols { max-width: 1340px; padding-top: 110px; padding-bottom: 80px; }
