/* ============================================================
   EQV Group : shared styles
   Edit this file to change colours, fonts, or nav across
   the whole site at once.
   ============================================================ */

/* Fonts are loaded via <link> in each page head: no @import here.
   @import is render-blocking and was duplicating the same request. */

/* ── Tokens ──────────────────────────────────────────────────
   Single source of truth for type, colour, motion and shape.
   Every page reads from here. Change it once, changes everywhere.
   ──────────────────────────────────────────────────────────── */
:root {
  /* Colour: navy anchor, terracotta warmth.
     Greys darkened from #9A9A9A / #CCCCCC, which failed WCAG AA
     contrast on white (2.8:1 and 1.6:1). These pass. */
  --navy:        #164A83;
  --navy-deep:   #0F3563;
  --navy-light:  #2a6ab8;
  --grey:        #6B6B6B;   /* 5.3:1 on white  */
  --grey-soft:   #8A8A8A;   /* 3.5:1: large text and borders only */
  --light-grey:  #D8D8D8;   /* borders only, never text */
  --rule:        #ECEAE4;
  --bg:          #ffffff;
  --ink:         #16181C;
  --ink-muted:   #4A4E57;

  --terracotta:       #B8482A;
  --terracotta-light: #E3DFD5;
  --cream:            #FBF9F5;
  --card-border:      #E5E0D4;

  /* Type scale: one ratio, so nothing feels bolted on.
     The old site mixed ad-hoc clamps per page; that was the
     "disconnected" feeling. */
  --step--1: clamp(12px, 0.7vw + 10px, 13px);
  --step-0:  clamp(15px, 0.4vw + 14px, 17px);
  --step-1:  clamp(19px, 0.8vw + 17px, 23px);
  --step-2:  clamp(24px, 1.6vw + 20px, 32px);
  --step-3:  clamp(30px, 3vw + 22px, 46px);
  --step-4:  clamp(38px, 5.5vw + 20px, 76px);
  --step-5:  clamp(44px, 8vw + 18px, 104px);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Body weight lifted 300 → 400. 300 at 14px was thin for a
     readership that skews 40+. */
  --wt-body: 400;
  --wt-med:  500;

  /* Motion: every transition and reveal reads these, so
     prefers-reduced-motion can switch the whole site off at once. */
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 620ms;
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --reveal-y: 22px;

  /* Product accents. Each offering owns one colour, used for its band, its
     eyebrows and its emphasis, so a page is identifiable at a glance without
     changing the whole ground. All four pass AA as text on white and take
     white text when used as a band. */
  --c-relay:     #164A83;   /* navy    */
  --c-fieldnote: #1A6153;   /* teal    */
  --c-relayjr:   #B8482A;   /* terracotta */
  --c-adult:     #4A4478;   /* violet  */

  --nav-h: 72px;
  --measure: 62ch;
}

/* One switch. Honours the OS setting for anyone who gets motion
   sick or has a vestibular disorder : and it's a WCAG requirement
   that school procurement checklists do look for. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --reveal-y: 0px;
  }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  font-family: var(--font-body);
  font-weight: var(--wt-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  z-index: 200;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  text-decoration: none;
}

.brand-eqv {
  font-family: var(--font-body);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 300;
  color: var(--grey);
  letter-spacing: -0.01em;
}

.brand-group {
  font-family: var(--font-body);
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* RELAY's distinct nav lockup: "RELAY" leads, small "by eqv Group" caption
   sits underneath. Colours are set per-page (relay.html overrides for its
   dark world); these are sensible light-theme defaults. */
.nav-brand--relay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1em;
}
.brand-relay {
  font-family: var(--font-body);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.brand-relay-by {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--grey);
  line-height: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--navy); }

.nav-link.active::after,
.nav-link:hover::after { transform: scaleX(1); }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 640px) {
  .site-nav { padding: 0 1.5rem; }

  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--light-grey);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li { width: 100%; }

  .nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 15px;
    border-bottom: 1px solid var(--light-grey);
  }
  .nav-links li:last-child .nav-link { border-bottom: none; }
}

