@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap");

:root {
  --bg: #edf4fb;
  --surface: #ffffff;
  --surface-soft: #f3f8ff;
  --surface-ink: #e9f2fd;
  --text: #172235;
  --text-muted: #46566d;
  --primary: #2b58de;
  --primary-strong: #1a3488;
  --accent: #ff7b42;
  --line: #cad8ea;
  --shadow: 0 16px 36px rgba(17, 49, 83, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --container: min(1120px, 92vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.62;
  text-wrap: pretty;
  background:
    radial-gradient(1400px 680px at 95% -8%, rgba(240, 140, 58, 0.18), transparent 58%),
    radial-gradient(1200px 560px at 0% 110%, rgba(43, 88, 222, 0.18), transparent 56%),
    var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 2.4rem 0 1rem;
}

.section-soft {
  background: linear-gradient(135deg, rgba(43, 88, 222, 0.08), rgba(255, 255, 255, 0.86));
}

.section-feature {
  padding-bottom: 5.5rem;
}

.kicker {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  line-height: 1.04;
  margin: 0;
  color: #0f2942;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  margin-top: 0.5rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

p {
  margin: 0;
}

.lead {
  margin-top: 1.2rem;
  color: #dfe9e5;
  max-width: 52ch;
  font-size: 1.1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #000;
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(237, 244, 251, 0.9);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 26px rgba(23, 61, 104, 0.16);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 22px rgba(15, 64, 90, 0.28);
}

.site-header .brand-logo {
  width: 74px;
  height: 74px;
  transform: scale(1.08);
  transform-origin: center;
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 1.03rem;
  line-height: 1.1;
}

.brand-text small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  color: #2b4361;
  padding: 0.62rem 0.8rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-strong);
  background: linear-gradient(135deg, rgba(43, 88, 222, 0.14), rgba(255, 123, 66, 0.17));
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  border-radius: 0.6rem;
  padding: 0.45rem;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: #1f2d34;
  margin: 5px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 6.2rem;
  padding-bottom: 5.4rem;
  color: #f4fbff;
  isolation: isolate;
}

.home-hero {
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero-content {
  max-width: 66ch;
}

.hero-content h1 {
  max-width: 12ch;
  background: linear-gradient(120deg, #ffffff 5%, #d9e4ff 52%, #ffd7bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 24px rgba(7, 25, 46, 0.28);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11, 29, 73, 0.93), rgba(41, 77, 165, 0.88)),
    url("../images/hero-bg.png") center/cover no-repeat;
  z-index: -2;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  pointer-events: none;
  z-index: -1;
}

.hero-glow-a {
  width: 340px;
  height: 340px;
  right: 6%;
  top: 16%;
  background: radial-gradient(circle, rgba(240, 140, 58, 0.35), rgba(240, 140, 58, 0));
}

.hero-glow-b {
  width: 280px;
  height: 280px;
  left: 5%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(142, 178, 255, 0.26), rgba(142, 178, 255, 0));
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 -40px 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(243, 241, 234, 0), var(--bg));
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
}

.hero-panel {
  background: rgba(244, 252, 255, 0.94);
  color: #17384d;
  padding: 1.45rem;
  border: 1px solid rgba(216, 221, 216, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.hero-panel-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(15, 50, 39, 0.22);
}

.hero-panel-brand p {
  color: #204761;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-subline {
  margin-top: 1.1rem;
  max-width: 58ch;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(217, 245, 255, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #e0eef7;
}

.home-intro-band {
  margin-top: -1.1rem;
  padding-top: 3.1rem;
}

.home-intro-card {
  border-top: 4px solid rgba(43, 88, 222, 0.44);
}

.lesson-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.lesson-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(43, 88, 222, 0.25);
  background: rgba(255, 255, 255, 0.8);
  color: #264a9a;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.lesson-band {
  padding-top: 2.1rem;
  padding-bottom: 1.1rem;
}

.lesson-spotlight {
  background: linear-gradient(150deg, #ffffff, #eef4ff);
}

.home-areas,
.home-pathways,
.home-resources {
  position: relative;
}

.home-areas::before,
.home-pathways::before,
.home-resources::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 88, 222, 0.32), transparent);
}

