/* ===== Imperial Fitness ===== */
:root {
  --bg: #0e0e11;
  --bg-alt: #16161b;
  --card: #1d1d24;
  --text: #eaeaea;
  --muted: #9a9aa3;
  --accent: #ff4d2e;
  --accent-dark: #d93a1e;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3, .logo { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 640px; }
.accent { color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 14, 17, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #26262e;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }
.nav-careers { color: var(--accent) !important; font-weight: 600 !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text) !important; border-color: #3a3a44; }
.btn-outline:hover { background: var(--card); border-color: var(--accent); }
.btn-small { padding: 8px 18px; font-size: 0.9rem; }

/* Hero */
.hero {
  padding: 110px 0 90px;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255, 77, 46, 0.18), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 77, 46, 0.08), transparent 50%),
    var(--bg);
  text-align: center;
}
.hero-short { padding: 70px 0 50px; }
.hero-kicker { color: var(--accent); font-weight: 600; letter-spacing: 3px; font-size: 0.85rem; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1.1; }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 18px auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  list-style: none; margin-top: 56px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.2rem; color: var(--accent); }
.hero-stats span { color: var(--muted); font-size: 0.85rem; }

/* Video embed (16:9) */
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin-bottom: 16px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }
.section .grid { margin-top: 40px; }

/* Grid & Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card);
  border: 1px solid #2a2a33;
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card-icon { font-size: 2.2rem; margin-bottom: 14px; }

/* Pricing */
.price-card { text-align: center; }
.price-card .price { font-family: 'Oswald', sans-serif; font-size: 2.2rem; color: var(--text); margin: 8px 0 18px; }
.price-card .price span { font-size: 0.95rem; color: var(--muted); }
.price-features { list-style: none; margin-bottom: 24px; }
.price-features li { padding: 7px 0; color: var(--muted); border-bottom: 1px solid #2a2a33; font-size: 0.92rem; }
.price-card.featured { border-color: var(--accent); position: relative; }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1px; padding: 4px 14px; border-radius: 20px;
}
.note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 28px; }

/* Trainers */
.trainer-card { text-align: center; }
.trainer-photo {
  width: 110px; height: 110px; margin: 0 auto 18px;
  background: var(--bg); border: 2px dashed #3a3a44; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 16px; }
.contact-info p { margin-bottom: 10px; color: var(--muted); }
.contact-info em { font-size: 0.8rem; color: #6a6a73; }
.map-embed { margin-top: 20px; border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { width: 100%; height: 240px; border: 0; display: block; }

/* Forms */
.form { background: var(--card); border: 1px solid #2a2a33; border-radius: var(--radius); padding: 32px; }
.form h3 { margin-bottom: 20px; }
.form label { display: block; margin-bottom: 16px; font-size: 0.9rem; font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px;
  background: var(--bg); border: 1px solid #3a3a44; border-radius: 8px;
  color: var(--text); font-family: inherit; font-size: 0.95rem;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { width: 100%; margin-top: 8px; }

/* Jobs */
.job-details { list-style: none; }
.job-details li { padding: 8px 0; border-bottom: 1px solid #2a2a33; color: var(--muted); font-size: 0.93rem; }
.job-details li:last-child { border-bottom: none; }

/* Footer */
.footer { border-top: 1px solid #26262e; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 0.88rem; }

/* Form result message (set by form-handler.php redirect) */
.flash {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: #1d3a24; color: #7be495; border: 1px solid #2e6b3f;
  padding: 14px 26px; border-radius: var(--radius); z-index: 200; font-weight: 500;
}
.flash.error { background: #3a1d1d; color: #e47b7b; border-color: #6b2e2e; }

/* Responsive */
@media (max-width: 860px) {
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-alt); padding: 20px;
    border-bottom: 1px solid #26262e;
  }
  .nav-links.open { display: flex; }
}
