/* ═══════════════════════════════════════════
   Throttle Fitness — Public Layout
   Navbar, Hero, Footer, Auth, Public Pages
   ═══════════════════════════════════════════ */

/* ── Public Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-height);
  background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light); transition: all 0.3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: var(--container-max); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo .nav-logo-img { height: 40px; }
.nav-logo-text { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 0.85rem; border-radius: var(--radius-md); font-size: 0.88rem;
  font-weight: 500; color: var(--text-secondary); transition: all var(--transition-fast);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-glow); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-hamburger {
  display: none; font-size: 1.5rem; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0.3rem 0.6rem; color: var(--text-primary); cursor: pointer;
}

.main-content {
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* ── Hero Section ── */
.hero {
  padding: 4rem 0 4rem; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, rgba(var(--primary-rgb),0.05) 100%);
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -30%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(var(--primary-rgb),0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero h1 { font-size: 3rem; font-weight: 900; margin-bottom: 1rem; letter-spacing: -0.03em; }
.hero h1 .text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 3rem; margin-top: 4rem; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 2.5rem; font-weight: 900; color: var(--primary); }
.hero-stat-label { font-size: 0.85rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* ── Feature Cards ── */
.features-section { padding: 5rem 0; }
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.section-heading p { color: var(--text-secondary); font-size: 1rem; max-width: 500px; margin: 0 auto; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center; transition: all var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); border-color: var(--primary-glow); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Public Footer ── */
.footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border-light);
  padding: 3rem 0 1.5rem; margin-top: 4rem;
}
.footer-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2.5rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; max-width: 280px; }
.footer-brand .footer-logo-img { height: 36px; margin-bottom: 0.75rem; }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--radius-full); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  color: var(--text-secondary); transition: all var(--transition-fast);
}
.footer-social a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.footer-section h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-section a { display: block; font-size: 0.85rem; color: var(--text-secondary); padding: 0.25rem 0; transition: color var(--transition-fast); }
.footer-section a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid var(--border-light); font-size: 0.78rem; color: var(--text-tertiary); max-width: var(--container-max); margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem; background: var(--bg-secondary);
  background-image: radial-gradient(at 20% 50%, rgba(var(--primary-rgb),0.05) 0%, transparent 50%),
                     radial-gradient(at 80% 20%, rgba(var(--primary-rgb),0.03) 0%, transparent 40%);
}
.auth-container {
  width: 100%; max-width: 440px; background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo img { height: 48px; margin: 0 auto; }
.auth-title { text-align: center; font-size: 1.4rem; margin-bottom: 0.3rem; }
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; color: var(--text-tertiary); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; color: var(--text-secondary); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ── Multi-Step Form ── */
.step-indicator {
  display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2rem;
}
.step-dot {
  width: 32px; height: 32px; border-radius: var(--radius-full); display: flex;
  align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700;
  background: var(--bg-tertiary); color: var(--text-tertiary); transition: all var(--transition);
}
.step-dot.active { background: var(--primary); color: #fff; }
.step-dot.completed { background: var(--success); color: #fff; }
.step-line { width: 40px; height: 2px; background: var(--border); align-self: center; }
.step-line.completed { background: var(--success); }
.step-content { display: none; animation: fadeIn 0.4s ease; }
.step-content.active { display: block; }
.step-actions { display: flex; justify-content: space-between; margin-top: 1.5rem; }

/* ── Trainer Card (Public) ── */
.trainer-card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition); cursor: pointer;
}
.trainer-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.trainer-card-photo { width: 100%; height: 220px; object-fit: cover; background: var(--bg-secondary); }
.trainer-card-body { padding: 1.25rem; }
.trainer-card-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.trainer-card-specs { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.trainer-card-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-tertiary); }
.trainer-card-meta span { display: flex; align-items: center; gap: 0.25rem; }

/* ── Trainers Grid ── */
.trainers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* ── About / Terms / Static Pages ── */
.page-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem 3rem; }
.page-content h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.page-content h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; color: var(--primary); }
.page-content p, .page-content li { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 0.75rem; }
.page-content ul { padding-left: 1.5rem; list-style: disc; }
.page-content a { color: var(--primary); text-decoration: underline; }

/* ── Contact Form ── */
.contact-section { max-width: 600px; margin: 0 auto; }

/* ── 404 / 500 pages ── */
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 1rem; }
.error-page h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.error-page p { color: var(--text-secondary); margin-bottom: 2rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--header-height); left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border); flex-direction: column;
    padding: 0.5rem; box-shadow: var(--shadow-lg); z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 0.75rem 1rem; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-value { font-size: 1.8rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .auth-container { padding: 1.5rem; }
  .trainers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .step-indicator { gap: 0.3rem; }
  .step-line { width: 20px; }
}
