/*
 * MakeMyListing personal trainer starter template.
 * One structure, themed per site with the tokens below (see .theme-* blocks at the end).
 * Mobile-first; no JavaScript needed except demo.js on the example sites.
 */
:root {
    --bg: #0b0b0c;
    --surface: #161618;
    --surface-2: #1f1f22;
    --text: #f5f5f4;
    --muted: #b4b4ae;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #f97316;
    --accent-ink: #1a0a00;
    --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
    --hero-fallback: linear-gradient(135deg, #2a2a2e, #0b0b0c);
    --font-head: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --head-weight: 800;
    --head-transform: none;
    --head-spacing: -0.02em;
    --radius: 14px;
    --btn-radius: 999px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: var(--head-weight);
    letter-spacing: var(--head-spacing);
    text-transform: var(--head-transform);
    line-height: 1.08;
}

p { color: var(--muted); }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 44px; }

/* "This is an example" bar */
.demo-bar {
    position: relative;
    z-index: 110;
    background: #111827;
    color: #f9fafb;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 8px 16px;
    text-align: center;
}
.demo-bar a { color: #86efac; font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 12px 24px;
    border: 2px solid transparent; border-radius: var(--btn-radius);
    font: 600 1rem/1.2 var(--font-body);
    text-decoration: none; cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: currentColor; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.btn-wa { background: #25d366; color: #04240f; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand {
    font-family: var(--font-head); font-weight: var(--head-weight);
    text-transform: var(--head-transform); letter-spacing: var(--head-spacing);
    font-size: 1.15rem; text-decoration: none;
}
.brand span { color: var(--accent); }
.site-nav { display: none; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); }

/* Hero */
.hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: flex; align-items: flex-end;
    background: var(--hero-fallback);
    overflow: hidden;
}
/* Hero photos keep the people on the right, so phones (portrait crop) show that side. */
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
/* Extra bottom space on phones keeps the floating WhatsApp button clear of the hero buttons. */
.hero-content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 92px; }
.eyebrow {
    display: inline-block; margin-bottom: 14px;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent);
}
.hero h1 { font-size: clamp(2.6rem, 12vw, 5.2rem); color: #fff; max-width: 12em; }
.hero h1, .hero p, .hero .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.hero p { margin-top: 14px; max-width: 32em; font-size: 1.1rem; color: rgba(255, 255, 255, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .btn-ghost { color: #fff; }

/* Credentials strip */
.creds { border-bottom: 1px solid var(--line); }
.creds ul {
    list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
    padding: 18px 0; font-size: 0.9rem; font-weight: 600; color: var(--muted);
}
.creds li::before { content: "✓ "; color: var(--accent); }

/* Offer banner */
.offer { background: var(--accent); color: var(--accent-ink); }
.offer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.offer p { color: var(--accent-ink); font-weight: 600; }
.offer .btn { background: var(--accent-ink); color: var(--accent); min-height: 42px; }

/* Sections */
.section { padding: 64px 0; scroll-margin-top: 64px; }
.section-alt { background: var(--surface); }
.section-head { margin-bottom: 28px; max-width: 40em; }
.section-head h2 { font-size: clamp(2rem, 8vw, 3rem); }
.section-head p { margin-top: 10px; font-size: 1.05rem; }

/* Services */
.services { display: grid; gap: 14px; }
.service {
    display: grid; gap: 6px; padding: 22px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.section-alt .service { background: var(--bg); }
.service-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.service h3 { font-size: 1.3rem; }
.service .price { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.4rem; color: var(--accent); white-space: nowrap; }
.service .price small { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; color: var(--muted); }
.service-tag {
    justify-self: start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    background: var(--accent); color: var(--accent-ink); padding: 3px 10px; border-radius: 999px;
}

/* Timetable */
.timetable { width: 100%; border-collapse: collapse; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; }
.section-alt .timetable { background: var(--bg); }
.timetable th, .timetable td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.timetable tr:last-child td { border-bottom: 0; }
.timetable th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.timetable td:first-child { font-weight: 700; }
.timetable td:last-child { color: var(--muted); }
.timetable-note { margin-top: 12px; font-size: 0.9rem; }

/* About */
.about { display: grid; gap: 28px; align-items: center; }
.about-img {
    aspect-ratio: 4 / 5; width: 100%; object-fit: cover;
    border-radius: var(--radius); background: var(--hero-fallback);
}
.about h2 { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 14px; }
.about p + p { margin-top: 12px; }

/* Photo strip */
.photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-strip img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--hero-fallback); }

/* First session steps */
.steps { list-style: none; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; padding: 20px 20px 20px 64px; position: relative; background: var(--surface-2); border-radius: var(--radius); }
.section-alt .steps li { background: var(--bg); }
.steps li::before {
    content: counter(step); position: absolute; left: 18px; top: 18px;
    width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink); font-weight: 800;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 4px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface-2); border-radius: var(--radius); }
.section-alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 18px; }

