/* =========================================================
   CRE Events — Luma-style light UI, electric-violet accent
   Plus Jakarta Sans (display) + Inter (body). Mobile-first.
   ========================================================= */

:root {
  /* OSN brand (advertise.onlinerealassets.com): navy + orange + gold.
     Accent tokens keep the --violet* names for a pure, low-risk recolor. */
  --violet: #ff7a18;            /* orange accent */
  --violet-600: #ff6207;
  --violet-700: #04314B;        /* deep navy (used for pill text) */
  --violet-soft: #fff2e6;       /* light orange tint */
  --violet-100: #ffe1c7;
  --violet-glow: rgba(255,122,24,.30);

  --navy: #04314B;
  --navy-d: #022537;
  --gold: #FBC218;
  --red: #D3072C;
  --red-d: #a8051f;

  --ink: #16222e;
  --body: #41505d;
  --muted: #5d6b7a;
  --line: #e7ebf1;
  --line-2: #f1f4f9;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-soft-2: #eef2f7;
  --success: #12805c;
  --success-bg: #e6f5ee;
  --amber: #9a6a00;
  --amber-bg: #fbf1da;

  --radius-xl: 26px;
  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sh-xs: 0 1px 2px rgba(17,17,20,.05);
  --sh-sm: 0 4px 16px rgba(17,17,20,.06);
  --sh-md: 0 14px 40px rgba(17,17,20,.10);
  --sh-violet: 0 16px 40px rgba(255,122,24,.20);
  --maxw: 1200px;
  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body-font); color: var(--body); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
