/* ============================================================================
   funnel.css, funnel-v2 front end
   Hero band, brochure card, form rows, facts strip, sticky bar, nav dropdown
   groups and the mobile Menu. Link it AFTER the page's inline <style> so the
   equal-specificity rules below win. Colours come from :root tokens only;
   every rgba() is a token colour with alpha (ivory 251,248,241; text 26,24,21;
   bordeaux 107,31,42). Pages that use the band must carry --brass-light and
   --cream-body in :root (programme pages already do; home, contact, catalogue
   and thank-you-brochure add them).

   Facts strip markup the generator emits (facts_html), for reference:
     <section class="facts-strip"><div class="container"><dl class="facts-grid">
       <div class="fact"><dt>Duration</dt><dd>4 days</dd></div>
       <div class="fact"><dt>Format</dt><dd>Live online or on site</dd></div>
       <div class="fact"><dt>Next open date</dt><dd data-fact="next-date">Private cohorts</dd></div>
       <div class="fact"><dt>Fee</dt><dd data-fact="fee">$3,995 per delegate</dd><div class="fact-sub">per delegate · includes ...</div></div>
       <div class="fact fact-team"><dt>For teams</dt><dd>Private cohort from 8 delegates</dd>
         <a href="/contact#tna" class="btn btn-secondary">Schedule a TNA call</a></div>
     </dl></div></section>
   ========================================================================== */

/* ---------- Hero band ---------- */
.hero {
  background: var(--forest);
  padding: 32px 0 56px;
  color: var(--ivory);
}
.hero.has-photo {
  background-image: linear-gradient(90deg, rgba(26, 24, 21, 0.85), rgba(26, 24, 21, 0.55)), var(--hero-image);
  background-size: cover;
  background-position: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px 64px;
  align-items: start;
}
.hero-grid > .booking-card {
  grid-column: 2;
  grid-row: 1 / 3;
}
.hero-grid > .hero-quote,
.hero-grid > .hero-stats {
  grid-column: 1;
  align-self: end;
  margin-top: 0;
}
.hero h1 {
  color: var(--ivory);
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: none;
}
.hero .hero-lead,
.hero p.lead {
  color: var(--cream-body);
  font-size: 18px;
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 28px;
}
.hero-badge,
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 248, 241, 0.12);
  border: 1px solid rgba(251, 248, 241, 0.18);
  color: var(--ivory);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.hero-rating { font-size: 13px; letter-spacing: 0; gap: 10px; padding: 8px 16px; }
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--brass-light);
  border-radius: 50%;
}
.hero-rating .stars { color: var(--brass-light); letter-spacing: 1px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  font-size: 13px;
  color: var(--ivory);
}
.hero-meta .chip {
  background: rgba(251, 248, 241, 0.12);
  color: var(--ivory);
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 500;
}
.hero-meta .chip strong { color: var(--brass-light); font-weight: 500; }

/* Quote on the band */
.hero-quote.on-dark {
  background: rgba(251, 248, 241, 0.08);
  border-left: 3px solid var(--brass);
  border-radius: 4px;
  padding: 24px 28px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.hero-quote.on-dark .hero-quote-portrait {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--brass);
  overflow: hidden;
  flex-shrink: 0;
}
.hero-quote.on-dark .hero-quote-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-quote.on-dark .hero-quote-body { flex: 1; }
.hero-quote.on-dark .quote-intro { color: var(--brass-light); font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.hero-quote.on-dark blockquote { color: var(--ivory); font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.35; margin-bottom: 14px; }
.hero-quote.on-dark .attribution { color: var(--cream-body); font-size: 13px; }
.hero-quote.on-dark .attribution strong { color: var(--ivory); font-weight: 500; }

/* Home stats on the band */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(251, 248, 241, 0.2);
  max-width: none;
}
.hero-stats .stat-num { color: var(--brass-light); font-family: var(--serif); font-size: 40px; font-weight: 500; margin-bottom: 4px; }
.hero-stats .stat-label { color: var(--cream-body); font-size: 13px; line-height: 1.4; }

