/* =============================================
   FitCoach Pro — Personal Training Services
   Primary: #D32F2F (fitness-red) | Accent: #FF6F60 | Bg: #FFF3E0
   ============================================= */

:root {
  --primary: #D32F2F;
  --primary-dark: #B71C1C;
  --primary-light: #EF5350;
  --accent: #FF6F60;
  --accent-light: #FF8A80;
  --bg: #FFF3E0;
  --bg-white: #FFFBF7;
  --text: #3E2723;
  --text-light: #5D4037;
  --text-muted: #795548;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(211,47,47,0.15);
  --shadow-md: 0 4px 24px rgba(211,47,47,0.2);
  --radius: 10px;
  --radius-lg: 18px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  padding-top: 40px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── DEMO BAR ── */
.demo-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 0 16px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.03em;
}
.demo-bar a { color: var(--accent-light); text-decoration: underline; }
.demo-bar a:hover { color: var(--white); }

/* ── CHECKBOX HACK NAV ── */
#nav-toggle { display: none; }

header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 40px;
  z-index: 1000;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: relative;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
}
.logo-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 6px;
}

.hamburger-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
}
.hamburger-label span {
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-menu li {
  position: relative;
}
.nav-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-menu a:hover,
.nav-menu a.active {
  background: var(--bg);
  color: var(--primary);
}
.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 9px 18px !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  text-decoration: none;
}

/* ── MOBILE NAV ── */
@media (max-width: 768px) {
  .hamburger-label { display: flex; }

  #nav-toggle:checked ~ header .hamburger-label span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  #nav-toggle:checked ~ header .hamburger-label span:nth-child(2) { opacity: 0; }
  #nav-toggle:checked ~ header .hamburger-label span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  #nav-toggle:checked ~ header .nav-menu {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    gap: 0;
    padding: 0;
    border-top: 1px solid var(--bg);
    box-shadow: var(--shadow);
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 20px;
    border-radius: 0;
  }
  .nav-logo { font-size: 0.95rem; }
  .nav-logo svg { width: 24px; height: 24px; }
}

/* ── MAIN CONTENT ── */
main { flex: 1; }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.hero-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.05rem;
  margin-bottom: 30px;
  line-height: 1.7;
  color: rgba(255,255,255,0.95);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.badge {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--bg);
  text-decoration: none;
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

/* ── STATS ── */
.stats {
  background: var(--white);
  padding: 50px 20px;
  box-shadow: var(--shadow);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.stat-item {
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.stat-item span {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ── SECTIONS ── */
.section {
  padding: 60px 20px;
}
.section-title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--text);
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 45px;
}
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.card h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 700;
}
.card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}
.card-price {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── PRICING TABLE ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--bg);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.pricing-card:hover {
  box-shadow: var(--shadow-md);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pricing-card h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 700;
}
.pricing-price {
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pricing-list {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}
.pricing-list li {
  padding: 8px 0;
  color: var(--text-light);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--bg);
}
.pricing-list li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: 700;
  margin-right: 8px;
}

/* ── TEAM GRID ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.team-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 700;
}
.team-card h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 700;
}
.team-role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.team-bio {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── FORM ── */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--bg);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: var(--white);
  padding: 50px 20px 30px;
  margin-top: 60px;
}
footer .container {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col a,
.footer-col p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}
.footer-col a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { padding: 50px 20px; }
  .section { padding: 45px 20px; }
  .section-title { font-size: 1.8rem; }
}

@media (max-width: 768px) {
  body { padding-top: 40px; }

  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  .hero-btns { gap: 10px; }
  .btn { padding: 10px 20px; font-size: 0.9rem; }

  .stats-grid { gap: 20px; }
  .stat-item strong { font-size: 1.8rem; }

  .section { padding: 35px 20px; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.95rem; }

  .cards-grid { grid-template-columns: 1fr; gap: 15px; }
  .team-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  :root { --radius: 8px; }

  .hero h1 { font-size: 1.4rem; }
  .hero p { font-size: 0.9rem; }
  .hero-badges { gap: 8px; margin-bottom: 25px; }
  .badge { padding: 4px 10px; font-size: 0.75rem; }

  .btn { padding: 10px 16px; font-size: 0.85rem; }

  .section-title { font-size: 1.3rem; }
  .card { padding: 20px 16px; }

  .team-avatar { width: 80px; height: 80px; font-size: 2rem; }
}
