/* ============================================================
   ERICAN CONNECT — Events page (AI Unlocked 2026)
   Loads only on the Events template. Builds on main.css tokens.
   ============================================================ */

/* Current nav item */
.nav-links a.is-current { color: #fff; }
.nav-links a.is-current::after { transform: scaleX(1); }
.nav.scrolled .nav-links a.is-current { color: var(--sky); }

/* ---------- Event hero ---------- */
.ev-hero {
  position: relative;
  min-height: 84svh;
  display: flex; align-items: center;
  padding: 150px 0 120px;
  background: radial-gradient(1100px 640px at 72% 18%, #21406F 0%, var(--navy-deep) 55%, #060E1E 100%);
  overflow: hidden;
}
.ev-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,14,30,.35) 0%, rgba(6,14,30,0) 26%, rgba(6,14,30,0) 62%, rgba(6,14,30,.9) 100%);
}
.ev-hero-inner { position: relative; z-index: 2; width: 100%; }
.ev-hero .hero-badge { margin-bottom: 26px; }

.ev-title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.02; color: #fff;
}
.ev-title .hl-orange { color: var(--orange); }
.ev-subtitle {
  margin-top: 14px;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -.01em;
  background: linear-gradient(92deg, #7CC2FF 0%, #2E7FE8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ev-lead {
  margin-top: 20px; max-width: 60ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255,255,255,.82); font-weight: 500;
}

/* hero meta chips */
.ev-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; margin-top: 38px; max-width: 880px;
}
.ev-meta-item {
  display: flex; align-items: center; gap: 13px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 14px; padding: 14px 16px;
}
.ev-ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(74,167,242,.14); color: var(--sky);
}
.ev-meta-item div { font-size: .92rem; font-weight: 600; color: #fff; line-height: 1.3; }
.ev-meta-item small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.ev-meta-item em { font-style: normal; color: rgba(255,255,255,.62); font-weight: 500; }

.ev-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; }
.ev-hrd-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; color: #fff;
  background: rgba(249,115,22,.16); border: 1px solid rgba(249,115,22,.5);
  padding: 10px 18px; border-radius: 100px;
}

/* ---------- Key info / pricing bar ---------- */
.ev-bar { position: relative; z-index: 5; }
.ev-bar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: -54px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.ev-bar-item {
  text-align: center; padding: 26px 18px;
  display: flex; flex-direction: column; gap: 3px;
}
.ev-bar-item + .ev-bar-item { border-left: 1px solid var(--line); }
.ev-bar-k { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); }
.ev-bar-v { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.ev-bar-s { font-size: .8rem; color: var(--text); }

/* ---------- What is (about) ---------- */
.ev-about { background: var(--white); }
.ev-about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.ev-about-copy .sub { margin-top: 0; }
.ev-about-copy .sub + .sub { margin-top: 18px; }

/* ---------- Who is this for ---------- */
.ev-who { background: linear-gradient(180deg, var(--bg-light), var(--white)); }
.ev-aud-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px;
}
.ev-aud {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.ev-aud:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(74,167,242,.4); }
.ev-aud-ic {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(74,167,242,.12); color: var(--sky);
}
.ev-aud:nth-child(3n+2) .ev-aud-ic { background: rgba(249,115,22,.12); color: var(--orange); }
.ev-aud:nth-child(3n) .ev-aud-ic { background: rgba(30,55,95,.09); color: var(--navy); }
.ev-aud h3 { font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.ev-aud-wide { grid-column: 1 / -1; }

/* ---------- Programme / agenda timeline ---------- */
.ev-agenda { background: var(--white); }
.ev-timeline { margin-top: 56px; max-width: 920px; }
.ag-item { display: grid; grid-template-columns: 158px 1fr; gap: 26px; }
.ag-time {
  text-align: right; font-size: .92rem; font-weight: 700; color: var(--navy);
  padding-top: 1px; line-height: 1.4;
}
.ag-dur {
  display: inline-block; margin-top: 5px;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  color: var(--text-light); background: var(--bg-light);
  padding: 2px 9px; border-radius: 100px; white-space: nowrap;
}
.ag-body {
  border-left: 2px solid var(--line);
  padding: 0 0 34px 30px; position: relative;
}
.ag-item:last-child .ag-body { padding-bottom: 4px; }
.ag-body::before {
  content: ''; position: absolute; left: -8px; top: 3px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--sky); border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(74,167,242,.2);
}
.ag-break .ag-body::before { background: var(--text-light); box-shadow: 0 0 0 3px rgba(138,153,181,.18); }
.ag-final .ag-body::before { background: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.2); }
.ag-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.ag-break .ag-body h3 { color: var(--text); font-weight: 600; }
.ag-body p { font-size: .92rem; color: var(--text); margin-top: 7px; }
.ag-body ul { margin-top: 9px; display: grid; gap: 7px; }
.ag-body li { position: relative; padding-left: 18px; font-size: .92rem; color: var(--text); }
.ag-body li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.ag-body b { color: var(--navy); font-weight: 600; }
.ag-tba {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  color: var(--orange); background: rgba(249,115,22,.1);
  padding: 2px 10px; border-radius: 100px; margin-left: 4px;
}

