/* ============================================================
   LONGEVITY ATHLETICS — HOW-IT-WORKS.CSS
   ============================================================ */

.hiw-hero {
  background: var(--dark-1);
  background-image:
    linear-gradient(rgba(10,10,10,0.88), rgba(10,10,10,0.88)),
    url('https://longevityathletics.com/wp-content/uploads/2025/05/6b1754cf-0694-450a-8047-622f97510128.webp');
  background-size: cover;
  background-position: center;
  padding: 160px 24px 100px;
  color: var(--white);
  text-align: center;
}

.hiw-hero h1 { color: var(--white); margin-bottom: 16px; }
.hiw-hero p  { color: rgba(255,255,255,0.68); font-size: 1.0625rem; max-width: 600px; margin: 0 auto; }

/* ── METHOD DEEP DIVE ─────────────────────────────────────── */
.hiw-method {
  background: var(--white);
  padding: var(--section-pad-y) var(--section-pad-x);
}

.hiw-method-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.hiw-pillar-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border-color);
}

.hiw-pillar-row:last-child { border-bottom: none; }

.hiw-pillar-row.reverse { direction: rtl; }
.hiw-pillar-row.reverse > * { direction: ltr; }

.hiw-pillar-num {
  font-size: 6rem;
  font-weight: 900;
  color: rgba(0,175,239,0.08);
  line-height: 1;
  font-family: var(--font-heading);
  margin-bottom: 12px;
}

.hiw-pillar-content h2 {
  color: var(--dark-1);
  margin-bottom: 16px;
}

.hiw-pillar-content p {
  color: var(--body-text-light);
  font-size: 1.0625rem;
  line-height: 1.78;
  margin-bottom: 16px;
}

.hiw-pillar-content p:last-of-type { margin-bottom: 0; }

.hiw-pillar-visual {
  background: var(--off-white);
  border-radius: var(--radius-card);
  padding: 48px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hiw-visual-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hiw-vi-dot {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--white);
}

.hiw-vi-text h4 {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark-1);
  margin-bottom: 4px;
}

.hiw-vi-text p {
  font-size: 0.85rem;
  color: var(--body-text-light);
  line-height: 1.65;
  margin: 0;
}

/* ── FORMAT SECTION ───────────────────────────────────────── */
.hiw-formats {
  background: var(--dark-1);
  padding: var(--section-pad-y) var(--section-pad-x);
  color: var(--white);
}

.hiw-formats-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.hiw-formats-header {
  text-align: center;
  margin-bottom: 52px;
}

.hiw-formats-header h2 { color: var(--white); margin-bottom: 14px; }
.hiw-formats-header p  { color: rgba(255,255,255,0.60); font-size: 1.0625rem; max-width: 560px; margin: 0 auto; }

.hiw-formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hiw-format-card {
  background: var(--dark-3);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color var(--transition);
}

.hiw-format-card:hover { border-color: rgba(0,175,239,0.28); }

.hiw-fc-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,175,239,0.10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.hiw-fc-icon svg { width: 24px; height: 24px; }

.hiw-format-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hiw-format-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.72;
  margin: 0;
}

/* ── SCHEDULE SECTION ─────────────────────────────────────── */
.hiw-schedule {
  background: var(--off-white);
  padding: var(--section-pad-y) var(--section-pad-x);
}

.hiw-schedule-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}

.hiw-schedule-content h2 { color: var(--dark-1); margin-bottom: 16px; }
.hiw-schedule-content p  { color: var(--body-text-light); font-size: 1.0625rem; line-height: 1.75; margin-bottom: 28px; }

.hiw-hours-table { display: flex; flex-direction: column; gap: 0; }

.hiw-hour-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.hiw-hour-row:last-child { border-bottom: none; }
.hiw-hour-day { font-weight: 700; color: var(--dark-1); }
.hiw-hour-time { color: var(--body-text-light); }
.hiw-hour-time.closed { color: var(--mid-gray); }

.hiw-map-wrap {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* ── FINAL CTA ────────────────────────────────────────────── */
.hiw-cta {
  background: var(--accent);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hiw-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://longevityathletics.com/wp-content/uploads/2025/05/6b1754cf-0694-450a-8047-622f97510128.webp') center/cover no-repeat;
  opacity: 0.06;
}

.hiw-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.hiw-cta-inner h2 { color: var(--white); margin-bottom: 16px; }
.hiw-cta-inner p  { color: rgba(255,255,255,0.82); font-size: 1.0625rem; line-height: 1.70; margin-bottom: 28px; }

.hiw-cta-inner .btn {
  background: var(--dark-1);
  border-color: var(--dark-1);
  color: var(--white);
}

.hiw-cta-inner .btn:hover {
  background: var(--dark-2);
  border-color: var(--dark-2);
}

@media (max-width: 1024px) {
  .hiw-pillar-row { grid-template-columns: 1fr; gap: 36px; }
  .hiw-pillar-row.reverse { direction: ltr; }
  .hiw-schedule-inner { grid-template-columns: 1fr; gap: 40px; }
  .hiw-formats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hiw-hero { padding: 140px 20px 72px; }
  .hiw-formats-grid { grid-template-columns: 1fr; }
  .hiw-pillar-num { font-size: 4rem; }
}
