/* ── Kate Angelo — /speaking/ page (staging batch round, item 11, Daria) ────
   Hand-coded, theme-native — no Elementor (same pattern as page-about.css).
   Ported from the project's speaking-page/speaking-page.css working draft,
   with two adaptations to match this round's established conventions:
     - `--fbig` swapped from that draft's original "Fjalla One" to this
       theme's CURRENT primary heading face, Oswald (every other page moved
       off Fjalla One in earlier rounds — see CHANGELOG.md; Fjalla One is no
       longer part of this theme's font system).
     - Both CTA buttons' box-shadow now comes from the shared global
       `.ka-btn-glow` utility class (style.css) instead of a local hardcoded
       copy of the glow values (item 5) — see page-speaking.php for the
       class being added to both buttons.
   Background: royal-blue gradient, verbatim values already used on the
   About page (--ka2-navy-1/2/3 there = --ka-spk-navy-1/2/3 here, same
   numbers, kept page-scoped rather than renamed to avoid any risk of
   colliding with page-about.css's own `.ka-a2-*`-prefixed variables).
   Accents: gold #F5D000 (existing brand gold) + salmon/pink #DF6176
   (Kate's named, wanted feminine accent — sampled from about-preview.html
   and already reused on the About page's Dear Reader redesign), used
   together deliberately throughout, per the copy doc's own design note. */

.ka-spk {
  --ka-spk-navy-1: #1a4a90;
  --ka-spk-navy-2: #0d3170;
  --ka-spk-navy-3: #08204d;
  --ka-spk-gold:   #F5D000;
  --ka-spk-pink:   #DF6176;
  --ka-spk-pink-hover: #e87a8f;
  --ka-spk-text:   #EEF2F8;
  --ka-spk-muted:  rgba(238,242,248,.72);
  --ka-spk-muted-2:rgba(238,242,248,.52);
  --ka-spk-border: rgba(238,242,248,.14);
  --ka-spk-fbig:  'Oswald', Impact, sans-serif;
  --ka-spk-fbody: 'Poppins', sans-serif;
}

.ka-spk {
  background: linear-gradient(180deg, var(--ka-spk-navy-1) 0%, var(--ka-spk-navy-2) 50%, var(--ka-spk-navy-3) 100%);
  color: var(--ka-spk-text);
  font-family: var(--ka-spk-fbody);
  overflow-x: hidden;
  position: relative;
}
.ka-spk * { box-sizing: border-box; }
.ka-spk a { color: inherit; }
.ka-spk h1, .ka-spk h2, .ka-spk h3, .ka-spk h4 {
  font-family: var(--ka-spk-fbig);
  font-weight: 800;
  margin: 0;
}
.ka-spk p { margin: 0; }
.ka-spk ul { margin: 0; padding: 0; }

/* ── shared section rhythm ── */
.ka-spk__section {
  position: relative;
  padding: 5.5rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.ka-spk__eyebrow {
  font-family: var(--ka-font-secondary, var(--ka-spk-fbody));
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ka-spk-gold);
  margin-bottom: 1rem;
  text-align: center;
}
.ka-spk__eyebrow--pink { color: var(--ka-spk-pink); }
.ka-spk__heading {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ka-spk-text);
  text-align: center;
  line-height: 1.08;
  margin-bottom: 1.1rem;
}
.ka-spk__divider {
  width: 64px;
  height: 3px;
  margin: 0 auto 3rem;
  background: linear-gradient(90deg, var(--ka-spk-gold) 0%, var(--ka-spk-pink) 100%);
  border-radius: 2px;
}

/* ── HERO ── */
.ka-spk-hero {
  padding: 7.5rem 1.5rem 5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.ka-spk-hero__eyebrow {
  font-family: var(--ka-font-secondary, var(--ka-spk-fbody));
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--ka-spk-pink);
  margin-bottom: 1.4rem;
}
.ka-spk-hero__title {
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  text-transform: uppercase;
  line-height: 1.02;
  color: var(--ka-spk-text);
  margin-bottom: 1.6rem;
}
.ka-spk-hero__title span { color: var(--ka-spk-gold); }
.ka-spk-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ka-spk-pink);
  margin: 0 auto 1.8rem;
}
.ka-spk-hero__subhead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: var(--ka-spk-muted);
  font-weight: 300;
  max-width: 760px;
  margin: 0 auto;
}

