/* ==========================================================================
   Fix Your Tax Problem, Inc. — V3 additions (loads after site-v2.css)
   Adds: Bob hero card, comparison table, 5-step process, team grid,
   founder banner, consent checkbox, mobile navigation, overflow guards.
   ========================================================================== */

html, body { overflow-x: hidden; }
img { max-width: 100%; }

/* ---------- Utility bar (trimmed) ---------- */
.utility-cta {
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
}
.utility-cta:hover { text-decoration: underline; }

/* ---------- Hero: Bob card ---------- */
.bob-card-top {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.bob-card-top img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  border: 2px solid var(--mint);
  flex-shrink: 0;
}
.bob-card-top h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 6px 0 2px;
  line-height: 1.2;
}
.bob-card-top p {
  font-size: 0.8rem;
  color: var(--muted-text);
  line-height: 1.45;
}
.hero-review-quote {
  background: var(--bg-ice);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.86rem;
  color: var(--body-text);
  line-height: 1.5;
  margin-bottom: 14px;
}
.hero-review-quote cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.hero-lead-strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
}

/* ---------- Comparison table ---------- */
.compare-wrap {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-white);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.compare-table th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.98rem;
  padding: 16px 20px;
  background: var(--navy);
  color: #fff;
}
.compare-table th.fytp {
  background: var(--teal);
}
.compare-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
  color: var(--body-text);
}
.compare-table td.crit {
  font-weight: 700;
  color: var(--navy);
  width: 20%;
}
.compare-table td.mill {
  color: var(--muted-text);
  width: 36%;
}
.compare-table td.fytp {
  background: var(--bg-mint-soft);
  width: 44%;
}
.compare-table td.fytp strong { color: var(--teal-dark); }
.compare-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.compare-quote {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--body-text);
  box-shadow: var(--shadow-xs);
}
.compare-quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--navy);
}

/* ---------- 5-step process ---------- */
.steps5-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step5-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-xs);
  position: relative;
}
.step5-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 10px;
}
.step5-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.step5-card p {
  font-size: 0.86rem;
  color: var(--body-text);
  line-height: 1.55;
}

/* ---------- Founder banner + team grid ---------- */
.founder-banner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}
.founder-banner img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  border: 3px solid var(--mint);
}
.founder-banner h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 12px 0;
  color: #fff;
}
.founder-banner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 12px;
}
.founder-banner .founder-sig {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--mint);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 12px;
  margin-top: 6px;
}
.team4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.team4-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.team4-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  display: block;
  background: var(--bg-ice);
}
.team4-body { padding: 16px 18px 20px; }
.team4-role {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.team4-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--navy);
  margin: 6px 0 8px;
}
.team4-card p {
  font-size: 0.85rem;
  color: var(--body-text);
  line-height: 1.55;
}

/* ---------- Trust badge row in leadership ---------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}
.trust-chip {
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Consultation extras ---------- */
.handy-box {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.handy-box h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--muted-text);
  line-height: 1.45;
  margin: 4px 0 16px;
}
.consent-row input { margin-top: 3px; flex-shrink: 0; }

/* ---------- Footer extras ---------- */
.footer-cred-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.footer-cred-row img { height: 34px; width: auto; }
.footer-cred-row span { font-size: 0.8rem; color: var(--muted-text); font-weight: 600; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* ---------- Mobile navigation ---------- */
.nav-toggle {
  display: none;
  background: var(--bg-ice);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .header-inner { flex-wrap: wrap; }
  .header-ctas .btn-header-call { display: none; }
  nav[aria-label="Primary Navigation"] { order: 10; width: 100%; }
  body.nav-open .primary-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 16px;
    max-height: 72vh;
    overflow-y: auto;
  }
  body.nav-open .nav-trigger { width: 100%; justify-content: space-between; text-align: left; }
  body.nav-open .mega-panel {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 8px 0 12px;
  }
  body.nav-open .nav-item.active .mega-panel { display: block; }
  .mega-grid { grid-template-columns: 1fr; gap: 14px; }
  .steps5-grid { grid-template-columns: repeat(2, 1fr); }
  .team4-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-banner { grid-template-columns: 1fr; }
  .founder-banner img { max-width: 240px; }
  .compare-quotes { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .utility-bar { display: none; }
  .steps5-grid, .team4-grid { grid-template-columns: 1fr; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: block; width: 100% !important; }
  .compare-table tr { border-top: 2px solid var(--line-strong); }
  .compare-table td.mill::before { content: "Call-center firms: "; font-weight: 700; }
  .compare-table td.fytp::before { content: "Fix Your Tax Problem: "; font-weight: 700; color: var(--teal); }
  .region-tabs-bar { flex-wrap: wrap; }
  .hero-v2 h1 { font-size: 2.2rem; }
  .brand-logo-only img { height: 40px; width: auto; }
  .header-ctas .btn-header-consult { padding: 9px 12px; font-size: 0.85rem; }
}

/* Team card spanning two columns with a 3-photo strip */
.team4-card.team-span { grid-column: span 2; }
.team-photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.team-photo-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; }
@media (max-width: 680px) { .team4-card.team-span { grid-column: auto; } }

/* Mobile menu polish */
@media (max-width: 1080px) {
  .header-inner { justify-content: space-between; }
  body.nav-open nav[aria-label="Primary Navigation"] { background: #fff; border-top: 1px solid var(--line); }
  body.nav-open .primary-nav { background: #fff; }
}
@media (max-width: 680px) {
  .header-ctas .btn-header-consult { display: none; }
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
}
