/* TrustFabric Events: shared styles for /events and /events/<slug>.
   A B2B events hub: Inter, the site's navbar and buttons, thin rules, clear status. No decoration. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --red: #E31E24;
    --navy: #1E3A8A;
    --blue: #2E7BD6;
    --deep: #0F1C3F;
    --slate: #0F172A;
    --ink: #0F172A;
    --muted: #5B6779;
    --rule: #E2E8F0;
    --rule-strong: #CBD5E1;
    --off: #F8FAFC;
    --radius: 8px;
    --wrap: 1200px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #fff; color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--slate); color: #fff; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.dark :focus-visible { outline-color: #fff; }
section[id] { scroll-margin-top: 72px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 2000; background: var(--slate); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 500; transition: top 0.2s; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn, .burger, .nav-trigger, .expand { touch-action: manipulation; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 28px; border-radius: var(--radius); font-family: inherit; font-size: 15px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #C8181E; }

/* ---------- navbar (same as homepage: logo size and placement) ---------- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 24px; height: 64px; display: flex; align-items: center; background: #fff; border-bottom: 1px solid var(--rule); }
.navbar-inner { max-width: var(--wrap); width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 88px; width: auto; margin-top: 12px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button.nav-trigger { color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 500; background: none; border: none; cursor: pointer; transition: color 0.2s; }
.nav-links a:hover, .nav-links button.nav-trigger:hover { color: var(--ink); }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.nav-trigger.current { color: var(--ink); font-weight: 600; }
.nav-trigger::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.has-menu:hover .nav-trigger::after, .has-menu:focus-within .nav-trigger::after { transform: translateY(1px) rotate(-135deg); }
.menu { position: absolute; top: calc(100% + 16px); left: 50%; min-width: 180px; list-style: none; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15,23,42,0.10); padding: 6px; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; }
.menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.menu a { display: block; padding: 10px 12px; border-radius: var(--radius); color: var(--ink); font-size: 14px; white-space: nowrap; }
.menu a:hover, .menu a:focus-visible { background: var(--off); }
.menu a[aria-current="page"] { font-weight: 600; }
.nav-cta { background: var(--red); color: #fff !important; padding: 9px 18px; border-radius: 8px; font-weight: 600 !important; font-size: 14px; }
.nav-cta:hover { background: #C8181E; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: none; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 999; background: #fff; padding: 16px 24px 32px; overflow-y: auto; overscroll-behavior: contain; flex-direction: column; }
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 18px; font-weight: 500; color: var(--ink); }
.mobile-menu a.sub { padding-left: 20px; font-size: 16px; color: var(--muted); }
.mobile-menu a[aria-current="page"] { color: var(--red); }
.mobile-menu a.btn { display: flex; margin-top: 24px; padding: 0 28px; border-bottom: none; color: #fff; font-size: 15px; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-cta-desktop { display: none; } .burger { display: flex; } }


.btn-line { border-color: rgba(255,255,255,0.45); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline { border-color: var(--rule-strong); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-dark { background: var(--slate); color: #fff; }
.btn-dark:hover { background: #1b2740; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; padding: 10px 2px; border: none; border-bottom: 1.5px solid transparent; background: none; cursor: pointer; color: inherit; transition: border-color 0.2s; }
.link-arrow::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.link-arrow:hover { border-bottom-color: currentColor; }

/* ---------- motion: transform + opacity only ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.lead { font-size: 18px; line-height: 1.7; color: var(--muted); }
.dark { background: var(--deep); color: #fff; }
.dark .lead { color: rgba(255,255,255,0.78); }

/* ---------- status chips ---------- */
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 100px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip-upcoming { background: #EEF2FF; color: var(--navy); }
.chip-tbc { background: #FEF3C7; color: #92400E; }
.chip-past { background: #F1F5F9; color: #475569; }
.dark .chip-upcoming { background: rgba(147,197,253,0.18); color: #BFDBFE; }
.dark .chip-tbc { background: rgba(252,211,77,0.18); color: #FDE68A; }
.part { font-size: 13.5px; color: var(--muted); }
.part::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; }
.dark .part { color: rgba(255,255,255,0.78); }

/* ---------- real imagery (rendered only when a real image exists) ---------- */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; border-radius: var(--radius); background: var(--off); }
.photo figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ev-logo { display: block; height: 32px; width: auto; max-width: 140px; object-fit: contain; }

/* ---------- connect dialog and lightbox ---------- */
dialog { border: none; padding: 0; color: var(--ink); background: #fff; border-radius: var(--radius); max-width: none; }
dialog::backdrop { background: rgba(7,12,28,0.68); }
.connect { width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5); }
.connect-in { padding: 40px; }
.connect h2 { font-size: 28px; line-height: 1.15; margin-bottom: 8px; }
.connect .sub { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.connect .x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); color: var(--muted); touch-action: manipulation; }
.connect .x:hover { background: var(--off); color: var(--ink); }
.connect .x::before, .connect .x::after { content: ''; position: absolute; width: 18px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.connect .x::after { transform: rotate(-45deg); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { margin-bottom: 18px; }
.cf-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.cf-field .opt { font-weight: 400; color: var(--muted); }
.cf-input { width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius); font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
textarea.cf-input { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
select.cf-input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.cf-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,138,0.15); }
.cf-input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,30,36,0.1); }
.cf-err { display: none; font-size: 12.5px; color: var(--red); margin-top: 6px; font-weight: 500; }
.cf-err.show { display: block; }
.cf-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.cf-consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--navy); flex-shrink: 0; cursor: pointer; }
.cf-consent a { color: var(--navy); text-decoration: underline; }
.connect .btn { width: 100%; margin-top: 22px; }
.cf-fail { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; font-size: 14px; font-weight: 500; }
.cf-fail.show { display: block; }
.cf-fail a { text-decoration: underline; }
.cf-done { display: none; padding: 8px 0 4px; }
.cf-done.show { display: block; }
.cf-done h2 { margin-top: 24px; }
.cf-tick { width: 52px; height: 52px; border-radius: 50%; background: #ECFDF5; border: 1px solid #A7F3D0; display: flex; align-items: center; justify-content: center; }

.lightbox { width: min(1100px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; background: var(--slate); color: #fff; }
.lb-fig { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.lb-fig img { width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; background: #000; }
.lb-fig figcaption { padding: 16px 72px 18px 20px; font-size: 14px; color: rgba(255,255,255,0.82); min-height: 56px; }
.lb-btn { position: absolute; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,0.7); border: 1px solid rgba(255,255,255,0.25); color: #fff; border-radius: var(--radius); cursor: pointer; touch-action: manipulation; transition: background 0.2s; }
.lb-btn:hover { background: rgba(15,23,42,0.95); }
.lb-close { top: 12px; right: 12px; } .lb-prev { left: 12px; top: 40%; } .lb-next { right: 12px; top: 40%; }
.lb-btn span { display: block; width: 10px; height: 10px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; }
.lb-prev span { transform: rotate(45deg); margin-left: 4px; } .lb-next span { transform: rotate(-135deg); margin-right: 4px; }
.lb-close span { position: relative; width: 18px; height: 18px; border: none; }
.lb-close span::before, .lb-close span::after { content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 1.5px; background: #fff; transform: rotate(45deg); }
.lb-close span::after { transform: rotate(-45deg); }

/* ---------- footer ---------- */
.page-footer { background: #0A101E; color: rgba(255,255,255,0.55); font-size: 13px; text-align: center; padding: 28px 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.page-footer a { color: rgba(255,255,255,0.55); margin: 0 12px; transition: color 0.2s; }
.page-footer a:hover { color: #fff; }

@media (max-width: 560px) {
    .connect-in { padding: 32px 22px 26px; }
    .cf-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
}