/* ── MEET KATE ── */
.ka-spk-meet__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.ka-spk-meet__quote {
  position: absolute;
  top: -3.2rem;
  left: -1rem;
  font-family: var(--ka-spk-fbig);
  font-size: 9rem;
  line-height: 1;
  color: rgba(223,97,118,.16);
  pointer-events: none;
  user-select: none;
}
.ka-spk-meet p {
  font-size: 1.08rem;
  line-height: 1.85;
  font-weight: 300;
  color: var(--ka-spk-muted);
  position: relative;
  z-index: 1;
}
.ka-spk-meet p + p { margin-top: 1.4rem; }
.ka-spk-meet p:first-of-type::first-letter {
  font-family: var(--ka-spk-fbig);
  font-size: 3.6rem;
  color: var(--ka-spk-pink);
  float: left;
  line-height: .82;
  margin: .1rem .5rem 0 0;
}

/* ── SIGNATURE TALKS ── */
.ka-spk-talks {
  max-width: 1080px;
}
.ka-spk-talks__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}
@media (max-width: 820px) {
  .ka-spk-talks__grid { grid-template-columns: 1fr; }
}

.ka-spk-talk {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--ka-spk-border);
  border-top: 3px solid var(--ka-spk-gold);
  border-radius: 6px;
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.ka-spk-talk--pink { border-top-color: var(--ka-spk-pink); }
.ka-spk-talk:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.075);
  border-color: rgba(223,97,118,.55);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(223,97,118,.25);
}

.ka-spk-talk__head {
  display: flex;
  align-items: baseline;
  gap: .85rem;
}
.ka-spk-talk__num {
  font-family: var(--ka-spk-fbig);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ka-spk-gold);
  letter-spacing: .05em;
  flex: 0 0 auto;
}
.ka-spk-talk__titles { flex: 1 1 auto; }
.ka-spk-talk__title {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: none;
  color: var(--ka-spk-text);
  line-height: 1.2;
  margin-bottom: .3rem;
}
.ka-spk-talk__category {
  display: block;
  font-family: var(--ka-spk-fbody);
  font-style: italic;
  font-weight: 400;
  font-size: .82rem;
  color: var(--ka-spk-pink);
}

.ka-spk-talk__desc {
  font-size: .96rem;
  line-height: 1.7;
  font-weight: 300;
  color: var(--ka-spk-muted);
}

.ka-spk-talk__takeaways {
  margin-top: .25rem;
  border-left: 3px solid var(--ka-spk-pink);
  background: rgba(223,97,118,.08);
  border-radius: 0 6px 6px 0;
  padding: 1.1rem 1.3rem;
}
.ka-spk-talk__takeaways-label {
  font-family: var(--ka-font-secondary, var(--ka-spk-fbody));
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ka-spk-gold);
  margin-bottom: .7rem;
  display: block;
}
.ka-spk-talk__takeaways ul {
  list-style: none;
}
.ka-spk-talk__takeaways li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .89rem;
  line-height: 1.55;
  color: rgba(238,242,248,.88);
  font-weight: 300;
}
.ka-spk-talk__takeaways li + li { margin-top: .5rem; }
.ka-spk-talk__takeaways li::before {
  content: '\203A';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--ka-spk-pink);
  font-weight: 700;
  font-size: 1rem;
}

.ka-spk-talks__note {
  margin-top: 2.5rem;
  text-align: center;
  font-style: italic;
  font-weight: 300;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--ka-spk-muted-2);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ── MISSION ── */
.ka-spk-mission {
  max-width: 840px;
  text-align: center;
}
.ka-spk-mission__text {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.7;
  font-weight: 300;
  color: var(--ka-spk-text);
}
.ka-spk-mission__text strong {
  font-weight: 600;
  color: var(--ka-spk-gold);
}

