/* ============================================================
   HRound — brand layer
   Brings the site in line with the HRound Design System
   (claude.ai → "HRound Design System"), whose own files are
   project/tokens.css and project/colors_and_type.css.

   Loaded LAST on every page, after styles.css, theme.css and
   phri.css, so it has the final say without those files being
   rewritten. Remove the one <link> and the site returns to
   exactly what it looked like before — nothing else to undo.

   Typography decision (2026-11-30): the display face is used in
   the first screen only. The system sets every heading in Big
   Shoulders, but a condensed 800-weight face in caps on eight
   headings in a row gives the eye nowhere to rest. The system
   already draws this line one level down — its own h3 is Work
   Sans, not display — so this moves that line up a step rather
   than breaking the rule.
   ============================================================ */

/* ------------------------------------------------------------
   1. Colour tokens — the system's values
   ------------------------------------------------------------ */
:root {
  --rust:            #C0522A;   /* was #B5451B */
  --rust-hi:         #D4633A;
  --rust-deep:       #A3441F;
  --rust-heading:    #C0522A;
  --text:            #1A2535;   /* was #1E1E30 */
  --text-2:          #51647A;
  --text-3:          #2E5070;
  --muted:           #7A90A8;
  --warm-gold:       #E8B84B;
  --bg-soft:         #F4F7FA;
  --bg-tint:         #D8E6F0;
  --hairline:        #DCE5EE;
  --hairline-2:      #C8D6E4;
  --footer-bg:       #1A2535;
  --footer-text:     #D8E6F0;
  --footer-muted:    #7A90A8;
  --footer-hairline: #3A5068;
}

/* Program pages carry their own scoped palette. */
.phri2 {
  --dark:      #1A2535;
  --body:      #51647A;
  --muted:     #7A90A8;
  --border:    #DCE5EE;
  --bg:        #F4F7FA;
  --rust:      #C0522A;
  --amber:     #E8B84B;
  --violet:    #4A7FA5;   /* the system has no violet; steel blue is its second accent */
  --violet-bg: #D8E6F0;
  /* --sand is deliberately NOT remapped — see note 5 below. */
}

/* ------------------------------------------------------------
   2. The display face — first screen only
   One loud moment per page. Everything below it stays in the
   text face, so the condensed face keeps its impact.
   ------------------------------------------------------------ */
.hero--split .hero__h1,          /* home */
.hero-content .hero-headline,    /* PHRi, SPHRi */
.page-header__h1 {               /* about, programs, aPHRi */
  font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif !important;
  font-weight: 800 !important;
  /* Sentence case, not the system's uppercase. A condensed 800-weight
     face in caps was one intensity too many for a headline this size;
     the face and the stamp carry the brand on their own. !important is
     still needed because theme.css pins text-transform on these same
     selectors. */
  text-transform: none !important;
  letter-spacing: 0.005em !important;
  line-height: 0.95 !important;
}

/* A condensed face reads smaller at the same size, so the display
   sizes go up to keep the optical weight these headings had. */
.hero--split .hero__h1       { font-size: clamp(48px, 6.9vw, 96px) !important; }
.page-header__h1             { font-size: clamp(42px, 5.9vw, 80px) !important; }

/* The program heroes sit in a fixed-height panel with a lede, a status
   line and two buttons under the headline. A condensed face in caps
   stacks more lines than the old one did, so these are sized down and
   allowed the full column width — a narrow measure broke the SPHRi
   headline over four lines, which is too many for a hero. */
.hero-content .hero-headline {
  font-size: clamp(32px, 3.9vw, 54px) !important;
  max-width: none;
}

/* The accent word is already rust, so the rust stamp behind it only
   doubles the letters instead of lifting them off the page. The stamp
   stays on the words it actually separates. */
.hero--split .hero__h1 .accent-rust,
.page-header__h1 .text-rust { text-shadow: none !important; }

/* The signature stamp: a tight rust offset, bottom-right, no blur.
   The system calls this its one non-negotiable mark. */
.hero--split .hero__h1,
.hero-content .hero-headline,
.page-header__h1 { text-shadow: 0.035em 0.035em 0 var(--rust) !important; }

/* On the dark program heroes the stamp would disappear into the
   background, so there it reads in gold instead. */
.hero-content .hero-headline { text-shadow: 0.035em 0.035em 0 var(--warm-gold) !important; }

/* ------------------------------------------------------------
   3. Section headings — the text face, one step heavier
   ------------------------------------------------------------ */
.phri2 h2,
.section-final-cta h2,
.trainer-info h2,
.section__h,
.join__h,
.mv__h {
  font-family: 'Work Sans', sans-serif !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: -0.015em !important;
  line-height: 1.15 !important;
}
.phri2 h3,
.phri2 h4 {
  font-family: 'Work Sans', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.005em !important;
}

/* The small eyebrow h1 on the program pages is a label, not a
   headline: it must keep the text face and must never be
   uppercased, or PHRi™ would be spelled PHRI™. */
.hero-content h1.hero-eyebrow {
  font-family: 'Work Sans', sans-serif !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0.1em !important;
}

/* ------------------------------------------------------------
   4. Keep the credential names spelled correctly
   Any span marked .no-upper stays as written even inside an
   uppercased heading (used for aPHRi™ in the aPHRi header).
   ------------------------------------------------------------ */
.no-upper { text-transform: none !important; }

/* ------------------------------------------------------------
   5. Deliberate deviation from the system
   The final call-to-action band keeps its warm sand (--sand,
   #F1E9DF). The system has no warm neutral and would make this
   panel Light Blue (#D8E6F0). Sand was chosen and approved for
   this band on 2026-11-29 because the block sits between a white
   section and a light footer, and sand separates them without the
   hard seam a cool tint leaves. Swap --sand to #D8E6F0 in phri.css
   to follow the system literally.
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   7. The three pillars under the home hero
   Was: three centre-aligned rows separated by hairlines, which on a
   phone collapsed into a plain stack of captions with lines between
   them. The design system answers this shape with cards — its own
   website kit describes "three numbered feature cards … gold number
   chips" — so that is what these are now.

   Colours follow the system's rules: Light Blue (#D8E6F0) is its card
   surface on light, and gold is allowed on badges but never as text on
   white, so the numeral sits on a gold chip with navy figures.
   ------------------------------------------------------------ */
.hero--split .pillars-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.hero--split .pillars {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 3.2vw, 44px) clamp(20px, 3vw, 56px);
  gap: clamp(14px, 1.6vw, 20px);
}
.hero--split .pillar {
  /* The hairline dividers belonged to the old row layout. */
  border: 1px solid var(--hairline) !important;
  background: #FFFFFF;
  border-radius: 14px;                  /* the system's --r-lg */
  padding: clamp(20px, 2vw, 26px);
  align-items: flex-start;
  text-align: left;
  gap: 14px;
}
.hero--split .pillar__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;                   /* the system's --r-sm */
  background: var(--warm-gold);
  color: var(--text);
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-top: 0;
}
.hero--split .pillar__title {
  font-size: 16.5px;
  letter-spacing: -0.005em;
  margin-bottom: 5px;
}
.hero--split .pillar__desc { font-size: 14px; line-height: 1.55; }

@media (max-width: 860px) {
  .hero--split .pillars { grid-template-columns: 1fr; }
  /* Row direction on a phone: the chip sits beside the title instead of
     above it, so each card stays compact rather than growing a column. */
  .hero--split .pillar { flex-direction: row; align-items: flex-start; }
}