/* Contact / book */
.cta-panel { text-align: center; padding: 40px 22px; border-radius: calc(var(--radius) * 1.5); background: var(--surface-2); border: 1px solid var(--line); }
.cta-panel h2 { font-size: clamp(2rem, 8vw, 3rem); }
.cta-panel p { margin: 12px auto 0; max-width: 30em; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.contact-meta { margin-top: 20px; font-size: 0.95rem; }

.site-footer { padding: 32px 0 96px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.site-footer p { color: var(--muted); }

/* Floating WhatsApp button (phones) */
.wa-float {
    position: fixed; right: 16px; bottom: 16px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: #25d366; color: #04240f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Demo dialog (demo.js) */
.demo-dialog {
    margin: auto; max-width: min(92vw, 420px); padding: 24px; border: 0; border-radius: 16px;
    background: #ffffff; color: #111827; font-family: 'Inter', system-ui, sans-serif;
}
.demo-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.demo-dialog h2 { font-family: 'Inter', system-ui, sans-serif; font-size: 1.15rem; font-weight: 700; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.demo-dialog p { color: #374151; }
.demo-dialog .demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.demo-dialog .btn { min-height: 44px; font-family: 'Inter', system-ui, sans-serif; }
.demo-dialog .demo-close { background: #e5e7eb; color: #111827; }
.demo-dialog .demo-get { background: #25d366; color: #04240f; }

@media (min-width: 720px) {
    .container { padding: 0 24px; }
    .site-nav { display: flex; gap: 22px; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .about { grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .cta-actions { flex-direction: row; justify-content: center; }
    .section { padding: 96px 0; }
    .hero-content { padding-bottom: 72px; }
    .hero-img { object-position: center; }
    .wa-float { display: none; }
    .site-footer { padding-bottom: 40px; }
}

/* ---------- Themes ---------- */

/* Forge Strength Co.: dark, bold, industrial */
.theme-forge {
    --bg: #0c0c0d;
    --surface: #141416;
    --surface-2: #1c1c1f;
    --text: #f4f4f2;
    --muted: #b9b9b2;
    --accent: #f5b301;
    --accent-ink: #171100;
    --hero-fallback: radial-gradient(circle at 70% 20%, #3a2f12, #0c0c0d 60%);
    --font-head: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --head-weight: 700;
    --head-transform: uppercase;
    --head-spacing: 0.01em;
    --radius: 6px;
    --btn-radius: 6px;
}

/* Lumen Pilates & PT: light, calm, editorial */
.theme-lumen {
    --bg: #faf7f2;
    --surface: #f1ebe2;
    --surface-2: #ffffff;
    --text: #2b2420;
    --muted: #6b5f57;
    --line: rgba(43, 36, 32, 0.12);
    --accent: #a8573c;
    --accent-ink: #ffffff;
    --hero-overlay: linear-gradient(180deg, rgba(43, 36, 32, 0.3) 0%, rgba(43, 36, 32, 0.82) 70%);
    --hero-fallback: linear-gradient(135deg, #e9d8c6, #c9a58c);
    --font-head: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --head-weight: 500;
    --head-transform: none;
    --head-spacing: -0.01em;
    --radius: 18px;
    --btn-radius: 999px;
}
.theme-lumen .offer .btn { background: #fff; color: var(--accent); }
.theme-lumen .creds li::before { color: var(--accent); }