/* ── BOOKING CTA ── */
/* v1.6.1 (Daria, textured-backgrounds round): accent-gold-pink-burst-bold.jpg
 * is the one flagged asset that came out on a near-white/light base instead
 * of the dark navy base it was specified with — so it can't sit directly
 * behind this section's existing white/gold CTA text (would tank contrast).
 * Fix: the burst image lives on the OUTER .ka-spk-cta section (full-width,
 * decorative, peeking out at the edges/top/bottom), while the actual
 * heading/support copy/buttons move into a new inner .ka-spk-cta__panel — a
 * solid dark-navy card floated on top of the light image, same navy as the
 * rest of the page (--ka-spk-navy-3) so the panel reads as part of the page,
 * not a jarring content box. background-color on the OUTER section is the
 * required failsafe: if the jpg 404s, this section still shows the same
 * navy-gradient page background it always has (this element sits inside the
 * page's own .ka-spk gradient, so navy-3 is a seamless fallback, not a
 * mismatched patch). */
.ka-spk-cta {
  text-align: center;
  max-width: 760px;
  padding: 4rem 1.5rem 8rem;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--ka-spk-navy-3);
  background-image: url(images/accent-gold-pink-burst-bold.jpg);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}
.ka-spk-cta__panel {
  background: var(--ka-spk-navy-3);
  border: 1px solid var(--ka-spk-border);
  border-radius: 6px;
  padding: 3rem 2rem;
  box-shadow: 0 30px 70px rgba(2, 15, 36, .55);
}
.ka-spk-cta__heading {
  font-size: clamp(2rem, 4.2vw, 3rem);
  text-transform: uppercase;
  color: var(--ka-spk-text);
  margin-bottom: 1.2rem;
  line-height: 1.1;
}
.ka-spk-cta__support {
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
  color: var(--ka-spk-muted);
  max-width: 640px;
  margin: 0 auto 2.6rem;
}
.ka-spk-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.ka-spk-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ka-spk-fbody);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 3px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
/* box-shadow intentionally NOT set here — comes from the shared
 * `.ka-btn-glow` utility class (style.css) applied alongside this class in
 * page-speaking.php, so this page's glow always stays in lockstep with
 * every other button on the site (item 5) instead of carrying its own
 * copy of the values. */
/* SPECIFICITY FIX (Daria, staging round 2 — Kate's reported bug): this
 * file's own `.ka-spk a { color: inherit; }` rule (line 45) combines a
 * class with the `a` element, giving it specificity (0,1,1) — one rank
 * higher than a plain single-class selector like `.ka-spk-btn--primary`
 * (0,1,0), so it was winning regardless of source order and silently
 * discarding the `color` declarations below. Confirmed live via
 * getComputedStyle(): "Invite Kate to Speak" was rendering light
 * `--ka-spk-text` (#EEF2F8) on its gold fill instead of navy — the exact
 * white-on-gold contrast bug Kate flagged. Compounding the selector with
 * `.ka-spk-btn` (both classes already present on the element in
 * page-speaking.php) bumps specificity to (0,2,0)/(0,2,1), which reliably
 * outranks (0,1,1) regardless of load order. Same root-cause pattern found
 * and fixed on the About page's gold buttons this round (assets/
 * page-about.css / about-scroll-story.css) — that earlier "fix" never
 * actually took visual effect for the same reason. */
.ka-spk-btn.ka-spk-btn--primary {
  background: var(--ka-spk-gold);
  color: var(--ka-spk-navy-3);
}
.ka-spk-btn.ka-spk-btn--primary:hover {
  background: #ffe033;
  transform: translateY(-2px);
}
.ka-spk-btn.ka-spk-btn--secondary {
  background: transparent;
  color: var(--ka-spk-pink);
  border: 1.5px solid var(--ka-spk-pink);
}
.ka-spk-btn.ka-spk-btn--secondary:hover {
  background: var(--ka-spk-pink);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .ka-spk__section, .ka-spk-hero, .ka-spk-cta { padding-left: 1.1rem; padding-right: 1.1rem; }
  .ka-spk-meet__quote { display: none; }
}
