/* Jen X Fitness - shared styles. Brand: flag blue #1C3F8F, red #C8102E, white. Fonts: Oswald (headings), Inter (text). */
:root {
  --blue: #1C3F8F; --blue-dark: #12295e; --blue-soft: #e9eef8; --red: #C8102E; --red-dark: #a20d25; --red-soft: #fdecef;
  --ink: #16213a; --muted: #5d6779; --line: #dde3ee; --bg: #ffffff; --bg-soft: #f4f6fb; --ok: #1f7a3d; --ok-soft: #e7f5ec; --warn: #9a5b00; --warn-soft: #fff4dd;
  --radius: 14px; --shadow: 0 6px 24px rgba(18, 41, 94, .10); --max: 1140px;
  --head: "Oswald", "Arial Narrow", Arial, sans-serif; --body: "Inter", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: .3px; color: var(--blue-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.section.blue { background: var(--blue); color: #fff; }
.section.blue h2, .section.blue h3 { color: #fff; }
.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: 2px; color: var(--red); font-size: .95rem; margin-bottom: .4em; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.red { color: var(--red); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.small { font-size: .88rem; color: var(--muted); }

/* Prototype banner */
.proto-bar { background: #111; color: #ffd76a; font-size: .8rem; text-align: center; padding: 5px 12px; }
.proto-bar a { color: #fff; }

/* Announcement (set by admin) */
.announce { background: var(--red); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; }
.announce[hidden] { display: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a.active { color: var(--blue); background: var(--blue-soft); }
.nav .btn { margin-left: 6px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 3px; background: var(--blue-dark); margin: 5px 0; border-radius: 2px; }
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 72px); overflow: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; border-radius: 999px; padding: 12px 24px; cursor: pointer; transition: transform .1s, background .2s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff !important; }
.btn-red:hover { background: var(--red-dark); }
.btn-blue { background: var(--blue); color: #fff !important; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--blue); color: var(--blue) !important; background: #fff; }
.btn-outline:hover { background: var(--blue-soft); }
.btn-white { background: #fff; color: var(--blue) !important; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--bg-soft) 0%, #fff 60%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 .red { display: block; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.hero-photo .badge { position: absolute; left: -14px; bottom: 22px; background: var(--blue); color: #fff; border-radius: 12px; padding: 10px 16px; font-family: var(--head); font-size: 1.05rem; box-shadow: var(--shadow); }
.hero-photo .badge b { color: #ffd2da; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; } .hero-photo { max-width: 460px; } }

.page-hero { background: var(--blue); color: #fff; padding: 52px 0 44px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: #dfe7f7; max-width: 720px; font-size: 1.1rem; margin: 0; }
.page-hero::after { content: "X"; position: absolute; right: -20px; top: -70px; font-family: var(--head); font-weight: 700; font-size: 340px; color: rgba(255,255,255,.06); line-height: 1; pointer-events: none; }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.card h3 { margin-bottom: .35em; }
.card.lift { transition: transform .15s, box-shadow .15s; }
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 26px; height: 26px; }
.card.blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.card.blue h3 { color: #fff; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.gray { background: #eceff3; color: #555; }

/* Next class card */
.next-class { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--red); padding: 22px 24px; }
.next-class .when { font-family: var(--head); font-size: 1.6rem; color: var(--blue-dark); line-height: 1.15; }
.next-class .status { margin: 8px 0 12px; }
.next-class ul { list-style: none; padding: 0; margin: 0 0 14px; }
.next-class li { padding: 3px 0; }
.wx { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: .92rem; }
.wx .big { font-family: var(--head); font-size: 1.6rem; color: var(--blue-dark); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.2); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--blue); padding: 22px 16px; text-align: center; }
.stats b { display: block; font-family: var(--head); font-size: 2rem; color: #fff; }
.stats span { color: #cdd8f0; font-size: .9rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 16px; }
.steps .step { counter-increment: s; position: relative; padding-left: 64px; }
.steps .step::before { content: counter(s); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--head); font-size: 1.4rem; display: grid; place-items: center; }

/* Lists */
.check { list-style: none; padding: 0; margin: 0 0 1em; }
.check li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.check li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Testimonials */
.quote { font-size: 1.05rem; }
.quote p::before { content: "\201C"; font-family: Georgia, serif; color: var(--red); font-size: 2.4rem; line-height: 0; vertical-align: -.4em; margin-right: 4px; }
.quote .who { font-weight: 700; color: var(--blue-dark); font-size: .95rem; }

/* FAQ */
details.faq { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); list-style: none; position: relative; padding-right: 26px; }
details.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--red); }
details.faq[open] summary::after { content: "\2013"; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .form .row2 { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { min-height: 100px; resize: vertical; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.choice input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--blue); }
fieldset { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; color: var(--blue-dark); }
.form-done { display: none; background: var(--ok-soft); border: 1px solid #b9e2c6; color: var(--ok); border-radius: 12px; padding: 18px; font-weight: 600; }
.form-done.show { display: block; }

/* Notices */
.notice { border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; font-size: .95rem; }
.notice.warn { background: var(--warn-soft); border: 1px solid #f1d49b; color: #6b4100; }
.notice.info { background: var(--blue-soft); border: 1px solid #c9d6f0; color: var(--blue-dark); }

/* Calendar */
.cal-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-toolbar h2 { margin: 0; font-size: 1.8rem; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--ink); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal-grid .dow { background: var(--blue); color: #fff; text-align: center; font-weight: 700; font-size: .8rem; padding: 8px 0; text-transform: uppercase; letter-spacing: 1px; }
.cal-day { background: #fff; min-height: 104px; padding: 6px; cursor: pointer; position: relative; }
.cal-day.other { background: #fafbfd; color: #b3bac6; }
.cal-day.today .num { background: var(--red); color: #fff; }
.cal-day.sel { outline: 3px solid var(--blue); outline-offset: -3px; z-index: 1; }
.cal-day .num { font-weight: 700; font-size: .85rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.cal-ev { display: block; font-size: .74rem; font-weight: 600; border-radius: 6px; padding: 2px 6px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.cal-ev.cancelled { text-decoration: line-through; opacity: .55; }
.t-bootcamp { background: var(--blue); } .t-run { background: var(--red); } .t-race { background: #0f7c6b; } .t-special { background: #7a3db8; } .t-training { background: #b86a00; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
@media (max-width: 700px) {
  .cal-day { min-height: 58px; padding: 4px; }
  .cal-ev { font-size: 0; height: 7px; padding: 0; margin-top: 3px; border-radius: 4px; }
  .cal-grid .dow { font-size: .7rem; letter-spacing: 0; }
}
.ev-list { display: grid; gap: 12px; }
.ev-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ev-date { text-align: center; border-radius: 10px; background: var(--blue-soft); padding: 6px 0; }
.ev-date .m { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--red); }
.ev-date .d { font-family: var(--head); font-size: 1.7rem; line-height: 1; color: var(--blue-dark); }
.ev-date .w { font-size: .72rem; color: var(--muted); }
.ev-item h4 { margin: 0 0 2px; font-size: 1.15rem; }
.ev-item .meta { font-size: .88rem; color: var(--muted); }
.ev-item.cancelled { opacity: .7; }
.ev-item.cancelled h4 { text-decoration: line-through; }
.ev-actions { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 620px) { .ev-item { grid-template-columns: 60px 1fr; } .ev-actions { grid-column: 1 / -1; flex-direction: row; } }

/* Locked workout cards */
.lock-card { position: relative; overflow: hidden; }
.lock-card .thumb { height: 130px; border-radius: 10px; margin: -6px -6px 14px; display: grid; place-items: center; color: #fff; font-family: var(--head); font-size: 1.4rem; text-transform: uppercase; letter-spacing: 1px; }
.lock-card .lock { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.55); color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 700; padding: 4px 10px; }
.price { font-family: var(--head); font-size: 2.4rem; color: var(--blue-dark); line-height: 1; }
.price small { font-size: 1rem; color: var(--muted); font-family: var(--body); }
.tier.featured { border: 2.5px solid var(--red); position: relative; }
.tier.featured::before { content: "Most popular"; position: absolute; top: -13px; left: 20px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* Tables */
table.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--bg-soft); color: var(--blue-dark); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }

/* Timeline */
.timeline { border-left: 3px solid var(--blue-soft); margin-left: 10px; padding-left: 24px; }
.timeline .t { position: relative; margin-bottom: 20px; }
.timeline .t::before { content: ""; position: absolute; left: -33px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red); }
.timeline .yr { font-family: var(--head); color: var(--red); font-size: 1.1rem; }

/* Pace calculator */
.calc { display: grid; gap: 14px; }
.calc .out { background: var(--blue); color: #fff; border-radius: 12px; padding: 16px 18px; }
.calc .out b { font-family: var(--head); font-size: 1.8rem; }

/* Signature pad */
.sig-wrap { border: 1.5px dashed var(--blue); border-radius: 12px; background: #fff; position: relative; }
.sig-wrap canvas { width: 100%; height: 160px; display: block; touch-action: none; }
.sig-wrap .hint { position: absolute; left: 14px; bottom: 10px; color: #a5aec0; font-size: .85rem; pointer-events: none; }

/* Waiver text */
.waiver-text { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fff; font-size: .92rem; }
.waiver-text .wh { font-weight: 800; color: var(--blue-dark); text-transform: uppercase; margin: 14px 0 6px; font-size: .9rem; }
.waiver-text .wn { font-weight: 800; text-transform: uppercase; border: 2px solid #000; padding: 8px 10px; font-size: 1.15rem; line-height: 1.3; margin: 10px 0; }
.waiver-text .wn2 { font-weight: 800; text-transform: uppercase; margin: 10px 0; }

/* Footer */
.site-footer { background: var(--blue-dark); color: #c9d4ec; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 1px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 16px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-ev { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 10px 0; }
.admin-ev:last-child { border-bottom: 0; }
.admin-ev .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hidden { display: none !important; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 200; box-shadow: var(--shadow); }

/* Map */
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }
