/* ===================================================
   CoreFit Studio - styles.css
   深色霓虹綠主題健身網站
   =================================================== */

/* --- Reset & Root Variables --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #39FF14;
  --primary-dim: #00E676;
  --primary-glow: rgba(57, 255, 20, 0.15);
  --bg-deep: #0A0A0F;
  --bg-mid: #111118;
  --bg-card: #1A1A24;
  --bg-card-hover: #222230;
  --text-primary: #F0F0F5;
  --text-secondary: #B8C5D0;
  --text-muted: #6A7585;
  --accent-orange: #FF6B35;
  --accent-silver: #B8C5D0;
  --border: rgba(57, 255, 20, 0.15);
  --border-hover: rgba(57, 255, 20, 0.4);
  --shadow-green: 0 0 30px rgba(57, 255, 20, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: 'Noto Sans TC', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-display);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dim);
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateX(0);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-family: var(--font-display);
}

.btn--primary {
  background: var(--primary);
  color: var(--bg-deep);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: var(--shadow-green);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: var(--shadow-green);
}

.btn--block {
  display: block;
  width: 100%;
}

.btn--lg {
  padding: 18px 48px;
  font-size: 1.1rem;
}

/* ==========================================
   1. NAV
   ========================================== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

#nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 5%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.nav-logo:hover {
  color: var(--text-primary);
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--bg-deep);
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--primary);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================
   2. HERO
   ========================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 15, 0.95) 0%,
    rgba(10, 10, 15, 0.7) 40%,
    rgba(10, 10, 15, 0.5) 100%
  );
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow--1 {
  width: 400px;
  height: 400px;
  background: rgba(57, 255, 20, 0.08);
  top: 10%;
  right: 10%;
}

.hero-glow--2 {
  width: 300px;
  height: 300px;
  background: rgba(0, 230, 118, 0.06);
  bottom: 20%;
  left: 5%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 0 80px;
}

.hero-label {
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

#hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(57, 255, 20, 0.15);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat__number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.hero-stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================
   3. PAIN
   ========================================== */
#pain {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pain-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.88);
}

.pain-content {
  position: relative;
  z-index: 2;
}

#pain h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 48px;
  text-align: center;
}

.pain-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.pain-icon {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.pain-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pain-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.pain-resolve {
  text-align: center;
  font-size: 1.1rem;
  color: var(--primary-dim);
  font-weight: 500;
  line-height: 1.8;
}

/* ==========================================
   4. COURSES
   ========================================== */
#courses {
  padding: 100px 0;
  background: var(--bg-mid);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.course-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.course-tab {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-display);
}

.course-tab:hover,
.course-tab.active {
  background: var(--primary);
  color: var(--bg-deep);
  border-color: var(--primary);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.course-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.course-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-green);
  transform: translateY(-4px);
}

.course-card__img {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.course-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-card__img img {
  transform: scale(1.03);
}

.course-card__body {
  padding: 24px;
}

.course-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 12px;
}

.course-card__body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.course-card__body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.course-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.course-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.course-card__price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.course-card__freq {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* course-card hidden by filter */
.course-card.hidden {
  display: none;
}

/* ==========================================
   5. USP
   ========================================== */
#usp {
  padding: 100px 0;
  background: var(--bg-deep);
}

.usp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.usp-row:last-child {
  margin-bottom: 0;
}

.usp-row--reverse {
  direction: rtl;
}

.usp-row--reverse > * {
  direction: ltr;
}

.usp-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.usp-image img {
  width: 100%;
  border-radius: var(--radius-md);
  transition: transform 0.4s ease;
}

.usp-image:hover img {
  transform: scale(1.03);
}

.usp-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

.usp-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

/* ==========================================
   6. FACILITY
   ========================================== */
#facility {
  padding: 100px 0;
  background: var(--bg-mid);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.facility-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 240px;
  transition: transform 0.4s ease;
}

.facility-item:hover {
  transform: scale(1.02);
}

.facility-item--large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 500px;
}

.facility-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.facility-item__overlay h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================
   7. TRAINERS
   ========================================== */
#trainers {
  padding: 100px 0;
  background: var(--bg-deep);
}

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trainer-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.trainer-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-green);
}

.trainer-card__photo {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.trainer-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.trainer-card:hover .trainer-card__photo img {
  transform: scale(1.03);
}

.trainer-card__info {
  padding: 28px 24px;
  border-top: 3px solid var(--primary);
}

.trainer-card__info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.trainer-card__cert {
  display: block;
  font-size: 0.8rem;
  color: var(--primary-dim);
  margin-bottom: 12px;
}

.trainer-card__specialty {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.trainer-card__style {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   8. PROCESS / TIMELINE
   ========================================== */
#process {
  padding: 100px 0;
  background: var(--bg-mid);
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  position: relative;
}

.timeline-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.timeline-content {
  max-width: 180px;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================
   9. TESTIMONIALS
   ========================================== */
#testimonials {
  padding: 100px 0;
  background: var(--bg-deep);
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-card__quote {
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: Georgia, serif;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  margin-top: 24px;
}

.testimonial-card__rating {
  color: var(--accent-orange);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-card__info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.testimonial-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-green);
}

/* ==========================================
   10. PRICING
   ========================================== */
#pricing {
  padding: 100px 0;
  background: var(--bg-mid);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.pricing-card--popular {
  border: 2px solid var(--primary);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.15);
  transform: scale(1.05);
}

.pricing-card--popular:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--bg-deep);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.pricing-card__header {
  margin-bottom: 28px;
}

.pricing-card__header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-card__amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.pricing-card__period {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-card__features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

/* ==========================================
   11. FAQ
   ========================================== */
#faq {
  padding: 100px 0;
  background: var(--bg-deep);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: '';
}

.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  transition: transform 0.3s ease;
}

.faq-icon::before {
  top: 50%;
  left: 4px;
  width: 16px;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 4px;
  left: 50%;
  width: 2px;
  height: 16px;
  transform: translateX(-50%);
}

.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-item[open] .faq-question {
  color: var(--primary);
}

.faq-answer {
  padding: 0 0 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ==========================================
   12. BOOKING
   ========================================== */
#booking {
  padding: 100px 0;
  background: var(--bg-mid);
}

.booking-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.form-group--full {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group .required {
  color: var(--accent-orange);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-display);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236A7585' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.booking-form .btn {
  display: block;
  width: 100%;
}

/* ==========================================
   13. FOOTER
   ========================================== */
#footer {
  padding: 60px 0 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .logo-icon,
.footer-brand .logo-text {
  display: inline;
}

.footer-slogan {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--text-secondary);
}

.footer-contact a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-green);
}

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   BACK TO TOP
   ========================================== */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .pain-items {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usp-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .usp-row--reverse {
    direction: ltr;
  }

  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facility-item--large {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 320px;
  }

  .trainer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trainer-grid .trainer-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }

  .timeline {
    flex-direction: column;
    gap: 0;
    padding-top: 0;
    padding-left: 32px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
    padding: 20px 0;
  }

  .timeline-node {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .timeline-content {
    max-width: none;
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card--popular {
    transform: none;
  }

  .pricing-card--popular:hover {
    transform: translateY(-4px);
  }

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

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* mobile menu open state (toggled by JS) */
  #nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    padding: 24px 5%;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  #nav.menu-open .nav-cta {
    display: inline-block;
    position: absolute;
    top: calc(100% + 200px);
    left: 5%;
    /* approximate; JS may refine */
  }

  .hero-content {
    padding: 100px 0 60px;
  }

  #hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .facility-grid {
    grid-template-columns: 1fr;
  }

  .facility-item--large {
    grid-column: span 1;
    min-height: 240px;
  }

  .trainer-grid {
    grid-template-columns: 1fr;
  }

  .trainer-grid .trainer-card:last-child {
    grid-column: span 1;
    max-width: none;
  }

  .testimonial-card {
    flex: 0 0 calc(100% - 16px);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group--full {
    grid-column: span 1;
  }

  .booking-form {
    padding: 32px 24px;
  }

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