/* HRBuzz — single stylesheet, no build step.
   Palette from the HRBuzz logo: warm paper, near-black ink (the R),
   peach-orange accent (the H and the bee's stripes). */

:root {
  --ink: #191613;
  --ink-soft: #59544c;
  --paper: #fdfbf7;
  --paper-deep: #f7efe4;
  --honey: #ef9857;
  --honey-deep: #a4582a; /* text-safe on paper */
  --line: #e9ddcd;
  --error: #b3261e;
  --btn: #1d2b38;       /* buttons keep the original slate look */
  --btn-hover: #2e4256;
  --radius: 10px;
  --measure: 68ch;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--honey-deep); transition: color 0.2s ease; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  /* white rather than the page cream, so the logo's own white ground blends */
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* Tight: the logo itself provides the bar's height. Its white ground and
     the white bar are the same colour, so it can run almost edge to edge
     without looking cramped. */
  padding-block: 0.2rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-logo { flex: none; width: 76px; height: 76px; }

/* Brand logotype: "RB" in the logo orange (WCAG exempts logotypes) */
.brand .accent, .footer-brand .accent { color: var(--honey); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.5rem);
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--ink); }

.site-nav a.btn-primary { color: #fff; }

/* Hamburger toggle: hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 8px;
}
.nav-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--btn);
  color: #fff;
}
.btn-primary:hover { background: var(--btn-hover); color: #fff; }

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

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}

/* Faint logo watermark in the hero's top-right whitespace */
.hero::before {
  content: "";
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 4vw, 3rem);
  width: clamp(240px, 32vw, 400px);
  aspect-ratio: 1;
  background: url("/assets/logo.png") center / contain no-repeat;
  mix-blend-mode: multiply; /* hides the PNG's white box against the page */
  opacity: 0.14;
  pointer-events: none;
}

.hero .wrap { position: relative; }

.eyebrow {
  color: var(--honey-deep);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 21ch;
  margin-bottom: 1.25rem;
}

.hero .lede {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}

.hero-ctas { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Credentials strip ---------- */

.cred-strip {
  background: var(--ink);
  color: #f4efe8;
  padding-block: 1rem;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: cred-marquee 60s linear infinite;
}

.cred-strip:hover .marquee-track { animation-play-state: paused; }

.cred-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  font-size: 0.95rem;
}
.cred-strip li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 2.25rem;
  white-space: nowrap;
}

@keyframes cred-marquee {
  to { transform: translateX(-50%); }
}
.cred-strip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--honey);
  flex: none;
}

/* ---------- Sections ---------- */

section { padding-block: clamp(3rem, 7vw, 4.5rem); }

/* Keep anchor targets clear of the sticky header (which is ~83px tall) */
[id] { scroll-margin-top: 6.5rem; }

.section-alt { background: var(--paper-deep); }

.section-head { max-width: var(--measure); margin-bottom: 2.25rem; }

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-head p { color: var(--ink-soft); }

/* ---------- Service pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 1.5rem;
}

.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.pillar .pillar-sub {
  color: var(--honey-deep);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pillar ul { list-style: none; }

.pillar p:not(.pillar-sub) { color: var(--ink-soft); }
.pillar p:not(.pillar-sub) + p { margin-top: 0.85rem; }

.pillar li {
  padding: 0.5rem 0 0.5rem 1.6rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.pillar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--honey);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: #fff;
  /* 2px on every card so the highlighted one doesn't shift by a pixel */
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.popular { border-color: var(--honey); }

.price-card .flag {
  position: absolute;
  top: -0.8rem;
  left: 1.5rem;
  background: var(--honey);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
}

.price-card h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }

.price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.price-blurb { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 1rem; }

.price-card ul { list-style: none; }
.price-card li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  position: relative;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--honey);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.price-note {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: var(--measure);
}

.project-pricing { margin-top: 3rem; }
.project-pricing h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.project-pricing > p { color: var(--ink-soft); max-width: var(--measure); margin-bottom: 1.25rem; }

.table-scroll { overflow-x: auto; }

.project-pricing table {
  width: 100%;
  max-width: 46rem;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.97rem;
}
.project-pricing th, .project-pricing td {
  text-align: left;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
}
.project-pricing thead th {
  border-top: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.project-pricing td:last-child { white-space: nowrap; font-weight: 600; }

/* ---------- Ways of working ---------- */

.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}