.area-card {
  border-top: 5px solid transparent;
}

.area-public {
  border-top-color: #189088;
}

.area-pupil {
  border-top-color: #2e6eb8;
}

.area-coach {
  border-top-color: #f08c3a;
}

.pathway-spotlight {
  position: relative;
  overflow: hidden;
}

.pathway-spotlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(43, 88, 222, 0.11), rgba(43, 88, 222, 0));
  pointer-events: none;
}

.section-head h2 {
  position: relative;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 88px;
  height: 4px;
  border-radius: 99px;
  margin-top: 0.45rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hero-panel h2 {
  font-size: 1.45rem;
}

.hero-panel ul {
  margin: 0.8rem 0;
  padding-left: 1rem;
}

.hero-panel li + li {
  margin-top: 0.45rem;
}

.panel-note {
  font-size: 0.92rem;
  color: #425258;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.78rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #f7fcf9;
  background: linear-gradient(135deg, var(--primary), #1a3488);
  box-shadow: 0 12px 24px rgba(24, 56, 145, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 26px rgba(24, 56, 145, 0.34);
}

.btn-secondary {
  color: #eef7f2;
  border: 1px solid rgba(233, 245, 238, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.btn-tertiary {
  color: var(--primary-strong);
  background: rgba(43, 88, 222, 0.1);
}

.section-head {
  max-width: 64ch;
  margin-bottom: 1.55rem;
}

.section-head h2 {
  margin-top: 0.35rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 10px 26px rgba(23, 59, 97, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #9cb8db;
  box-shadow: 0 18px 36px rgba(22, 62, 99, 0.16);
}

.card h3 {
  margin-bottom: 0.48rem;
}

.card p {
  color: #3f4f56;
}

.card ul {
  margin: 0.7rem 0 1rem;
  padding-left: 1rem;
}

.text-link,
.doc-link {
  margin-top: 0.85rem;
  display: inline-flex;
  text-decoration: none;
  color: var(--primary-strong);
  font-weight: 700;
}

.text-link:hover,
.doc-link:hover {
  text-decoration: underline;
}

.doc-link[aria-disabled="true"] {
  text-decoration: none;
  opacity: 0.72;
  cursor: default;
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.checklist li + li {
  margin-top: 0.65rem;
}

.checklist input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: translateY(1px);
}

.resource-card {
  border-top: 4px solid var(--accent);
}

.pathway-card {
  background: linear-gradient(160deg, #ffffff, #eef6ff);
}

.course-card {
  position: relative;
  overflow: hidden;
}

.course-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -54px;
  bottom: -62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 110, 184, 0.18), transparent 67%);
  pointer-events: none;
}

.resource-type {
  display: inline-block;
  color: #4f5e63;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.feature-content {
  background: linear-gradient(145deg, #ffffff, #f3f7ff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.feature-content h2 {
  margin-top: 0.45rem;
}

.feature-content p + p {
  margin-top: 0.7rem;
}

.feature-image {
  min-height: 290px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 219, 212, 0.85);
  background:
    linear-gradient(120deg, rgba(43, 88, 222, 0.24), rgba(15, 52, 125, 0.32)),
    url("../images/hero-bg.png") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.page-intro {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  background: var(--surface);
  color: #415158;
  font-weight: 600;
  font-size: 0.82rem;
}

.meta-list {
  display: grid;
  gap: 0.65rem;
}

.meta-list strong {
  color: #1b3036;
}

.highlight-panel {
  background: linear-gradient(145deg, #1a3488, #2b58de);
  color: #f2f8f5;
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid rgba(202, 216, 255, 0.32);
  box-shadow: var(--shadow);
}

.highlight-panel p {
  color: #e7ecff;
}

.highlight-panel h2,
.highlight-panel h3,
.highlight-panel h4,
.highlight-panel strong,
.highlight-panel li {
  color: #ffffff;
}

.highlight-panel .text-link,
.highlight-panel .doc-link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.highlight-panel .text-link:hover,
.highlight-panel .doc-link:hover {
  text-decoration-color: #ffffff;
}

.highlight-panel .btn-tertiary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.highlight-panel .btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-clean li + li {
  margin-top: 0.55rem;
}

.muted {
  color: var(--text-muted);
}

.surface-ink {
  background: var(--surface-ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.timeline-list li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f2f6ff);
}

.timeline-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #1f3f9a;
}

.faq {
  display: grid;
  gap: 0.7rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.7rem 0.9rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #1b3f44;
}

.faq p {
  margin-top: 0.55rem;
}

.footer-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4c5a61;
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body:not(.home-page) {
  background: #f7f5ef;
  color: #1f2f3a;
}

body:not(.home-page) .site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #dbe2d9;
}

body:not(.home-page) .site-nav a {
  color: #22374d;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 0.68rem 0.5rem;
  font-size: 0.9rem;
}

body:not(.home-page) .site-nav a:hover,
body:not(.home-page) .site-nav a.active {
  background: transparent;
  color: #10253d;
  border-bottom-color: #2f6d42;
}

body:not(.home-page) .brand-text strong {
  font-size: 1.62rem;
  letter-spacing: -0.012em;
  line-height: 0.96;
  color: #122741;
  white-space: nowrap;
}

body:not(.home-page) .brand-text small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: #2c425f;
}

body:not(.home-page) .page-intro {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #dce4dc;
  background: linear-gradient(180deg, #ffffff, #f2f6f2 82%);
}

body:not(.home-page) .page-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(94deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.36) 70%, rgba(255, 255, 255, 0.2) 100%),
    url("../images/golden_hour_lawn_bowls_practice_green.png") center/cover no-repeat;
  pointer-events: none;
}

body.public-page .page-intro::before {
  background:
    linear-gradient(94deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.36) 70%, rgba(255, 255, 255, 0.2) 100%),
    url("../images/club-green.jpg") center/cover no-repeat;
}

body.pupil-page .page-intro::before {
  background:
    linear-gradient(94deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.36) 70%, rgba(255, 255, 255, 0.2) 100%),
    url("../images/golden_hour_lawn_bowls_practice_green.png") center/cover no-repeat;
}

