/* CA Group Training mockup - shared styles
   Palette from the CA design system: navy #1C3A6E, green #3A7D3A, light gray #F4F6F8, gold #E8A020 */

:root {
  --navy: #1C3A6E;
  --navy-deep: #13294F;
  --green: #3A7D3A;
  --green-tint: #E8F1E7;
  --gray: #F4F6F8;
  --gold: #E8A020;
  --gold-deep: #C8870F;
  --ink: #18212F;
  --muted: #56637A;
  --line: #D8DEE6;
  --white: #FFFFFF;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 38em; }

h1, h2, h3 {
  font-stretch: 116%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); color: var(--navy); }
h3 { font-size: 1.2rem; font-stretch: 108%; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }

/* ---------- Review banner ---------- */
.review-bar {
  background: #FFF3DA;
  border-bottom: 1px solid #F0D9A8;
  font-size: 0.875rem;
  color: #5B4310;
}
.review-bar .wrap { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.review-bar a { color: #5B4310; font-weight: 600; }

/* ---------- CA site header (mirrors the existing columbiaassociation.org chrome) ---------- */
/* Shari: this is the existing WordPress theme header. Nothing here needs building. */
.ca-head { --ca-blue: #153893; --ca-link: #1B4F96; background: var(--white); }
.ca-head svg { width: 17px; height: 17px; flex: none; }

.ca-util { background: var(--ca-blue); color: var(--white); font-size: 0.875rem; font-weight: 600; }
.ca-util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.ca-util a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; }
.ca-util a:hover { text-decoration: underline; color: var(--white); }
.ca-util-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }

.ca-main { border-bottom: 1px solid var(--line); }
.ca-main .wrap { display: flex; align-items: center; gap: 24px; min-height: 100px; }
.ca-logo { display: flex; flex-direction: column; text-decoration: none; color: var(--ca-blue); line-height: 0.92; flex: none; }
.ca-logo-1 { font-weight: 900; font-stretch: 112%; font-size: 2.05rem; letter-spacing: -0.02em; }
.ca-logo-2 { font-weight: 400; font-size: 2.05rem; letter-spacing: -0.02em; }
.ca-logo:hover { color: var(--ca-blue); }

.ca-nav { margin-left: auto; }
.ca-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.ca-nav li + li { border-left: 1px solid var(--line); }
.ca-nav a {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 18px;
  color: var(--ca-link); font-weight: 600; font-size: 0.9rem; text-decoration: none; white-space: nowrap;
}
.ca-nav a:hover { color: var(--ca-blue); text-decoration: underline; }
.ca-nav a.is-section { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ca-nav .ca-login { border-left: 0; margin-left: 12px; }
.ca-nav .ca-login a { font-weight: 500; }
.ca-menu-btn { display: none; }


@media (max-width: 1180px) {
  .ca-main .wrap { min-height: 76px; }
  .ca-logo-1, .ca-logo-2 { font-size: 1.6rem; }
  .ca-menu-btn {
    display: inline-block; margin-left: auto; cursor: pointer;
    font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--ca-blue);
    background: var(--white); border: 2px solid var(--ca-blue); border-radius: 6px; padding: 8px 16px;
  }
  .ca-nav { display: none; flex-basis: 100%; margin: 0 0 12px; }
  .ca-nav.is-open { display: block; }
  .ca-main .wrap { flex-wrap: wrap; }
  .ca-nav ul { flex-direction: column; align-items: stretch; }
  .ca-nav li + li { border-left: 0; border-top: 1px solid var(--line); }
  .ca-nav a { display: flex; padding: 12px 4px; font-size: 1rem; }
  .ca-nav .ca-login { margin-left: 0; }
}
@media (max-width: 760px) {
  .ca-util-links { gap: 4px; }
  .ca-util-links span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ca-util-links a { padding: 10px 8px; }
  .ca-util-links svg { width: 18px; height: 18px; }
}
@media (max-width: 560px) {
  .ca-util .ca-promo { display: none; }
  .ca-util .wrap { justify-content: center; }
  .ca-util-links { gap: 14px; }
  .ca-logo-1, .ca-logo-2 { font-size: 1.4rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 700; font-stretch: 106%;
  padding: 14px 24px; border-radius: 6px; border: 2px solid transparent;
  line-height: 1.2;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-deep); color: var(--navy-deep); }
.btn-link-light { color: var(--white); font-weight: 600; }
.btn-link-light:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-stretch: 120%; }
.hero .lede { color: #D7E0EE; font-size: 1.15rem; margin: 22px 0 30px; max-width: 32em; }
.hero-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* Video placeholder */
.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: var(--navy-deep); border: 1px solid rgba(255,255,255,0.18); border-radius: 10px;
  overflow: hidden; display: grid; place-items: center;
}
.video-play {
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); display: grid; place-items: center;
}
.video-play:hover { background: var(--gold-deep); }
.video-play svg { width: 30px; height: 30px; margin-left: 5px; fill: var(--navy-deep); }
.video-meta { position: absolute; left: 20px; right: 20px; bottom: 16px; font-size: 0.9rem; color: #C9D4E6; }
.video-meta strong { display: block; color: var(--white); font-size: 1rem; }
.video-note { margin-top: 12px; font-size: 0.875rem; color: #AFC0DA; }
.video-msg { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 24px; background: rgba(19,41,79,0.94); color: var(--white); }
.video.is-open .video-msg { display: grid; }

/* ---------- Generic sections ---------- */
.section { padding: 80px 0; }
.section-gray { background: var(--gray); }
.section-head { margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }

/* Why group training works */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.reason { border-top: 3px solid var(--green); padding-top: 18px; }
.reason h3 { color: var(--navy); margin-bottom: 8px; }
.reason p { color: var(--muted); margin: 0; }

/* Group fitness vs group training */
.compare-wrap { margin-top: 56px; }
.compare-wrap h3 { color: var(--navy); }
.compare-intro { color: var(--muted); max-width: 38em; margin: 10px 0 20px; }
.compare-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.compare thead th:last-child { color: var(--green); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.compare td:last-child { background: var(--green-tint); font-weight: 600; }

/* ---------- Pathways (the triage) ---------- */
.paths { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.path a {
  display: grid; grid-template-columns: 1.5fr 1fr 150px; gap: 32px; align-items: center;
  padding: 30px 24px 30px 20px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line); border-left: 4px solid transparent; background: var(--white);
}
.path a:hover, .path a:focus-visible { border-left-color: var(--green); background: #FBFCFD; color: var(--ink); }
.path-say { font-size: clamp(1.3rem, 2.3vw, 1.7rem); font-weight: 700; font-stretch: 110%; line-height: 1.2; color: var(--navy); }
.path-prog { display: block; margin-top: 10px; font-size: 1rem; font-weight: 700; color: var(--green); font-stretch: 100%; }
.path a:hover .path-prog { text-decoration: underline; }
.path-facts { color: var(--muted); font-size: 0.98rem; }
.path-facts strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }

.meter { display: grid; gap: 8px; }
.meter-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 10px; }
.meter-bars span { background: var(--line); border-radius: 2px; }
.meter-bars span.on { background: var(--green); }
.meter-bars span.range { background: repeating-linear-gradient(135deg, var(--green) 0 4px, #9CC39A 4px 8px); }
.meter-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.paths-note { margin-top: 20px; font-size: 0.95rem; color: var(--muted); }

.kids-aside { margin-top: 28px; font-size: 0.95rem; color: var(--muted); padding-left: 16px; border-left: 2px solid var(--line); }

/* ---------- Photo placeholders ---------- */
.ph {
  background-color: #E3E9F1;
  background-image: repeating-linear-gradient(45deg, rgba(28,58,110,0.06) 0 12px, transparent 12px 24px);
  border: 1px dashed #9FB0C8; border-radius: 10px;
  display: grid; place-items: center; text-align: center; padding: 18px;
  color: var(--navy); font-size: 0.875rem; font-weight: 600; line-height: 1.35;
  aspect-ratio: 4 / 3;
}
.ph small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
.ph-label { display: block; margin-bottom: 6px; color: var(--green); font-weight: 700; }

/* Inside a session: a photo now, a silent looping video later. Both fill the same 4:3 box. */
.session-media { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; }
.session-video { display: block; object-fit: cover; background: #E3E9F1; }
.ph.session-media:has(+ .session-video) { display: none; }
.ph-square { aspect-ratio: 1 / 1; border-radius: 50%; padding: 10px; font-size: 0.75rem; }
.hero .ph { background-color: #26467C; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 12px, transparent 12px 24px); border-color: rgba(255,255,255,0.35); color: var(--white); }
.hero .ph small { color: #C9D4E6; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label, legend { font-weight: 600; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: 12px 14px;
  border: 1px solid #B9C3D1; border-radius: 6px; background: var(--white); color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(232,160,32,0.55); outline-offset: 0; border-color: var(--navy); }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; }
.choices label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.choices input { width: 18px; height: 18px; accent-color: var(--green); }
.form-foot { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.form-foot p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.form-done { display: none; }
.form-panel.is-done form { display: none; }
.form-panel.is-done .form-done { display: block; }
.form-done h3 { color: var(--green); font-size: 1.4rem; margin-bottom: 10px; }
.mock-flag { font-size: 0.85rem; color: #8A6514; background: #FFF3DA; padding: 8px 12px; border-radius: 6px; display: inline-block; }

/* Ask Jodi */
.ask { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.ask-intro .ph-square { width: 140px; margin-bottom: 24px; }

/* Utility strip */
.utility { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.95rem; color: var(--muted); }
.utility .wrap { display: flex; gap: 32px; flex-wrap: wrap; }

/* ---------- Program pages ---------- */
.prog-hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); font-stretch: 125%; font-weight: 900; letter-spacing: -0.02em; }
.back { display: inline-block; margin-bottom: 18px; color: #C9D4E6; font-size: 0.95rem; }
.back:hover { color: var(--gold); }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 36px; margin: 0 0 34px; }
.facts div { display: grid; }
.facts dt { font-size: 0.85rem; color: #AFC0DA; order: 2; }
.facts dd { margin: 0; font-size: 1.5rem; font-weight: 800; font-stretch: 112%; order: 1; }

.for-you { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.for-you li { padding: 16px 20px; background: var(--white); border-left: 4px solid var(--green); font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.for-you-more { margin: 18px 0 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.benefit h3 { color: var(--navy); margin-bottom: 6px; }
.benefit p { color: var(--muted); margin: 0; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote { margin: 0; border: 2px dashed #C3CDDA; border-radius: 10px; padding: 28px; background: var(--white); }
.quote p { font-size: 1.15rem; color: var(--muted); font-style: italic; }
.quote footer { font-size: 0.9rem; color: var(--muted); }
.quote .tag { font-style: normal; font-weight: 700; color: #8A6514; font-size: 0.85rem; display: block; margin-bottom: 10px; }

.book { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.steps li::before {
  content: counter(s); width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 700;
}
.steps strong { display: block; color: var(--navy); }
.steps span { color: var(--muted); font-size: 0.98rem; }

details.costs { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
details.costs summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.price-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.price-table th, .price-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table thead th { color: var(--muted); font-weight: 600; }
.costs p { font-size: 0.95rem; color: var(--muted); }

.others { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.others a { display: block; padding: 22px 20px 22px 0; text-decoration: none; border-bottom: 1px solid var(--line); color: var(--ink); }
.others a:hover strong { text-decoration: underline; }
.others strong { display: block; color: var(--green); font-size: 1.1rem; }
.others span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--navy-deep); color: #C9D4E6; padding: 36px 0; font-size: 0.9rem; }
.site-foot strong { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .ask, .split, .book { grid-template-columns: 1fr; gap: 36px; }
  .path a { grid-template-columns: 1fr; gap: 14px; padding: 24px 16px; }
  .meter { max-width: 200px; }
  .others { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 52px; }
  .reasons, .benefits, .quotes, .form-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, auto); }
  .form-panel { padding: 22px; }
  .video-play { width: 56px; height: 56px; margin-top: -40px; }
  .video-play svg { width: 22px; height: 22px; }
  .video-meta { font-size: 0.78rem; left: 14px; right: 14px; bottom: 10px; }
  .video-meta strong { font-size: 0.9rem; }
  .compare { min-width: 0; font-size: 0.9rem; }
  .compare th, .compare td { padding: 10px 8px; }
}
