/* PAX Family Solutions — How It Works page
 * Loads after homepage.css (shares nav/hero/footer/button classes).
 * Page-specific sections only: HIW hero, vertical journey rail,
 * "what's inside" tools grid, FAQ grid, final CTA band.
 * Scoped to .pax-hiw-page to avoid bleeding into page-home.php.
 * ------------------------------------------------------------------ */

.pax-hiw-page .pax-nav-active { color: #f0f8f9 !important; }

/* ====== HERO ====== */
.pax-hiw-hero {
  padding: 168px 60px 100px;
  background: #071e22;
  border-bottom: 1px solid rgba(58,156,173,0.1);
}
.pax-hiw-hero-inner { max-width: 720px; }
.pax-hiw-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 300; line-height: 1.08;
  color: #f0f8f9; margin-bottom: 24px;
}
.pax-hiw-headline em { font-style: italic; color: var(--orange); }
.pax-hiw-sub {
  font-size: 18px; font-weight: 300; line-height: 1.75;
  color: rgba(226,238,239,0.7);
  max-width: 560px; margin-bottom: 40px;
}

/* ====== JOURNEY — vertical rail (signature element) ====== */
.pax-hiw-journey {
  padding: 100px 60px;
  background: var(--teal-deep);
}
.pax-rail {
  list-style: none; margin: 64px 0 0; padding: 0;
  max-width: 760px;
  counter-reset: rail;
}
.pax-rail-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  position: relative;
  padding-bottom: 56px;
}
/* Connecting line — one continuous rail behind every marker except the last */
.pax-rail-step::before {
  content: '';
  position: absolute;
  left: 31px; top: 64px; bottom: -8px;
  width: 1px;
  background: rgba(58,156,173,0.2);
}
.pax-rail-step-last::before { display: none; }
.pax-rail-marker {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #0a2832;
  border: 1px solid rgba(58,156,173,0.3);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.pax-rail-marker span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 400;
  color: var(--teal-accent);
}
.pax-rail-step:nth-child(2n) .pax-rail-marker span { color: var(--orange); }
.pax-rail-step:nth-child(2n) .pax-rail-marker { border-color: rgba(237,126,54,0.35); }
.pax-rail-content { padding-top: 10px; }
.pax-rail-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal-accent); margin-bottom: 10px;
}
.pax-rail-step:nth-child(2n) .pax-rail-tag { color: var(--orange); }
.pax-rail-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 400; color: #f0f8f9;
  margin-bottom: 10px; line-height: 1.25;
}
.pax-rail-content p {
  font-size: 15px; line-height: 1.75;
  color: rgba(226,238,239,0.62);
  max-width: 540px;
}

/* ====== WHAT'S INSIDE ====== */
.pax-hiw-inside {
  padding: 100px 60px;
  background: #071e22;
}
.pax-hiw-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(58,156,173,0.1);
  border: 1px solid rgba(58,156,173,0.1);
  margin-top: 56px;
}
.pax-hiw-tool {
  background: #0a2832;
  padding: 40px 30px;
  transition: background 0.25s;
}
.pax-hiw-tool:hover { background: #0f3540; }
.pax-hiw-tool-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  background: rgba(58,156,173,0.1);
  color: var(--teal-accent);
  margin-bottom: 22px;
}
.pax-hiw-tool:nth-child(2) .pax-hiw-tool-icon,
.pax-hiw-tool:nth-child(4) .pax-hiw-tool-icon {
  background: rgba(237,126,54,0.12);
  color: var(--orange);
}
.pax-hiw-tool h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400; color: #f0f8f9;
  margin-bottom: 10px;
}
.pax-hiw-tool p {
  font-size: 14px; line-height: 1.7;
  color: rgba(226,238,239,0.6);
}
.pax-hiw-tool-icon-wrap { display: none; }

/* ====== FAQ ====== */
.pax-hiw-faq {
  padding: 100px 60px;
  background: var(--teal-deep);
}
.pax-hiw-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(58,156,173,0.1);
  border: 1px solid rgba(58,156,173,0.1);
  margin-top: 56px;
  max-width: 980px;
}
.pax-hiw-faq-item {
  background: rgba(7,30,34,0.6);
  padding: 32px 34px;
}
.pax-hiw-faq-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 600; color: #f0f8f9;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.pax-hiw-faq-item p {
  font-size: 14px; line-height: 1.75;
  color: rgba(226,238,239,0.6);
}
.pax-hiw-faq-item a { color: var(--teal-accent); text-decoration: underline; }

/* ====== FINAL CTA ====== */
.pax-hiw-cta {
  padding: 100px 60px;
  background: #071e22;
  text-align: center;
  border-top: 1px solid rgba(237,126,54,0.12);
}
.pax-hiw-cta-inner { max-width: 640px; margin: 0 auto; }
.pax-hiw-cta .pax-section-label { justify-content: center; }
.pax-hiw-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.5vw, 50px); font-weight: 300; line-height: 1.15;
  color: #f0f8f9; margin-bottom: 36px;
}
.pax-hiw-cta h2 em { font-style: italic; color: var(--orange); }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .pax-hiw-hero { padding: 148px 32px 80px; }
  .pax-hiw-journey, .pax-hiw-inside, .pax-hiw-faq, .pax-hiw-cta { padding: 80px 32px; }
  .pax-hiw-tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pax-hiw-faq-grid { grid-template-columns: 1fr; }
  .pax-rail-step { grid-template-columns: 48px 1fr; gap: 20px; }
  .pax-rail-marker { width: 48px; height: 48px; }
  .pax-rail-marker span { font-size: 18px; }
  .pax-rail-step::before { left: 23px; top: 48px; }
}
@media (max-width: 480px) {
  .pax-hiw-hero { padding: 132px 20px 64px; }
  .pax-hiw-journey, .pax-hiw-inside, .pax-hiw-faq, .pax-hiw-cta { padding: 60px 20px; }
  .pax-hiw-tools-grid { grid-template-columns: 1fr; }
}