/* ── Page shell ── */
.page-content {
  margin-top: var(--nav-h);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── Footer ──
   The rule runs the full width of the viewport; only the text inside
   is constrained by .container. Previously the border sat on the
   container itself, so the line stopped 800px in and floated. */
.site-footer {
  padding: 2rem 0;
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--rule);
  width: 100%;
}

/* ── Shared utilities ── */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (max-width: 640px) {
  .container { padding: 0 1.5rem; }
}

.divider {
  width: 32px;
  height: 1px;
  background: var(--light-grey);
  margin: 2rem 0;
}

/* Display / body type helpers */
.display-italic {
  font-family: var(--font-display);
}

.cta-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.cta-link:hover { opacity: 0.6; }

/* ── Pill buttons ──
   Solid + outline variants. Used in place of the old underline-only
   CTAs wherever a page wants a stronger, warmer call to action. */
.pill-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pill-btn--navy {
  background: var(--navy);
  color: #fff;
}
.pill-btn--navy:hover { opacity: 0.85; }

.pill-btn--terracotta {
  background: var(--terracotta);
  color: #fff;
}
.pill-btn--terracotta:hover { opacity: 0.85; }

.pill-btn--outline {
  background: transparent;
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.pill-btn--outline:hover {
  background: var(--terracotta);
  color: #fff;
}

/* ── Hand-drawn underline accent ──
   A small squiggle, not a straight rule : sits under a word to add a
   touch of warmth without any illustration. */
.squiggle-underline {
  position: relative;
  white-space: nowrap;
}
.squiggle-underline svg {
  position: absolute;
  left: 0;
  bottom: -0.28em;
  width: 100%;
  height: 0.3em;
  pointer-events: none;
}

/* ── Colour-blocked cards ──
   Solid navy / terracotta / ink tiles, used for value props and
   similar short, scannable groups of 3. */
.color-card {
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 110px;
  background: var(--cream);
  border: 1px solid var(--card-border);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.color-card:hover {
  border-color: var(--terracotta-light);
}
.color-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  margin-bottom: 0.5rem;
}
.color-card p {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
}
.color-card--navy       h3 { color: var(--navy); }
.color-card--terracotta h3 { color: var(--terracotta); }
.color-card--ink        h3 { color: #2C2C2A; }

/* ── Warm option card ──
   Softer replacement for plain bordered boxes (Contact page etc). */
.warm-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--cream);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.warm-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-1px);
}
.warm-card-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.3rem;
}
.warm-card-value {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--navy);
}
.warm-card-value.terracotta { color: var(--terracotta); }
.warm-card-note {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--grey);
  margin-top: 0.3rem;
}
.warm-card-arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.2s ease;
}
.warm-card-arrow.terracotta { background: var(--terracotta); }

/* ════════════════════════════════════════════════════════════
   DESIGN SYSTEM : added in the revamp.
   Type, motion and shape primitives shared by every page.
   ════════════════════════════════════════════════════════════ */

/* ── Type ──
   One family of classes so headings match across pages instead of
   each page inventing its own clamp(). */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: var(--wt-med);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.25rem;
}

/* The impact statement. Display face, tight leading, optically
   centred. This is the treatment that was reading as disconnected :
   it now shares a scale and a colour logic with everything else. */