.way {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.way .num {
  font-weight: 800;
  color: var(--honey-deep);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.way h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.way p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- About ---------- */

/* Single column until a photo exists; the two-column layout comes back
   automatically when one is uploaded through the CMS. */
.about-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about-grid.has-photo {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}

.about-copy h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.25rem;
}

.about-copy .role {
  color: var(--honey-deep);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.about-copy p { max-width: var(--measure); margin-bottom: 1rem; }

.quals {
  margin-top: 0;
  border-left: 3px solid var(--honey);
  padding: 0.25rem 0 0.25rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.quals strong { color: var(--ink); }

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.5rem;
}

.why-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.why-item h3::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  background: var(--honey);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.why-item p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-intro p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 48ch; }

form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid;
  gap: 1.1rem;
}

.field { display: grid; gap: 0.35rem; }

label { font-weight: 600; font-size: 0.95rem; }

label .optional { font-weight: 400; color: var(--ink-soft); }

input, textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d3c4b1;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}

input:focus, textarea:focus {
  outline: 2px solid var(--honey);
  outline-offset: 0;
  border-color: var(--honey);
}

textarea { resize: vertical; min-height: 8rem; }

.privacy-note { font-size: 0.88rem; color: var(--ink-soft); }

.form-status {
  display: none;
  background: var(--paper-deep);
  border: 1px solid var(--honey);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
}
.form-status.visible { display: block; }

.form-status.error {
  border-color: var(--error);
  color: var(--error);
}

/* Honeypot: off-screen rather than display:none, which some bots skip */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-cta .btn {
  display: block;
  width: 100%;
  text-align: center;
}
.sticky-cta.show { transform: translateY(0); }

@media (max-width: 720px) {
  .sticky-cta { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b6ada1;
  padding-block: 2.5rem;
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1.25rem;
}

.site-footer a { color: #ece7df; }
.site-footer a:hover { color: var(--honey); }

.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-legal { line-height: 1.7; }

/* ---------- Privacy page ---------- */

.prose {
  max-width: var(--measure);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.5rem; letter-spacing: -0.015em; }
.prose .updated { color: var(--ink-soft); margin-bottom: 2rem; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; }
.prose p, .prose li { margin-bottom: 0.7rem; color: var(--ink); }
.prose ul { padding-left: 1.3rem; }

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .about-grid.has-photo, .contact-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .site-header .wrap { justify-content: space-between; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-block: 0.25rem 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    width: 100%;
    text-align: center;
    padding: 0.7rem 1rem;
    font-size: 1.05rem;
  }
  .site-nav a.btn {
    width: auto;
    margin-top: 0.5rem;
    padding: 0.7rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; width: auto; }
  .marquee-track ul { flex-wrap: wrap; gap: 0.4rem 0; padding-inline: clamp(1rem, 4vw, 2rem); }
  .marquee-track ul[aria-hidden="true"], .marquee-track li[aria-hidden="true"] { display: none; }
}

/* ---------- Feedback round 1 additions ---------- */

/* Hero accreditation callout */
.hero-callout {
  display: grid;
  gap: 0.25rem;
  margin-top: 2rem;
  max-width: 56ch;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--honey);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  z-index: 1;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.hero-callout:hover { border-color: var(--honey); color: var(--ink); }
.hero-callout strong { font-size: 1.02rem; }
.hero-callout span { color: var(--ink-soft); font-size: 0.95rem; }
.hero-callout .hero-callout-link { color: var(--honey-deep); font-weight: 600; margin-top: 0.15rem; }

/* Full-width accreditation strip inside Services */
.pillar-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-decoration: none;
  color: var(--ink);
  border-left: 4px solid var(--honey);
}
.pillar-wide:hover { color: var(--ink); border-color: var(--honey); }
.pillar-wide h3 { margin-bottom: 0.35rem; }
.pillar-wide p { max-width: 60ch; }
.pillar-wide .btn { flex: none; }

/* Collapsible package terms */
.terms {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.terms summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--honey-deep);
  list-style: none;
}
.terms summary::-webkit-details-marker { display: none; }
.terms summary::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  font-weight: 700;
}
.terms[open] summary::before { content: "\2013"; }
.terms p { margin-top: 0.5rem; line-height: 1.55; }

