/* ============================================================================
 * Future of Franchising — Events styles
 * Goes in your CHILD THEME folder as fof-events.css
 *
 * Everything is scoped under .fof-ev so it can't leak into the rest of the
 * theme. Colors fall back to the style-guide values, so this works whether or
 * not fof-menu.php is active (that file publishes the --fof-* variables).
 * ========================================================================== */

.fof-ev {
  --navy:      var(--fof-navy, #003a6b);
  --navy-ink:  var(--fof-navy-ink, #01243f);
  --gold:      var(--fof-gold, #e7a614);
  --gold-deep: var(--fof-gold-deep, #c8860a);
  --gold-soft: var(--fof-gold-soft, #ffd24f);
  --gold-wash: var(--fof-gold-wash, #fffaed);
  --cream:     var(--fof-cream, #f7f3e9);
  --paper:     var(--fof-paper, #fdfbf6);
  --ink:       var(--fof-ink, #1d2530);
  --muted:     var(--fof-muted, #5a6675);
  --teal:      var(--fof-teal, #0f6e56);
  --rust:      var(--fof-rust, #9a4a25);
  --line:      rgba(1, 36, 63, .12);
  --maxw:      1240px;
  --r:         18px;
  --ease:      cubic-bezier(.2, .8, .2, 1);

  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.fof-ev *,
.fof-ev *::before,
.fof-ev *::after { box-sizing: border-box; }

.fof-ev a { text-decoration: none; color: inherit; }
.fof-ev ul { list-style: none; margin: 0; padding: 0; }
.fof-ev img { max-width: 100%; display: block; }

.fof-ev h1, .fof-ev h2, .fof-ev h3, .fof-ev h4 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
}

.fof-ev a:focus-visible,
.fof-ev button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.fof-ev .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- layout -------------------------------------------------------------- */
.fof-ev .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.fof-ev .block { padding: 108px 0; }
.fof-ev .block.tight { padding: 56px 0; }
.fof-ev .alt { background: linear-gradient(180deg, var(--cream), var(--paper)); }

.fof-ev .phero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 74px;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--gold-wash) 0%, rgba(255, 250, 237, 0) 55%),
    linear-gradient(180deg, var(--paper), var(--cream));
}
.fof-ev .phero .wrap { position: relative; }
.fof-ev .phero h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 480;
  letter-spacing: -.03em;
  max-width: 16ch;
}
.fof-ev .phero.center h1 { max-width: none; }
.fof-ev .phero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 24px 0 32px;
  line-height: 1.65;
}
.fof-ev .lead { display: grid; grid-template-columns: 1.2fr .9fr; gap: 56px; align-items: center; }
.fof-ev .media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px -34px rgba(1, 36, 63, .45);
  aspect-ratio: 4 / 3.5;
  position: relative;
}
.fof-ev .media img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }

.fof-ev .hcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.fof-ev .hcrumb a:hover { color: var(--navy); }
.fof-ev .hcrumb b { font-weight: 600; color: var(--ink); }

.fof-ev .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-family: "Sora", sans-serif;
}
.fof-ev .sec-head { max-width: 680px; margin-bottom: 56px; }
.fof-ev .sec-head.center { margin: 0 auto 56px; text-align: center; }
.fof-ev .sec-head h2 {
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 480;
  letter-spacing: -.025em;
  margin: 18px 0 0;
}
.fof-ev .sec-head p { font-size: 17px; color: var(--muted); margin-top: 18px; line-height: 1.65; }
.fof-ev .tag {
  font-family: "Sora", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-block;
}
.fof-ev .acts { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- buttons ------------------------------------------------------------- */
.fof-ev .btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Sora", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: .35s var(--ease);
}
.fof-ev .btn:hover { transform: translateY(-2px); }
.fof-ev .btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--navy-ink); }
.fof-ev .btn-primary { background: var(--navy); color: #fff; }
.fof-ev .btn-primary:hover { background: var(--navy-ink); }
.fof-ev .btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.fof-ev .btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.fof-ev .btn-white { background: var(--gold-soft); color: var(--navy-ink); }
.fof-ev .arr { transition: transform .35s var(--ease); }
.fof-ev .btn:hover .arr { transform: translateX(4px); }

/* --- event cards --------------------------------------------------------- */
.fof-ev .evgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.fof-ev .evcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .4s var(--ease);
}
.fof-ev .evcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 64px -38px rgba(1, 36, 63, .42);
  border-color: transparent;
}
.fof-ev .evcard .img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); position: relative; }
.fof-ev .evcard .img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.fof-ev .evcard:hover .img img { transform: scale(1.05); }
.fof-ev .evcard .body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }
.fof-ev .evcard h3 { font-size: 19px; font-weight: 500; line-height: 1.25; margin-bottom: 8px; }
.fof-ev .evcard p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; flex: 1; }
.fof-ev .evcard .more { font-size: 13px; font-weight: 600; color: var(--navy); }