body.coach-page .page-intro::before {
  background:
    linear-gradient(94deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.36) 70%, rgba(255, 255, 255, 0.2) 100%),
    url("../images/coach-session.jpg") center/cover no-repeat;
}

body:not(.home-page) .page-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 260px at 95% 0%, rgba(34, 90, 62, 0.12), transparent 70%),
    radial-gradient(560px 220px at 0% 100%, rgba(24, 62, 110, 0.1), transparent 72%);
  opacity: 1;
  pointer-events: none;
}

body:not(.home-page) .page-intro .container {
  position: relative;
  z-index: 1;
}

body:not(.home-page) .page-intro .reveal,
body:not(.home-page) .page-intro.reveal,
body:not(.home-page) .page-intro .container.reveal {
  opacity: 1;
  transform: none;
}

body:not(.home-page) .page-intro h1 {
  max-width: 21ch;
  font-size: clamp(2rem, 4vw, 3rem);
}

body:not(.home-page) .page-intro .muted {
  color: #3e5159;
}

body:not(.home-page) .section-soft {
  background: #f1f4f8;
}

body:not(.home-page) .surface-ink {
  background: #eef2f6;
}

body:not(.home-page) .card,
body:not(.home-page) .feature-content,
body:not(.home-page) .highlight-panel,
body:not(.home-page) .feature-image {
  border-radius: 12px;
}

