/* Fakt Core – styles for the plugin's shortcodes (brands row, events, portfolio, videos, forms). */
.fakt-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.fakt-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.fakt-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 10px 16px; font: 600 13px/1.2 var(--fk-font, Poppins, sans-serif); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: .2s ease; }
.fakt-btn .fakt-i { width: 15px; height: 15px; }
.fakt-btn--dark { background: linear-gradient(135deg, #0b1630, var(--fk-navy, #1d345f)); color: #fff; }
.fakt-btn--dark:hover { filter: brightness(1.15); color: #fff; text-decoration: none; }
.fakt-btn--light { background: #fff; color: #111; border-color: #d9dde5; }
.fakt-btn--light:hover { border-color: var(--fk-navy, #1d345f); text-decoration: none; }
.fakt-btn--sm { padding: 7px 12px; font-size: 12px; }

/* Exhibition brands row (home) */
.fakt-brands { position: relative; padding: 0 8px; }
.fakt-brands__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 30px 6px 34px; }
.fakt-brands__track::-webkit-scrollbar { display: none; }
.fakt-brand { flex: 0 0 290px; scroll-snap-align: start; min-height: 300px; border-radius: 22px; border: 5px solid #d6d6d6; background: linear-gradient(140deg, #1d345f 0%, #7a3553 55%, #ef3f41 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 28px 20px; color: #fff; text-decoration: none; box-shadow: 0 12px 30px rgba(29, 52, 95, .18); transition: transform .25s ease; }
.fakt-brand:hover { transform: translateY(-6px); text-decoration: none; color: #fff; }
.fakt-brand__logo { width: 140px; height: 140px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 14px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); }
.fakt-brand__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.fakt-brand__name { font-family: var(--fk-display, Orbitron, sans-serif); font-weight: 800; font-size: 21px; line-height: 1.25; text-align: center; text-transform: uppercase; letter-spacing: .02em; }
.fakt-brands__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(29, 52, 95, .85); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fakt-brands__nav:hover { background: var(--fk-red, #ef3f41); }
.fakt-brands__nav--prev { left: -6px; } .fakt-brands__nav--next { right: -6px; }

/* Upcoming events */
.fakt-events__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #fff; border: 1px solid #eceef2; border-radius: 14px; padding: 12px 14px; box-shadow: 0 6px 24px rgba(15, 23, 42, .06); margin-bottom: 26px; }
.fakt-events__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: #0f172a; margin-right: auto; }
.fakt-events__control { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e3e6ec; border-radius: 10px; padding: 0 12px; height: 42px; color: #64748b; background: #fff; }
.fakt-events__control select, .fakt-events__control input { border: 0; outline: 0; background: transparent; height: 40px; font: 500 13px var(--fk-font, Poppins, sans-serif); color: #0f172a; min-width: 150px; }
.fakt-events__control--search { flex: 1 1 260px; }
.fakt-events__control--search input { width: 100%; }
.fakt-events__clear { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid #1d345f; border-radius: 10px; background: #fff; color: #0f172a; font: 600 13px var(--fk-font, Poppins, sans-serif); cursor: pointer; }
.fakt-events__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.fakt-event { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.fakt-event:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 23, 42, .12); }
.fakt-event[hidden] { display: none; }
.fakt-event__media { position: relative; display: flex; align-items: center; justify-content: center; height: 150px; background: linear-gradient(180deg, #f8fafc, #eef2f7); padding: 18px; }
.fakt-event__logo { max-height: 112px; width: auto; max-width: 80%; object-fit: contain; }
.fakt-event__badge { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; background: var(--fk-red, #ef3f41); color: #fff; border-radius: 30px; padding: 4px 10px; font: 700 10px/1 var(--fk-font, Poppins, sans-serif); text-transform: uppercase; letter-spacing: .06em; }
.fakt-event__badge .fakt-i { width: 12px; height: 12px; }
.fakt-event__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.fakt-event__title { font: 600 20px/1.3 var(--fk-font, Poppins, sans-serif); margin: 0 0 12px; }
.fakt-event__title a { color: #0f172a; text-decoration: none; }
.fakt-event__row { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; color: #475569; line-height: 1.5; }
.fakt-event__row .fakt-i { color: var(--fk-red, #ef3f41); width: 16px; height: 16px; }
.fakt-event__excerpt { font-size: 13px; color: #64748b; margin: 6px 0 16px; line-height: 1.6; }
.fakt-event__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.fakt-events__none, .fakt-events__empty { text-align: center; color: #64748b; padding: 20px; }
.fakt-cal { position: relative; }
.fakt-cal summary { list-style: none; }
.fakt-cal summary::-webkit-details-marker { display: none; }
.fakt-cal__menu { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; min-width: 210px; background: #fff; border: 1px solid #e3e6ec; border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 23, 42, .14); padding: 6px; }
.fakt-cal__menu a { display: block; padding: 9px 12px; border-radius: 7px; color: #0f172a; font-size: 13px; text-decoration: none; }
.fakt-cal__menu a:hover { background: #f1f5f9; }

/* Portfolio sectors */
.fakt-sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.fakt-sector { --fakt-accent: #1d345f; text-align: left; background: linear-gradient(160deg, #fff 55%, color-mix(in srgb, var(--fakt-accent) 10%, #fff)); border: 0; border-radius: 18px; padding: 26px 24px 22px; box-shadow: 0 14px 34px rgba(15, 23, 42, .12); display: flex; flex-direction: column; gap: 12px; cursor: pointer; font-family: var(--fk-font, Poppins, sans-serif); transition: transform .25s ease, box-shadow .25s ease; min-height: 250px; }
.fakt-sector:hover, .fakt-sector:focus-visible { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(15, 23, 42, .18); }
.fakt-sector__icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--fakt-accent), color-mix(in srgb, var(--fakt-accent) 60%, #000)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 8px 18px color-mix(in srgb, var(--fakt-accent) 40%, transparent); }
.fakt-sector__name { font-size: 22px; font-weight: 600; color: #0f172a; line-height: 1.25; }
.fakt-sector__desc { font-size: 13px; color: #64748b; line-height: 1.6; }
.fakt-sector__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 8px; }
.fakt-sector__count { color: var(--fk-red, #ef3f41); font-size: 12px; font-weight: 600; }
.fakt-sector__more { display: inline-flex; align-items: center; gap: 6px; color: var(--fk-navy, #1d345f); font-size: 13px; font-weight: 600; }
.fakt-dialog { border: 0; border-radius: 18px; padding: 0; width: min(760px, 92vw); max-height: 86vh; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.fakt-dialog::backdrop { background: rgba(10, 18, 36, .6); }
.fakt-dialog__head { position: relative; padding: 26px 60px 18px 28px; background: linear-gradient(135deg, var(--fakt-accent, #1d345f), #0b1630); color: #fff; }
.fakt-dialog__head h3 { color: #fff; margin: 4px 0 6px; font: 600 24px/1.25 var(--fk-font, Poppins, sans-serif); }
.fakt-dialog__head p { margin: 0; opacity: .85; font-size: 14px; }
.fakt-dialog__kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.fakt-dialog__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fakt-dialog__list { list-style: none; margin: 0; padding: 20px 24px 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fakt-dialog__brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; border: 1px solid #eceef2; border-radius: 14px; padding: 16px; }
.fakt-dialog__logo { height: 110px; display: flex; align-items: center; justify-content: center; }
.fakt-dialog__logo img { max-height: 110px; width: auto; max-width: 100%; object-fit: contain; }
.fakt-dialog__name { font-weight: 600; color: #0f172a; }

/* Video testimonials */
.fakt-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; max-width: 900px; margin: 0 auto; }
.fakt-video { margin: 0; text-align: center; }
.fakt-video__play, .fakt-video__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; border: 3px solid #e2e2e2; box-shadow: 0 8px 22px rgba(0, 0, 0, .12); overflow: hidden; background: #111; }
.fakt-video__play { position: relative; padding: 0; cursor: pointer; }
.fakt-video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.fakt-video__play:hover img { opacity: 1; }
.fakt-video__icon { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 12px; background: var(--fk-red, #ef3f41); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.fakt-video__icon::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.fakt-video figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.fakt-video__name { font-weight: 600; font-size: 17px; color: var(--fk-navy, #1d345f); }
.fakt-video__role { font-size: 13px; color: #555; }

/* Forms */
.fakt-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.fakt-field { display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; }
.fakt-field--full { grid-column: 1 / -1; }
.fakt-field > label { font: 600 13px var(--fk-font, Poppins, sans-serif); color: #111; }
.fakt-req { color: var(--fk-red, #ef3f41); }
.fakt-field input[type="text"], .fakt-field input[type="email"], .fakt-field input[type="tel"], .fakt-field select, .fakt-field textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #dfe3ea; border-radius: 8px; background: #fff; font: 14px var(--fk-font, Poppins, sans-serif); color: #111; }
.fakt-field textarea { min-height: 110px; resize: vertical; }
.fakt-field input:focus, .fakt-field select:focus, .fakt-field textarea:focus { outline: none; border-color: var(--fk-navy, #1d345f); box-shadow: 0 0 0 3px rgba(29, 52, 95, .12); }
.fakt-field.has-error input, .fakt-field.has-error select, .fakt-field.has-error textarea, .fakt-field.has-error .fakt-file { border-color: #d63638; }
.fakt-field__error { color: #d63638; font-size: 12px; }
.fakt-file { border: 2px dashed #c9cfda; border-radius: 10px; padding: 22px 16px; text-align: center; background: #fafbfc; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fakt-file input[type="file"] { font: 13px var(--fk-font, Poppins, sans-serif); max-width: 100%; }
.fakt-file__hint { font-size: 12px; color: #6b7280; }
.fakt-file__name { font-size: 13px; color: var(--fk-navy, #1d345f); font-weight: 600; }
.fakt-form__actions { margin-top: 22px; }
.fakt-form__submit { width: 100%; height: 46px; border: 0; border-radius: 8px; background: var(--fk-navy, #1d345f); color: #fff; font: 700 13px var(--fk-font, Poppins, sans-serif); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.fakt-form__submit:hover { background: #142648; }
.fakt-form__notice { border-radius: 8px; padding: 14px 18px; margin-bottom: 18px; }
.fakt-form__notice--error { background: #fff3f3; border: 1px solid #f3c4c4; color: #8a1f1f; }

/* Single exhibition */
.fakt-single { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; background: #fff; border-radius: 18px; padding: 34px; box-shadow: 0 12px 32px rgba(15, 23, 42, .08); }
.fakt-single__logo { display: flex; align-items: center; justify-content: center; min-height: 200px; background: #f6f8fb; border-radius: 14px; padding: 20px; }
.fakt-single__logo img { max-height: 220px; width: auto; object-fit: contain; }
.fakt-single__tagline { font-size: 18px; color: #0f172a; font-weight: 500; margin: 0 0 14px; }
.fakt-single__sectors { color: var(--fk-red, #ef3f41); font-size: 13px; font-weight: 600; margin: 4px 0 18px; }

@media (max-width: 1024px) {
	.fakt-events__grid, .fakt-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.fakt-events__grid, .fakt-sectors, .fakt-videos, .fakt-form__grid, .fakt-dialog__list { grid-template-columns: 1fr; }
	.fakt-events__label { width: 100%; }
	.fakt-events__control { flex: 1 1 100%; }
	.fakt-brand { flex-basis: 250px; min-height: 270px; }
	.fakt-single { grid-template-columns: 1fr; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.fakt-brand, .fakt-event, .fakt-sector { transition: none; }
}
.fakt-sector__icon svg { width: 24px; height: 24px; fill: #fff; }

/* ---------- Match the old site's look (Nov 2026 pass) ---------- */
.fakt-sys { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* Event cards: logo on the left at full height, system-font titles (as on the old site) */
.fakt-event { border-radius: 14px; }
.fakt-event__media { justify-content: flex-start; padding: 0; height: 124px; background: linear-gradient(90deg, #fff 0, #f1f4f8 100%); }
.fakt-event__logo { height: 100%; max-height: none; width: auto; max-width: 58%; object-fit: contain; object-position: left center; }
.fakt-event__title, .fakt-event__row, .fakt-event__excerpt, .fakt-event .fakt-btn, .fakt-events__bar, .fakt-events__bar select, .fakt-events__bar input, .fakt-events__clear { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.fakt-event__title { font-size: 25px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.fakt-event__title a { color: #050505; }
.fakt-event__row { color: #475569; font-size: 13px; }
.fakt-event__row .fakt-i { color: #64748b; }
.fakt-events__grid { gap: 24px; }

/* Portfolio sector cards: larger, glassy, like the old ones */
.fakt-sectors { max-width: 1120px; margin: 0 auto; gap: 28px; }
.fakt-sector { min-height: 368px; padding: 34px 34px 26px; border-radius: 22px; gap: 14px; background: radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--fakt-accent) 18%, transparent), transparent 55%), linear-gradient(160deg, #fff 40%, #f3f6fb); border: 1px solid rgba(255, 255, 255, .7); }
.fakt-sector__icon { width: 62px; height: 62px; border-radius: 16px; margin-bottom: 26px; }
.fakt-sector__name { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 28px; font-weight: 500; }
.fakt-sector__desc { font-size: 14px; line-height: 1.7; }
.fakt-sector__more { font-weight: 700; font-size: 14px; color: #0f172a; }

/* Video testimonials: larger 3:2 frames */
.fakt-videos { max-width: 1000px; gap: 54px 30px; }
.fakt-video__play, .fakt-video__frame { aspect-ratio: 3 / 2; border: 4px solid #e2e2e2; border-radius: 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, .28); }
.fakt-video__name { font-size: 18px; }
.fakt-video__role { font-size: 14px; }

/* Forms: taller fields and more air, like the old Contact Form 7 layout */
.fakt-form__grid { gap: 28px 20px; }
.fakt-field { gap: 12px; }
.fakt-field > label { font-size: 14px; font-weight: 600; }
.fakt-field input[type="text"], .fakt-field input[type="email"], .fakt-field input[type="tel"], .fakt-field select { min-height: 54px; border-color: #e5e7eb; }
.fakt-field textarea { min-height: 56px; border-color: #e5e7eb; }
.fakt-form__submit { height: 50px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; letter-spacing: .02em; }

/* CV drop zone */
.fakt-file { position: relative; border: 2px dashed #c9cfda; border-radius: 6px; padding: 26px 16px 24px; background: #fff; gap: 6px; }
.fakt-file input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fakt-file__drop { font: 400 26px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #333; }
.fakt-file__or { font-size: 14px; color: #777; }
.fakt-file__browse { display: inline-block; padding: 8px 18px; border: 1px solid #cfd4dc; border-radius: 4px; font-size: 14px; color: #333; background: #f7f8fa; }
.fakt-file:focus-within, .fakt-file.is-drag { border-color: var(--fk-navy, #1d345f); background: #f7f9fc; }
.fakt-file__name { position: relative; z-index: 1; }
.fakt-field--file > .fakt-file__hint { font-size: 12px; color: #6b7280; }

/* Elementor's ".elementor img { height: auto }" would win over the logo sizes above; repeat them more specifically. */
.fakt-events .fakt-event .fakt-event__logo { height: 100%; width: auto; max-width: 58%; }
.fakt-brands .fakt-brand__logo img, .fakt-dialog .fakt-dialog__logo img { height: auto; max-height: 100%; }

/* Contact Form 7 markup inside the same form layout (forms are edited in Contact → Contact Forms) */
.wpcf7 { --ff-button-bg: var(--fk-navy, #1d345f); }
.fakt-field .wpcf7-form-control-wrap { display: block; }
.fakt-file .wpcf7-form-control-wrap { position: static; }
.fakt-field .wpcf7-not-valid { border-color: #d63638 !important; }
.fakt-field--file:has(.wpcf7-not-valid) .fakt-file { border-color: #d63638; }
.fakt-field .wpcf7-not-valid-tip { display: block; color: #d63638; font-size: 12px; margin-top: 6px; position: relative; z-index: 1; }
.fakt-form__actions .wpcf7-spinner { display: block; margin: 10px auto 0; }
.wpcf7 form.wpcf7-form .wpcf7-response-output { border-radius: 8px; padding: 14px 18px; margin: 18px 0 0; border: 1px solid #f3c4c4 !important; background: #fff3f3; color: #8a1f1f; }
.wpcf7 form.wpcf7-form.sent .wpcf7-response-output { background: #effaf2; border-color: #bfe6c9 !important; color: #1d5c2e; }
