/* Small portability improvements; the original design is in styles.css. */
input[type="checkbox"].consent-box {
  appearance: auto;
  accent-color: #bf1028;
}

/* ============================================================
   Accessible mobile navigation
   Below 1000px five links no longer fit the bar, so a toggle
   button (injected by site.js) opens the nav as a full-width
   panel instead. Keep the breakpoint in sync with site.js.
   ============================================================ */
.nav-toggle {
  display: none;
}
.header nav a {
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .header {
    position: relative;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .brand {
    margin-right: auto;
  }

  .nav-toggle {
    order: 3;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 44px;
    padding: 0 11px;
    background: #ffffff14;
    border: 1px solid #ffffff3d;
    cursor: pointer;
    display: flex;
  }
  .nav-toggle span {
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform .25s ease, opacity .2s ease;
  }
  .header[data-nav-open] .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .header[data-nav-open] .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .header[data-nav-open] .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    z-index: 60;
    flex-direction: column;
    gap: 0;
    padding: 4px 6% 12px;
    font-size: 16px;
    background: linear-gradient(160deg, #4c000b 0%, #1b0206 55%, #0b0b0b 100%);
    border-bottom: 1px solid #ffffff1f;
    box-shadow: 0 26px 44px -26px #000000cc;
  }
  .header[data-nav-open] nav {
    display: flex;
  }
  .header nav a {
    color: #fff;
    padding: 15px 2px;
    border-bottom: 1px solid #ffffff14;
  }
  .header nav a:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span,
  .resource-cover img {
    transition: none;
  }
  .resource:hover .resource-cover img {
    transform: none;
  }
}

/* ============================================================
   Site-wide fixes
   ============================================================ */
/* Small grey labels on light grounds were 3.4–4.3:1; #666 reaches 4.5:1. */
.blog-meta {
  color: #666;
}
.blog-feature .blog-meta span {
  color: #ff5468;
}
/* Black on brand red can never reach 3:1, so the emphasised word
   becomes white type on a black block instead. */
.blog-cta h2 em {
  color: #fff;
  background: #171717;
  padding: 0 .08em;
}
/* Article figures bleed 10% past the text column on desktop; below
   1000px that pushed the page sideways, so they sit inside it. */
@media (max-width: 1000px) {
  .article-body figure {
    margin: 38px 0;
  }
}

/* Prices intro: the coaches fill the right half of the first screen. */
.pricing-hero-media {
  display: none;
}
@media (min-width: 1001px) {
  .pricing-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    column-gap: 64px;
    display: grid;
  }
  .pricing-hero > :not(.pricing-hero-media) {
    grid-column: 1;
  }
  .pricing-hero-media {
    grid-area: 1 / 2 / span 4;
    margin: 0;
    display: block;
    position: relative;
  }
  .pricing-hero-media img {
    object-fit: cover;
    object-position: 50% 28%;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    inset: 0;
  }
  .pricing-hero-media figcaption {
    color: #fff;
    letter-spacing: .12em;
    background: #191919;
    padding: 10px 14px 0 0;
    font-size: 11px;
    position: absolute;
    bottom: 0;
    left: 0;
  }
}

/* Personal training: the free consultation and free trial session that
   come before anyone joins, set out ahead of the packages. */