/* ---------- Brochure card ---------- */
.booking-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-top: 4px solid var(--bordeaux);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(26, 24, 21, 0.08);
  position: sticky;
  top: 88px;
  scroll-margin-top: 88px;
  color: var(--text);
}
.embed-frame .booking-card,
.confirm-card .booking-card { position: static; border: 0; padding: 0; box-shadow: none; border-radius: 0; }
.card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

/* ---------- Form rows (scoped to .brochure-form so the enquiry form keeps its look) ---------- */
.brochure-form { display: flex; flex-direction: column; gap: 10px; }
.brochure-form .form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 12px;
}
.brochure-form .form-field > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}
.brochure-form .form-field > span em { color: var(--text-muted); font-style: normal; font-weight: 400; margin-left: 4px; }
/* When one label in a two-column row wraps, the controls still sit on one baseline. */
.brochure-form .form-field > input,
.brochure-form .form-field > select,
.brochure-form .form-field > textarea { margin-top: auto; }
.brochure-form input:not([type="radio"]):not([type="hidden"]),
.brochure-form select,
.brochure-form textarea {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--ivory);
  color: var(--text);
  width: 100%;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.brochure-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235C5751' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  cursor: pointer;
}
.brochure-form textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.brochure-form input:focus,
.brochure-form select:focus,
.brochure-form textarea:focus {
  outline: none;
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 2px rgba(107, 31, 42, 0.12);
}
.brochure-form .form-field.is-invalid input,
.brochure-form .form-field.is-invalid select,
.brochure-form .form-field.is-invalid textarea,
.brochure-form .form-radio.is-invalid { border-color: var(--bordeaux); }
.brochure-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.brochure-form .phone-row { grid-template-columns: 110px 1fr; }
.brochure-form .form-row[hidden] { display: none; }
.brochure-form .form-radio {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  font-size: 13px;
  color: var(--text);
}
.brochure-form .form-radio legend {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  padding: 0;
  margin-bottom: 6px;
}
.brochure-form .form-radio label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
  cursor: pointer;
  line-height: 1.3;
}
.brochure-form .form-radio input[type="radio"] {
  accent-color: var(--bordeaux);
  width: 15px;
  height: 15px;
  margin: 0;
}
.brochure-form .hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}
.brochure-form .form-error {
  font-size: 13px;
  color: var(--bordeaux);
  background: rgba(107, 31, 42, 0.06);
  border-left: 3px solid var(--bordeaux);
  padding: 8px 12px;
  border-radius: 4px;
  line-height: 1.45;
}
.brochure-form .form-error[hidden] { display: none; }
.brochure-form .form-submit {
  margin-top: 4px;
  width: 100%;
  padding: 13px 24px;
  cursor: pointer;
  text-align: center;
}
.brochure-form .form-submit[disabled] { opacity: 0.6; cursor: progress; }
.brochure-form .form-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 2px 0 0;
}
.brochure-form .form-note a { color: var(--bordeaux); text-decoration: underline; }
.booking-outline-link { text-align: center; margin-top: 14px; font-size: 13px; }
.booking-outline-link a { color: var(--bordeaux); text-decoration: underline; }

/* ---------- Facts strip ---------- */
.facts-strip {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 32px;
  margin: 0;
}
.facts-grid > div { min-width: 0; }
.facts-grid dt {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}
.facts-grid dd {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}
.facts-grid .fact-sub { font-size: 13px; line-height: 1.4; color: var(--text-muted); margin-top: 4px; }
.facts-grid .fact-team .btn { display: inline-block; margin-top: 10px; padding: 9px 16px; font-size: 13px; }

/* ---------- Sticky bar ---------- */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--ivory);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(26, 24, 21, 0.08);
  padding: 12px 0;
}
.sticky-bar[hidden] { display: none; }
.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-bar-title {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sticky-bar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.sticky-bar .btn { padding: 10px 18px; font-size: 13px; }

/* ---------- Nav: dropdown groups and the mobile Menu ---------- */
.dropdown-panel.dropdown-wide { min-width: 600px; }
.dropdown-panel.dropdown-wide a { white-space: normal; }
.dropdown-columns {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 4px;
}
.dropdown-columns > div { min-width: 0; }
.dropdown-group {
  padding: 12px 18px 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brass);
}
.nav-mobile { display: none; position: static; border: 0; padding: 0; margin: 0; }
.nav-mobile > summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary::marker { content: ""; }
/* The home page styles every details/summary for its FAQ (border, serif, a "+" marker); undo that here. */
.nav-mobile > summary::after,
.nav-mobile[open] > summary::after { content: none; }
.nav-mobile[open] > summary { color: var(--bordeaux); border-color: var(--bordeaux); }
.nav-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 120;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(26, 24, 21, 0.08);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 8px 32px 24px;
}
.nav-mobile-group {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brass);
  margin: 18px 0 4px;
}
.nav-links .nav-mobile-panel a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav-links .nav-mobile-panel a:hover { color: var(--bordeaux); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 28px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-grid > .booking-card { grid-column: 1; grid-row: auto; position: static; }
  .hero-grid > .hero-quote,
  .hero-grid > .hero-stats { align-self: auto; }
  .hero h1 { font-size: 38px; }
  .hero-quote.on-dark { flex-direction: column; text-align: center; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid .fact-team { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  /* Catalogue joins the desktop nav; tighten the gaps so the bar still fits down to 980px. */
  .nav-links { gap: 20px; }
}
@media (max-width: 980px) {
  /* Below 980px the desktop links no longer fit beside the CTA; the Menu takes over (the pages' own
     inline CSS only hides the links from 720px or 900px, so this rule carries the 720 to 980 band). */
  .nav-links > a:not(.btn),
  .nav-links > .nav-item { display: none; }
  .nav-links { gap: 12px; }
  .nav-mobile { display: block; }
}
@media (max-width: 720px) {
  .facts-grid { grid-template-columns: 1fr; gap: 18px; }
  .sticky-bar-title,
  .sticky-bar .btn-secondary { display: none; }
  .sticky-bar-actions { width: 100%; }
  .sticky-bar .btn-primary { width: 100%; text-align: center; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }
  .logo { white-space: nowrap; }
  .nav-links .btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .nav-mobile-panel { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 560px) {
  /* Wordmark, Menu and a "Download the catalogue" CTA overlap at 500px with the 720px sizes; tighten from 560px. */
  .nav-links { gap: 8px; }
  .nav-links .btn { padding: 9px 11px; font-size: 12px; }
  .nav-mobile > summary { padding: 8px 10px; font-size: 13px; }
  .logo { font-size: 17px; gap: 8px; }
}
@media (max-width: 480px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .booking-card { padding: 20px; }
  .brochure-form .form-row:not(.phone-row) { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  /* Logo mark, Menu and a "Download the catalogue" CTA do not fit beside the wordmark at 390px; keep the mark only. */
  .logo { font-size: 0; gap: 0; }
  .logo .logo-mark { font-size: 17px; }
  .hero-rating { font-size: 12px; padding: 6px 12px; gap: 8px; }
}

/* Corporate brochure flow: readable labels and optional qualification. */
.card-intro { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: -6px 0 18px; }
.brochure-form .form-field > span,
.brochure-form .form-radio legend { font-size: 14px; }
.brochure-form input:not([type="radio"]):not([type="hidden"]),
.brochure-form select, .brochure-form textarea { font-size: 16px; }
.brochure-form .form-radio label { min-height: 32px; font-size: 14px; }
.form-details { font-size: 13px; color: var(--text-muted); }
.form-details summary { cursor: pointer; padding: 7px 0; }
.form-details[open] summary { margin-bottom: 8px; }
.form-details-body { display: flex; flex-direction: column; gap: 10px; }
.form-details summary:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
.brochure-form [data-branch="myself"] { min-height: 68px; }
@media (max-width: 480px) {
  .brochure-form [data-branch="myself"] { min-height: 146px; }
}

.brochure-form .form-details { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.brochure-form .form-details summary { display: list-item; font-family: var(--sans); font-size: 13px; font-weight: 400; line-height: 1.4; padding: 5px 0; }
.brochure-form .form-details summary::after { content: none; }
.booking-card .card-title { margin-bottom: 12px; }
.booking-card .card-intro { margin-bottom: 14px; }
.booking-card .brochure-form { gap: 8px; }