a { color: var(--violet-600); text-decoration: none; }
a:hover { color: var(--violet-700); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 48px 0; }
.section--soft { background: var(--bg-soft); }
#featured { padding-top: 22px; padding-bottom: 30px; }
#events { padding-top: 38px; }
.hero__stats { margin-top: 22px; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--violet); margin: 0 0 .7rem; }
.section__head { margin-bottom: 30px; }
.section__head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.split-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.split-head__link { color: var(--violet-600); font-family: var(--display); font-weight: 700; font-size: .92rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-size: .92rem; font-weight: 700; line-height: 1;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s, background .16s, box-shadow .16s, color .16s, border-color .16s; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(216,38,46,.30); }
.btn--primary:hover { background: var(--red-d); color: #fff; box-shadow: 0 12px 26px rgba(216,38,46,.38); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #26262e; color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft-2); border-color: #dcdce4; }
.btn--soft { background: var(--violet-soft); color: var(--violet-700); }
.btn--soft:hover { background: var(--violet-100); color: var(--violet-700); }
.btn--block { width: 100%; }
.btn--sm { padding: .58rem 1rem; font-size: .82rem; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }

/* ---------- Floating pill nav ---------- */
.site-header { position: sticky; top: 14px; z-index: 40; padding: 0 14px; margin-top: 14px; }
.navbar { max-width: var(--maxw); margin: 0 auto; background: var(--navy); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; box-shadow: var(--sh-sm); display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: .55rem; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.03em; }
.brand:hover { color: #fff; }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(140deg, var(--violet), var(--navy)); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 12px var(--violet-glow); }
.brand__mark svg { width: 18px; height: 18px; }
.site-nav { display: none; gap: 1.4rem; }
.site-nav a { color: #cdd8e2; font-family: var(--display); font-weight: 600; font-size: .88rem; }
.site-nav a:hover { color: var(--gold); }
.site-header__cta { display: none; gap: 8px; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 52px 0 8px; background:
  radial-gradient(680px 420px at 12% -10%, var(--violet-soft), transparent 60%),
  radial-gradient(560px 420px at 92% 0%, #fff3df, transparent 55%), #fff; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-xs); color: var(--body); font-size: .82rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.4rem; }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.hero h1 { max-width: 16ch; margin-bottom: .3em; }
.hero h1 .accent { background: linear-gradient(95deg, var(--violet) 10%, var(--red)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero__sub { font-size: 1.2rem; color: var(--body); max-width: 52ch; margin: 0 0 2rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 30px; }
.hero__stat b { font-family: var(--display); font-size: 1.7rem; color: var(--ink); display: block; line-height: 1; letter-spacing: -.02em; }
.hero__stat span { font-size: .8rem; color: var(--muted); }
.hero__partners { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.hero__partners > span { font-family: var(--display); font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero__partners a { display: inline-flex; align-items: center; justify-content: center; height: 34px; width: 165px; opacity: .95; transition: opacity .15s; }
.hero__partners img { max-height: 30px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.hero__partners a:hover { opacity: 1; }

/* ---------- Search bar (pill) ---------- */
.searchbar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-md); padding: 12px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.searchbar .field { display: flex; flex-direction: column; gap: .3rem; padding: 4px 6px; }
.searchbar .field label { font-family: var(--display); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.searchbar select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font-family: var(--body-font); font-size: .98rem; font-weight: 500; color: var(--ink); outline: none; cursor: pointer; padding: 2px 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c8c97' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 20px; }
.searchbar__btn { display: flex; align-items: stretch; }
.searchbar__btn .btn { width: 100%; }

/* ---------- Filter toolbar (listing) ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-bottom: 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font-family: var(--display); font-size: .84rem; font-weight: 600; color: var(--body); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; white-space: nowrap; transition: all .15s; }
.chip:hover { border-color: #d7d7e0; color: var(--ink); }
.chip.is-active { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 6px 16px var(--violet-glow); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar__search { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: .1rem .95rem; flex: 1 1 220px; min-width: 180px; }
.toolbar__search svg { color: var(--muted); flex: none; }
.toolbar__search input { border: 0; outline: none; background: transparent; font: inherit; font-size: .92rem; padding: .6rem 0; width: 100%; color: var(--ink); }
.pill-select select { appearance: none; -webkit-appearance: none; font-family: var(--display); font-size: .84rem; font-weight: 600; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: .58rem 2rem .58rem 1rem; cursor: pointer; outline: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23101014' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; }
.pill-select select:hover { border-color: #d7d7e0; }
.pill-select select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.toolbar .link-btn { margin-left: auto; }
.link-btn { background: none; border: 0; color: var(--violet-600); font-family: var(--display); font-weight: 700; cursor: pointer; padding: 0; font-size: .9rem; }
.link-btn:hover { text-decoration: underline; }
.result-count { font-size: .9rem; color: var(--muted); margin: 0 0 18px; }
.result-count b { color: var(--ink); }

/* ---------- Event cards / bento grid ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.ecard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.ecard:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--violet-100); }
.ecard__media { position: relative; display: block; height: 180px; overflow: hidden; background: linear-gradient(140deg, var(--violet-soft), #eef2f7); }
.ecard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ecard:hover .ecard__img { transform: scale(1.06); }
.ecard__date { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); border-radius: 12px; padding: 6px 11px; text-align: center; box-shadow: var(--sh-xs); line-height: 1.05; }
.ecard__date .m { display: block; font-family: var(--display); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
.ecard__date .d { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.ecard__logo { position: absolute; bottom: 14px; left: 14px; background: #fff; border-radius: 10px; padding: 6px 10px; box-shadow: var(--sh-sm); max-width: 55%; }
.ecard__logo img { max-height: 24px; max-width: 100%; width: auto; }
.ecard__fav { position: absolute; top: 14px; right: 14px; background: var(--gold); color: var(--navy-d); font-family: var(--display); font-size: .68rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; box-shadow: 0 6px 14px rgba(4,49,75,.28); }
.ecard__body { padding: 18px; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ecard__cat { align-self: flex-start; font-family: var(--display); font-size: .72rem; font-weight: 700; color: var(--violet-700); background: var(--violet-soft); border-radius: 999px; padding: 4px 10px; }
.ecard__title { font-size: 1.14rem; margin: 0; line-height: 1.25; }
.ecard__title a { color: var(--ink); }
.ecard__title a:hover { color: var(--violet-600); }
.ecard__meta { display: flex; align-items: center; gap: .4rem; color: var(--ink); font-weight: 600; font-size: .9rem; margin: 0; }
.ecard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--line-2); }

/* native ad card — same shape as an event card, OSN promo */
.ecard--ad { border-color: var(--violet-100); box-shadow: var(--sh-sm); }
.ecard--ad:hover { box-shadow: var(--sh-md); }
.ecard__media--ad { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; text-decoration: none;
  background-color: var(--navy);
  background-image: linear-gradient(155deg, rgba(4,49,75,.28) 0%, rgba(4,49,75,.70) 52%, rgba(255,98,7,.85) 140%), url("assets/photos/cat-office.jpg"), url("assets/photos/cat-logistics.jpg");
  background-size: cover, 50% 100%, 50% 100%;
  background-position: center, left center, right center;
  background-repeat: no-repeat; }
.ecard__media--ad::after { content: none; }
.ad__kicker { font-family: var(--display); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.ad__h { font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1.04; color: #fff; margin: .25rem 0 0; letter-spacing: -.02em; }
.ad__logos { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 2px 0 2px; }
.ad__logos img { max-height: 24px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.ad__pitch { font-size: .9rem; color: var(--body); margin: 0; }
.ad__pitch b { color: var(--ink); font-family: var(--display); }
.ad__countries { font-size: 1.05rem; letter-spacing: 3px; line-height: 1.5; margin: 0; }

/* partner (signed in team pipeline) — red ring + glow */
.ecard--partner { border-color: var(--red); box-shadow: 0 0 0 2px var(--red), 0 16px 40px rgba(216,38,46,.28); }
.ecard--partner:hover { box-shadow: 0 0 0 2px var(--red), 0 20px 50px rgba(216,38,46,.34); }
.ecard__partner { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-family: var(--display); font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--red); border-radius: 999px; padding: 4px 10px; }

/* bento: first featured card is larger on desktop */
.bento { display: grid; grid-template-columns: 1fr; gap: 22px; }

/* badges */
.badge { font-family: var(--display); font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.badge--free { color: var(--success); background: var(--success-bg); }
.badge--paid { color: var(--ink); background: var(--bg-soft-2); }
.badge--on_request { color: var(--amber); background: var(--amber-bg); }
.badge--unknown { color: var(--muted); background: var(--bg-soft-2); }
.badge--format { color: var(--body); background: #fff; border: 1px solid var(--line); }
.tag { font-family: var(--display); font-size: .72rem; font-weight: 600; color: var(--violet-700); background: var(--violet-soft); border-radius: 999px; padding: 4px 11px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.empty-state { display: none; text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-state.is-visible { display: block; }
.list-more { text-align: center; margin-top: 30px; }

/* ---------- Organizer interviews (90s) ---------- */
.vids { display: grid; grid-template-columns: 1fr; gap: 22px; }
.vid { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .2s; }
.vid:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.vid__thumb { position: relative; display: block; height: 194px; overflow: hidden; background: var(--violet-soft); }
.vid__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.vid:hover .vid__thumb img { transform: scale(1.06); }
.vid__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,16,20,.12), rgba(16,16,20,.55)); }
.vid__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center; color: var(--violet); font-size: 1.15rem; padding-left: 4px; box-shadow: var(--sh-md); transition: transform .18s; }
.vid:hover .vid__play { transform: translate(-50%,-50%) scale(1.09); }
.vid__dur { position: absolute; bottom: 12px; right: 12px; z-index: 2; background: rgba(16,16,20,.82); color: #fff; font-family: var(--display); font-weight: 700; font-size: .72rem; padding: 4px 9px; border-radius: 999px; }
.vid__body { padding: 18px; }
.vid__org { font-family: var(--display); font-weight: 700; font-size: .72rem; color: var(--violet-700); text-transform: uppercase; letter-spacing: .08em; }
.vid__title { display: block; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.06rem; margin: 4px 0 10px; }
.vid__q { font-size: .87rem; color: var(--body); margin: 0 0 5px; }
.vid__q b { color: var(--ink); font-family: var(--display); }

/* ---------- Partner logos ---------- */
.logowall__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.logowall__cell { background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px 16px; min-height: 74px; border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform .18s, box-shadow .18s; }
.logowall__cell:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--violet-100); }
.logowall__cell img { max-height: 52px; max-width: 100%; width: auto; object-fit: contain; }
.logowall__cell--text span { font-family: var(--display); font-weight: 700; font-size: .92rem; letter-spacing: -0.02em; color: var(--ink); text-align: center; line-height: 1.2; }
.logowall__more { text-align: center; margin-top: 22px; color: var(--muted); font-size: .9rem; }

/* ---------- Team Portal preview ---------- */
.portal__grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.portal__mock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-md); overflow: hidden; display: grid; grid-template-columns: 1fr; }
.pm-side { background: var(--ink); color: #aeaeba; padding: 18px; display: none; }
.pm-side .pm-brand { color: #fff; font-family: var(--display); font-weight: 700; margin-bottom: 16px; font-size: .95rem; }
.pm-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.pm-side li { font-size: .82rem; padding: 8px 12px; border-radius: 10px; }
.pm-side li.active { background: rgba(255,122,24,.22); color: #cfc7ff; }
.pm-main { padding: 22px; }
.pm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.pm-stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--bg-soft); }
.pm-stat b { font-family: var(--display); font-size: 1.6rem; color: var(--violet); display: block; line-height: 1; }
.pm-stat span { font-size: .72rem; color: var(--muted); }
.pm-table { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.pm-row { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); font-size: .82rem; align-items: center; }
.pm-row:last-child { border-bottom: 0; }
.pm-row.head { background: var(--bg-soft); font-family: var(--display); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pm-status { font-family: var(--display); font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.pm-status.confirmed { color: var(--success); background: var(--success-bg); }
.pm-status.planned { color: var(--violet-700); background: var(--violet-soft); }

/* ---------- Submit-event band ---------- */
.band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-d)); color: #fff; border-radius: var(--radius-xl); padding: 46px; }
.band::after { content: ""; position: absolute; top: -35%; right: -8%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%); }
.band > * { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.86); max-width: 60ch; }
.band .eyebrow { color: rgba(255,255,255,.85); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(17,17,20,.5); backdrop-filter: blur(4px); }
.modal__dialog { position: relative; background: #fff; max-width: 580px; width: calc(100% - 32px); margin: 5vh auto; border-radius: var(--radius); box-shadow: var(--sh-md); max-height: 90vh; overflow: auto; }
.modal__head { padding: 22px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.modal__head h3 { margin: 0; }
.modal__head p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.modal__close { position: absolute; top: 16px; right: 16px; border: 0; background: var(--bg-soft-2); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 1.15rem; color: var(--body); }
.modal__close:hover { background: var(--line); }
.modal__body { padding: 24px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-family: var(--display); font-size: .8rem; font-weight: 600; color: var(--ink); }
.form-field .req { color: #d8262e; }
.form-field input, .form-field select, .form-field textarea { font-family: var(--body-font); font-size: .92rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .68rem .8rem; outline: none; width: 100%; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.form-field textarea { resize: vertical; min-height: 84px; }
.consent { display: flex; align-items: flex-start; gap: .55rem; font-size: .85rem; color: var(--body); }
.consent input { margin-top: .2rem; width: auto; }
.form-note { font-size: .82rem; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .75rem .85rem; margin: 0; }
.form-actions { margin-top: 4px; }
.form-error { color: #d8262e; font-size: .82rem; margin: .2rem 0 0; display: none; }
.form-error.is-visible { display: block; }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success.is-visible { display: block; }
.form-success .tick { width: 58px; height: 58px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin: 0 auto 14px; }
.form-success h3 { margin: 0 0 .4rem; }
.form-success p { color: var(--muted); margin: 0 auto; max-width: 42ch; }

/* ---------- Event detail page ---------- */
.detail-hero { position: relative; overflow: hidden; background: var(--ink); background-size: cover; background-position: center; color: #ececef; padding: 56px 0 60px; }
.detail-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 20ch; }
.detail-hero__logo { margin-bottom: 18px; }
.detail-hero__logo img { max-height: 62px; width: auto; background: #fff; border-radius: 14px; padding: 12px 16px; }
.detail-hero .event-meta { color: #c7c7d2; }
.breadcrumb { font-size: .85rem; color: #9a9aa8; margin-bottom: 16px; }
.breadcrumb a { color: #c7c7d2; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin: 32px 0; }
.detail-main h2 { margin-top: 1.6rem; font-size: 1.6rem; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--sh-sm); }
.info-card.sticky { position: sticky; top: 96px; }
.info-list { list-style: none; padding: 0; margin: 0 0 18px; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { color: var(--muted); }
.info-list .v { color: var(--ink); font-weight: 600; text-align: right; font-family: var(--display); }
.highlights { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 10px; }
.highlights li { position: relative; padding-left: 30px; color: var(--body); }
.highlights li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--violet-soft); color: var(--violet-700); font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9a9aa6; padding: 56px 0 0; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
.footer-col h4 { font-family: var(--display); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 16px; }
.footer-col a { display: block; color: #9a9aa6; font-size: .9rem; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: .9rem; margin-top: 14px; max-width: 34ch; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; padding: 5px 0; list-style: none; }
.footer-contact { padding: 0; margin: 0; }
.footer-contact svg { color: var(--violet); flex: none; margin-top: 3px; }
.footer-news form { display: flex; gap: 8px; margin-top: 4px; }
.footer-news input { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; border-radius: var(--radius-sm); padding: .65rem .75rem; font: inherit; font-size: .88rem; outline: none; }
.footer-news input::placeholder { color: #8a8a97; }
.footer-news .consent { font-size: .78rem; color: #7d7d8a; margin-top: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #c7c7d2; }
.footer-social a:hover { background: var(--violet); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; flex-direction: column; gap: 10px; justify-content: space-between; font-size: .82rem; color: #7d7d8a; }
.footer-bottom__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom__links a { color: #9a9aa6; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .searchbar { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .logowall__grid { grid-template-columns: repeat(4, 1fr); }
  .vids { grid-template-columns: repeat(3, 1fr); }
  .pm-stats { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr; }
  .footer-bottom { flex-direction: row; align-items: center; }
}
@media (min-width: 900px) {
  .site-nav, .site-header__cta { display: flex; }
  .searchbar { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .logowall__grid { grid-template-columns: repeat(6, 1fr); }
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .bento .ecard--lg { grid-column: span 2; grid-row: span 2; }
  .bento .ecard--lg .ecard__media { height: 100%; min-height: 300px; }
  .detail-grid { grid-template-columns: 1.7fr 1fr; }
  .portal__grid { grid-template-columns: .85fr 1.15fr; }
  .portal__mock { grid-template-columns: 210px 1fr; }
  .pm-side { display: block; }
  .footer-grid { grid-template-columns: 1.7fr 1.1fr; gap: 60px; }
  .section { padding: 64px 0; }
  #featured { padding-top: 26px; padding-bottom: 34px; }
  #events { padding-top: 40px; }
}

/* =========================================================
   UX/UI polish pass — cards, hero, mobile, filters, a11y
   ========================================================= */

/* Sticky-header anchor offset so #events / #featured don't hide under the pill nav */
[id] { scroll-margin-top: 92px; }

/* Cards: readability scrim over any photo + even 2-line titles so heights align */
.ecard__img { z-index: 0; }
.ecard__date, .ecard__logo, .ecard__fav { z-index: 2; }
.ecard__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,49,75,.32) 0%, rgba(4,49,75,0) 26%, rgba(4,49,75,0) 58%, rgba(4,49,75,.34) 100%);
}
.ecard__media--ad::after { content: none; }   /* native ad keeps its own treatment */
.ecard__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.ecard__meta { color: var(--muted); font-weight: 500; }
.ecard__meta b, .ecard__meta strong { color: var(--ink); font-weight: 700; }

/* Photos load progressively without layout jump */
.ecard__img, .vid__thumb img { background: linear-gradient(140deg, var(--violet-soft), var(--bg-soft-2)); }

/* Mobile: show a compact "Buy a Ticket" CTA in the pill nav (hide only the ghost login) */
.site-header__cta { display: flex; }
.site-header__cta .btn--ghost { display: none; }
@media (min-width: 900px) { .site-header__cta .btn--ghost { display: inline-flex; } }

/* Mobile: give the hero a touch more breathing room control */
@media (max-width: 639px) {
  .hero { padding-top: 34px; }
  .hero__stats { gap: 14px 26px; }
  .band { padding: 32px 22px; }
  .searchbar { box-shadow: var(--sh-sm); }
  .toolbar__search { flex: 1 1 100%; order: -1; }
}

/* Filters: clearer active/hover + reset affordance */
.pill-select select:hover { border-color: var(--violet); }
.link-btn:hover { color: var(--violet-700); }
.result-count { font-weight: 500; }

/* Accessibility: visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px;
}
.btn:focus-visible { outline-offset: 3px; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ecard:hover { transform: none; }
}

/* Navbar: brand + partnership line grouped together on the left (visible on mobile too) */
.navbar__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nav-partner { display: block; color: #e3ebf2; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; }
.nav-partner a { color: #ff5a67; font-weight: 800; }
.nav-partner a:hover { color: #fff; text-decoration: underline; }
/* On phones: stack the partnership line under the logo so it fits the pill bar */
@media (max-width: 759px) {
  .navbar__left { flex-direction: column; align-items: flex-start; gap: 1px; }
  .nav-partner { font-size: .96rem; letter-spacing: -.02em; color: #fff; }
  .nav-partner a { color: #fff; }
}

/* "In partnership with" logos beside the "All events" heading — bigger + equal size */
.events-partners { margin-top: 0; align-self: center; }
.events-partners a { height: 54px; width: 235px; }
.events-partners img { max-height: 46px; }
@media (max-width: 639px) { .events-partners { width: 100%; margin-top: 4px; } .events-partners a { width: 46%; } }
