/* ==========================================================================
   Visions Fitness Centre. All colours live here: change this block to rebrand.
   Red is the live site's computed brand red (rgb(255,0,0)). White text on this
   red is only 4.0:1, so filled red buttons use black text (5.3:1).
   ========================================================================== */
:root {
  --black: #0A0A0A;
  --red: #FF0000;
  --on-red: #0A0A0A;        /* text on red fills */
  --white: #FFFFFF;
  --grey: #5C5C5C;          /* secondary text on white (6.9:1) */
  --grey-light: #F2F2F2;    /* alternate bands */
  --grey-line: #D9D9D9;
  --text: #1A1A1A;
  --focus: #0A5AE0;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1120px;
}
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-800.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.6 var(--font-body); color: var(--text); background: var(--white); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--white); color: var(--black); padding: 12px 16px; border-radius: 6px; }
.skip:focus { top: 8px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 1.05; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--grey); max-width: 46rem; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* Buttons. Healcode renders its own <a>, styled here without changing its class. */
.btn, healcode-widget a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; padding: 12px 26px;
  background: var(--red); color: var(--on-red); font: 800 1.1rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  border: 2px solid var(--red); border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover, healcode-widget a:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--red); color: var(--on-red); border-color: var(--red); }
healcode-widget { display: block; margin: .5rem 0 1rem; min-height: 48px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: var(--white); }
.bar { width: min(100% - 24px, 1280px); margin-inline: auto; display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 44px; width: auto; }
.btn-trial { margin-left: auto; padding: 10px 18px; font-size: 1rem; background: transparent; color: var(--red); }
.btn-trial:hover { background: var(--red); color: var(--on-red); border-color: var(--red); }
.nav-toggle { width: 48px; height: 48px; background: none; border: 0; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 3px; background: currentColor; border-radius: 2px; content: ""; position: relative; transition: transform .2s; }
.burger::before { position: absolute; top: -8px; } .burger::after { position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-8px) rotate(-45deg); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); padding: 8px 16px 20px; border-top: 1px solid #2a2a2a; max-height: calc(100vh - 68px); overflow: auto; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-nav button { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 10px 6px; color: var(--white); background: none; border: 0; text-align: left;
  font: 800 1.25rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; cursor: pointer; }
.site-nav a:hover, .site-nav button:hover { color: var(--red); }
.site-nav .has-sub > button::after { content: "+"; margin-left: auto; color: var(--red); }
.site-nav .has-sub > button[aria-expanded="true"]::after { content: "\2212"; }
.site-nav .has-sub ul { display: none; padding-left: 14px; }
.site-nav .has-sub.open ul { display: block; }
.site-nav .has-sub ul a { font-size: 1.05rem; letter-spacing: .03em; font-family: var(--font-body); font-weight: 600; text-transform: none; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; padding: 0; border: 0; max-height: none; overflow: visible; background: none; margin-left: auto; }
  .site-nav > ul { display: flex; align-items: center; gap: 4px; }
  .site-nav > ul > li { position: relative; }
  .site-nav a, .site-nav button { width: auto; padding: 10px 14px; font-size: 1.1rem; }
  .site-nav .has-sub ul { position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--black); padding: 8px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 12px 24px rgba(0,0,0,.4); }
  .site-nav .has-sub ul a { width: 100%; }
  .btn-trial { margin-left: 8px; }
}

/* Generic content */
.band { padding: clamp(40px, 7vw, 80px) 0; }
.band.alt { background: var(--grey-light); }
.band-head { background: var(--black) !important; color: var(--white); }
.band-head .lead { color: #d0d0d0; }
.band .wrap, .band > .wrap.prose { width: min(100% - 32px, var(--wrap)); }
.prose { max-width: var(--wrap); }
.prose > *:not(.gallery):not(.cards):not(figure) { max-width: 46rem; }
.prose h1, .prose h2 { margin-top: 1.4em; } .prose > h1:first-child, .prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .4em; }
.prose figure { margin: 1.5em 0; } .prose figure img { border-radius: var(--radius); }
.prose figcaption { color: var(--grey); font-size: .95rem; margin-top: .4em; }
.prose hr { border: 0; border-top: 1px solid var(--grey-line); margin: 2em 0; max-width: 46rem; }
.prose blockquote { border-left: 4px solid var(--red); margin: 1.5em 0; padding: .2em 0 .2em 1em; font-size: 1.1rem; }
.prose table { border-collapse: collapse; width: 100%; max-width: 46rem; } .prose th, .prose td { border-bottom: 1px solid var(--grey-line); padding: 10px 8px; text-align: left; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 1.5em 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.video { position: relative; aspect-ratio: 16/9; max-width: 46rem; margin: 1.5em 0; } .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.accordion details { border-bottom: 1px solid var(--grey-line); padding: 4px 0; }
.accordion summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; padding: 8px 0; }
.form-slot { background: var(--grey-light); border-radius: var(--radius); padding: 20px; margin: 1.5em 0; max-width: 46rem; }