.impact {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
.impact--centred {
  text-align: center;
  margin-inline: auto;
  max-width: 16ch;
}
/* The emphasis inside an impact statement stays italic: that is the one
   place it earns its keep. Titles are upright. */
.impact em {
  font-style: italic;
  color: var(--accent, var(--navy));
}

.h-section {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.h-card {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

.lede {
  font-size: var(--step-1);
  font-weight: var(--wt-body);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 46ch;
  text-wrap: pretty;
}

.body-text {
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: var(--measure);
  text-wrap: pretty;
}

.caption {
  font-size: var(--step--1);
  color: var(--grey);
  letter-spacing: 0.01em;
}

/* ── Motion: scroll reveal ──
   Generalised from the framework-step reveal. Any element with
   [data-reveal] fades and rises once, when it first enters view.
   Children can stagger via --i.

   .no-js fallback: if the observer never runs, content must still
   be visible : so the hidden state is only applied once JS has
   marked the document ready. */
[data-reveal] { opacity: 1; }

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition:
    opacity   var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Shape motifs ──
   Built from the Banner Graphics in 02 Marketing. Decorative only :
   always aria-hidden, always pointer-events:none so they can never
   swallow a click. */
.motif {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.motif--dot {
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.14;
}
.motif--dot-terracotta { background: var(--terracotta); opacity: 0.16; }
.motif--ring {
  border-radius: 50%;
  border: 1.5px solid var(--terracotta);
  opacity: 0.28;
  background: none;
}
.motif--ring-navy { border-color: var(--navy); opacity: 0.2; }

.motif-cluster {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  gap: 6px;
}
.motif-cluster span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.2;
}

/* Anything that sits above the motifs */
.layer-up { position: relative; z-index: 1; }

/* ── Full-bleed decoration ──
   The container caps content at 800px, which is right for reading but
   wrong for graphics: motifs placed inside it stop dead in a rectangle
   with white margins either side, which reads as a box floating on the
   page rather than a page with atmosphere.

   .stage is the section. .stage-decor is a sibling layer that ignores
   the container entirely and spans the full viewport, so rings and dots
   can run off every edge. Content still sits in .container on top.

   Requires overflow-x:hidden on <html>, which is already set. */
.stage {
  position: relative;
  overflow: hidden;
}

.stage-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  overflow: hidden;
}

/* Elements inside .stage-decor position against the full width, so
   negative offsets genuinely hang off the edge of the screen. */
.stage-decor .motif { position: absolute; }

/* Visually hidden, still read aloud. For giving a logo lockup a real
   text name so screen readers and search engines see a heading. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Page hero ──
   Shared by every interior page so they open the same way. The decor
   layer is full-bleed; the text sits in the container on top. */
.page-hero {
  padding: 6rem 0 3.5rem;
}

/* Default decorative furniture. Rings are deliberately hung off the
   edges : the crop is what stops the page reading as a box. */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--terracotta);
  opacity: 0.3;
}
.hero-ring--r {
  width: clamp(300px, 40vw, 560px);
  height: clamp(300px, 40vw, 560px);
  right: clamp(-240px, -12vw, -110px);
  top: clamp(-150px, -8vw, -60px);
}
.hero-ring--l {
  width: clamp(240px, 30vw, 420px);
  height: clamp(240px, 30vw, 420px);
  left: clamp(-200px, -13vw, -110px);
  bottom: clamp(-170px, -10vw, -80px);
  border-color: var(--navy);
  opacity: 0.18;
}

.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.2;
}
.hero-dot--a { width: 14px; height: 14px; right: 12%; top: 18%; background: var(--terracotta); opacity: 0.4; }
.hero-dot--b { width: 9px;  height: 9px;  right: 26%; top: 46%; }
.hero-dot--c { width: 11px; height: 11px; left: 6%;   bottom: 14%; background: var(--terracotta); opacity: 0.3; }

/* The shapes drift rather than sitting still. Slow and staggered, so it
   reads as atmosphere rather than movement demanding attention. */
.hero-ring--r { animation: ringDrift 22s ease-in-out infinite; }
.hero-ring--l { animation: ringDrift 28s ease-in-out infinite reverse; }
.hero-dot--a  { animation: dotFloat 7s  ease-in-out infinite; }
.hero-dot--b  { animation: dotFloat 9s  ease-in-out infinite 1.4s; }
.hero-dot--c  { animation: dotFloat 11s ease-in-out infinite 0.7s; }

@keyframes ringDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-18px, 14px) scale(1.04); }
  66%      { transform: translate(12px, -10px) scale(0.98); }
}
@keyframes dotFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ring--r, .hero-ring--l,
  .hero-dot--a, .hero-dot--b, .hero-dot--c { animation: none; }
}

