/* ============================================================
   HSA THRIVE v2 — INNER PAGES STYLESHEET
   Extends style-v2.css — include AFTER it
   ============================================================ */

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  min-height: 72vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,211,0,0.1) 0%, transparent 70%);
  right: -100px;
  top: -100px;
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.page-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.25s; }
.page-breadcrumb a:hover { color: var(--gold); }
.page-breadcrumb span { color: var(--gold); }
.ph-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.page-hero h1 em {
  font-style: italic;
  font-family: Georgia, serif;
  color: var(--gold);
}
.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 580px;
}
.hero-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: rgba(255,255,255,0.85);
}
.hero-check-list li svg { flex-shrink: 0; margin-top: 2px; }

/* ---- HERO LEAD FORM (right column) ---- */
.hero-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}
.hero-form-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.hero-form-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.hf-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.hf-group label {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--navy);
}
.hf-group input, .hf-group select, .hf-group textarea {
  padding: 11px 14px;
  border: 1.5px solid rgba(0,46,110,0.15);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.87rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s;
}
.hf-group input:focus, .hf-group select:focus {
  border-color: var(--navy);
}
.hf-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hf-submit:hover { background: var(--gold); color: var(--navy); }
.hf-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--grey);
  margin-top: 10px;
}

/* ---- INNER PAGE HERO GRID ---- */
.page-hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 991px) {
  .page-hero .container { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-form-card { margin-top: 0; }
  .page-hero-content { text-align: center; max-width: 100%; }
  .hero-check-list { align-items: flex-start; }
}

/* ---- FEATURES GRID ---- */
.features-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) { .features-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .features-grid-v2 { grid-template-columns: 1fr; } }

.feat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feat-card:hover::after { transform: scaleX(1); }
.feat-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.feat-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feat-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; margin: 0; }

/* ---- PROCESS STEPS (vertical) ---- */
.vprocess { display: flex; flex-direction: column; gap: 0; }
.vp-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 36px;
  position: relative;
}
.vp-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.vp-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.vp-body h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.vp-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; margin: 0; }

/* ---- RESULTS / METRICS ROW ---- */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric-cell {
  background: var(--navy);
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.metric-cell:last-child { border-right: none; }
.metric-cell:hover { background: var(--navy-mid); }
.mc-num { font-size: 2.5rem; font-weight: 800; color: var(--gold); line-height: 1; display: block; }
.mc-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 6px; display: block; }
@media (max-width: 768px) { .metrics-row { grid-template-columns: repeat(2, 1fr); } }

/* ---- PACKAGES / PRICING ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 991px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.pkg-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
}
.pkg-card.featured {
  background: var(--navy);
  border-color: var(--navy);
}
.pkg-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pkg-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.pkg-name { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey); margin-bottom: 8px; }
.pkg-card.featured .pkg-name { color: rgba(255,255,255,0.5); }
.pkg-price { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.pkg-card.featured .pkg-price { color: var(--gold); }
.pkg-period { font-size: 0.82rem; color: var(--grey); margin-bottom: 22px; }
.pkg-card.featured .pkg-period { color: rgba(255,255,255,0.5); }
.pkg-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.pkg-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.87rem; color: var(--text); }
.pkg-card.featured .pkg-features li { color: rgba(255,255,255,0.85); }
.pkg-features li svg { flex-shrink: 0; margin-top: 2px; }

/* ---- INNER PAGE CTA ---- */
.inner-cta {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.inner-cta::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,211,0,0.1) 0%, transparent 70%);
  top: -100px; right: -50px;
}
.inner-cta h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--white); margin-bottom: 14px; }
.inner-cta p { font-size: 1rem; color: rgba(255,255,255,0.7); margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; }
.inner-cta .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- ABOUT PAGE SPECIFIC ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tc-img { height: 220px; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); display: flex; align-items: center; justify-content: center; }
.tc-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 2.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tc-body { padding: 22px; }
.tc-name { font-size: 1rem; font-weight: 700; color: var(--navy); }
.tc-role { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.tc-bio { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

.mv-card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 12px; padding: 32px; transition: var(--transition); }
.mv-card:hover { transform: translateX(5px); box-shadow: var(--shadow-md); }
.mv-icon { font-size: 2rem; margin-bottom: 12px; }
.mv-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.mv-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; margin: 0; }


/* ============================================================
   SERVICE PAGE FAQ SECTION (added)
   ============================================================ */
