/* Cortiz Fitness — static site styles. No framework, no JavaScript. */

@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ssp-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ssp-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 900; font-display: swap; src: url(/assets/fonts/ssp-900-normal.woff2) format("woff2"); }

:root {
  --teal-dark: #00a1a5;
  --teal: #16d6da;
  --teal-hover: #00bfc4;
  --green: #08a57c;
  --green-text: #067a5c;   /* AA-contrast version of the brand green for body-size text */
  --teal-link: #00797c;    /* AA-contrast link colour on white */
  --ink: #333;
  --text: #444;
  --muted: #888;
  --rule: #ddd;
  --dark-sub: #9aedef;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 18px/1.45 "Source Sans Pro", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
a { color: var(--teal-link); text-decoration: none; }
a:hover, a:focus-visible { color: var(--teal-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.1; color: var(--ink); margin: 0 0 .5em; }
h1, h2, h3 { text-transform: uppercase; }
h3 { font-size: 26px; }
h4 { font-size: 20px; }
ul { margin: 0 0 1em; padding-left: 1.4em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 10; background: #fff; padding: 8px 12px; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.banner-bar { height: 5px; background: linear-gradient(to right, #00a1a5, #16d6da, #08a57c); box-shadow: inset 0 -1px 1px rgba(0,0,0,.15); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: block; padding: 14px 0; line-height: 0; }
.brand img { width: 184px; height: 40px; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; color: var(--ink); position: relative; }
.nav-list a:hover, .nav-list a:focus-visible { color: var(--teal-hover); text-decoration: none; }

/* Mobile menu: <details> toggle (no JS) */
.menu > summary {
  list-style: none; cursor: pointer; padding: 9px 10px; border: 1px solid var(--rule); border-radius: 4px; line-height: 0;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .bar { display: block; width: 22px; height: 2px; background: #888; border-radius: 1px; }
.menu > summary .bar + .bar { margin-top: 4px; }
.menu[open] > summary { background: #eee; }
.menu .nav-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  background: #fff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; box-shadow: 0 6px 12px rgba(0,0,0,.08);
  padding: 6px 0;
}
.menu .nav-list a { padding: 11px 15px; }
.menu .nav-list a[aria-current="page"] { color: var(--teal-dark); font-weight: 600; }
.site-header { position: relative; }
.nav-desktop { display: none; }

@media (min-width: 992px) {
  .menu { display: none; }
  .nav-desktop { display: block; }
  .nav-desktop .nav-list { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .nav-desktop .nav-list .home-link { display: none; }
  .nav-desktop .nav-list a { padding: 30px 14px; font-size: 17px; }
  .nav-desktop .nav-list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0;
    background: var(--teal); transition: height .25s ease-in-out;
  }
  .nav-desktop .nav-list a:hover::after,
  .nav-desktop .nav-list a:focus-visible::after,
  .nav-desktop .nav-list a[aria-current="page"]::after { height: 5px; }
}
@media (min-width: 1200px) {
  .brand img { width: 230px; height: 50px; }
  .nav-desktop .nav-list a { padding: 34px 18px; font-size: 18px; }
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 1vh 15px 0; }
.hero h1 { font-size: 26px; margin: 10px 0 8px; }
.hero .subheading { margin-bottom: 1em; }
.hero-media { margin: 0 auto; }
.hero-media img { display: block; margin: 0 auto; }
@media (min-width: 768px) {
  .hero h1 { font-size: 48px; margin-top: 3vh; }
  .hero .subheading { margin-bottom: 1.5em; }
}

/* ---------- Sections ---------- */
.section { padding: 30px 0; }
.section-header { text-align: center; padding: 0 15px; }
.section-heading { position: relative; margin: 0 auto .5em; padding-bottom: .5em; font-size: 26px; }
.section-heading::after {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 240px; height: 1px; margin-left: -120px; background: var(--rule);
}
.subheading { max-width: 800px; margin: 0 auto 2em; color: var(--green-text); text-align: center; }
.subheading p:last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .section { padding: 50px 0; }
  .section-heading { font-size: 36px; }
  .section-heading::after { width: 500px; margin-left: -250px; }
}
@media (min-width: 992px) {
  .section { padding: 70px 0; }
  .section-header .subheading { margin-bottom: 3em; }
}

.section-dark { background-color: var(--teal-dark); background-size: cover; background-position: center; color: rgba(255,255,255,.9); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .section-heading::after { background: rgba(221,221,221,.4); }
.section-dark .subheading { color: var(--dark-sub); }
.section-dark a:not(.btn) { color: var(--dark-sub); }
.section-dark a:not(.btn):hover { color: #fff; }
.bg-home-kids { background-image: url(/assets/img/bg-home-kids-fitness.webp); }
.bg-kids-sports { background-image: url(/assets/img/bg-kids-sports.webp); }
.bg-mma { background-image: url(/assets/img/bg-personal-mma-kickboxing.webp); }
.bg-nutrition { background-image: url(/assets/img/bg-personal-nutrition-guidance.webp); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; text-transform: uppercase; text-align: center; white-space: nowrap;
  border: 1px solid transparent; border-radius: 2px; padding: 12px 30px; font-size: 16px; line-height: 1.3;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover, .btn:focus-visible { text-decoration: none; }
.btn-primary { color: #fff; background: var(--teal-dark); border-color: var(--teal-dark); text-shadow: 0 1px rgba(0,0,0,.15); }
.btn-primary:hover, .btn-primary:focus-visible { color: #fff; background: #008185; border-color: #008185; }
.btn-outline { color: var(--teal-link); border-color: var(--teal-dark); background: transparent; font-size: 15px; padding: 10px 36px; }
.btn-outline:hover, .btn-outline:focus-visible { color: #fff; background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-outline svg { width: 16px; height: 16px; vertical-align: -2px; margin-right: 6px; fill: currentColor; }
.btn-lg { padding: 14px 38px; font-size: 20px; }
@media (min-width: 768px) { .btn-lg { padding: 16px 60px; font-size: 22px; } }
.actions { text-align: center; margin-top: 10px; }

/* ---------- Service features (home) ---------- */
.features { display: grid; grid-template-columns: 1fr; gap: 30px; margin: 0 0 30px; padding: 0; list-style: none; }
.feature { text-align: center; }
.feature img { display: block; margin: 0 auto 15px; width: 240px; height: 200px; object-fit: cover; }
.feature h3 { font-size: 20px; margin-bottom: .5em; }
.feature p { max-width: 420px; margin: 0 auto; font-size: 17px; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .features { grid-template-columns: repeat(4, 1fr); margin-bottom: 50px; } }

/* ---------- Results carousel (radio buttons, no JS) ---------- */
.results { position: relative; max-width: 760px; margin: 0 auto; }
.results-viewport { overflow: hidden; }
.results-track { display: flex; transition: transform .45s ease; }
.result { flex: 0 0 100%; text-align: center; padding: 0 50px; }
.result-pics { display: flex; justify-content: center; gap: 10px; margin-bottom: 1.25em; }
.result-pics figure { margin: 0; }
.result-pics img { width: 125px; height: 150px; object-fit: cover; }
.result-pics figcaption { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.result h3 { font-size: 20px; }
.result p { max-width: 430px; margin: 0 auto; }
@media (min-width: 768px) {
  .result-pics { gap: 48px; }
  .result-pics img { width: 250px; height: 300px; }
}
.results-nav label {
  position: absolute; top: 75px; width: 44px; height: 44px; display: none; place-items: center;
  cursor: pointer; color: #888; border-radius: 50%;
}
.results-nav label:hover { color: var(--teal-hover); background: #f4f4f4; }
.results-nav svg { width: 40px; height: 40px; fill: currentColor; }
.results-nav .prev { left: 0; }
.results-nav .next { right: 0; }
@media (min-width: 768px) { .results-nav label { top: 128px; } }
.results-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.results-dots label { width: 12px; height: 12px; border-radius: 50%; background: #ccc; cursor: pointer; }
.results-dots label:hover { background: var(--teal-hover); }
.results input:focus-visible ~ .results-dots { outline: 2px solid var(--teal-dark); outline-offset: 4px; border-radius: 8px; }

#r1:checked ~ .results-viewport .results-track { transform: translateX(0); }
#r2:checked ~ .results-viewport .results-track { transform: translateX(-100%); }
#r3:checked ~ .results-viewport .results-track { transform: translateX(-200%); }
#r4:checked ~ .results-viewport .results-track { transform: translateX(-300%); }
#r5:checked ~ .results-viewport .results-track { transform: translateX(-400%); }
#r6:checked ~ .results-viewport .results-track { transform: translateX(-500%); }
#r1:checked ~ .results-nav .s1, #r2:checked ~ .results-nav .s2, #r3:checked ~ .results-nav .s3,
#r4:checked ~ .results-nav .s4, #r5:checked ~ .results-nav .s5, #r6:checked ~ .results-nav .s6 { display: grid; }
#r1:checked ~ .results-dots .d1, #r2:checked ~ .results-dots .d2, #r3:checked ~ .results-dots .d3,
#r4:checked ~ .results-dots .d4, #r5:checked ~ .results-dots .d5, #r6:checked ~ .results-dots .d6 { background: var(--teal-dark); }
@media (prefers-reduced-motion: reduce) { .results-track { transition: none; } }

/* ---------- Training / program sections ---------- */
.program-figure { margin: 0 auto 30px; text-align: center; }
.program-figure img { width: 620px; }
.overview { max-width: 950px; margin: 0 auto; }
.overview h3 { font-size: 20px; margin-bottom: .6em; }
.overview-cols { display: grid; grid-template-columns: 1fr; gap: 10px 50px; }
@media (min-width: 768px) { .overview-cols { grid-template-columns: 1fr 1fr; } }
.overview ul { margin: 0 0 1em; }
.overview li { margin-bottom: 2px; }
.prose { max-width: 760px; margin: 0 auto 2em; }

.cta-band { border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; padding: 22px 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; text-align: center; }
.cta-band h2 { font-size: 22px; margin: 0; }
@media (min-width: 768px) { .cta-band h2 { font-size: 30px; } }

/* ---------- Article pages ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 0 15px; }
.article .lead { font-size: 22px; line-height: 1.5; margin-bottom: 1.25em; }
.article h2 { font-size: 26px; text-transform: uppercase; }
.article .big { font-size: 26px; line-height: 1.2; margin: 0 0 .7em; }
@media (min-width: 768px) { .article .big { font-size: 36px; } }
.article .big a { color: var(--teal-link); }
.article h4 { font-size: 20px; line-height: 1.3; }
.locations { list-style: none; padding: 0; text-transform: uppercase; font-size: 16px; }
.locations li { margin-bottom: .9em; }

/* ---------- Footer ---------- */
.site-footer { background: #111; color: #999; text-align: center; padding: 45px 15px; }
.site-footer p { margin: 0 0 1em; }
.site-footer .logo { width: 184px; height: 40px; }
.site-footer a { color: #2dd4d8; }
.site-footer a:hover { color: #fff; }
.site-footer .phone { color: #fff; font-weight: 600; }
.site-footer .sep { color: #666; padding: 0 .5em; }
.social { display: flex; justify-content: center; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #00797c; color: #fff; }
.social a:hover, .social a:focus-visible { background: var(--teal-hover); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.copyright { font-size: 13px; color: #888; }
@media (min-width: 1200px) { .site-footer .logo { width: 230px; height: 50px; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 40px 15px 70px; }

/* ---------- Utilities ---------- */
.section.pb-0 { padding-bottom: 0; }
.section.pt-sm { padding-top: 20px; }
.mt-2 { margin-top: 2em; }