/* H&S / accreditation pricing note */
.hs-note {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  background: var(--paper-deep);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hs-note h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.hs-note p { color: var(--ink-soft); max-width: 60ch; }
.hs-note .btn { flex: none; }

.section-cta { margin-top: 2rem; }

/* Real photo in the About block (uploaded via the CMS) */
.portrait-img { object-fit: cover; width: 100%; }

/* Desktop: line the three package cards up row by row (title, price, blurb,
   features, terms) even though their feature lists are different lengths. */
@media (min-width: 960px) {
  @supports (grid-template-rows: subgrid) {
    .price-grid {
      grid-template-rows: auto auto auto 1fr auto;
      row-gap: 0;
      column-gap: 1.5rem;
    }
    .price-card {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 5;
      row-gap: 0;
    }
    /* Feature list + terms sit at the top of the shared final row, so a
       shorter package leaves space at the foot of the card, not a hole. */
    .price-body { align-self: start; }
  }
}

/* Per-package call to action, pinned to the foot of every card */
.price-cta { margin-top: auto; padding-top: 1.5rem; }
.price-cta .btn { display: block; text-align: center; }
.price-card.popular .price-cta .btn {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}
.price-card.popular .price-cta .btn:hover { background: var(--btn-hover); }

/* Package cards break out wider than the page's normal column so feature
   lines fit on one row. Only the grid breaks out; all prose in the section
   stays in the page's normal text column. Collapses to zero below 1124px. */
#pricing .wrap { --breakout: clamp(0rem, (100vw - 1124px) / 2, 14rem); }
.price-grid { margin-inline: calc(-1 * var(--breakout, 0rem)); }

/* ---------- Section intro paired with an image ---------- */

.split { margin-bottom: 2.25rem; }
.split .section-head { margin-bottom: 0; }

.split.has-image {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 860px) {
  .split.has-image { grid-template-columns: 1.05fr 0.95fr; }
}

.split-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ---------- Wide section banner ---------- */

.section-banner {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  /* the subject sits right of centre in a banner with copy space on the left */
  object-position: 72% center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 2.25rem;
}

@media (min-width: 720px) {
  /* 3:1 keeps the band restrained so the service lists stay high on the page */
  .section-banner { aspect-ratio: 3 / 1; object-position: center 55%; }
}

/* ---------- Hero CTA: animated gradient border ---------- */

.cta-glow {
  position: relative;
  display: inline-block;
  padding: 3px;              /* thickness of the moving border */
  border-radius: 999px;
  overflow: hidden;          /* clips the spinning gradient to the pill */
  /* soft lift so the button reads as the primary action */
  box-shadow: 0 6px 18px rgba(239, 152, 87, 0.28);
}

/* An orange ring with a lighter highlight sweeping around it. */
.cta-glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    #c96f28 0deg,
    var(--honey) 80deg,
    #ffe3c2 145deg,
    var(--honey) 210deg,
    #c96f28 310deg,
    #c96f28 360deg
  );
  will-change: transform;
  animation: cta-border 5s linear infinite;
}

.cta-glow .btn {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;          /* clips the shimmer to the pill */
}

/* A highlight that sweeps across the face of the button, then rests.
   The sweep takes ~1.2s of a 6s cycle, so it reads as an occasional
   glint rather than constant movement. */
.cta-glow .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 62%
  );
  transform: translateX(-130%);
  pointer-events: none;
  animation: cta-shimmer 6s ease-in-out infinite;
}

@keyframes cta-shimmer {
  0%   { transform: translateX(-130%); }
  20%  { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

@keyframes cta-border {
  from { transform: translate(-50%, -50%) rotate(0turn); }
  to   { transform: translate(-50%, -50%) rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-glow::before,
  .cta-glow .btn::after { animation: none; }
  .cta-glow .btn::after { opacity: 0; }
}

/* ---------- Scroll reveals ---------- */

/* Only hidden when JS is available, so the content is never stranded.
   Uses `translate` rather than `transform` so the hover lift below can
   use `transform` without the two fighting each other. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    translate: 0 14px;
    /* Must also carry the hover-state properties: this shorthand would
       otherwise override the card hover transition below, since
       `.js [data-reveal]` outranks `.pillar` / `.price-card`. */
    transition:
      opacity 0.55s ease,
      translate 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.2s ease,
      box-shadow 0.2s ease,
      border-color 0.2s ease;
  }
  .js [data-reveal].revealed {
    opacity: 1;
    translate: none;
  }
}

/* ---------- Card hover lift ---------- */

@media (hover: hover) and (pointer: fine) {
  .pillar,
  .price-card,
  .way {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .pillar:hover,
  .price-card:hover,
  .way:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(25, 22, 19, 0.10);
  }
}

/* ---------- Form validation states ---------- */

.field-error {
  color: var(--error);
  font-size: 0.88rem;
  line-height: 1.4;
  margin-top: 0.35rem;
}

/* Errors are never signalled by colour alone: each invalid field also gets
   a written message underneath it. */
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
}

input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
  outline-color: var(--error);
  border-color: var(--error);
}

/* ---------- CIPD digital badge ---------- */

.quals-row {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.cipd-badge {
  flex: none;
  width: 128px;
  height: auto;
  border-radius: 10px;
}

/* the badge artwork is on white, so give it a white chip on the dark footer */
.cipd-badge-footer {
  width: 82px;
  background: #fff;
  padding: 5px;
  border-radius: 10px;
}