.fof-ev .evlabel {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--teal);
  color: #fff;
  margin-bottom: 12px;
}
.fof-ev .evlabel.past { background: var(--cream); color: var(--muted); }
.fof-ev .evlabel.featured { background: var(--navy); color: #fff; }

.fof-ev .evdate {
  font-family: "Anton", sans-serif;
  font-size: 16px;
  color: var(--gold-deep);
  letter-spacing: .02em;
  margin-bottom: 8px;
}

/* Text-only card (no image) — used by the "stay in sync" row. */
.fof-ev .evcard.plain {
  padding: 34px 30px;
  text-align: center;
  align-items: center;
  justify-content: flex-start;
}
.fof-ev .evcard.plain p { flex: 0 0 auto; margin-bottom: 18px; }
.fof-ev .evcard.plain .btn { margin-top: auto; }

/* --- meta bar ------------------------------------------------------------ */
.fof-ev .metabar {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 30px;
}
.fof-ev .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fof-ev .metabar .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.fof-ev .metabar .v { font-size: 15px; font-weight: 600; color: var(--ink); }
.fof-ev .metabar .v a { color: var(--navy); }
.fof-ev .metabar .s { font-size: 13px; color: var(--muted); }

.fof-ev .evinfo { font-size: 15px; line-height: 2; color: var(--ink); margin: 18px 0; }
.fof-ev .evinfo b { font-weight: 600; }

/* --- article body + sidebar ---------------------------------------------- */
.fof-ev .artbody { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.fof-ev .prose h2 { font-size: 30px; font-weight: 480; letter-spacing: -.02em; margin: 0 0 14px; }
.fof-ev .prose h3 {
  font-family: "Sora", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 22px 0 10px;
  color: var(--ink);
}
.fof-ev .prose p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.fof-ev .prose ul.bul { margin: 0 0 18px; }
.fof-ev .prose ul.bul li {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  padding: 7px 0 7px 26px;
  position: relative;
}
.fof-ev .prose ul.bul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-weight: 700;
}

.fof-ev .sidebar { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 16px; }
.fof-ev .sticky-card { background: var(--navy-ink); color: #fff; border-radius: var(--r); padding: 26px; }
.fof-ev .sticky-card h4 { font-size: 21px; margin-bottom: 8px; color: #fff; }
.fof-ev .sticky-card p { color: rgba(255, 255, 255, .72); font-size: 14px; margin: 0 0 16px; }
.fof-ev .sticky-card .btn { width: 100%; justify-content: center; }
.fof-ev .rel-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.fof-ev .rel-card h4 {
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.fof-ev .rel-card .nm { font-weight: 600; font-size: 14px; }
.fof-ev .rel-card p { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.55; }
.fof-ev .rel-card a { color: var(--navy); }

/* --- agenda -------------------------------------------------------------- */
.fof-ev .agenda {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.fof-ev .agenda .row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.fof-ev .agenda .row:last-child { border-bottom: 0; }
.fof-ev .agenda .row .tm { font-weight: 600; color: var(--navy); }
.fof-ev .agenda .row .ds { color: var(--muted); }

/* --- speakers ------------------------------------------------------------ */
.fof-ev .speakers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.fof-ev .spk {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.fof-ev .spk .av {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: "Anton", sans-serif;
  color: var(--navy);
}
.fof-ev .spk .av img { width: 100%; height: 100%; object-fit: cover; }
.fof-ev .spk .nm { font-size: 15px; font-weight: 600; }
.fof-ev .spk .rl { font-size: 12.5px; color: var(--muted); }

/* --- split (venue / map) ------------------------------------------------- */
.fof-ev .split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.fof-ev .split .splitimg {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px -34px rgba(1, 36, 63, .45);
  aspect-ratio: 4 / 3.3;
  position: relative;
}
.fof-ev .split .splitimg img { width: 100%; height: 100%; object-fit: cover; }
.fof-ev .split .copy .sec-h {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 480;
  letter-spacing: -.02em;
  margin: 10px 0 0;
}
.fof-ev .split .copy p { font-size: 16px; color: var(--muted); line-height: 1.7; margin: 16px 0; }
.fof-ev .split .copy .addr { color: var(--ink); font-weight: 500; line-height: 1.7; }

/* --- prev / next --------------------------------------------------------- */
.fof-ev .prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fof-ev .prevnext .card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: .4s var(--ease);
}
.fof-ev .prevnext .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 64px -36px rgba(1, 36, 63, .42);
  border-color: transparent;
}
.fof-ev .prevnext .ar { font-size: 24px; color: var(--muted); flex-shrink: 0; }
.fof-ev .prevnext .k {
  display: block;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.fof-ev .prevnext .ti { display: block; font-size: 15px; font-weight: 500; }
.fof-ev .prevnext .nx { justify-content: flex-end; text-align: right; }

/* --- pagination ---------------------------------------------------------- */
.fof-ev .pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.fof-ev .pager .page-numbers {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  transition: .25s;
  padding: 0 10px;
}
.fof-ev .pager .page-numbers:hover { border-color: var(--navy); color: var(--navy); }
.fof-ev .pager .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* --- empty state --------------------------------------------------------- */
.fof-ev .empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: var(--paper);
}

/* --- scroll reveal ------------------------------------------------------- */
/* Only applied when JS is running, so content is never trapped invisible. */
.fof-js .fof-ev .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.fof-js .fof-ev .reveal.in { opacity: 1; transform: none; }
.fof-js .fof-ev .reveal[data-d="1"] { transition-delay: .08s; }
.fof-js .fof-ev .reveal[data-d="2"] { transition-delay: .16s; }
.fof-js .fof-ev .reveal[data-d="3"] { transition-delay: .24s; }
.fof-js .fof-ev .reveal[data-d="4"] { transition-delay: .32s; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .fof-ev .artbody { grid-template-columns: 1fr; gap: 36px; }
  .fof-ev .sidebar { position: static; }
}
@media (max-width: 900px) {
  .fof-ev .lead { grid-template-columns: 1fr; gap: 38px; }
  .fof-ev .media { max-width: 520px; }
  .fof-ev .split { grid-template-columns: 1fr; gap: 38px; }
  .fof-ev .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .fof-ev .evgrid { grid-template-columns: 1fr; }
  .fof-ev .block { padding: 78px 0; }
}
@media (max-width: 640px) {
  .fof-ev .prevnext { grid-template-columns: 1fr; }
  .fof-ev .prevnext .nx { justify-content: flex-start; text-align: left; }
}
@media (max-width: 600px) {
  .fof-ev .speakers { grid-template-columns: 1fr; }
  .fof-ev .agenda .row { grid-template-columns: 1fr; gap: 4px; }
  .fof-ev .grid4 { grid-template-columns: 1fr; }
  .fof-ev .wrap { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .fof-ev * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .fof-js .fof-ev .reveal { opacity: 1; transform: none; }
  .fof-ev .btn:hover, .fof-ev .evcard:hover, .fof-ev .prevnext .card:hover { transform: none; }
}
