/* APEX Training — personal trainer demo */
:root {
  --black: #0d0d0d;
  --panel: #1a1a1a;
  --lime: #c8f542;
  --white: #ffffff;
  --muted: #9ca3af;
  --line: #2a2a2a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--white); background: var(--black); line-height: 1.6; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: 3.2rem; font-weight: 800; }
h2 { font-size: 2.2rem; margin-bottom: 0.5rem; font-weight: 800; }
img { display: block; width: 100%; height: auto; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.eyebrow, .hero-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; color: var(--lime); margin-bottom: 0.5rem; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; background: rgba(13, 13, 13, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--white); text-decoration: none; letter-spacing: 0.05em; }
.logo span { color: var(--lime); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #d1d5db; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--lime); }
.btn { display: inline-block; padding: 13px 28px; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: transform 0.2s, background 0.2s; cursor: pointer; border: none; }
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 8px 18px; font-size: 0.85rem; }
.btn-light { background: var(--lime); color: var(--black); }
.btn-light:hover { background: #d6ff5e; }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: url('../images/hero.jpg') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: rgba(13, 13, 13, 0.72); }
.hero-content { position: relative; padding: 0 24px; max-width: 720px; }
.hero-sub { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ABOUT */
.about { background: var(--black); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img img { border-radius: 12px; box-shadow: var(--shadow); }
.about-text p { color: var(--muted); margin-bottom: 1rem; }
.about-stats { display: flex; gap: 40px; margin-top: 1.5rem; }
.stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--lime); }
.stat span { font-size: 0.85rem; color: var(--muted); }

/* PROGRAMS */
.dark { background: var(--black); }
.programs .section-head h2 { color: var(--white); }
.section-head { text-align: center; margin-bottom: 48px; }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.program-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 34px 28px; display: flex; flex-direction: column; gap: 14px; transition: transform 0.25s, border-color 0.25s; }
.program-card:hover { transform: translateY(-5px); border-color: var(--lime); }
.program-card.featured { border-color: var(--lime); }
.program-card h3 { font-size: 1.25rem; }
.program-card .price { font-size: 2.2rem; font-weight: 800; color: var(--lime); }
.program-card .price span { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.program-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.program-card li { color: #d1d5db; font-size: 0.92rem; padding-left: 22px; position: relative; }
.program-card li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 700; }
.program-card .btn { align-self: flex-start; margin-top: auto; }

/* SCHEDULE */
.schedule { background: #101010; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.schedule-table th, .schedule-table td { padding: 14px 18px; text-align: center; font-size: 0.92rem; }
.schedule-table thead th { background: var(--panel); color: var(--lime); font-weight: 700; border-bottom: 1px solid var(--line); }
.schedule-table tbody tr { border-bottom: 1px solid var(--line); }
.schedule-table tbody tr:last-child { border-bottom: none; }
.schedule-table td:first-child { color: var(--muted); font-weight: 600; }
.schedule-table .hl { color: var(--black); background: var(--lime); font-weight: 700; border-radius: 4px; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-grid img { border-radius: 12px; box-shadow: var(--shadow); height: 260px; object-fit: cover; }

/* CONTACT */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-addr { margin-bottom: 0.4rem; color: #d1d5db; display: flex; align-items: center; gap: 8px; }
.contact-addr svg { flex-shrink: 0; color: var(--lime); }
.contact-note { margin-top: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.contact-form { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); padding: 26px; border-radius: 12px; }
.contact-form label { font-size: 0.9rem; font-weight: 600; margin-top: 8px; color: #d1d5db; }
.contact-form input, .contact-form select, .contact-form textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 0.95rem; background: var(--black); color: var(--white); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--lime); border-color: transparent; }
.contact-form .btn { margin-top: 16px; align-self: flex-start; }

/* FOOTER */
.footer { background: #080808; color: #6b7280; padding: 28px 0; text-align: center; font-size: 0.85rem; border-top: 1px solid var(--line); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* MOBILE */
@media (max-width: 900px) {
  .programs-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: rgba(13, 13, 13, 0.98); padding: 20px 24px; gap: 18px; align-items: flex-start; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .hero h1 { font-size: 2.3rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}


/* BACK TO TOP */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); background: #fff; color: #c8f542; font-size: 1.2rem; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-brand { font-weight: 700; font-size: 1.05rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: inherit; text-decoration: none; font-size: .85rem; opacity: .8; transition: opacity .2s; }
.footer-links a:hover { opacity: 1; }
.footer-copy { font-size: .82rem; opacity: .7; }
