/* Public gym website. --brand (buttons, highlights) and --dark (dark surfaces) come from the owner's system theme, set in the layout. */

:root {
    --brand: #2ca58d;
    --dark: #0a2342;
    --brand-dark: color-mix(in srgb, var(--brand) 78%, #000);
    --ink: color-mix(in srgb, var(--dark) 82%, #000);
    --ink-soft: color-mix(in srgb, var(--dark) 55%, #6b7280);
    --line: color-mix(in srgb, var(--dark) 10%, #e5e7ec);
    --bg: #ffffff;
    --bg-alt: color-mix(in srgb, var(--dark) 4%, #f4f6f9);
    --deep: color-mix(in srgb, var(--dark) 72%, #000);
    --radius: 18px;
    --shadow: 0 14px 36px color-mix(in srgb, var(--dark) 14%, transparent);
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    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 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 100; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid var(--brand);
    background: var(--brand-dark); color: #fff; font-weight: 700; font-size: .95rem; border-color: var(--brand-dark);
    cursor: pointer; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { background: color-mix(in srgb, var(--brand) 62%, #000); border-color: color-mix(in srgb, var(--brand) 62%, #000); transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.outline { background: transparent; color: var(--brand-dark); border-color: var(--brand-dark); }
.btn.outline:hover { background: var(--brand-dark); color: #fff; }
.btn.block { width: 100%; }

/* ---------- header ---------- */
.topbar { background: var(--deep); color: #cfd8e6; font-size: .85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .5rem; }
.topbar a:hover { color: #fff; }
.topbar .social { display: flex; gap: 1rem; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; }
.brand img { height: 42px; width: auto; }
.menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: .5rem .85rem; border-radius: 8px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.menu a:hover, .menu a.active { color: var(--brand-dark); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.menu .btn, .menu a.btn:hover { color: #fff; background: var(--brand-dark); }
.menu .btn { margin-left: .5rem; padding: .6rem 1.3rem; }
.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 920px) {
    .burger { display: block; }
    .menu {
        position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--line); padding: .75rem 1rem 1.25rem;
        display: none; box-shadow: var(--shadow);
    }
    .menu.open { display: flex; }
    .menu .btn { margin: .5rem 0 0; }
}

/* ---------- hero ---------- */
.hero {
    position: relative; color: #fff; isolation: isolate;
    background: radial-gradient(900px 480px at 85% 0%, color-mix(in srgb, var(--brand) 45%, transparent), transparent), linear-gradient(135deg, var(--dark), var(--deep)) center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, color-mix(in srgb, var(--deep) 90%, transparent), color-mix(in srgb, var(--dark) 38%, transparent)); z-index: -1; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 54px; background: var(--bg); clip-path: ellipse(60% 100% at 50% 100%); }
.hero .wrap { padding-block: clamp(4rem, 12vw, 9rem); max-width: 860px; margin-left: max(1rem, calc((100% - var(--wrap)) / 2)); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); text-transform: uppercase; font-weight: 900; color: #fff; }
.hero h1::after { content: ""; display: block; width: 84px; height: 6px; border-radius: 6px; background: var(--brand); margin-top: 1rem; }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); color: #dbe3ef; max-width: 620px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.page-hero { background: linear-gradient(135deg, var(--dark), var(--deep)); color: #fff; text-align: center; padding: clamp(2.5rem, 7vw, 4.5rem) 0; position: relative; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 260px at 50% 0, color-mix(in srgb, var(--brand) 50%, transparent), transparent); z-index: -1; }
.page-hero h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); text-transform: uppercase; margin: 0; color: #fff; }
.crumbs { color: #b8bec9; font-size: .9rem; margin-top: .5rem; }
.crumbs a:hover { color: #fff; }

/* ---------- sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.alt { background: var(--bg-alt); }
section.dark { background: linear-gradient(135deg, var(--dark), var(--deep)); color: #fff; }
section.dark .head h2, section.dark h2, section.dark h3 { color: #fff; }
.head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.head .eyebrow { display: inline-block; color: var(--brand-dark); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: .3rem .85rem; border-radius: 999px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; margin-bottom: .75rem; }
.head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-transform: uppercase; font-weight: 900; }
.head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--brand); margin: .75rem auto 0; }
.head p { color: var(--ink-soft); }
section.dark .head p { color: #c3cddc; }
section.dark .head .eyebrow { background: rgba(255, 255, 255, .1); color: #fff; }

.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.card .body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.2rem; }
.card .meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--ink-soft); font-size: .88rem; margin-bottom: .75rem; }
.card .cover { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--brand), var(--dark)); object-fit: cover; width: 100%; }
.card .more { margin-top: auto; color: var(--brand-dark); font-weight: 700; }

/* class card without a photo */
.program-icon { display: grid; place-items: center; aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--brand), var(--dark)); color: #fff; font-size: 2.6rem; font-weight: 900; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { background: color-mix(in srgb, var(--brand) 11%, transparent); color: var(--brand-dark); border-radius: 999px; padding: .2rem .75rem; font-size: .8rem; font-weight: 600; }

/* features */
.features { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1.25rem; counter-reset: f; }
.feature-list li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; counter-increment: f; }
.feature-list li::before { content: counter(f); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 900; font-size: 1.2rem; }
.feature-list h4 { margin: 0 0 .2rem; }
.feature-list p { margin: 0; color: var(--ink-soft); }
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--brand), var(--dark)); aspect-ratio: 4 / 3; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

/* counters */
.counters { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); text-align: center; }
.counters > div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 1.75rem 1rem; }
.counters strong { display: block; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; color: var(--brand); line-height: 1; }
.counters span { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: #c3cddc; font-weight: 700; }

/* trainers */
.trainer { text-align: center; }
.trainer .photo { aspect-ratio: 1; background: linear-gradient(135deg, var(--brand), var(--dark)); display: grid; place-items: center; color: #fff; font-size: 3.2rem; font-weight: 900; overflow: hidden; }
.trainer .photo img { width: 100%; height: 100%; object-fit: cover; }
.trainer .role { color: var(--brand-dark); font-weight: 700; font-size: .9rem; margin: 0; }

/* pricing */
.switch { display: inline-flex; gap: .25rem; background: var(--bg-alt); padding: .3rem; border-radius: 999px; margin: 0 auto 2rem; flex-wrap: wrap; justify-content: center; }
.switch-wrap { text-align: center; }
.switch button { border: 0; background: transparent; padding: .55rem 1.3rem; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--ink-soft); font-size: .92rem; }
.switch button.on { background: var(--brand-dark); color: #fff; }
.plan { text-align: center; position: relative; }
.plan .price { font-size: 2.6rem; font-weight: 900; color: var(--brand-dark); line-height: 1.1; }
.plan .price small { display: block; font-size: .85rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.plan ul { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; text-align: left; display: grid; gap: .5rem; }
.plan li { padding-left: 1.6rem; position: relative; }
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.plan .join { margin-top: auto; }
.plan-group[hidden] { display: none; }

/* video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; max-width: 900px; margin: 0 auto; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* testimonials: scroll-snap row, no JS */
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: min(380px, 85%); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.slider > * { scroll-snap-align: start; }
.quote { padding: 1.6rem; }
.quote blockquote { margin: 0 0 1rem; font-size: 1.02rem; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: .6; color: var(--brand); font-weight: 900; }
.quote footer strong { display: block; }
.quote footer span { color: var(--ink-soft); font-size: .88rem; }

/* blog */
.post-meta { color: var(--ink-soft); font-size: .85rem; margin-bottom: .5rem; }
.article { max-width: 780px; margin: 0 auto; }
.article img.cover-big { border-radius: var(--radius); margin-bottom: 1.5rem; width: 100%; }
.article .content { font-size: 1.05rem; }
.article .content img { border-radius: 10px; margin: 1rem 0; height: auto; }
.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .gap { border: 0; }

/* gallery */
.masonry { columns: 3 260px; column-gap: 1rem; }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: none; margin: 0 0 1rem; cursor: zoom-in; border-radius: 10px; overflow: hidden; break-inside: avoid; }
.masonry img { width: 100%; transition: transform .3s; }
.masonry button:hover img { transform: scale(1.04); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
dialog.lightbox img { max-width: 94vw; max-height: 90vh; margin: auto; border-radius: 8px; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 1.25rem; }
.faq summary { padding: 1rem 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); padding-bottom: 1rem; }

/* forms */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], select, textarea {
    width: 100%; padding: .8rem 1rem; border: 1px solid #cfd3da; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* honeypot */
.err { color: #b42318; font-size: .85rem; margin-top: .25rem; }
.alert { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem; font-weight: 600; }
.alert.ok { background: #e7f6ec; color: #11623a; }
.alert.bad { background: #fdecea; color: #8a1c13; }
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1.3fr; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list strong { display: block; }

/* call to action band */
.cta { background: linear-gradient(120deg, var(--brand-dark), var(--dark)); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); text-transform: uppercase; font-weight: 900; }
.cta h2 { color: #fff; }
.cta .btn { background: #fff; color: var(--dark); border-color: #fff; }
.cta .btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* footer */
.footer { background: var(--deep); color: #b8c3d4; padding-top: 4rem; }
.footer .cols { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding-bottom: 3rem; }
@media (max-width: 920px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .cols { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer a:hover { color: #fff; }
.footer .social { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.footer .social a { border: 1px solid #333943; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }
.footer .bottom { border-top: 1px solid #232831; padding: 1.25rem 0; font-size: .88rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

.empty { text-align: center; color: var(--ink-soft); padding: 2rem 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- pictures: owner photos, or the illustrations of site/_art.blade.php ---------- */
.art-wrap { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--dark)); }
.art { width: 100%; height: 100%; display: block; object-fit: cover; }
.art .a { fill: rgba(255, 255, 255, .94); }
.art .b { fill: var(--brand); }
.art .b2 { fill: color-mix(in srgb, var(--brand) 40%, transparent); }
.art .c { fill: rgba(255, 255, 255, .10); }
.art .c2 { fill: rgba(10, 20, 40, .18); }
.art .s { fill: none; stroke: rgba(255, 255, 255, .94); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.art .s2 { fill: none; stroke: var(--brand); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.art-wrap .b { fill: rgba(255, 255, 255, .5); }
.art-wrap .s2 { stroke: rgba(255, 255, 255, .6); }

.card .cover.art-wrap { aspect-ratio: 16 / 10; }
.program-cover { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.trainer .photo.art-wrap { background: linear-gradient(135deg, var(--brand), var(--dark)); }
.trainer .photo .art { position: absolute; inset: 0; }
.media-frame .art { height: 100%; }
.media-frame { position: relative; }

.hero .hero-art { position: absolute; top: 0; bottom: 0; right: 0; left: 48%; z-index: -1; opacity: .95; pointer-events: none; }
.hero .hero-art .art { width: 100%; height: 100%; }
@media (max-width: 820px) { .hero .hero-art { left: 20%; opacity: .3; } }

.page-hero { background-size: cover; background-position: center; }
.page-hero .page-hero-art { position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none; }
.page-hero.has-photo::before { background: linear-gradient(180deg, color-mix(in srgb, var(--deep) 78%, transparent), color-mix(in srgb, var(--dark) 60%, transparent)); }

.cta { position: relative; isolation: isolate; background-size: cover; background-position: center; }
.cta .cta-art { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; }
.cta.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, color-mix(in srgb, var(--brand-dark) 84%, transparent), color-mix(in srgb, var(--dark) 80%, transparent)); }

.quote .who { display: flex; align-items: center; gap: .75rem; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--dark)); color: #fff; font-weight: 800; }
.empty-art { max-width: 320px; margin: 0 auto 1rem; border-radius: var(--radius); aspect-ratio: 16 / 10; }
.plan .plan-icon { width: 72px; height: 72px; border-radius: 20px; margin: 1.5rem auto 0; overflow: hidden; flex: none; }

/* Touch screens: every link in the top bar, menu, breadcrumbs and footer is at least 44px tall so it is easy to tap. */
@media (pointer: coarse), (max-width: 900px) {
  .topbar a, .crumbs a, .menu a, .footer li a, .footer .bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .menu a { display: flex; }
  .footer ul { gap: 0; }
  .footer .social a { min-width: 44px; justify-content: center; }
}