@media (max-width: 640px) {
  .page-hero { padding: 3.5rem 0 2.5rem; }
  .hero-dot--b, .hero-dot--c { display: none; }
}

/* ── Card grids ──
   The container gives 704px of content (800 minus 3rem padding each side).
   auto-fit with a 220 to 240px minimum needs 708 to 752px for three columns,
   so every three-up grid on the site was silently wrapping to 2 + 1.
   These are explicit instead of hopeful. */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Social icons ── */
.social-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.social-link svg { width: 17px; height: 17px; fill: currentColor; }
.social-link:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ── Legal pages ──
   Long-form prose. Narrower measure, clear hierarchy, generous
   leading : these get read carefully or not at all. */
.legal { padding: 1rem 0 5rem; max-width: 68ch; }
.legal h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  color: var(--ink);
  margin: 2.8rem 0 0.9rem;
  line-height: 1.2;
}
.legal h3 {
  font-size: var(--step-0);
  font-weight: var(--wt-med);
  color: var(--ink);
  margin: 1.6rem 0 0.5rem;
}
.legal p, .legal li {
  font-size: var(--step-0);
  line-height: 1.8;
  color: var(--ink-muted);
}
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1.2rem 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--navy); }
.legal strong { color: var(--ink); font-weight: var(--wt-med); }

.legal-meta {
  font-size: var(--step--1);
  color: var(--grey);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.4rem;
  margin-bottom: 1rem;
}

/* Anything still to be confirmed is marked, not quietly guessed. */
.tbc {
  background: #FFF4E0;
  border-left: 3px solid var(--terracotta);
  border-radius: 0;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0 1.4rem;
  font-size: 14.5px;
  line-height: 1.7;
  color: #6B4310;
}
.tbc strong { color: #4A2D08; }

/* A product page announces itself with a hairline of its own colour under
   the nav, then uses that colour for accents. Cheap, and it means RELAY and
   Fieldnote never feel like the same page. */
.accent-rule {
  height: 3px;
  width: 100%;
  background: var(--accent, var(--navy));
}
.page-accent .eyebrow { color: var(--accent); }
.page-accent .impact em { color: var(--accent); }
.page-accent .hero-ring--r { border-color: var(--accent); }
.page-accent .hero-dot--a { background: var(--accent); }

/* ── Introducing band ──
   Full-bleed navy strip. Does the framing work so the product cards
   underneath don't have to fight each other for status. */
.band {
  background: var(--accent, var(--navy));
  color: #fff;
  padding: 3.2rem 0;
  width: 100%;
}
.band .eyebrow { color: rgba(255,255,255,0.62); }
.band-title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}
.band-title em { font-style: italic; color: #F0A385; }
.band-sub {
  font-size: var(--step-0);
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  max-width: 52ch;
  margin-top: 1rem;
}

/* ── Product cards ──
   Shared by the homepage and the RELAY Suite page so the two never
   drift apart. */
.suite-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem 0 4rem;
}

.suite-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  background: var(--cream);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 2rem 2.2rem;
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}
.suite-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

/* The flagship gets a heavier border and a warmer ground: enough to
   lead without demoting the others to footnotes. */
.suite-card--flagship {
  background: #fff;
  border: 2px solid var(--navy);
  padding: 2.3rem 2.2rem;
}
.suite-card--flagship:hover { border-color: var(--terracotta); }
.suite-card--flagship h2 { font-size: var(--step-3); }
.suite-card--flagship p { font-size: var(--step-0); }

@media (max-width: 560px) {
  .suite-card { grid-template-columns: 1fr; gap: 1.2rem; }
}

