/* Hide theme header and footer */
header.wp-block-template-part { display: none !important; }
footer.wp-block-template-part { display: none !important; }
/* Force full-width layout */
.wp-site-blocks { padding: 0 !important; max-width: none !important; }
.wp-site-blocks > .wp-block-group { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.wp-site-blocks .wp-block-post-content { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.wp-site-blocks .entry-content { max-width: none !important; padding: 0 !important; }
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: none !important; }
.wp-block-group.is-layout-constrained { max-width: none !important; }
.has-global-padding { padding-left: 0 !important; padding-right: 0 !important; }
.wp-block-post-content.is-layout-constrained > * { max-width: none !important; }
body .is-layout-constrained > * { max-width: none !important; }
.wp-site-blocks > main { max-width: none !important; }
/* Ensure nav stretches full width */
#mainNav { width: 100vw !important; left: 0 !important; }
.nav-main { width: 100% !important; }
/* Fix nav spacing for smaller screens */
.nav-links { gap: 1.2rem !important; }
.nav-links a { letter-spacing: 1.8px !important; font-size: .68rem !important; }
.nav-cta { font-size: .62rem !important; letter-spacing: 2.5px !important; }

/* === Layout fixes added by Claude === */

/* 1. Hero stats row horizontal */
.hero-bottom {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2rem;
  width: 100%;
}
.hero-bottom .hero-stat {
  flex: 1 1 0;
  min-width: 140px;
  text-align: center;
}
.hero-bottom .stat-div {
  width: 1px;
  align-self: stretch;
  min-height: 48px;
  background: rgba(255,255,255,0.2);
}

/* 2. Bottom trust bar (40+ / 10K / CPA / IRS) horizontal and centered */
.cred-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.cred-bar .cred-item {
  flex: 1 1 0;
  min-width: 160px;
  text-align: center;
}

/* CTA banner trust signals row also horizontal & centered */
.cta-trust-signals {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  margin: 1.5rem auto;
}
.cta-trust-signals .cta-trust-badge {
  text-align: center;
  flex: 0 1 auto;
}

/* 3. "Request a Consultation" CTA centered */
.cta-banner { text-align: center !important; }
.cta-banner > p { text-align: center !important; }
.cta-banner-btn {
  display: inline-block;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 4 & 5. Footer side margins + every column in one responsive row.
   .footer-top wraps the brand + 3 cols; Resources (.footer-col) and
   Newsletter (a class-less div) are direct siblings of .footer-top.
   We use display:contents on .footer-top so all six columns share
   the same CSS grid on the parent footer. */
.entry-content > footer {
  padding-left: clamp(1.25rem, 4vw, 4rem) !important;
  padding-right: clamp(1.25rem, 4vw, 4rem) !important;
  padding-top: 3rem !important;
  padding-bottom: 2rem !important;
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}
.entry-content > footer > .footer-top {
  display: contents !important;
}
.entry-content > footer > .footer-top > .footer-brand {
  grid-column: 1;
}
.entry-content > footer > .footer-top > p:empty {
  display: none !important;
}
.entry-content > footer > p:empty {
  display: none !important;
}
.entry-content > footer > .footer-bottom {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
}

/* Responsive collapse */
@media (max-width: 1200px) {
  .entry-content > footer {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
  .entry-content > footer > .footer-top > .footer-brand {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 760px) {
  .entry-content > footer {
    grid-template-columns: 1fr 1fr !important;
  }
  .entry-content > footer > .footer-top > .footer-brand {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 480px) {
  .entry-content > footer {
    grid-template-columns: 1fr !important;
  }
}

/* 6. Footer always sits at the bottom of the page (sticky-footer pattern).
   We make the page a column flex container so the main content grows
   and the footer is naturally pushed to the bottom even on short pages. */
html, body { min-height: 100%; }
body.wp-singular { min-height: 100vh; }
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.wp-site-blocks > main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.wp-site-blocks > main > .entry-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.entry-content > footer {
  margin-top: auto;
  background: #0b0b0b;
}


/* Fee Estimator CTA: hide duplicate empty button (second a wrapped in p) */
#services .fee-estimator-cta > p { display: none !important; }