.service-faq {
  padding: 90px 0;
  background: var(--off-white, #f6f8fb);
}
.service-faq .section-header { margin-bottom: 50px; }
.svc-faq-sub {
  font-size: 1rem;
  color: var(--text-muted, #6b7280);
  max-width: 640px;
  margin: 14px auto 0;
  line-height: 1.7;
}

.svc-faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.svc-faq-item {
  background: var(--white, #fff);
  border: 1px solid var(--border, #e6e9ee);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.svc-faq-item[open] {
  border-color: var(--navy, #002E6E);
  box-shadow: 0 4px 16px rgba(0,46,110,.08);
}

.svc-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy, #002E6E);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.4;
}
.svc-faq-item summary::-webkit-details-marker { display: none; }
.svc-faq-item summary::after {
  content: '+';
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold, #FFD300);
  color: var(--navy, #002E6E);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s;
}
.svc-faq-item[open] summary::after { content: '−'; transform: rotate(180deg); }

.svc-faq-answer {
  padding: 0 24px 22px;
  font-size: .95rem;
  line-height: 1.78;
  color: var(--text, #2a2f37);
}
.svc-faq-answer p { margin: 0 0 12px; }
.svc-faq-answer p:last-child { margin-bottom: 0; }
.svc-faq-answer strong { color: var(--navy, #002E6E); }
.svc-faq-answer a { color: var(--navy, #002E6E); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 768px) {
  .service-faq { padding: 56px 0; }
  .svc-faq-item summary { padding: 16px 18px; font-size: .94rem; }
  .svc-faq-answer { padding: 0 18px 18px; font-size: .9rem; }
  .svc-faq-item summary::after { flex: 0 0 24px; width: 24px; height: 24px; font-size: 1.05rem; }
}


/* ============================================================
   CONTACT PAGE — RESPONSIVE FIXES (added)
   Root cause: contact.php uses inline grid/flex styles with
   no responsive handling of its own, and its form isn't
   wrapped in .hero-form-card so the earlier override missed
   it. These rules target the contact page markup directly.
   ============================================================ */

/* ---- Form: name+phone row ----
   Line 56 of contact.php has:
   <div style="display:grid;grid-template-columns:1fr 1fr;gap:16px">
   Stack on small phones (keep 2-up on tablet for balance). */
@media (max-width: 640px) {
  #contactForm > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

/* ---- Form container: inline padding: 40px is too much on mobile ---- */
@media (max-width: 768px) {
  #contactForm {
    padding: 26px !important;
  }
}
@media (max-width: 480px) {
  #contactForm {
    padding: 20px !important;
  }
}

/* ---- Form field vertical rhythm on small screens ---- */
@media (max-width: 480px) {
  #contactForm .hf-group { margin-bottom: 14px; }
  #contactForm .hf-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: .95rem;
  }
}

/* ---- Hero sub-badges row ("Response within 2 hours" + "Free audit") ----
   These use inline display:flex with gap:24px — on small phones they
   feel too spread out. Tighten. */
@media (max-width: 640px) {
  .page-hero .container > div[style*="flex-wrap:wrap"] {
    gap: 10px !important;
    margin-top: 16px !important;
  }
  .page-hero .container > div[style*="flex-wrap:wrap"] > div {
    font-size: .8rem !important;
    padding: 6px 12px;
    background: rgba(255, 255, 255, .06);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
  }
}

/* ---- Hero padding: the container has inline padding-top/bottom 80px.
   On mobile we want that much tighter. Override via attribute selector. */
@media (max-width: 768px) {
  .page-hero .container[style*="padding-top:80px"] {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
}

/* ---- Contact info cards (Phone / Email / Office rows) ----
   On narrow phones, the 50px icon tile + text looks fine but
   gap:18px eats too much space. Tighten a touch. */
@media (max-width: 480px) {
  .section-pad .about-grid > div > div[style*="flex-direction:column"] > div[style*="gap:18px"] {
    gap: 14px !important;
  }
  .section-pad .about-grid > div > div[style*="flex-direction:column"] > div[style*="gap:18px"] > div:first-child {
    width: 44px !important;
    height: 44px !important;
  }
}

/* ---- Map iframe — reduce height on small phones ---- */
@media (max-width: 640px) {
  .section-pad iframe[src*="google.com/maps"] {
    height: 220px !important;
  }
}

/* ---- "What Happens After You Reach Out" 4-column grid ----
   My earlier fix collapsed .about-grid to 1 column at 991px — too
   aggressive for THIS section where 4 cards stacked vertically is
   wasteful. Restore 2x2 on tablet, then 1-up only on narrow phones. */
@media (max-width: 991px) and (min-width: 641px) {
  .section-pad[style*="off-white"] .about-grid[style*="repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
}
@media (max-width: 640px) {
  .section-pad[style*="off-white"] .about-grid[style*="repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* ---- feat-card inside contact page — tighten padding on mobile ---- */
@media (max-width: 480px) {
  .section-pad .feat-card {
    padding: 22px 20px;
  }
  .section-pad .feat-card > div[style*="font-size:2rem"] {
    font-size: 1.7rem !important;
    margin-bottom: 10px !important;
  }
}

/* ---- Success/error alert banners on submit redirect ---- */
@media (max-width: 480px) {
  .section-pad div[style*="#d4edda"],
  .section-pad div[style*="#f8d7da"] {
    padding: 14px 16px !important;
    font-size: .85rem !important;
  }
}

/* ---- Section title line breaks — the <br> tags in section-title
   like "Tell Us About<br>Your Goals" can look awkward when already
   narrow. Let them behave as normal whitespace on small phones. */
@media (max-width: 480px) {
  .section-pad .section-title br { display: none; }
  .page-hero h1 br { display: none; }
  .page-hero h1 { font-size: 1.9rem !important; line-height: 1.2; }
}