body:not(.home-page) .card {
  border-color: #d7e0e9;
  box-shadow: 0 8px 22px rgba(24, 50, 76, 0.08);
}

body:not(.home-page) .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(24, 50, 76, 0.12);
}

body:not(.home-page) .feature-content {
  background: #ffffff;
  border-color: #d7e0e9;
}

body:not(.home-page) .pathway-card,
body:not(.home-page) .course-card {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #f4f7f4;
}

body:not(.home-page) .pathway-card::before,
body:not(.home-page) .course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(18deg, rgba(8, 31, 44, 0.85), rgba(8, 31, 44, 0.48));
}

body:not(.home-page) .pathway-card > *,
body:not(.home-page) .course-card > * {
  position: relative;
  z-index: 1;
}

body:not(.home-page) .pathway-card h3,
body:not(.home-page) .course-card h3,
body:not(.home-page) .pathway-card p,
body:not(.home-page) .course-card p,
body:not(.home-page) .pathway-card li,
body:not(.home-page) .course-card li {
  color: #f1f6f4;
}

body:not(.home-page) .pathway-card .text-link,
body:not(.home-page) .course-card .text-link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

body:not(.home-page) .pathway-card .btn-tertiary,
body:not(.home-page) .course-card .btn-tertiary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.95);
  color: #1a3e66;
}

/* Public page visual cards */
body:not(.home-page) #next .course-card:nth-child(1) {
  background-image: url("../images/players-coaching.jpg");
}

body:not(.home-page) #next .course-card:nth-child(2) {
  background-image: url("../images/coach-session.jpg");
}

/* Pupil page visual cards */
body:not(.home-page) #lessons .pathway-card:nth-child(1) {
  background-image: url("../images/players-coaching.jpg");
}

body:not(.home-page) #lessons .pathway-card:nth-child(2) {
  background-image: url("../images/golden_hour_lawn_bowls_practice_green.png");
}