.pt-first-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
  display: grid;
}
.pt-first-steps article {
  background: #191919;
  color: #fff;
  border-left: 3px solid var(--primary);
  padding: 26px 28px;
}
.pt-first-steps .pt-step-label {
  color: #ff8a98;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}
.pt-first-steps h3 {
  letter-spacing: -1px;
  margin: 10px 0 12px;
  font-size: 26px;
}
.pt-first-steps article > p:not(.pt-step-label) {
  color: #d6d6d6;
  font-size: 15px;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .pt-first-steps {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Interior page intro (About, Free resources)
   ============================================================ */
.page-hero {
  color: #fff;
  background: linear-gradient(110deg, #650010 0%, #310008 42%, #0b0b0b 100%);
  padding: 94px 5% 64px;
}
.page-hero .eyebrow {
  color: #e7a7af;
  margin-bottom: 26px;
}
.page-hero h1 {
  max-width: 15ch;
  margin: 0 0 26px;
}
.page-hero-intro {
  color: #d7d7d7;
  max-width: 560px;
  font-size: 19px;
}
.page-hero-meta {
  letter-spacing: .08em;
  border-top: 1px solid #ffffff2b;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 20px;
  font-size: 11px;
  display: flex;
}

/* 404: the intro fills the screen so the footer sits at the bottom. */
.not-found {
  min-height: calc(100vh - 82px);
  min-height: calc(100svh - 82px);
}
.not-found-links {
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 40px;
  font-size: 15px;
  display: flex;
}
.not-found-links a:not(.button) {
  color: #fff;
  text-underline-offset: 5px;
}
.not-found-links a:not(.button):hover {
  text-decoration: underline;
}

/* Our results: twelve photos as even centred rows: six and six on wide
   screens, three rows of four on tablets, pairs on phones. Centring keeps a
   short last row in the middle if the count changes. Replaces styles.css's
   six/three/two grid. */
.results-grid {
  --results-cols: 6;
  --results-gap: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--results-gap);
}
.results-grid figure {
  flex: 0 0 calc((100% - (var(--results-cols) - 1) * var(--results-gap)) / var(--results-cols));
  min-width: 0;
}
@media (max-width: 1000px) {
  .results-grid { --results-cols: 4; }
}
@media (max-width: 700px) {
  .results-grid { --results-cols: 2; }
}

/* Our results intro: the longer paragraph reads in full ink at body size. */
.results > p.results-intro {
  color: #2e2e2e;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.65;
}

/* ============================================================
   Our mission (homepage, straight after the hero)
   Statement on the left, the full mission on the right.
   ============================================================ */
.mission {
  background: #fff;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 26px 80px;
  display: grid;
}
.mission .eyebrow {
  color: var(--primary);
  grid-column: 1 / -1;
}
.mission h2 {
  max-width: 13ch;
}
.mission-copy {
  color: #2e2e2e;
  padding-top: 8px;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.7;
}
.mission-copy strong {
  color: var(--foreground);
  font-weight: 700;
}
@media (max-width: 900px) {
  .mission {
    grid-template-columns: 1fr;
  }
  .mission h2 {
    max-width: 16ch;
  }
  .mission-copy {
    padding-top: 0;
  }
}

/* ============================================================
   Google reviews band (homepage)
   Deliberately borrows Google's own review look (light grey ground,
   white rounded cards, yellow stars, blue links) so visitors recognise
   the reviews as Google's at a glance. Kept to one compact band.
   ============================================================ */
.google-reviews {
  --g-text: #202124;
  --g-muted: #70757a;
  --g-body: #3c4043;
  --g-blue: #1a73e8;
  --g-star: #fbbc04;
  --g-star-empty: #dadce0;
  --g-card-shadow: 0 1px 2px #3c40434d, 0 1px 3px 1px #3c404326;
  color: var(--g-text);
  background: #f1f3f4;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: 24px 48px;
  padding: 48px 5%;
  font-family: Roboto, Arial, sans-serif;
  display: grid;
}
.google-reviews[hidden] {
  display: none;
}
.greviews-logo {
  width: auto;
  height: 18px;
}
.greviews-title {
  letter-spacing: 0;
  margin: 14px 0 4px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}
.greviews-rating {
  align-items: center;
  gap: 10px;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  display: flex;
}
.greviews-rating[hidden] {
  display: none;
}
/* Stars fill to the exact rating: --fill is set from the score. */
.greviews-stars,
.greview-stars {
  --fill: 100%;
  letter-spacing: .04em;
  color: transparent;
  background: linear-gradient(90deg, var(--g-star) var(--fill), var(--g-star-empty) var(--fill));
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Arial, sans-serif;
  line-height: 1;
}
.greviews-stars {
  font-size: 22px;
}
.greviews-count {
  color: var(--g-muted);
  margin-top: 6px;
  font-size: 14px;
}
.greviews-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  display: flex;
}
.greviews-actions a {
  white-space: nowrap;
  border-radius: 18px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s, box-shadow .15s;
}
.greviews-write {
  color: #fff;
  background: var(--g-blue);
}
.greviews-write:hover {
  background: #1765cc;
  box-shadow: 0 1px 2px #3c40434d;
}
.greviews-all {
  color: var(--g-blue);
  background: #fff;
  border: 1px solid #dadce0;
}
.greviews-all:hover {
  background: #f6fafe;
}
.greviews-actions a:focus-visible,
.greviews-list:focus-visible,
.greviews-arrow:focus-visible,
.greview a:focus-visible {
  outline: 2px solid var(--g-blue);
  outline-offset: 2px;
}

.greviews-track {
  min-width: 0;
  position: relative;
}
.greviews-list {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  grid-auto-columns: calc((100% - 32px) / 3);
  grid-auto-flow: column;
  gap: 16px;
  margin: 0;
  padding: 4px 2px 6px;
  list-style: none;
  display: grid;
  overflow-x: auto;
}
.greviews-list::-webkit-scrollbar {
  display: none;
}
.greviews-list:empty {
  display: none;
}
.greview {
  scroll-snap-align: start;
  background: #fff;
  border-radius: 8px;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  display: flex;
  box-shadow: var(--g-card-shadow);
}
.greview-head {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}
.greview-avatar {
  color: #fff;
  object-fit: cover;
  background: #5f6368;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  display: flex;
}
.greview-who {
  min-width: 0;
}
.greview-name {
  color: var(--g-text);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: block;
  overflow: hidden;
}
.greview-name:hover {
  text-decoration: underline;
}
.greview-date {
  color: var(--g-muted);
  font-size: 13px;
}
.greview-stars {
  font-size: 17px;
}
.greview-text {
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  color: var(--g-body);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
}
.greview-more {
  color: var(--g-blue);
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.greview-more:hover {
  text-decoration: underline;
}
.greviews-arrow {
  color: var(--g-body);
  cursor: pointer;
  z-index: 1;
  background: #fff;
  border: 0;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 1px 3px #3c40434d, 0 4px 8px 3px #3c404326;
}
.greviews-arrow[hidden] {
  display: none;
}
.greviews-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}
.greviews-arrow:hover {
  background: #f8f9fa;
}
.greviews-prev {
  left: -20px;
}
.greviews-next {
  right: -20px;
}
.greviews-status {
  color: var(--g-body);
  background: #fff;
  border-radius: 8px;
  max-width: 520px;
  padding: 20px;
  font-size: 15px;
  box-shadow: var(--g-card-shadow);
}
.greviews-status:empty {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .greviews-list {
    scroll-behavior: smooth;
  }
}
@media (max-width: 1000px) {
  .google-reviews {
    grid-template-columns: 1fr;
    padding: 40px 6%;
  }
  .greviews-summary {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 24px;
    display: grid;
  }
  .greviews-logo,
  .greviews-title {
    grid-column: 1 / -1;
  }
  .greviews-rating {
    grid-row: 3 / span 2;
  }
  .greviews-count {
    margin-top: 0;
  }
  .greviews-actions {
    grid-column: 1 / -1;
  }
  .greviews-list {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
}
@media (max-width: 700px) {
  .greviews-list {
    grid-auto-columns: 84%;
  }
  .greviews-arrow {
    display: none;
  }
}

/* ============================================================
   About page
   ============================================================ */
.about-media {
  margin-top: 30px;
}
.about-media img {
  object-fit: cover;
  object-position: 50% 28%;
  width: 100%;
  height: 430px;
  display: block;
}
.about-media figcaption {
  color: #666;
  letter-spacing: .12em;
  margin-top: 12px;
  font-size: 11px;
}

/* ============================================================
   Free resources page
   ============================================================ */
.resource-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  display: grid;
}
.resource {
  background: #f0f0f0;
  border-top: 3px solid #202020;
  flex-direction: column;
  padding: 0 30px 30px;
  display: flex;
}
.resource-cover {
  background: #e4e4e4;
  margin: 0 -30px 28px;
  overflow: hidden;
}
.resource-cover img {
  aspect-ratio: 900 / 872;
  object-fit: cover;
  width: 100%;
  height: auto;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  display: block;
}
.resource:hover .resource-cover img {
  transform: scale(1.04);
}
.resource:nth-child(2) {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px #ddd;
}
.resource .eyebrow {
  color: #666;
  margin-bottom: 18px;
  font-size: 10px;
}
.resource h3 {
  letter-spacing: -.5px;
  margin-bottom: 14px;
  font-size: 25px;
}
.resource > p {
  color: #575757;
  margin-bottom: 28px;
  font-size: 15px;
}
.resource .button {
  white-space: nowrap;
  gap: 16px;
  width: 100%;
  margin-top: auto;
}
.resource-note {
  color: #666;
  margin-top: 26px;
  font-size: 13px;
}

/* Guide request dialog (the original site's download form) */
.guide-dialog {
  color: var(--foreground);
  background: #fff;
  border: 0;
  /* The CSS reset in styles.css zeroes margins; restore native centring. */
  margin: auto;
  width: min(560px, 100% - 32px);
  max-height: calc(100% - 32px);
  padding: 0;
  box-shadow: 0 30px 80px -20px #000000b3;
}
.guide-dialog::backdrop {
  background: #0b0b0bd9;
}
.guide-dialog-head {
  color: #fff;
  background: linear-gradient(110deg, #650010 0%, #310008 52%, #0b0b0b 100%);
  padding: 28px 70px 26px 30px;
  position: relative;
}
.guide-dialog-head .eyebrow {
  color: #e7a7af;
}
.guide-dialog-head h2 {
  letter-spacing: -.04em;
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 38px);
}
.guide-dialog-close {
  color: #fff;
  background: #ffffff14;
  border: 1px solid #ffffff3d;
  width: 42px;
  height: 42px;
  font-size: 24px;
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 16px;
}
.guide-dialog-close:hover {
  background: #ffffff2b;
}
.guide-dialog form {
  padding: 26px 30px 30px;
}
.guide-dialog .form-lead {
  color: #555;
  margin-bottom: 22px;
  font-size: 15px;
}
.guide-dialog .name-row {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  display: grid;
}
.guide-dialog .consent {
  color: #555;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  display: flex;
}
.guide-dialog .consent input {
  margin-top: 3px;
}
.guide-dialog button[type="submit"],
.guide-download {
  width: 100%;
}
.guide-download {
  background: #181818;
  margin-top: 14px;
}
.guide-download:hover {
  background: #000;
}

/* Four guides: four across on wide screens, two by two from tablet up to
   laptop width (an even split, so no card is left on its own), one column
   on phones (below). */
@media (min-width: 1280px) {
  .resource-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 701px) and (max-width: 1279px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .page-hero {
    padding: 64px 6% 48px;
  }
  .page-hero h1 {
    font-size: clamp(52px, 15vw, 100px);
  }
  /* The CTA band's fixed 76px headline broke onto three lines on phones. */
  .contact-section h2 {
    font-size: clamp(46px, 13vw, 76px);
  }
  #story .large {
    font-size: 21px;
  }
  .guide-dialog .name-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .guide-dialog-head,
  .guide-dialog form {
    padding-left: 22px;
    padding-right: 22px;
  }
  .guide-dialog-head {
    padding-right: 66px;
  }
  .page-hero-meta {
    flex-direction: column;
    gap: 8px;
  }
  .about-media img {
    height: 300px;
  }
  .resource-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  .newsletter {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 6%;
  }
}

/* Footer brand: the same shield logo as the header, in place of the
   old italic ONSET / STRENGTH wordmark. */
.footer-brand {
  width: 180px;
  display: block;
}
.footer-brand img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 700px) {
  .footer-brand {
    width: 150px;
  }
}
