/* ===========================================================
   WEBINARS HUB  (/webinars/)
   White theme, brand-orange accent. Reuses the global form
   styles (.form-row/.form-field/.form-submit/.form-banner) and
   the shared .cta closer. Page specifics namespaced .wb-.
   =========================================================== */

/* ===================== HERO ===================== */
.wb-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 120px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
}
.wb-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.wb-hero-ripple {
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--line);
}
.wb-hero-ripple.r1 { width: 460px;  height: 460px; }
.wb-hero-ripple.r2 { width: 760px;  height: 760px; opacity: 0.5; }
.wb-hero-ripple.r3 { width: 1080px; height: 1080px; opacity: 0.28; }
.wb-hero .container { position: relative; z-index: 1; }
.wb-hero .eyebrow-mark { justify-content: center; }
.wb-hero-h1 {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
  margin: 18px auto 22px;
  max-width: 17ch;
  text-wrap: balance;
}
.wb-hero-h1 .hi {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.wb-hero-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto 30px;
  text-wrap: pretty;
}
.wb-hero-jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  transition: border-color 0.2s ease, gap 0.2s var(--ease-out), background 0.2s ease;
}
.wb-hero-jump:hover { border-color: var(--accent); gap: 14px; background: var(--accent-soft); }
.wb-hero-jump-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 72, 0, 0.16); }
.wb-hero-jump svg { width: 15px; height: 15px; }

/* ===================== FEATURED SESSION + FORM ===================== */
.wb-feature { padding: clamp(48px, 6vw, 88px) 0; background: var(--bg-2); }
.wb-feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.wb-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.wb-flag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: wb-pulse 2.2s ease-out infinite;
}
@keyframes wb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 72, 0, 0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 72, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 72, 0, 0); }
}
.wb-feature-title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--ink);
  margin: 14px 0 14px;
  text-wrap: balance;
}
.wb-feature-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 54ch;
}

.wb-facts {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
}
.wb-facts li { display: flex; flex-direction: column; gap: 5px; }
.wb-fact-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.wb-fact-v { font-size: 15px; font-weight: 600; color: var(--ink); }

.wb-speaker {
  display: flex;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}
.wb-speaker-avatar {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
}
.wb-speaker-name { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.wb-speaker-role { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.wb-speaker-bio { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 50ch; }

/* Registration form card */
.wb-form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 36px);
  box-shadow: var(--shadow-md);
}
.wb-form-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 6px; }
.wb-form-sub { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 22px; }
.wb-form { display: flex; flex-direction: column; gap: 18px; }

/* Native select styled to match the global inputs. */
.wb-select {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 42px 14px 16px;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c988f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.wb-select:hover { border-color: var(--line-2); }

/* On-brand (orange) focus ring for every field on this page. */
.wb-form .form-field input:focus-visible,
.wb-form .form-field textarea:focus-visible,
.wb-form .wb-select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 72, 0, 0.16);
}
.wb-submit { width: 100%; justify-content: center; margin-top: 2px; }

/* ===================== SHARED SECTION HEAD ===================== */
.wb-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 4vw, 52px);
}
.wb-section-head .eyebrow-mark { justify-content: center; margin-bottom: 16px; }
.wb-section-title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