/* Coach page visual cards */
body.coach-page #development .card-grid-3 .pathway-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.coach-page #development .card-grid-3 .pathway-card .text-link {
  margin-top: auto;
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(1) {
  background-image: url("../images/coach-session.jpg");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(2) {
  background-image: url("../images/golden_hour_lawn_bowls_coaching.png");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(3) {
  background-image: url("../images/players-coaching.jpg");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(4) {
  background-image: url("../images/resources.jpg");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(5) {
  background-image: url("../images/club-green.jpg");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(6) {
  background-image: url("../images/hero-background-right-bowls.jpg");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(7) {
  background-image: url("../images/purposeful-practice.jpg");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(8) {
  background-image: url("../images/lawn_bowls_coaching_on_the_green.png");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(9) {
  background-image: url("../images/golden_hour_lawn_bowls_practice_green.png");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(10) {
  background-image: url("../images/hero-bowls.jpg");
}

/* CPD Level 2 page visual cards */
body.cpd-level2-page .cpd-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.cpd-level2-page .cpd-card .text-link {
  margin-top: auto;
}

body.cpd-level2-page .cpd-correcting-ingrained-faults {
  background-image: url("../images/01_Correcting_Ingrained_Faults.png");
}

body.cpd-level2-page .cpd-deliver-under-pressure {
  background-image: url("../images/02_Deliver_Under_Pressure.png");
}

body.cpd-level2-page .cpd-indoor-vs-outdoor-coaching {
  background-image: url("../images/03_Indoor_vs_Outdoor_Coaching.png");
}

body.cpd-level2-page .cpd-building-consistency {
  background-image: url("../images/04_Building_Consistency.png");
}

body.cpd-level2-page .cpd-creating-effective-practice {
  background-image: url("../images/05_Creating_Effective_Practice.png");
}

body.cpd-level2-page .cpd-technology-data-coaching {
  background-image: url("../images/06_Technology_Data_Coaching.png");
}

body.cpd-level2-page .cpd-one-to-one-coaching-clinic {
  background-image: url("../images/07_One_to_One_Coaching_Clinic.png");
}

body.cpd-level2-page .cpd-head-building-for-high-performance {
  background-image: url("../images/08_Head_Building_for_High_Performance.png");
}

body.cpd-level2-page .cpd-advanced-shot-making {
  background-image: url("../images/09_Advanced_Shot_Making.png");
}

body.cpd-level2-page .cpd-advanced-tactical-play {
  background-image: url("../images/10_Advanced_Tactical_Play.png");
}

body.cpd-level2-page .cpd-team-dynamics-and-communication {
  background-image: url("../images/01_Team_Dynamics_and_Communication.png");
}

body.cpd-level2-page .cpd-mental-resilience-focus {
  background-image: url("../images/02_Mental_Resilience_Focus.png");
}

body.cpd-level2-page .cpd-observation-masterclass {
  background-image: url("../images/03_Observation_Masterclass.png");
}

body.cpd-level2-page .cpd-questioning-for-critical-thinking {
  background-image: url("../images/04_Questioning_for_Critical_Thinking.png");
}

body.cpd-level2-page .cpd-developing-coaching-philosophy {
  background-image: url("../images/05_Developing_Coaching_Philosophy.png");
}

body.cpd-level2-page .cpd-tournament-preparation-and-match-play-coaching {
  background-image: url("../images/06_Tournament_Preparation_and_Match_Play_Coaching.png");
}

body.cpd-level2-page .cpd-adapting-coaching-to-different-abilities {
  background-image: url("../images/07_Adapting_Coaching_to_Different_Abilities.png");
}

body.cpd-level2-page .cpd-equality-diversity-and-inclusion-in-bowls {
  background-image: url("../images/08_Equality_Diversity_and_Inclusion_in_Bowls_Coming_Soon.png");
}

body.cpd-level2-page .cpd-coaching-ethics-and-safeguarding {
  background-image: url("../images/09_Coaching_Ethics_and_Safeguarding.png");
}

body:not(.home-page) .feature-image {
  min-height: 280px;
  background:
    linear-gradient(120deg, rgba(12, 45, 95, 0.24), rgba(14, 51, 34, 0.25)),
    url("../images/golden_hour_lawn_bowls_practice_green.png") center/cover no-repeat;
}

body:not(.home-page) .section-head h2::after {
  background: linear-gradient(90deg, #1c4670, #2f6d42);
}

body:not(.home-page) .resource-type {
  background: #eef4ff;
  border-color: #d2deee;
  color: #31485f;
}

body:not(.home-page) .btn-primary {
  background: #1f5b34;
  box-shadow: none;
}

body:not(.home-page) .btn-secondary {
  background: #1e3e63;
  color: #ffffff;
  border-color: #1e3e63;
}

body:not(.home-page) .btn-tertiary {
  background: #ecf2fc;
  border: 1px solid #d1dded;
  color: #193d66;
}

body:not(.home-page) .site-footer {
  background: #0f2240;
  border-top: none;
}

body:not(.home-page) .site-footer a,
body:not(.home-page) .site-footer p,
body:not(.home-page) .footer-wrap {
  color: #c7d4e8;
}

body:not(.home-page) .site-footer a:hover {
  color: #ffffff;
}

body.home-page {
  background: #f7f5ef;
  color: #1e2e3b;
}

.home-page .site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #d9e1d8;
  backdrop-filter: blur(5px);
}

.home-page .site-nav a {
  color: #243348;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 0.7rem 0.42rem;
  font-size: 0.89rem;
}

.home-page .site-nav {
  gap: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.home-page .nav-wrap {
  gap: 0.6rem;
}

.home-page .brand {
  align-items: center;
  gap: 0.95rem;
  flex: 0 1 auto;
  min-width: 0;
}

.home-page .brand-text {
  display: grid;
  grid-template-columns: 1fr;
  line-height: 1;
  max-width: 100%;
}

.home-page .brand-title {
  display: block;
  font-size: 1.84rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #11263f;
  line-height: 0.95;
  white-space: nowrap;
}

.home-page .brand-tagline {
  display: block;
  width: 100%;
  margin-top: 0.28rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: #2b4160;
  white-space: nowrap;
}

.home-page .site-nav a:hover,
.home-page .site-nav a.active {
  background: transparent;
  color: #10253d;
  border-bottom-color: #2f6d42;
}

.home-page .hero {
  padding-top: 7rem;
  padding-bottom: 5.2rem;
  color: #f4f7f4;
}

.home-page .home-hero {
  clip-path: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.home-page .hero::before {
  background: linear-gradient(180deg, rgba(247, 245, 239, 0), #f7f5ef);
}

.home-page .hero-backdrop {
  background:
    linear-gradient(95deg, rgba(7, 22, 30, 0.72), rgba(7, 22, 30, 0.2) 62%, rgba(7, 22, 30, 0.08)),
    url("../images/hero-bowls.jpg") center 42%/cover no-repeat;
}

.home-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

.home-page .hero-content h1 {
  color: #ffffff;
  max-width: 13ch;
  font-size: clamp(2.6rem, 5vw, 4.15rem);
  text-shadow: 0 7px 20px rgba(0, 0, 0, 0.34);
  background: none;
}

.home-page .lead {
  color: #f0f5ef;
  font-size: 1.35rem;
  max-width: 36ch;
}

.home-page .btn {
  border-radius: 10px;
}

.home-page .btn-primary {
  background: #1f5b34;
  box-shadow: none;
}

.home-page .btn-primary:hover {
  box-shadow: none;
  background: #154528;
}

.home-page .btn-secondary {
  background: rgba(11, 32, 50, 0.55);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.home-page .btn-quiet {
  color: #123352;
  border: 1px solid #c8d2df;
  background: #ffffff;
  padding: 0.62rem 0.95rem;
}

.home-page .btn-quiet:hover {
  background: #f5f9ff;
}

.home-page .home-welcome {
  padding-top: 3rem;
}

.welcome-head {
  text-align: center;
  max-width: 76ch;
  margin: 0 auto 1.7rem;
}

.welcome-head h2 {
  font-size: clamp(1.95rem, 3.4vw, 2.45rem);
}

.welcome-head p {
  margin-top: 0.6rem;
  color: #3f4f58;
}

.home-page .area-panel {
  min-height: 270px;
  border: 1px solid #d7dfd7;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.home-page .area-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(15deg, rgba(7, 28, 39, 0.85), rgba(7, 28, 39, 0.45));
}

.home-page .area-panel > * {
  position: relative;
  z-index: 1;
}

.home-page .area-panel h3,
.home-page .area-panel p {
  color: #f4f7f4;
}

.home-page .area-public {
  background-image: url("../images/club-green.jpg");
}

.home-page .area-player {
  background-image: url("../images/players-coaching.jpg");
}

.home-page .area-coach {
  background-image: url("../images/coach-session.jpg");
}

.home-page .home-pathway {
  background: #f1f4f8;
}

.home-page .pathway-grid {
  margin-top: 1.2rem;
}

.home-page .pathway-panel {
  border: 1px solid #d6dee8;
  border-radius: 14px;
  box-shadow: none;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.home-page .pathway-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgba(7, 28, 39, 0.83), rgba(7, 28, 39, 0.42));
}

.home-page .pathway-panel > * {
  position: relative;
  z-index: 1;
}

.home-page .pathway-player {
  background-image: url("../images/players-coaching.jpg");
}

.home-page .pathway-coach {
  background-image: url("../images/coach-session.jpg");
}

.home-page .pathway-panel h3 {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.home-page .pathway-panel ul {
  color: #f2f6f3;
}

.home-page .pathway-panel .resource-type {
  color: #f2f7f4;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
}

.home-page .pathway-actions .btn-tertiary {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: #17395f;
}

.home-page .home-progression {
  padding-top: 3.4rem;
}

.progression-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.progression-card {
  border-radius: 12px;
  border: 1px solid #d9e0e7;
  box-shadow: none;
  min-height: 262px;
}

.progression-card img {
  width: 58px;
  height: 58px;
  margin-bottom: 0.8rem;
}

.progression-card h3 {
  font-size: 1.44rem;
  margin-bottom: 0.38rem;
}

.flow-arrow {
  font-size: 2rem;
  color: #8f9ca9;
}

.home-page .home-resources {
  background: #f1f4f8;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.featured-card {
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid #d9e1ea;
  box-shadow: none;
}

.featured-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dce4eb;
  margin-bottom: 0.7rem;
}

.featured-card h3 {
  font-size: 1.18rem;
}

.featured-card .text-link {
  margin-top: 0.65rem;
}

.home-page .home-benefits {
  background: linear-gradient(180deg, #154a2f, #123f28);
  color: #f4f8f4;
}

.home-page .home-benefits .section-head h2,
.home-page .home-benefits h3 {
  color: #ffffff;
}

.home-page .home-benefits .section-head h2::after {
  background: #5cc183;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.benefit-item {
  border: 1px solid rgba(154, 201, 171, 0.35);
  border-radius: 10px;
  padding: 1rem 0.9rem;
  background: rgba(9, 37, 23, 0.25);
}

.benefit-item p {
  color: #d3e9da;
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.home-page .home-links {
  background: #f7f5ef;
  padding-top: 2.6rem;
}

.quick-link-card {
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  box-shadow: none;
}

.home-page .site-footer-rich {
  border-top: none;
  background: #0f2240;
  color: #c8d5eb;
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(169, 186, 215, 0.25);
}

.home-page .site-footer-rich .footer-brand {
  margin-bottom: 0.6rem;
}

.home-page .site-footer-rich .brand-text strong,
.home-page .site-footer-rich h3 {
  color: #ffffff;
}

.home-page .site-footer-rich .brand-text small,
.footer-note,
.home-page .site-footer-rich .footer-wrap,
.home-page .site-footer-rich .footer-links a,
.home-page .site-footer-rich .footer-links li {
  color: #c8d5eb;
}

.home-page .site-footer-rich .footer-links a {
  text-decoration: none;
}

.home-page .site-footer-rich .footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-note {
  max-width: 28ch;
}

.home-page .site-footer-rich .footer-wrap {
  justify-content: center;
  min-height: 56px;
}

.home-page .site-footer-rich .brand-logo {
  border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    max-width: 100%;
  }

  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progression-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    display: none;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .brand-title {
    font-size: 1.66rem;
  }

  .home-page .brand-tagline {
    font-size: 0.86rem;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 3.6rem 0;
  }

  .section-tight {
    padding: 2rem 0 1rem;
  }

  .brand-text small {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 4vw;
    width: min(280px, 92vw);
    background: #fefcf8;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 0.6rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem;
    border-radius: 0.5rem;
  }

  .site-header .brand-logo {
    width: 62px;
    height: 62px;
  }

  .card-grid-3,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .benefits-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-page .hero {
    padding-top: 5.8rem;
  }

  .home-page .lead {
    font-size: 1.08rem;
  }

  body:not(.home-page) .page-intro::after {
    display: none;
  }

  .home-page .brand-title {
    font-size: 1.34rem;
  }

  .home-page .brand-tagline {
    font-size: 0.74rem;
    white-space: normal;
  }

  .home-hero {
    clip-path: none;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    text-align: center;
    padding: 0.85rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .print-hide {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section,
  .section-tight {
    padding: 1rem 0;
  }

  .card,
  .highlight-panel,
  .feature-content {
    box-shadow: none;
    border: 1px solid #999;
    background: #fff;
    color: #111;
  }

  .card-grid,
  .feature-grid {
    display: block;
  }

  .card,
  .feature-content,
  .highlight-panel {
    margin-bottom: 0.8rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