/* ---------- Pricing + registration ---------- */
.ev-register { background: linear-gradient(180deg, var(--bg-light), var(--white)); }
.ev-reg-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 64px);
  align-items: start;
}
.ev-price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.ev-price {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 18px; box-shadow: var(--shadow-sm);
}
.ev-price-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); background: var(--bg-light); padding: 5px 11px; border-radius: 100px;
}
.ev-price-tag--early { color: #fff; background: var(--orange); }
.ev-price-amt { margin-top: 14px; font-size: 1.5rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.ev-price-amt small { display: block; font-size: .72rem; font-weight: 600; color: var(--text-light); letter-spacing: 0; }
.ev-price p { margin-top: 6px; font-size: .82rem; color: var(--text); }
.ev-reg-note {
  margin-top: 22px; font-size: .88rem; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px dashed rgba(74,167,242,.5);
  padding: 12px 18px; border-radius: 12px; display: inline-block;
}

/* form card */
.ev-form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow-lg);
}
.ev-form-title { font-size: 1.3rem; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.ev-form-sub { font-size: .85rem; color: var(--text-light); margin-top: 4px; margin-bottom: 22px; }
.req { color: var(--orange); }
.ev-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.ev-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ev-field label { font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.ev-field input[type="text"],
.ev-field input[type="email"],
.ev-field input[type="tel"] {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--text);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg-light); transition: border-color .25s, background .25s, box-shadow .25s;
}
.ev-field input::placeholder { color: var(--text-light); }
.ev-field input:focus {
  outline: none; border-color: var(--sky); background: #fff;
  box-shadow: 0 0 0 4px rgba(74,167,242,.14);
}
.ev-radio { display: flex; gap: 12px; }
.ev-radio label {
  flex: 1; display: flex; align-items: center; gap: 9px; cursor: pointer;
  font-size: .92rem; font-weight: 600; color: var(--text); margin: 0;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-light);
  transition: border-color .25s, background .25s;
}
.ev-radio input { accent-color: var(--sky); width: 16px; height: 16px; }
.ev-radio label:hover { border-color: rgba(74,167,242,.5); }
.ev-form-submit { width: 100%; justify-content: center; margin-top: 8px; }
.ev-form-legal { margin-top: 16px; font-size: .76rem; color: var(--text-light); line-height: 1.5; }

/* honeypot */
.ev-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* alerts */
.ev-alert {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border-radius: 13px; margin-bottom: 22px;
  font-size: .9rem;
}
.ev-alert strong { font-size: .98rem; }
.ev-alert--ok { background: rgba(34,160,90,.1); border: 1px solid rgba(34,160,90,.4); color: #176B3C; }
.ev-alert--ok strong { color: #0F5C33; }
.ev-alert--err { background: rgba(214,69,69,.08); border: 1px solid rgba(214,69,69,.35); color: #9A2A2A; }
.ev-alert a { font-weight: 700; text-decoration: underline; }

/* ---------- FAQ ---------- */
.ev-faq { background: var(--white); }
.ev-faq-wrap { max-width: 900px; }
.ev-faq-list { margin-top: 50px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px;
  background: #fff; margin-bottom: 12px; overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: rgba(74,167,242,.45); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-size: 1.02rem; font-weight: 600; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: 0 0 auto; width: 20px; height: 20px; }
.faq-plus::before, .faq-plus::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 2px; background: var(--sky); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform .3s var(--ease);
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 24px 22px; }
.faq-a p { font-size: .94rem; color: var(--text); line-height: 1.65; }
.faq-a a { color: var(--sky); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ev-about-grid { grid-template-columns: 1fr; gap: 24px; }
  .ev-reg-grid { grid-template-columns: 1fr; }
  .ev-aud-grid { grid-template-columns: repeat(2, 1fr); }
  .ev-meta { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
}
@media (max-width: 760px) {
  .ev-hero { min-height: auto; padding: 130px 0 90px; }
  .ev-bar-grid { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .ev-bar-item:nth-child(3) { border-left: 0; }
  .ev-bar-item:nth-child(odd) { border-left: 0; }
  .ev-bar-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ev-aud-grid { grid-template-columns: 1fr; }
  .ev-price-cards { grid-template-columns: 1fr; }
  .ag-item { grid-template-columns: 1fr; gap: 4px; }
  .ag-time { text-align: left; }
  .ag-dur { margin-top: 0; margin-left: 8px; }
  .ag-body { border-left: 0; padding: 8px 0 26px 0; }
  .ag-body::before { display: none; }
  .ev-field-row { grid-template-columns: 1fr; gap: 0; }
}