/* ===================== WHAT YOU'LL LEARN ===================== */
.wb-learn { padding: clamp(64px, 8vw, 104px) 0; }
.wb-learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.wb-learn-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}
.wb-learn-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.wb-learn-num { font-family: var(--font-number); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }
.wb-learn-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 12px 0 8px; }
.wb-learn-card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ===================== WHO IT'S FOR ===================== */
.wb-who { padding: clamp(56px, 7vw, 96px) 0; background: var(--bg-2); }
.wb-who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.wb-who-intro .eyebrow-mark { margin-bottom: 16px; }
.wb-who-intro .wb-section-title { text-align: left; }
.wb-who-intro p { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 16px 0 0; max-width: 46ch; }
.wb-who-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.wb-who-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}
.wb-who-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.wb-who-list li::after {
  content: "";
  position: absolute;
  left: 7px; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===================== ON-DEMAND LIBRARY ===================== */
.wb-ondemand { padding: clamp(64px, 8vw, 104px) 0; }
.wb-ondemand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.wb-od-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}
.wb-od-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.wb-od-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--ink) 0%, #2a2724 100%);
}
.wb-od-thumb::before {
  content: "";
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 72, 0, 0.95);
  box-shadow: 0 10px 26px -8px rgba(255, 72, 0, 0.6);
}
.wb-od-thumb svg { position: relative; width: 22px; height: 22px; fill: #fff; stroke: none; margin-left: 3px; }
.wb-od-dur {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
}
.wb-od-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 22px; }
.wb-od-cat { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.wb-od-title { font-size: 17px; font-weight: 600; line-height: 1.32; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.wb-od-speaker { font-size: 13px; color: var(--muted); }
.wb-od-link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
}
.wb-od-link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease-out); }
.wb-od-card:hover .wb-od-link svg { transform: translateX(3px); }

/* On-demand card with a real video thumbnail (recording available) */
.wb-od-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.wb-od-thumb--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}
.wb-od-thumb--video::before,
.wb-od-thumb--video svg,
.wb-od-thumb--video .wb-od-dur { z-index: 2; }
.wb-od-card:hover .wb-od-thumb-img { transform: scale(1.04); }
.wb-od-thumb-img { transition: transform 0.4s var(--ease-out); }

/* On-demand card — recording not yet published */
.wb-od-card--soon { cursor: default; }
.wb-od-card--soon:hover { transform: none; border-color: var(--line); box-shadow: none; }
.wb-od-thumb--soon { background: linear-gradient(150deg, #38352f 0%, #26231f 100%); }
.wb-od-thumb--soon::before { background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.wb-od-thumb--soon svg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  width: 24px;
  height: 24px;
  margin-left: 0;
}
.wb-od-dur--soon { background: rgba(255, 255, 255, 0.16); letter-spacing: 0.06em; }
.wb-od-link--soon { color: var(--muted); }

/* ===================== FAQ ===================== */
.wb-faq { padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.wb-faq-list { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--line); }
.wb-faq-item { border-bottom: 1px solid var(--line); }
.wb-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wb-faq-item summary::-webkit-details-marker { display: none; }
.wb-faq-mark { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.wb-faq-mark::before,
.wb-faq-mark::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out);
}
.wb-faq-mark::before { top: 8px; left: 0; width: 18px; height: 2px; }
.wb-faq-mark::after { top: 0; left: 8px; width: 2px; height: 18px; }
.wb-faq-item[open] .wb-faq-mark::after { transform: scaleY(0); }
.wb-faq-item p {
  margin: 0 4px 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 68ch;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .wb-feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .wb-who-grid { grid-template-columns: 1fr; gap: 32px; }
  .wb-who-intro .wb-section-title { text-align: left; }
  .wb-learn-grid { grid-template-columns: repeat(2, 1fr); }
  .wb-ondemand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .wb-learn-grid { grid-template-columns: 1fr; }
  .wb-ondemand-grid { grid-template-columns: 1fr; }
  .wb-who-list { grid-template-columns: 1fr; }
  .wb-faq-item summary { font-size: 16px; }
}

/* Fix: the register button is full-width, but the shared .form-submit hover
   fill is a small disc anchored at the right (scale ~880px) — it can't cover a
   100%-wide button, leaving a dark wedge on the left. Replace it with a
   full-cover fill that grows from the centre and always covers the button. */
.wb-submit::before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  border-radius: 999px;
  transform: scale(0);
  transform-origin: center;
}
.wb-submit:hover::before { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .wb-submit:hover::before { transform: scale(0); }
}

/* Speaker avatar when a photo is set via the Customizer (else initials show) */
.wb-speaker-avatar--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Webinar page only: remove the arrow icon from the register button.
   (The arrow gave the button its height, so restore vertical padding.) */
.wb-submit svg { display: none; }
.wb-submit { padding: 20px 28px; }