.suite-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.suite-tag {
  font-size: 11px;
  font-weight: var(--wt-med);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: #E4ECF7;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}
.suite-tag--flagship { color: #fff; background: var(--terracotta); }
.suite-tag--soon     { color: #6E4310; background: #F6EBDA; }

.suite-card h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
}
.suite-card p {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-top: 0.5rem;
  max-width: 48ch;
}

.suite-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: background var(--dur-base) var(--ease);
}
.suite-card:hover .suite-arrow { background: var(--terracotta); }

/* ── Focus ──
   Visible keyboard focus everywhere. There was none before. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link: first tab stop, for keyboard and screen reader users. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 500;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.1rem;
  font-size: var(--step--1);
  font-weight: var(--wt-med);
  text-decoration: none;
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* ════════════════════════════════════════════════════════════
   NAVIGATION : RELAY Suite dropdown
   The parent is a real link to the suite master page, with a
   separate toggle button for the submenu. That way the parent is
   reachable by keyboard and on touch, where hover doesn't exist.
   ════════════════════════════════════════════════════════════ */
.nav-item { position: relative; }

.nav-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-caret {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--ink-muted);
  display: inline-flex;
  line-height: 0;
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-caret svg { width: 9px; height: 9px; }
.nav-caret[aria-expanded="true"] { transform: rotate(180deg); color: var(--navy); }

.nav-submenu {
  list-style: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -1rem;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 12px 34px rgba(22, 24, 28, 0.09);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    visibility var(--dur-fast);
}
.nav-item.open > .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-submenu a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease);
}
.nav-submenu a:hover { background: var(--cream); }

.nav-sub-name {
  display: block;
  font-size: 14px;
  font-weight: var(--wt-med);
  color: var(--ink);
}
.nav-sub-desc {
  display: block;
  font-size: 12px;
  color: var(--grey);
  margin-top: 1px;
}

@media (max-width: 640px) {
  .nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0.5rem 0.75rem;
    min-width: 0;
    display: none;
  }
  .nav-item.open > .nav-submenu { display: block; }
  .nav-group { justify-content: space-between; width: 100%; }
  .nav-caret { padding: 12px 4px; }
}

/* Footer: copyright left, legal links right. */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: baseline;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a {
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.footer-links a:hover { color: var(--navy); border-bottom-color: var(--navy); }



/* LinkedIn mark in the footer, sized to sit level with the legal links. */
.footer-social {
  display: inline-flex;
  align-items: center;
  color: var(--grey);
  transition: color var(--dur-fast) var(--ease);
}
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-social:hover { color: var(--navy); }

/* ── Problem chips ──
   Under each offering: the three things it is actually for, in plain words,
   plus a link straight to the part of the product page that shows it. The
   card is no longer one big anchor, because a link inside a link is invalid
   and made the chips unreachable by keyboard.
   Each card takes its product colour via --accent. */
.suite-card-foot {
  border-top: 1px solid var(--card-border);
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.solve-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

/* One class carries the whole chip, whether or not it is a link. Styling the
   li and the anchor separately gave linked chips two markers. */
.chip {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.chip::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent, var(--terracotta));
  margin-right: 0.45rem;
  vertical-align: 1px;
}
a.chip:hover {
  border-color: var(--accent, var(--terracotta));
  color: var(--ink);
}

.learn-more {
  font-size: 12.5px;
  font-weight: var(--wt-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, var(--navy));
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease);
}
.learn-more:hover { border-bottom-color: currentColor; }
.learn-more span { transition: transform var(--dur-fast) var(--ease); display: inline-block; }
.learn-more:hover span { transform: translateX(3px); }

/* Card title is the link now, not the whole card. */
.suite-card h2 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease);
}
.suite-card h2 a:hover { border-bottom-color: var(--accent, var(--terracotta)); }
.suite-card:hover { border-color: var(--accent, var(--terracotta)); }
.suite-card:hover .suite-arrow { background: var(--accent, var(--terracotta)); }
.suite-arrow-link { display: inline-flex; text-decoration: none; }

/* Adult Education sits outside the suite but still carries its own colour,
   so the four-colour motif holds across the whole homepage. */
.beyond-eyebrow { color: var(--accent); }
.pill-btn--accent { background: var(--accent, var(--navy)); color: #fff; }
.pill-btn--accent:hover { opacity: 0.88; }
