/* The Liberty Gym. Palette sampled from the Holiday Giveaway flyer:
   header green #08301e, field green #003a07, deep red #8f272a, bright red #ce373c, gold #edcc7c, white. */
@font-face { font-family: "Oswald"; src: url("/assets/fonts/oswald.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --deep: #08301e;
  --green: #003a07;
  --green-soft: #0e4a2a;
  --red: #ce373c;
  --red-deep: #8f272a;
  --gold: #edcc7c;
  --gold-deep: #c9a24a;
  --ink: #0d1a13;
  --muted: #4d5f55;
  --paper: #f4f7f3;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(8, 48, 30, 0.14);
  --shadow-sm: 0 3px 12px rgba(8, 48, 30, 0.10);
  --radius: 14px;
  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: var(--white); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--red-deep); }
h1, h2, h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.08; margin: 0 0 0.6rem; color: var(--deep); font-weight: 700; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(1160px, 92vw); margin: 0 auto; }
.narrow { width: min(820px, 92vw); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--deep); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header { background: var(--deep); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: .2rem; }
.nav a { color: #eaf1ec; text-decoration: none; font: 500 .98rem var(--head); text-transform: uppercase; letter-spacing: .06em; padding: .6rem .7rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav .btn { margin-left: .5rem; padding: .6rem 1.1rem; font-size: 1rem; }
.menu-btn { display: none; background: none; border: 2px solid var(--gold); color: var(--gold); font: 600 .9rem var(--head); letter-spacing: .08em; text-transform: uppercase; padding: .45rem .8rem; border-radius: 8px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font: 700 1.05rem var(--head); text-transform: uppercase; letter-spacing: .07em; text-decoration: none; padding: .9rem 1.6rem; border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-align: center; line-height: 1.1; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold); color: var(--deep); }
.btn-green { background: var(--deep); color: #fff; }
.btn-green:hover { background: var(--green-soft); color: #fff; }
.btn-line { background: #fff; color: var(--deep); border-color: var(--deep); }
.btn-line:hover { background: var(--deep); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--deep) center / cover no-repeat; min-height: 78vh; display: flex; align-items: center; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 48, 30, .38) 0%, rgba(8, 48, 30, .58) 55%, rgba(0, 40, 6, .86) 100%); }
.hero .wrap { position: relative; padding: 4rem 0; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.45rem); max-width: 40rem; margin: .4rem auto 0; color: #f0f5f1; }
.hero .cta-row { justify-content: center; }
.hero .chips { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }
.chip { background: rgba(255, 255, 255, .12); border: 1px solid rgba(237, 204, 124, .55); color: #fff; padding: .4rem .9rem; border-radius: 999px; font-size: .92rem; text-decoration: none; }
a.chip:hover { background: var(--gold); color: var(--deep); }
.hero-small { min-height: 42vh; }
.hero-small h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.eyebrow { font: 500 .95rem var(--head); text-transform: uppercase; letter-spacing: .18em; color: var(--gold); margin-bottom: .6rem; }
.formerly { font-size: .95rem; color: #dbe6de; margin-top: 1rem; }

/* ---------- sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec-paper { background: var(--paper); }
.sec-deep { background: var(--deep); color: #eaf1ec; }
.sec-deep h2, .sec-deep h3 { color: #fff; }
.sec-deep a { color: var(--gold); }
.sec-green { background: var(--green); color: #eaf1ec; }
.sec-green h2, .sec-green h3 { color: #fff; }
.sec-green a:not(.btn) { color: var(--gold); }
.center { text-align: center; }
.section-head { max-width: 46rem; margin: 0 auto 2.2rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.sec-deep .section-head p, .sec-green .section-head p { color: #cfdcd3; }
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card .body { padding: 1.3rem 1.4rem 1.5rem; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card h3 { margin-bottom: .4rem; }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.tick { list-style: none; padding: 0; margin: 0 0 1rem; }
.tick li { position: relative; padding-left: 1.9rem; margin: .5rem 0; }
.tick li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 1rem; height: .55rem; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.sec-deep .tick li::before, .sec-green .tick li::before { border-color: var(--gold); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.3rem 1.4rem; }
.steps li::before { content: counter(s); font: 700 2.2rem var(--head); color: var(--red); display: block; }
.steps b { display: block; font: 700 1.2rem var(--head); text-transform: uppercase; color: var(--deep); margin-bottom: .2rem; }

/* ---------- timetable ---------- */
.tt-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
table.tt { border-collapse: collapse; width: 100%; min-width: 640px; }
table.tt th { background: var(--deep); color: #fff; font: 500 1rem var(--head); text-transform: uppercase; letter-spacing: .08em; padding: .8rem .6rem; }
table.tt td { vertical-align: top; padding: .5rem; border-top: 1px solid #e2e9e3; border-left: 1px solid #e2e9e3; width: 16.6%; font-size: .93rem; }
table.tt td:first-child { border-left: 0; }
.slot { background: #e6f2e9; border-left: 4px solid var(--green); border-radius: 6px; padding: .5rem .6rem; margin-bottom: .4rem; }
.slot b { display: block; font: 600 .82rem var(--body); color: var(--red-deep); }
.slot span { display: block; font-weight: 700; color: var(--deep); line-height: 1.2; }
.slot small { display: block; color: var(--muted); line-height: 1.3; margin-top: .15rem; }
.note { background: #fff8e4; border-left: 4px solid var(--gold-deep); padding: .9rem 1.1rem; border-radius: 8px; font-size: .95rem; }

/* ---------- FAQ ---------- */
details.faq { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: .8rem; }
details.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.3rem; font: 600 1.05rem var(--body); color: var(--deep); position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: .7rem; font: 700 1.6rem var(--head); color: var(--red); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- forms ---------- */
.formbox { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.3rem, 3vw, 2.2rem); }
.formbox h2, .formbox h3 { color: var(--deep); }
.field { margin-bottom: 1rem; }
.field label, .field legend { display: block; font: 600 .95rem var(--body); color: var(--deep); margin-bottom: .3rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field select, .field textarea {
  width: 100%; font: 400 1rem var(--body); padding: .8rem .9rem; border: 2px solid #c6d3ca; border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(206, 55, 60, .35); border-color: var(--red); }
.field textarea { min-height: 110px; resize: vertical; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .4rem .8rem; border: 0; padding: 0; margin: 0; }
.checks label { font-weight: 400; display: flex; gap: .5rem; align-items: center; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.fine { font-size: .85rem; color: var(--muted); }
.msg { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px; display: none; }
.msg.ok { display: block; background: #e5f3e8; color: #0b4a1d; }
.msg.err { display: block; background: #fdebeb; color: #8a1d21; }

/* ---------- misc ---------- */
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.sec-paper .hours li, .card .hours li { border-color: #dfe7e1; }
.gear { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.gear img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow-sm); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.person { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); padding: 1rem 1.2rem; }
.person b { font: 700 1.15rem var(--head); text-transform: uppercase; color: var(--deep); display: block; }
.person span { color: var(--muted); font-size: .95rem; }
.crumbs { font-size: .88rem; padding: .8rem 0; color: var(--muted); }
.crumbs a { color: var(--muted); }
.big-phone { font: 700 clamp(1.8rem, 5vw, 2.8rem) var(--head); color: var(--gold); text-decoration: none; letter-spacing: .04em; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: #d6e2d9; padding: 3.5rem 0 6rem; font-size: .96rem; }
.site-footer h3 { color: var(--gold); font-size: 1.05rem; letter-spacing: .12em; }
.site-footer a { color: #eaf1ec; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.fineprint { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #a8bbae; }

/* ---------- mobile action bar ---------- */
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--deep); padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom)); gap: .5rem; box-shadow: 0 -4px 18px rgba(0, 0, 0, .3); }
.mobile-bar a { flex: 1; padding: .8rem .4rem; font-size: .95rem; }

@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--deep); flex-direction: column; align-items: stretch; padding: .6rem 4vw 1.2rem; box-shadow: 0 12px 20px rgba(0, 0, 0, .3); }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .4rem; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 1.1rem; }
  .nav .btn { margin: .8rem 0 0; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-bar { display: flex; }
  .site-header .wrap { min-height: 64px; }
  .logo img { height: 46px; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .btn { padding: .9rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
