/* ============================================================
   COMPONENTS — AI Workshops Australia (Section-AI archetype)
   Layout primitives, nav, buttons, section heads, footer,
   plus full layout for every home-page section.
   ============================================================ */

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--content { max-width: var(--content); }
.container--narrow  { max-width: var(--narrow); }

.stack > * + *    { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }
.stack-lg > * + * { margin-top: var(--sp-6); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--dur) var(--ease);
}
.nav.is-scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.nav__row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--sp-5);
  padding-block: 18px;
}
.nav__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__wordmark__dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 3px;
}
.nav__links {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
  justify-self: end;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav__link {
  padding: 6px 0;
  transition: color var(--dur);
  border-bottom: 2px solid transparent;
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.nav__link:focus-visible,
.nav__cta-link:focus-visible,
.nav__toggle:focus-visible,
.nav__wordmark:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.nav__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--paper);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: background var(--dur) var(--ease);
}
.nav__cta-link:hover { background: var(--accent-deep); }

.nav__toggle { display: none; }

@media (max-width: 880px) {
  .nav__row {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: var(--sp-4);
    background: var(--paper);
    padding: var(--sp-6) var(--gutter);
    border-bottom: 1px solid var(--rule);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__cta-link { display: none; }
  .nav__toggle {
    display: flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
  }
  .nav__toggle__bars,
  .nav__toggle__bars::before,
  .nav__toggle__bars::after {
    content: "";
    display: block;
    width: 22px; height: 2px;
    background: var(--ink);
    transition: transform var(--dur) var(--ease);
  }
  .nav__toggle__bars { position: relative; }
  .nav__toggle__bars::before { position: absolute; top: -7px; left: 0; }
  .nav__toggle__bars::after  { position: absolute; top:  7px; left: 0; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color      var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
  background: var(--accent);
  color: var(--paper);
  border: 1.5px solid var(--accent);
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--lime { /* legacy alias kept for templates that still use it */
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.btn--lime:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- SECTION HEAD ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-7);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.section-head__index {
  /* hide the §A/§B label entirely — old markup may still include it */
  display: none;
}
.section-head__meta {
  margin-left: auto;
  color: var(--muted);
}

/* ---------- LINK-ARROW ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--dur), gap var(--dur);
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { color: var(--accent); gap: 10px; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-9) 0 var(--sp-7);
  margin-top: var(--sp-10);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.footer__brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-3);
}
.footer__tagline {
  color: rgba(255, 255, 255, 0.65);
  max-width: 36ch;
  font-size: 15px;
}
.footer__col h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin: 0 0 var(--sp-4);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  color: var(--paper);
  font-size: 15px;
  transition: color var(--dur);
}
.footer__col a:hover { color: var(--accent); }
.footer__base {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}
.footer__meta { margin: 0; }
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 1; transform: none; }
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
html.js-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   HERO — Section-AI archetype: text block then full-width photo
   ============================================================ */
.hero {
  padding: var(--sp-10) 0 var(--sp-9);
  text-align: center;
}
.hero__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: var(--sp-5);
}
.hero__display {
  font-size: var(--fs-display-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.98;
  max-width: 18ch;
  margin: 0 auto var(--sp-5);
}
.hero__display__line2 {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
.hero__lede {
  font-size: var(--fs-lede);
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 auto var(--sp-7);
  line-height: 1.45;
}
.hero__ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-9);
}
.hero__photo {
  max-width: var(--container);
  margin: 0 auto var(--sp-5);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--shell);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero__caption {
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-align: center;
  margin-bottom: var(--sp-8);
}
.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: var(--content);
  margin: 0 auto;
}
.hero__trust > div {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero__trust strong {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__trust span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
@media (max-width: 720px) {
  .hero { padding: var(--sp-8) 0 var(--sp-7); }
  .hero__display { max-width: 14ch; }
  .hero__trust { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* ============================================================
   STATS section — single shell band
   ============================================================ */
.section { padding: var(--sp-10) 0; }
.section--shell { background: var(--shell); }
.section--ink   { background: var(--ink); color: var(--paper); }

.stats-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-9);
  align-items: start;
}
.stats-block__head h2 {
  font-size: var(--fs-display-l);
  margin-bottom: var(--sp-4);
}
.stats-block__head .lede { color: var(--muted); }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7) var(--sp-6);
}
.stat__num {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat__num .unit { font-size: 32px; color: var(--accent); margin-left: 2px; }
.stat__label {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.45;
  max-width: 28ch;
}
@media (max-width: 880px) {
  .stats-block { grid-template-columns: 1fr; gap: var(--sp-6); }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   AGENDA — sticky intro + ordered list
   ============================================================ */
.agenda {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-9);
  align-items: start;
}
.agenda__intro h2 { font-size: var(--fs-display-l); margin-bottom: var(--sp-4); }
.agenda__intro .lede { color: var(--muted); margin-bottom: var(--sp-5); }
.agenda__count {
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.list-editorial {
  list-style: none;
  counter-reset: ed;
  margin: 0;
  padding: 0;
}
.list-editorial li {
  counter-increment: ed;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-4);
}
.list-editorial li:last-child { border-bottom: 1px solid var(--rule); }
.list-editorial li::before {
  content: counter(ed, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.list-editorial__title {
  grid-column: 2;
  display: block;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.list-editorial__body {
  grid-column: 2;
  display: block;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  max-width: 56ch;
}
@media (max-width: 880px) {
  .agenda { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* ============================================================
   PRICING — three SKU cards, middle featured
   ============================================================ */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: stretch;
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-7);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.product:hover { border-color: var(--ink); }
.product--featured {
  border-top: 3px solid var(--accent);
  background: var(--paper);
}
.product__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  font-weight: 600;
}
.product__head { margin-bottom: var(--sp-5); }
.product__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.product__duration {
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0;
}
.product__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--rule);
}
.product__price > span:first-child {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.product__price-note {
  font-size: 13px;
  color: var(--muted);
}
.product__lede { font-size: 15px; color: var(--ink-2); margin-bottom: var(--sp-4); }
.product__includes {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.product__includes li {
  padding-left: 22px;
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.4;
}
.product__includes li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.product__cta { margin-top: auto; justify-content: center; width: 100%; }
@media (max-width: 960px) {
  .products { grid-template-columns: 1fr; }
}

/* Specialty intensives — 4 compact cards, secondary tier */
.products--quad {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.product--compact {
  padding: var(--sp-6) var(--sp-5);
}
.product--compact .product__name { font-size: 20px; }
.product--compact .product__price > span:first-child { font-size: 30px; }
.product--compact .product__lede { font-size: 14px; }
.product--compact .product__includes { margin-bottom: var(--sp-5); gap: var(--sp-2); }
.product--compact .product__includes li { font-size: 14px; }
.intensives__intro {
  max-width: 640px;
  margin-bottom: var(--sp-5);
}
.intensives__intro h2 { margin: 0 0 var(--sp-3); }
@media (max-width: 1200px) {
  .products--quad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .products--quad { grid-template-columns: 1fr; }
}

/* ============================================================
   GUARANTEE — ink section with stamp
   ============================================================ */
.guarantee {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-9);
  align-items: center;
}
.guarantee__stamp {
  width: 240px;
  height: 240px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  text-align: center;
}
.guarantee__stamp__num {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.guarantee__stamp__num span {
  font-size: 28px;
  color: var(--accent);
  margin-left: 2px;
}
.guarantee__stamp__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: var(--sp-3);
  color: rgba(255, 255, 255, 0.7);
}
.guarantee h2 {
  color: var(--paper);
  font-size: var(--fs-display-l);
  margin-bottom: var(--sp-5);
}
.guarantee .lede { color: rgba(255, 255, 255, 0.78); margin-bottom: var(--sp-6); }
.guarantee__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.guarantee__list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sp-3);
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.5;
}
.guarantee__list__num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.guarantee__list__body strong { color: var(--paper); font-weight: 600; }
@media (max-width: 880px) {
  .guarantee { grid-template-columns: 1fr; gap: var(--sp-6); }
  .guarantee__stamp { margin: 0 auto; }
}

/* ============================================================
   ENQUIRE — form + reassurance
   ============================================================ */
.enquire {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-9);
  align-items: start;
}
.enquire__pitch h2 { font-size: var(--fs-display-l); margin-bottom: var(--sp-4); }
.enquire__pitch .lede { color: var(--muted); margin-bottom: var(--sp-6); }
.enquire__detail { font-size: 14px; color: var(--ink-2); margin-bottom: var(--sp-3); }

.form { display: flex; flex-direction: column; gap: var(--sp-4); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}
.field .optional {
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0.16em;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--dur) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; top: -9999px; }
.field-error { color: var(--accent-deep); font-size: 13px; margin: 4px 0 0; }

@media (max-width: 880px) {
  .enquire { grid-template-columns: 1fr; gap: var(--sp-6); }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   DELETED BLOCKS — silenced if any old markup leaks through.
   ============================================================ */
.marquee, .specsheet, .freetools, .faq-split, .sample, .modules,
.guarantee__seal, .hero__meta-bar, .hero__sidebar { display: none !important; }
