/* ============================================
   Jack Spina Exercise Physiology — Design System
   Navy + sky blue, warm and credible allied-health feel
   ============================================ */

:root {
  --navy-900: #0a1f38;
  --navy-800: #0f2a4a;
  --navy-700: #17395e;
  --sky-500: #4aa8e8;
  --sky-400: #6fbaf0;
  --sky-100: #e6f3fc;
  --bg: #f7fafc;
  --surface: #ffffff;
  --text-primary: #10263f;
  --text-secondary: #5c7085;
  --text-muted: #8a9bab;
  --border: #e1e8ef;

  --font-heading: "Newsreader", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 4px 20px rgba(15, 42, 74, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 42, 74, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { color: var(--text-secondary); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-500);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--sky-500);
  color: #fff;
  box-shadow: 0 8px 20px rgba(74, 168, 232, 0.35);
}
.btn-primary:hover { background: var(--sky-400); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-outline-dark:hover { background: var(--navy-800); color: #fff; }

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy-900);
}
.logo span { color: var(--sky-500); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-900); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--sky-500);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta { display: none; }
@media (min-width: 860px) { .nav-cta { display: inline-flex; } }

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-social a {
  display: flex;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.nav-social a:hover { color: var(--sky-500); }
.nav-social svg { width: 19px; height: 19px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}

.hero-inner {
  padding: 100px 24px 140px;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 24px 100px; }
}

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p.lead {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Full-bleed background-slideshow hero variant */
.hero--slideshow {
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero--slideshow .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero--slideshow .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,31,56,0.78) 0%, rgba(15,42,74,0.55) 100%);
}
.hero--slideshow .hero-bg .slideshow,
.hero--slideshow .hero-bg .slide {
  border-radius: 0;
}
.hero--slideshow .hero-inner {
  position: relative;
  z-index: 2;
  grid-template-columns: 1fr;
  text-align: center;
  padding: 100px 24px;
}
.hero--slideshow .hero-inner > div { margin: 0 auto; }
.hero--slideshow .lead { margin-left: auto; margin-right: auto; }
.hero--slideshow .hero-actions { justify-content: center; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Progress-path signature motif (used in hero + section dividers) */
.progress-path {
  width: 100%;
  height: auto;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 24px;
  max-width: 1140px;
  margin: -70px auto 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
@media (max-width: 700px) { .stats-inner { grid-template-columns: 1fr; text-align: center; margin-top: -50px; } }

.stat-item .num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--navy-900);
}
.stat-item .label { font-size: 0.9rem; color: var(--text-secondary); }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-alt { background: var(--surface); }

/* ---------- Service cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--sky-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.two-col img, .two-col .img-box {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background-color: var(--navy-800);
  background-position: center top;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.check-list { list-style: none; margin-top: 24px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px;
  color: var(--text-secondary);
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--sky-100);
  border: 1.5px solid var(--sky-500);
}

/* ---------- Funding / eligibility banner ---------- */
.funding-banner {
  background: var(--sky-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 700px) { .funding-banner { grid-template-columns: 1fr; text-align: center; } }
.funding-banner h3 { margin-bottom: 8px; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
}
.testimonial-card p.quote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 20px;
}
.testimonial-card .who { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.7); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

label { font-size: 0.88rem; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; display: block; }

input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sky-500);
}
textarea { resize: vertical; min-height: 130px; }

.form-status { font-size: 0.9rem; margin-top: 14px; }
.form-status.success { color: #1f8a4c; }
.form-status.error { color: #c0392b; }

/* ---------- Contact info cards ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
@media (max-width: 800px) { .contact-info-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr 0.7fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-inner h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-inner ul { list-style: none; }
.footer-inner ul li { margin-bottom: 10px; }
.footer-inner ul li a:hover { color: #fff; }
.footer-logo { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Slideshow ---------- */
.slideshow {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-800);
}
.slideshow.aspect-square { aspect-ratio: 1/1; }
.slideshow.aspect-wide { aspect-ratio: 16/7; }

.slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.slideshow .slide.active { opacity: 1; }

.slideshow-dots {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.slideshow-dots .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slideshow-dots .dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* ---------- Tag list (conditions treated) ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-list .tag {
  background: var(--sky-100);
  color: var(--navy-800);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- Photo quote band ---------- */
.photo-quote-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center top;
  background-color: var(--navy-800);
}
.photo-quote-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,31,56,0.78) 0%, rgba(15,42,74,0.55) 100%);
}
.photo-quote-band blockquote {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  max-width: 700px;
  padding: 40px 24px;
  margin: 0;
}

/* ---------- Reviews slideshow (text testimonials) ---------- */
.slideshow--reviews {
  aspect-ratio: auto;
  min-height: 220px;
  display: flex;
}
.slideshow--reviews .slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 60px;
}
.slideshow--reviews .testimonial-card .quote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 12px;
}
.slideshow--reviews .testimonial-card .who {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Timeline (sequential process, e.g. "What to expect") ---------- */
.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-phase-label {
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-900);
  margin: 40px 0 20px 56px;
}
.timeline-phase:first-child .timeline-phase-label { margin-top: 0; }
.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 26px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 8px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--sky-500);
  z-index: 1;
}
.timeline-item.is-done .timeline-dot {
  background: var(--sky-500);
}
.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

@media (max-width: 620px) {
  .timeline::before { left: 15px; }
  .timeline-phase-label { margin-left: 48px; }
  .timeline-item { padding-left: 48px; }
  .timeline-dot { left: 5px; }
}
.mt-lg { margin-top: 60px; }
.text-center { text-align: center; }

/* Override crop point on a per-image basis when the default
   "center top" doesn't frame the photo well, e.g.
   <img src="..." class="obj-bottom"> or class="obj-center" */
.obj-top { object-position: center top !important; background-position: center top !important; }
.obj-center { object-position: center center !important; background-position: center center !important; }
.obj-bottom { object-position: center bottom !important; background-position: center bottom !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}