/* Home + landing building blocks */
.hero { position: relative; color: var(--white); background: var(--black); isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.55), rgba(10,10,10,.8)); z-index: -1; }
.hero-inner { padding: clamp(56px, 12vw, 140px) 0; max-width: 46rem; }
.hero .lead { color: #f0f0f0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.proof { background: var(--red); color: var(--on-red); padding: 18px 0; }
.proof ul { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 8px; width: min(100% - 32px, var(--wrap)); font: 800 1.15rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
@media (min-width: 800px) { .proof ul { grid-template-columns: repeat(3, 1fr); text-align: center; } }
.split { display: grid; gap: 28px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; max-height: 560px; object-fit: cover; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.flip > :first-child { order: 2; } }
.tiles, .cards { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 640px) { .tiles, .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } .cards { grid-template-columns: repeat(3, 1fr); } }
.tile, .card { background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tile img, .card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.tile-body, .card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.tile-body p, .card-body p { color: var(--grey); }
.tile-body .btn { margin-top: auto; align-self: flex-start; }
.card-body h2 { font-size: 1.5rem; } .card-body h2 a { text-decoration: none; } .card-body h2 a:hover { color: var(--red); }
.plans { display: grid; gap: 20px; margin: 24px 0; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--white); border: 2px solid var(--grey-line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan.feature { border-color: var(--red); }
.plan h3 { margin-bottom: .2em; } .plan .price { font: 800 3rem/1 var(--font-display); } .plan .per { color: var(--grey); margin-bottom: .6em; }
.plan ul { padding-left: 1.2em; margin: 0 0 1em; } .plan healcode-widget { margin-top: auto; }
.banner { background: var(--black); color: var(--white); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-items: center; margin: 24px 0; }
@media (min-width: 760px) { .banner { grid-template-columns: 1fr auto; } }
.banner p { margin: 0; font-size: 1.15rem; }
.cta-band { background: var(--black); color: var(--white); text-align: center; }
.cta-band .lead { margin-inline: auto; color: #d0d0d0; }
.visit { display: grid; gap: 24px; } @media (min-width: 800px) { .visit { grid-template-columns: repeat(3, 1fr); } }
.visit address { font-style: normal; }
.map-link { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--grey-light); min-height: 220px; }
.map-link img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.faq h2 { margin-top: 1.6em; } .faq h3 { font-family: var(--font-body); text-transform: none; font-size: 1.15rem; margin: 1.4em 0 .3em; letter-spacing: 0; }

/* Blog */
.post { width: min(100% - 32px, 46rem); margin: 0 auto; padding: 40px 0 72px; }
.post-meta { color: var(--grey); font-size: .95rem; margin-bottom: .6em; }
.post-hero { margin: 0 0 28px; } .post-hero img { border-radius: var(--radius); width: 100%; max-height: 520px; object-fit: cover; }
.post .prose { max-width: none; } .post .prose > * { max-width: none !important; }

/* Footer */
.site-footer { background: var(--black); color: #e6e6e6; padding: 48px 0 24px; margin-top: 0; }
.site-footer a { color: var(--white); text-decoration-color: var(--red); display: inline-block; padding: 6px 0; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr 1.2fr; } }
.foot-h { font-size: 1.6rem; color: var(--white); } .foot-sub { font-family: var(--font-body); text-transform: none; font-size: 1rem; letter-spacing: 0; margin: 1em 0 .3em; color: var(--white); }
.foot-col address { font-style: normal; margin-bottom: 1em; }
.foot-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; } .foot-links li { break-inside: avoid; }
.social a { margin-right: 14px; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid #2a2a2a; color: #a8a8a8; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ==========================================================================
   Glow up: blog, cards and site-wide polish
   ========================================================================== */
::selection { background: var(--red); color: var(--on-red); }
.site-header { transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.center { text-align: center; margin-top: 2rem; }
.band .wrap > h2:first-child::after { content: ""; display: block; width: 56px; height: 4px; background: var(--red); margin-top: .3em; border-radius: 2px; }
.cta-band .wrap > h2:first-child::after, .band-head .wrap > h2:first-child::after { margin-inline: auto; }
.band-head { background: radial-gradient(1200px 400px at 85% -20%, rgba(255,0,0,.28), transparent 60%), var(--black) !important; }
.band-head h1::after { content: ""; display: block; width: 72px; height: 5px; background: var(--red); margin-top: .25em; border-radius: 3px; }
.btn, healcode-widget a { box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.btn:active { transform: translateY(1px); }

/* Cards */
.cards { gap: 28px; }
.card { background: var(--white); border: 0; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.07); transition: transform .2s, box-shadow .2s; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 16px 36px rgba(0,0,0,.14); }
.card-img { display: block; overflow: hidden; background: var(--black); }
.card-img img { transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-fallback { display: grid; place-items: center; aspect-ratio: 4/3; background: radial-gradient(circle at 70% 20%, rgba(255,0,0,.35), transparent 55%), var(--black); position: relative; }
.card-fallback b { font: 800 clamp(4rem, 10vw, 6rem)/1 var(--font-display); color: var(--red); }
.card-fallback i { position: absolute; left: 16px; bottom: 12px; font: 800 1rem/1 var(--font-display); letter-spacing: .15em; color: #ccc; font-style: normal; }
.card-body { padding: 22px; gap: 0; }
.card-title { font-size: 1.45rem; margin: 0 0 .4em; } .card-title a { text-decoration: none; } .card-title a:hover { color: var(--red); }
.card-ex { color: var(--grey); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .post-meta { margin-bottom: .5em; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.more { margin-top: auto; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); align-self: flex-start; padding: 6px 0; }
.more:hover { color: var(--red); }
@media (min-width: 900px) {
  .card-feature { flex-direction: row; min-height: 420px; }
  .card-feature .card-img { flex: 1.35; } .card-feature .card-img img, .card-feature .card-fallback { height: 100%; aspect-ratio: auto; object-fit: cover; }
  .card-feature .card-body { flex: 1; padding: 40px; justify-content: center; }
  .card-feature .card-title { font-size: clamp(2rem, 3.4vw, 3rem); }
}
.archive { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: 52rem; }
.archive li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--grey-line); }
.archive time { color: var(--grey); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.archive a { font: 800 1.35rem/1.2 var(--font-display); text-transform: uppercase; text-decoration: none; } .archive a:hover { color: var(--red); }
@media (min-width: 700px) { .archive li { grid-template-columns: 190px 1fr; align-items: baseline; gap: 20px; } }

/* Post */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 70; background: transparent; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.post { width: auto; max-width: none; padding: 0; margin: 0; }
.post-top { position: relative; isolation: isolate; background: var(--black); color: var(--white); padding: clamp(56px, 10vw, 120px) 0 clamp(32px, 6vw, 64px); min-height: 280px; display: flex; align-items: flex-end; }
.post-top.has-img { min-height: clamp(380px, 58vh, 620px); }
.post-bg { position: absolute; inset: 0; z-index: -2; } .post-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.post-top.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.55) 45%, rgba(10,10,10,.92) 100%); }
.post-head { width: min(100% - 32px, 52rem); }
.post-head h1 { font-size: clamp(2.2rem, 6.4vw, 4rem); margin: .15em 0 0; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.post-top .post-meta { color: #e2e2e2; font-size: .95rem; margin-bottom: .4em; }
.crumb { display: inline-block; color: var(--white); text-decoration-color: var(--red); margin-bottom: 14px; padding: 8px 0; font-weight: 600; }
.post-layout { padding: 40px 0 64px; max-width: 46rem; margin-inline: auto; }
.post-body { font-size: 1.125rem; line-height: 1.8; max-width: none; }
.post-body > * { max-width: none !important; }
.post-body > p:first-child { font-size: 1.3rem; line-height: 1.6; color: #2b2b2b; }
.post-body h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 1.8em 0 .6em; padding-top: .9em; position: relative; scroll-margin-top: 90px; }
.post-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; background: var(--red); border-radius: 2px; }
.post-body h3 { margin-top: 1.8em; }
.post-body ul li::marker, .post-body ol li::marker { color: var(--red); font-weight: 700; }
.post-body a { font-weight: 600; }
.post-body blockquote { background: var(--grey-light); border-left: 5px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; font-size: 1.2rem; font-style: italic; }
.post-body figure { margin: 2em 0; } .post-body figure img { width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.post-body hr { border-top: 2px solid var(--grey-line); margin: 2.4em 0; }
.toc { background: var(--grey-light); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 32px; }
.toc-h { font: 800 1.1rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .6em; }
.toc ul { margin: 0; padding: 0; list-style: none; } .toc li { margin: 0; } .toc a { display: inline-block; padding: 5px 0; text-decoration: none; font-size: .95rem; } .toc a:hover { color: var(--red); text-decoration: underline; }
@media (min-width: 1040px) {
  .post-layout:has(.toc) { max-width: 1080px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
  .post-layout:has(.toc) .toc { position: sticky; top: 92px; margin: 0; max-height: calc(100vh - 120px); overflow: auto; }
  .post-layout:has(.toc) .post-body { max-width: 46rem; }
}
.post-cta { margin-top: 0; }
.post-cta .wrap > h2:first-child { color: var(--white); }
.btn-trial { white-space: nowrap; }
@media (max-width: 420px) { .btn-trial { padding: 8px 12px; font-size: .9rem; letter-spacing: .03em; } .brand img { height: 38px; } .bar { gap: 6px; } }
