/* Shared layer on top of the inline-styled pages: nav, motion, responsive. */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid #3B6480; outline-offset: 3px; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.65); transition: background 0.15s ease, border-color 0.15s ease; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.btn-primary { background: #1B3962; color: #fff; transition: background 0.15s ease, transform 0.15s ease; }
.btn-primary:hover { background: #3B6480; color: #fff; transform: translateY(-1px); }
.card-hover { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,24,29,0.10); }
.gallery-img { transition: transform 0.35s ease; }
.contact-link { transition: border-color 0.15s ease; }
.contact-link:hover { border-color: #1B3962 !important; }
.footer-link:hover { color: #ffffff !important; }
::selection { background: #1B3962; color: #fff; }

/* ---------- Nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 40; }
.link-underline { position: relative; padding: 4px 0; }
.link-underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: #1B3962; transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.link-underline:hover::after, .link-underline[aria-current="page"]::after { transform: scaleX(1); }
.link-underline[aria-current="page"] { color: #1B3962 !important; font-weight: 600 !important; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; z-index: 60; padding: 0; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #14181d; transition: transform 0.25s ease, top 0.25s ease, background 0.2s ease; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle span { background: #ffffff; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.nav-links .nav-menu-cta { display: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s cubic-bezier(.2,.7,.2,1), transform 0.75s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  [style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns: 480px 1fr"],
  [style*="grid-template-columns: 1fr 420px"] { grid-template-columns: 1fr !important; gap: 48px !important; }
  [style*="grid-template-columns: 100px 1fr 260px"] { grid-template-columns: 56px 1fr !important; gap: 20px !important; }
  [style*="grid-template-columns: 100px 1fr 260px"] > :nth-child(3) { grid-column: 2; justify-content: flex-start !important; }
  [style*="gap: 64px"] { flex-wrap: wrap; gap: 28px 40px !important; }
}

/* ---------- Mobile menu ---------- */
@media (max-width: 960px) {
  .site-nav { height: 68px !important; padding: 0 16px 0 20px !important; }
  .site-nav > a:first-child img { height: 34px !important; }
  .nav-toggle { display: block; }
  .site-nav > .nav-cta { display: none !important; }
  .nav-links { position: fixed; inset: 0; z-index: 50; background: #12212F; flex-direction: column; align-items: flex-start !important; justify-content: center; gap: 6px !important; padding: 96px 32px 48px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
  .nav-links a.link-underline { font-family: 'Archivo', sans-serif; font-size: 34px !important; font-weight: 700 !important; color: #ffffff !important; padding: 6px 0; opacity: 0; transform: translateY(16px); transition: opacity 0.35s ease, transform 0.35s ease; }
  .nav-links a.link-underline::after { display: none; }
  .nav-links a.link-underline[aria-current="page"] { color: #7FA1B8 !important; }
  .nav-links .nav-menu-cta { display: inline-block; margin-top: 28px; padding: 16px 28px; border-radius: 3px; font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 15px; opacity: 0; transition: opacity 0.35s ease 0.3s; }
  .nav-open { overflow: hidden; }
  .nav-open .nav-links { opacity: 1; visibility: visible; }
  .nav-open .nav-links a.link-underline, .nav-open .nav-links .nav-menu-cta { opacity: 1; transform: none; }
  .nav-open .nav-links a.link-underline:nth-child(2) { transition-delay: 0.04s; }
  .nav-open .nav-links a.link-underline:nth-child(3) { transition-delay: 0.08s; }
  .nav-open .nav-links a.link-underline:nth-child(4) { transition-delay: 0.12s; }
  .nav-open .nav-links a.link-underline:nth-child(5) { transition-delay: 0.16s; }
  .nav-open .nav-links a.link-underline:nth-child(6) { transition-delay: 0.20s; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  /* side gutters + tighter vertical rhythm */
  [style*="64px"][style*="padding"] { padding-left: 20px !important; padding-right: 20px !important; }
  .page > [style*="padding: 1"]:not([style*="64px 0"]),
  .page > [style*="padding: 9"]:not([style*="64px 0"]),
  .page > [style*="padding: 8"]:not([style*="64px 0"]),
  .page > [style*="padding: 7"]:not([style*="64px 0"]),
  .page > [style*="padding: 6"]:not([style*="64px 0"]) { padding-top: 56px !important; padding-bottom: 64px !important; }
  .page > [style*="padding: 88px 64px 0"] { padding-top: 56px !important; }
  .site-footer > div:first-child { padding-top: 64px !important; padding-bottom: 48px !important; }

  /* type scale */
  h1[style*="font-size: 56px"] { font-size: 36px !important; }
  h1[style*="font-size: 44px"], h1[style*="font-size: 42px"] { font-size: 32px !important; }
  h1[style*="font-size: 38px"], h1[style*="font-size: 34px"] { font-size: 28px !important; }
  h2[style*="font-size: 38px"], h2[style*="font-size: 36px"] { font-size: 28px !important; }
  h2[style*="font-size: 32px"] { font-size: 26px !important; }
  p[style*="font-size: 18px"] { font-size: 16px !important; }

  /* grids collapse */
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 20px !important; }
  .events-facts { grid-template-columns: 1fr 1fr !important; }
  [style*="grid-template-columns: repeat(auto-fit, minmax(340px, 1fr))"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 100px 1fr 260px"] { grid-template-columns: 1fr !important; gap: 14px !important; padding: 36px 0 !important; }
  [style*="grid-template-columns: 100px 1fr 260px"] > :nth-child(3) { grid-column: auto; }
  [style*="grid-template-columns: 60px 1fr"] { grid-template-columns: 40px 1fr !important; gap: 14px !important; }
  [style*="gap: 72px"] { gap: 48px !important; }
  [style*="gap: 80px"] { gap: 40px !important; }

  /* heroes and fixed heights */
  .page > [style*="height: 720px"], .page > [style*="height: 460px"] { height: auto !important; min-height: 560px; }
  .page > [style*="height: 460px"] { min-height: 420px; }
  .page > [style*="height: 720px"] > div[style*="height: 100%"],
  .page > [style*="height: 460px"] > div[style*="height: 100%"] { height: auto !important; min-height: inherit; padding-top: 64px !important; padding-bottom: 64px !important; }
  .page > [style*="height: 720px"] > [style*="linear-gradient"] { background: linear-gradient(180deg, rgba(11,20,32,0.80) 0%, rgba(11,20,32,0.90) 100%) !important; }
  [style*="height: 560px"] { height: 380px !important; }
  div[style*="height: 460px"][style*="border-radius"] { height: 320px !important; }
  [style*="height: 400px"] { height: 340px !important; }
  a[style*="height: 200px"] { height: auto !important; }
  [style*="flex-direction: column"] > [style*="width: 1px"] { display: none; }
  [style*="gap: 64px"] > [style*="width: 1px"] { display: none; }
  [style*="gap: 64px"] { flex-direction: column; gap: 32px !important; }
  .page > [style*="padding: 26px 64px"] [style*="gap: 64px"],
  .page > [style*="padding: 26px 64px"] { gap: 14px !important; }
  .page > [style*="padding: 26px 64px"] { flex-direction: column; align-items: flex-start !important; }

  /* CTA bars, button rows */
  [style*="justify-content: space-between"]:not(.site-nav) { flex-direction: column; align-items: flex-start !important; gap: 18px; }
  [style*="justify-content: space-between"][style*="padding: 2"],
  [style*="justify-content: space-between"][style*="padding: 3"] { padding: 24px 22px !important; }
  [style*="display: flex; gap: 16px; margin-top: 8px"] { flex-wrap: wrap; }
  [style*="display: flex; align-items: center; gap: 20px; margin-top: 8px"] { flex-wrap: wrap; }

  /* footer */
  .site-footer [style*="gap: 48px"] { flex-direction: column; align-items: center; gap: 16px !important; }
  .site-footer > div:last-child { flex-direction: column; gap: 12px; text-align: center; align-items: center !important; }

  /* workout tables become stacked rows */
  .ex-row { grid-template-columns: 1fr 44px 96px !important; gap: 4px 12px !important; padding: 14px 0 !important; align-items: start !important; }
  .ex-row > :nth-child(4) { grid-column: 1 / -1; margin-top: 2px; }
  .ex-row[style*="text-transform: uppercase"] > :nth-child(4) { display: none; }
}

/* ---------- Training blocks ---------- */
.wk-table-wrap { width: 100%; }
.wk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wk-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #8A929B; padding: 0 12px 10px 0; border-bottom: 1px solid #14181d; }
.wk-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid #ECEEF0; color: #454C54; vertical-align: top; line-height: 1.5; }
.wk-table td:first-child { font-weight: 600; color: #14181d; width: 22%; }
.wk-table tr:last-child td { border-bottom: none; }
.ready-check { display: flex; flex-direction: column; gap: 14px; padding: 36px 40px; background: #12212F; border-radius: 4px; border-left: 4px solid #7FA1B8; color: #C7D4DD; }
.ready-check h2 { font-size: 26px; font-weight: 800; color: #ffffff; }
.ready-eyebrow { font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #7FA1B8; }
.ready-lead { font-size: 15px; line-height: 1.6; }
.ready-check ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; line-height: 1.55; color: #ffffff; }
.ready-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.ready-outcomes p { font-size: 14px; line-height: 1.6; padding: 14px 16px; background: rgba(255,255,255,0.06); border-radius: 3px; }
.ready-outcomes b { color: #ffffff; }
.ready-btn { align-self: flex-start; margin-top: 6px; padding: 14px 26px; border-radius: 3px; font-size: 14px; font-weight: 600; font-family: 'Archivo', sans-serif; background: #3B6480; }
.ready-btn:hover { background: #4C7A99; }
.ready-fine { font-size: 12px; line-height: 1.6; color: #8A9BAA; }

@media (max-width: 760px) {
  .wk-intro, .ready-outcomes { grid-template-columns: 1fr !important; }
  .ready-check { padding: 26px 22px; }
  .wk-table thead { display: none; }
  .wk-table, .wk-table tbody, .wk-table tr, .wk-table td { display: block; width: 100% !important; }
  .wk-table tr { padding: 14px 0; border-bottom: 1px solid #ECEEF0; }
  .wk-table td { border: none; padding: 3px 0; }
  .wk-table td:first-child { font-size: 15px; margin-bottom: 4px; }
  .wk-table td[data-label]::before { content: attr(data-label) ": "; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #8A929B; }
}

/* ---------- Print / PDF ---------- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nav-links, .nav-cta, .nav-toggle, .btn-outline, .site-footer, .back-link { display: none !important; }
  .site-nav { position: static !important; height: 64px !important; border-bottom: none !important; }
  .page > div { padding-left: 0 !important; padding-right: 0 !important; }
  .page > div:nth-of-type(2) { padding: 28px 24px !important; }
  .page > div:nth-of-type(3) { padding-top: 28px !important; padding-bottom: 0 !important; }
  .wk-table tr, .ready-check, .wk-intro > div { break-inside: avoid; }
  h2 { break-after: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- PDF capture (MailerLite) ---------- */
.pdf-capture { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px 40px; border: 1px solid #E4E7E9; border-top: 3px solid #1B3962; border-radius: 4px; background: #FAFBFC; scroll-margin-top: 100px; }
.pdf-copy { display: flex; flex-direction: column; gap: 12px; }
.pdf-copy h2 { font-size: 26px; font-weight: 800; color: #14181d; }
.pdf-copy p { font-size: 15px; line-height: 1.7; color: #454C54; }
.pdf-form { display: flex; flex-direction: column; gap: 8px; }
.pdf-form label { font-size: 13px; font-weight: 600; color: #14181d; font-family: 'Archivo', sans-serif; }
.pdf-form input[type="text"], .pdf-form input[type="email"] { font-family: 'Work Sans', sans-serif; font-size: 14px; color: #14181d; border: 1px solid #D8DBDE; border-radius: 3px; padding: 12px 14px; margin-bottom: 6px; width: 100%; background: #fff; }
.pdf-form input:focus { border-color: #1B3962; outline: none; }
.pdf-form .pdf-consent { display: flex; gap: 10px; align-items: flex-start; font-family: 'Work Sans', sans-serif; font-weight: 400; font-size: 13px; line-height: 1.5; color: #5B6570; margin: 4px 0 8px; }
.pdf-form .pdf-consent input { margin-top: 3px; accent-color: #1B3962; }
.pdf-form button { align-self: flex-start; border: none; cursor: pointer; padding: 14px 26px; border-radius: 3px; font-size: 14px; font-weight: 600; font-family: 'Archivo', sans-serif; }
.pdf-form button[disabled] { opacity: 0.6; cursor: default; }
.pdf-msg { font-size: 14px; line-height: 1.5; color: #1B3962; min-height: 1em; }
.pdf-msg.err { color: #B42318; }
@media (max-width: 760px) { .pdf-capture { grid-template-columns: 1fr; gap: 24px; padding: 26px 22px; } }
@media print { .pdf-capture { display: none !important; } }

/* Courses (events page) */
.courses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.course-card { display: flex; flex-direction: column; border: 1px solid #ECEEF0; border-radius: 4px; overflow: hidden; background: #fff; }
.course-card > img { width: 100%; height: 280px; object-fit: cover; display: block; }
.course-body { display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 32px; flex: 1; }
.course-body h3 { font-family: 'Archivo', sans-serif; font-size: 22px; font-weight: 700; color: #14181d; margin: 0; }
.course-body > p { font-size: 15px; line-height: 1.7; color: #454C54; margin: 0 0 8px; }
.course-tag { font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #3B6480; }
.course-body .pdf-form { margin-top: auto; padding-top: 16px; border-top: 1px solid #ECEEF0; }
.ebook-notify { max-width: 460px; }
@media (max-width: 860px) { .courses-grid { grid-template-columns: 1fr; } .course-card > img { height: 240px; } }

/* ---------- Credentials strip ---------- */
.cred-strip { width: 100%; background: #12212F; border-top: 1px solid rgba(255,255,255,0.06); }
.cred-inner { max-width: 1312px; margin: 0 auto; padding: 0 64px; display: grid; grid-template-columns: repeat(3, 1fr); }
.cred { display: flex; align-items: center; gap: 16px; padding: 30px 28px; }
.cred + .cred { border-left: 1px solid rgba(255,255,255,0.08); }
.cred:first-child { padding-left: 0; }
.cred-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #A9C2D2; background: rgba(127,161,184,0.10); border: 1px solid rgba(127,161,184,0.28); transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.cred:hover .cred-icon { background: #3B6480; color: #fff; transform: rotate(-8deg) scale(1.05); }
.cred-text { display: flex; flex-direction: column; gap: 3px; }
.cred-title { font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 700; color: #ffffff; line-height: 1.3; }
.cred-sub { font-size: 13px; color: #8FA6B6; letter-spacing: 0.02em; }
@media (max-width: 960px) {
  .cred-inner { grid-template-columns: 1fr; padding: 8px 20px; }
  .cred { padding: 18px 0; }
  .cred + .cred { border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); }
}

/* ---------- Motion ---------- */
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes lineGrow { from { width: 0; } }
@keyframes credIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page > [style*="height: 720px"] > img, .page > [style*="height: 460px"] > img { animation: heroZoom 2.6s cubic-bezier(.2,.7,.2,1) both; }
.page > [style*="height: 720px"] > div[style*="position: relative"] > *,
.page > [style*="height: 460px"] > div[style*="position: relative"] > * { animation: heroUp 0.9s cubic-bezier(.2,.7,.2,1) both; }
.page > [style*="height: 720px"] > div[style*="position: relative"] > :nth-child(2),
.page > [style*="height: 460px"] > div[style*="position: relative"] > :nth-child(2) { animation-delay: 0.12s; }
.page > [style*="height: 720px"] > div[style*="position: relative"] > :nth-child(3),
.page > [style*="height: 460px"] > div[style*="position: relative"] > :nth-child(3) { animation-delay: 0.24s; }
.page > [style*="height: 720px"] > div[style*="position: relative"] > :nth-child(4) { animation-delay: 0.36s; }
.page > [style*="height: 720px"] [style*="width: 28px; height: 1.5px"] { animation: lineGrow 0.9s 0.3s cubic-bezier(.2,.7,.2,1) both; }
.cred { animation: credIn 0.7s cubic-bezier(.2,.7,.2,1) both; }
.cred:nth-child(1) { animation-delay: 0.5s; } .cred:nth-child(2) { animation-delay: 0.62s; } .cred:nth-child(3) { animation-delay: 0.74s; }
/* images settle in as they scroll into view, then zoom slightly on hover */
.reveal .gallery-img, .reveal .course-card > img { transform: scale(1.1); transition: transform 1.3s cubic-bezier(.2,.7,.2,1); }
.reveal.in .gallery-img, .reveal.in .course-card > img { transform: scale(1); }
.gallery-frame:hover .gallery-img, .reveal.in .gallery-frame:hover .gallery-img, .gallery-frame.reveal.in:hover .gallery-img { transform: scale(1.045); transition-duration: 0.35s; }
.course-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,24,29,0.10); }
/* arrow nudge on "Learn more →" style links */
.card-hover > span:last-child, .card-hover > div > span:last-child { display: inline-block; transition: transform 0.2s ease, color 0.2s ease; }
.card-hover:hover > span:last-child, .card-hover:hover > div > span:last-child { transform: translateX(5px); }
/* nav gets a soft shadow once the page scrolls */
.site-nav { transition: box-shadow 0.25s ease; }
.site-nav.scrolled { box-shadow: 0 6px 24px rgba(11,20,32,0.08); }
@media (prefers-reduced-motion: reduce) {
  .page > [style*="height: 720px"] > img, .page > [style*="height: 460px"] > img,
  .page > [style*="height: 720px"] > div[style*="position: relative"] > *,
  .page > [style*="height: 460px"] > div[style*="position: relative"] > *,
  .page > [style*="height: 720px"] [style*="width: 28px; height: 1.5px"], .cred { animation: none; }
  .reveal .gallery-img, .reveal .course-card > img { transform: none; transition: none; }
}

/* Partner (Prozis) */
.partner-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 36px; padding: 36px 40px; background: #0E1B26; border-radius: 4px; color: #fff; }
.partner-brand { display: flex; flex-direction: column; gap: 6px; }
.partner-name { font-family: 'Archivo', sans-serif; font-size: 30px; font-weight: 800; letter-spacing: 0.06em; color: #fff; }
.partner-sub { font-size: 14px; color: #A9B7C2; }
.partner-code-wrap { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; position: relative; }
.partner-label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #7FA1B8; }
.partner-code { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; background: transparent; color: #fff; border: 1.5px dashed #7FA1B8; border-radius: 3px; font-family: 'Archivo', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: 0.08em; cursor: pointer; transition: background .2s, border-color .2s; }
.partner-code:hover { background: rgba(127,161,184,0.12); border-color: #fff; }
.partner-copied { font-size: 12px; color: #A9B7C2; min-height: 16px; }
.partner-card .btn-primary { background: #ffffff !important; color: #1B3962 !important; }
.partner-card .btn-primary:hover { background: #D7E1E8 !important; }
.partner-strip { display: flex; align-items: center; gap: 20px; padding: 20px 26px; border: 1px solid #ECEEF0; border-radius: 4px; background: #F7F9FA; color: #14181d; }
.partner-strip:hover { border-color: #3B6480; color: #14181d; }
.partner-strip-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: #3B6480; padding: 5px 10px; border-radius: 2px; white-space: nowrap; }
.partner-strip-text { flex: 1; font-size: 15px; line-height: 1.6; color: #454C54; }
.partner-strip-text strong { color: #14181d; }
.partner-strip-cta { font-size: 14px; font-weight: 600; color: #1B3962; white-space: nowrap; font-family: 'Archivo', sans-serif; }
@media (max-width: 860px) {
  .partner-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .partner-card .btn-primary { justify-self: start; }
  .partner-strip { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* How I work steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 2px solid #1B3962; }
.step-num { font-family: 'Archivo', sans-serif; font-size: 14px; font-weight: 700; color: #3B6480; letter-spacing: 0.08em; }
.step h3 { font-family: 'Archivo', sans-serif; font-size: 19px; font-weight: 700; color: #14181d; margin: 0; }
.step p { font-size: 15px; line-height: 1.7; color: #5B6570; margin: 0; }
@media (max-width: 960px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps-grid { grid-template-columns: 1fr; gap: 22px; } }

/* Services: price column, groups, FAQ */
.svc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; }
.svc-price { display: flex; flex-direction: column; gap: 4px; }
.svc-price-main { font-family: 'Archivo', sans-serif; font-size: 24px; font-weight: 800; color: #14181d; }
.svc-price-sub { font-size: 12.5px; line-height: 1.5; color: #8A929B; max-width: 230px; }
.svc-groups-wrap { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.svc-groups-title { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #3B6480; }
.svc-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.svc-group { background: #F4F5F6; border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.svc-group h3 { font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 700; color: #14181d; margin: 0; }
.svc-group p { font-size: 13.5px; line-height: 1.65; color: #5B6570; margin: 0; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid #DDE2E6; }
.faq-item { border-bottom: 1px solid #DDE2E6; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-family: 'Archivo', sans-serif; font-size: 17px; font-weight: 600; color: #14181d; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: #3B6480; transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { font-size: 15px; line-height: 1.75; color: #454C54; margin: 0 0 20px; max-width: 700px; }
@media (max-width: 860px) {
  .svc-side { align-items: flex-start; text-align: left; }
  .svc-groups { grid-template-columns: 1fr; }
}

/* Youth lists */
.youth-list { margin: 4px 0 6px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.youth-list li { font-size: 14.5px; line-height: 1.6; color: #454C54; }
.youth-list li::marker { color: #3B6480; }
.youth-compare { display: flex; flex-direction: column; gap: 12px; }

/* Online coaching plans */
.svc-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 10px; }
.svc-plan { border: 1px solid #E4E7E9; border-radius: 4px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.svc-plan-feat { border-color: #1B3962; box-shadow: inset 0 3px 0 #1B3962; }
.svc-plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.svc-plan-head h3 { font-family: 'Archivo', sans-serif; font-size: 18px; font-weight: 700; color: #14181d; margin: 0; }
.svc-plan-head span { font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 700; color: #1B3962; }
.svc-plan p { font-size: 13.5px; color: #5B6570; margin: 0; }
.svc-plan ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.svc-plan li { font-size: 13.5px; line-height: 1.55; color: #454C54; }
.svc-plan li::marker { color: #3B6480; }
@media (max-width: 860px) { .svc-plans { grid-template-columns: 1fr; } }

/* Where I work logos */
.wiw-grid { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; align-items: start; }
.wiw-item { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.wiw-logo { height: 72px; display: flex; align-items: center; justify-content: center; }
.wiw-logo img { max-width: 100%; object-fit: contain; }
@media (max-width: 860px) { .wiw-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { display: flex; flex-direction: column; border: 1px solid #E4E7E9; border-radius: 4px; overflow: hidden; background: #fff; color: #14181d; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18,33,47,0.10); border-color: #C9D3DB; color: #14181d; }
.product-img { aspect-ratio: 1 / 1; overflow: hidden; background: #F4F5F6; }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.product-name { font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.3; }
.product-sub { font-size: 13px; color: #8A929B; }
.product-cta { margin-top: 10px; font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 600; color: #1B3962; }
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .product-card, .product-img img { transition: none; } }

/* ===== Theme toggle ===== */
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #E4E7E9; background: transparent; color: #14181d; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-left: auto; margin-right: 16px; flex: none; transition: background .2s, border-color .2s, color .2s; }
.theme-toggle:hover { border-color: #3B6480; color: #3B6480; }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
@media (min-width: 961px) { .site-nav .nav-links { margin-left: auto; margin-right: 24px; } }
@media (max-width: 960px) {
  .site-nav .theme-toggle { order: 2; margin-right: 8px; }
  .site-nav .nav-toggle { order: 3; }
  .nav-open .site-nav .theme-toggle { visibility: hidden; }
}

/* ===== Dark theme ===== */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body,
html[data-theme="dark"] .page { background: #0B141D !important; color: #DCE3E9; }
html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background: #fff;"],
html[data-theme="dark"] [style*="background: #FAFBFC"] { background: #0B141D !important; }
html[data-theme="dark"] [style*="background: #F4F5F6"],
html[data-theme="dark"] [style*="background: #F4F6F8"],
html[data-theme="dark"] [style*="background: #F7F9FA"] { background: #111D29 !important; }
/* cards sitting on a section get a lifted surface */
html[data-theme="dark"] .card-hover[style*="background: #ffffff"],
html[data-theme="dark"] [style*="border: 1px solid #E4E7E9"][style*="background: #ffffff"],
html[data-theme="dark"] [style*="border-radius: 4px"][style*="background: #ffffff"] { background: #16232F !important; }
html[data-theme="dark"] [style*="color: #14181d"] { color: #EEF2F5 !important; }
html[data-theme="dark"] [style*="color: #454C54"],
html[data-theme="dark"] [style*="color: #5B6570"],
html[data-theme="dark"] [style*="color: #6B7480"] { color: #AFBBC6 !important; }
html[data-theme="dark"] [style*="color: #8A929B"] { color: #8D9AA6 !important; }
html[data-theme="dark"] [style*="color: #1B3962"] { color: #8FB3CC !important; }
html[data-theme="dark"] [style*="color: #3B6480"] { color: #7FA8C4 !important; }
html[data-theme="dark"] [style*="solid #E4E7E9"],
html[data-theme="dark"] [style*="solid #ECEEF0"],
html[data-theme="dark"] [style*="solid #D8DBDE"] { border-color: rgba(255,255,255,0.09) !important; }
html[data-theme="dark"] [style*="background: #E4E7E9"] { background: rgba(255,255,255,0.1) !important; }
html[data-theme="dark"] a:not(.btn-primary):not([class*="btn"]) { color: inherit; }
html[data-theme="dark"] p a, html[data-theme="dark"] .faq-item p a { color: #8FB3CC; }

/* nav */
html[data-theme="dark"] .site-nav { background: #0B141D !important; border-bottom-color: rgba(255,255,255,0.08) !important; }
html[data-theme="dark"] .site-nav.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
html[data-theme="dark"] .site-nav img[src$="logo.png"] { content: url("img/logo-white.png"); }
html[data-theme="dark"] .nav-toggle span { background: #EEF2F5; }
html[data-theme="dark"] .theme-toggle { border-color: rgba(255,255,255,0.18); color: #EEF2F5; }
html[data-theme="dark"] .theme-toggle:hover { border-color: #7FA8C4; color: #7FA8C4; }

/* buttons */
html[data-theme="dark"] .btn-primary { background: #3B6480 !important; color: #fff !important; }
html[data-theme="dark"] .btn-primary:hover { background: #4C7A99 !important; }
html[data-theme="dark"] .partner-card .btn-primary { background: #ffffff !important; color: #1B3962 !important; }

/* component classes */
html[data-theme="dark"] .svc-group { background: #16232F; }
html[data-theme="dark"] .svc-group h3, html[data-theme="dark"] .svc-plan-head h3, html[data-theme="dark"] .svc-price-main,
html[data-theme="dark"] .step h3, html[data-theme="dark"] .faq-item summary, html[data-theme="dark"] .product-name,
html[data-theme="dark"] .partner-strip-text strong { color: #EEF2F5; }
html[data-theme="dark"] .svc-group p, html[data-theme="dark"] .svc-plan p, html[data-theme="dark"] .svc-plan li,
html[data-theme="dark"] .step p, html[data-theme="dark"] .faq-item p, html[data-theme="dark"] .youth-list li,
html[data-theme="dark"] .partner-strip-text { color: #AFBBC6; }
html[data-theme="dark"] .svc-plan { background: #16232F; border-color: rgba(255,255,255,0.1); }
html[data-theme="dark"] .svc-plan-feat { border-color: #7FA8C4; box-shadow: inset 0 3px 0 #7FA8C4; }
html[data-theme="dark"] .svc-plan-head span, html[data-theme="dark"] .product-cta, html[data-theme="dark"] .partner-strip-cta { color: #8FB3CC; }
html[data-theme="dark"] .step { border-top-color: #7FA8C4; }
html[data-theme="dark"] .faq-list, html[data-theme="dark"] .faq-item { border-color: rgba(255,255,255,0.1); }
html[data-theme="dark"] .product-card { background: #16232F; border-color: rgba(255,255,255,0.08); color: #EEF2F5; }
html[data-theme="dark"] .product-card:hover { border-color: rgba(255,255,255,0.2); box-shadow: 0 14px 30px rgba(0,0,0,0.4); }
html[data-theme="dark"] .partner-strip { background: #16232F; border-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .partner-card { background: #16232F; }
html[data-theme="dark"] .wiw-logo img[src$="logo-rugby-danmark.png"] { background: #fff; padding: 8px 12px; border-radius: 6px; box-sizing: content-box; }

/* forms */
html[data-theme="dark"] input[type="text"], html[data-theme="dark"] input[type="email"], html[data-theme="dark"] textarea, html[data-theme="dark"] select,
html[data-theme="dark"] .pdf-form input[type="text"], html[data-theme="dark"] .pdf-form input[type="email"] { background: #111D29 !important; color: #EEF2F5 !important; border-color: rgba(255,255,255,0.15) !important; }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #7D8A96; }

/* same rules for styles re-serialized by JS as rgb() */
html[data-theme="dark"] [style*="background: rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background: rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background: rgb(250, 251, 252)"] { background: #0B141D !important; }
html[data-theme="dark"] [style*="background: rgb(244, 245, 246)"],
html[data-theme="dark"] [style*="background: rgb(244, 246, 248)"],
html[data-theme="dark"] [style*="background: rgb(247, 249, 250)"] { background: #111D29 !important; }
html[data-theme="dark"] .card-hover[style*="background: rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="border: 1px solid rgb(228, 231, 233)"][style*="background: rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="border-radius: 4px"][style*="background: rgb(255, 255, 255)"] { background: #16232F !important; }
html[data-theme="dark"] [style*="color: rgb(20, 24, 29)"] { color: #EEF2F5 !important; }
html[data-theme="dark"] [style*="color: rgb(69, 76, 84)"],
html[data-theme="dark"] [style*="color: rgb(91, 101, 112)"],
html[data-theme="dark"] [style*="color: rgb(107, 116, 128)"] { color: #AFBBC6 !important; }
html[data-theme="dark"] [style*="color: rgb(138, 146, 155)"] { color: #8D9AA6 !important; }
html[data-theme="dark"] [style*="color: rgb(27, 57, 98)"] { color: #8FB3CC !important; }
html[data-theme="dark"] [style*="color: rgb(59, 100, 128)"] { color: #7FA8C4 !important; }
html[data-theme="dark"] [style*="solid rgb(228, 231, 233)"],
html[data-theme="dark"] [style*="solid rgb(236, 238, 240)"],
html[data-theme="dark"] [style*="solid rgb(216, 219, 222)"] { border-color: rgba(255,255,255,0.09) !important; }
html[data-theme="dark"] [style*="background: rgb(228, 231, 233)"] { background: rgba(255,255,255,0.1) !important; }

/* dark: workout pages, courses, ebook */
html[data-theme="dark"] .wk-table th { color: #8D9AA6; border-bottom-color: rgba(255,255,255,0.35); }
html[data-theme="dark"] .wk-table td { color: #AFBBC6; border-bottom-color: rgba(255,255,255,0.09); }
html[data-theme="dark"] .wk-table td:first-child { color: #EEF2F5; }
html[data-theme="dark"] .wk-table tr { border-bottom-color: rgba(255,255,255,0.09); }
html[data-theme="dark"] .wk-table td[data-label]::before { color: #8D9AA6; }
html[data-theme="dark"] .ready-check { background: #16232F; }
html[data-theme="dark"] .pdf-capture { background: #16232F; border-color: rgba(255,255,255,0.09); border-top-color: #7FA8C4; }
html[data-theme="dark"] .pdf-copy h2, html[data-theme="dark"] .pdf-form label { color: #EEF2F5; }
html[data-theme="dark"] .pdf-copy p, html[data-theme="dark"] .pdf-form .pdf-consent { color: #AFBBC6; }
html[data-theme="dark"] .pdf-msg { color: #8FB3CC; }
html[data-theme="dark"] .pdf-msg.err { color: #F97066; }
html[data-theme="dark"] .course-card { background: #16232F; border-color: rgba(255,255,255,0.09); }
html[data-theme="dark"] .course-card h3, html[data-theme="dark"] .course-body h3 { color: #EEF2F5; }
html[data-theme="dark"] .course-card p, html[data-theme="dark"] .course-body p { color: #AFBBC6; }
html[data-theme="dark"] ::selection { background: #3B6480; color: #fff; }
html[data-theme="dark"] .course-tag { color: #7FA8C4; }
html[data-theme="dark"] .course-body .pdf-form { border-top-color: rgba(255,255,255,0.09); }
@media (min-width: 961px) and (max-width: 1200px) {
  .site-nav { padding: 0 28px !important; }
  .site-nav .nav-links { gap: 18px !important; margin-left: 28px; margin-right: 14px; }
  .site-nav .nav-links a { font-size: 13.5px !important; }
  .site-nav .theme-toggle { margin-right: 10px; }
  .site-nav .nav-cta { white-space: nowrap; padding: 11px 16px !important; font-size: 13px !important; }
}
