/* ==========================================================
   Structure Fx - Service Terms & Payment Policy
   - Every rule is scoped under .sfx-tp (parent class), so nothing
     leaks into header.php, footer.php or other pages.
   - Units: px only (no rem, em, %, vw, vh, fr).
   - Colours: direct codes, no CSS variables.
   Site palette:
     Navy   #0f2a43
     Amber  #f5a623   (eyebrow #f0a202)
     Blue   #2465a8
     Ink    #111111
     Body   #3d4b5a / muted #52606f
     Light  #f4f7fa / line #e3eaf1
   ========================================================== */

/* ---------- base ---------- */
.sfx-tp {
  font-family: 'Poppins', sans-serif;
  color: #3d4b5a;
  font-size: 16px;
  line-height: 28px;
  overflow: hidden;
}

.sfx-tp *,
.sfx-tp *::before,
.sfx-tp *::after {
  box-sizing: border-box;
}

.sfx-tp .tp-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 30px;
}

.sfx-tp .tp-section {
  padding: 90px 0;
  position: relative;
}

.sfx-tp .tp-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 20px;
  color: #f0a202;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.sfx-tp .tp-title {
  font-size: 38px;
  line-height: 48px;
  font-weight: 700;
  color: #0f2a43;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
}

.sfx-tp .tp-lede {
  font-size: 17px;
  line-height: 30px;
  color: #52606f;
  margin: 0;
}

.sfx-tp .tp-head {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.sfx-tp .tp-head .tp-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: #f5a623;
  margin: 18px auto 0;
}

.sfx-tp a:focus-visible,
.sfx-tp summary:focus-visible {
  outline: 3px solid #f5a623;
  outline-offset: 3px;
}

/* ---------- buttons ---------- */
.sfx-tp .tp-btn {
  min-height: 54px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sfx-tp .tp-btn span {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.sfx-tp .tp-btn:hover span {
  transform: translateX(4px);
}

.sfx-tp .tp-btn-amber {
  background: #f5a623;
  color: #111111;
  border: 1px solid #f5a623;
}

.sfx-tp .tp-btn-amber:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #111111;
}

.sfx-tp .tp-btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.sfx-tp .tp-btn-outline:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #111111;
}

.sfx-tp .tp-btn-navy {
  background: #0f2a43;
  color: #ffffff;
  border: 1px solid #0f2a43;
}

.sfx-tp .tp-btn-navy:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #111111;
}

.sfx-tp .tp-btn-ghost {
  background: transparent;
  color: #111111;
  border: 1px solid #111111;
}

.sfx-tp .tp-btn-ghost:hover {
  background: #111111;
  color: #ffffff;
}

/* =====================================================
   HERO
===================================================== */
.sfx-tp .tp-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: #0f2a43 url("https://www.structurefx.com/media/banner_image01.webp");
  color: #ffffff;
  background-size:cover;
}

.sfx-tp .tp-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0, rgba(15, 42, 67, 0.72) 640px, rgba(0, 0, 0, 0.42) 1400px);
}

.sfx-tp .tp-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 420px;
  border: 60px solid rgba(245, 166, 35, 0.10);
}

.sfx-tp .tp-hero .tp-wrap {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  padding-top: 80px;
  padding-bottom: 90px;
}

.sfx-tp .tp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 9px 18px;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.10);
  width: fit-content;
}

.sfx-tp .tp-crumbs li {
  color: rgba(255, 255, 255, 0.85);
}

.sfx-tp .tp-crumbs a {
  color: #ffffff;
  text-decoration: none;
}

.sfx-tp .tp-crumbs a:hover {
  color: #f5a623;
}

.sfx-tp .tp-crumbs li + li::before {
  content: "/";
  margin-right: 10px;
  color: #f5a623;
}

.sfx-tp .tp-hero h1 {
  font-size: 58px;
  line-height: 66px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin: 0 0 22px;
  max-width: 860px;
}

.sfx-tp .tp-hero h1 .tp-accent {
  color: #f5a623;
}

.sfx-tp .tp-hero-copy {
  max-width: 660px;
  font-size: 18px;
  line-height: 31px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 34px;
}

.sfx-tp .tp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sfx-tp .tp-hero-meta {
  margin: 28px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.sfx-tp .tp-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 50px;
  z-index: 3;
  display: block;
}

/* =====================================================
   AT A GLANCE
===================================================== */
.sfx-tp .tp-glance {
  background: #ffffff;
}

.sfx-tp .tp-glance-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.sfx-tp .tp-glance-card {
  position: relative;
  flex: 1 1 250px;
  padding: 34px 28px 30px;
  background: #ffffff;
  border: 1px solid #e3eaf1;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.sfx-tp .tp-glance-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: #f5a623;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.sfx-tp .tp-glance-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 22px 44px rgba(15, 42, 67, 0.14);
}

.sfx-tp .tp-glance-card:hover::before {
  transform: scaleX(1);
}

.sfx-tp .tp-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #0f2a43;
  color: #f5a623;
  margin-bottom: 22px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sfx-tp .tp-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.sfx-tp .tp-glance-card:hover .tp-icon {
  background: #f5a623;
  color: #0f2a43;
  transform: rotate(-6deg);
}

.sfx-tp .tp-glance-card h3 {
  font-size: 21px;
  line-height: 30px;
  font-weight: 700;
  color: #0f2a43;
  margin: 0 0 10px;
}

.sfx-tp .tp-glance-card p {
  font-size: 15px;
  line-height: 27px;
  color: #52606f;
  margin: 0;
}

/* =====================================================
   TERMS (TOC + content)
===================================================== */
.sfx-tp .tp-terms {
  background: #f4f7fa;
}

.sfx-tp .tp-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
}

.sfx-tp .tp-toc {
  flex: 0 0 280px;
  position: sticky;
  top: 120px;
  padding: 26px 24px;
  background: #ffffff;
  border: 1px solid #e3eaf1;
  border-top: 4px solid #f5a623;
  border-radius: 8px;
}

.sfx-tp .tp-toc-title {
  font-size: 17px;
  line-height: 26px;
  font-weight: 700;
  color: #0f2a43;
  margin: 0 0 12px;
}

.sfx-tp .tp-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sfx-tp .tp-toc-list li {
  border-top: 1px solid #e3eaf1;
}

.sfx-tp .tp-toc-list a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  color: #3d4b5a;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.sfx-tp .tp-toc-list a:hover {
  color: #2465a8;
  padding-left: 6px;
}

.sfx-tp .tp-body {
  flex: 1 1 600px;
  min-width: 0;
}

.sfx-tp .tp-block {
  padding: 36px 40px;
  margin-bottom: 22px;
  background: #ffffff;
  border: 1px solid #e3eaf1;
  border-left: 4px solid #2465a8;
  border-radius: 8px;
  scroll-margin-top: 120px;
}

.sfx-tp .tp-block h2 {
  font-size: 26px;
  line-height: 36px;
  font-weight: 700;
  color: #0f2a43;
  letter-spacing: -0.3px;
  margin: 0 0 16px;
}

.sfx-tp .tp-block p {
  max-width: 760px;
  font-size: 16px;
  line-height: 29px;
  color: #3d4b5a;
  margin: 0 0 16px;
}

.sfx-tp .tp-block p:last-child {
  margin-bottom: 0;
}

.sfx-tp .tp-list {
  list-style: none;
  max-width: 760px;
  margin: 0 0 16px;
  padding: 0;
}

.sfx-tp .tp-list:last-child {
  margin-bottom: 0;
}

.sfx-tp .tp-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 28px;
  color: #3d4b5a;
}

.sfx-tp .tp-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 9px;
  background: #f5a623;
}

.sfx-tp .tp-list strong {
  color: #0f2a43;
  font-weight: 600;
}

/* ---------- payment stages (a real sequence) ---------- */
.sfx-tp .tp-stages {
  list-style: none;
  margin: 8px 0 22px;
  padding: 0;
  background: #0f2a43;
  border-radius: 8px;
  overflow: hidden;
}

.sfx-tp .tp-stage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding: 24px 30px;
}

.sfx-tp .tp-stage + .tp-stage {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.sfx-tp .tp-stage-percent {
  flex: 0 0 96px;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  color: #f5a623;
}

.sfx-tp .tp-stage-text {
  flex: 1 1 280px;
}

.sfx-tp .tp-stage-text h3 {
  font-size: 19px;
  line-height: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.sfx-tp .tp-block .tp-stage-text p {
  font-size: 15px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
}

/* =====================================================
   FAQ
===================================================== */
.sfx-tp .tp-faq {
  background-color: #0f2a43;
  background-image: linear-gradient(rgb(0, 0, 0), rgba(0, 0, 0, 0.76)), url("https://www.structurefx.com/structure-fx-waterproofing/about-us.png");
  background-size: cover;
  background-position: center center;
}

.sfx-tp .tp-faq .tp-title {
  color: #ffffff;
}

.sfx-tp .tp-faq-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
}

.sfx-tp .tp-faq-list {
  flex: 1 1 520px;
  min-width: 0;
}

.sfx-tp .tp-faq-item {
  margin-bottom: 14px;
  border-radius: 6px;
  background: #ffffff;
  border-left: 4px solid #f5a623;
  overflow: hidden;
}

.sfx-tp .tp-faq-item summary {
  list-style: none;
  position: relative;
  cursor: pointer;
  padding: 20px 64px 20px 24px;
}

.sfx-tp .tp-faq-item summary::-webkit-details-marker {
  display: none;
}

.sfx-tp .tp-faq-item summary h3 {
  margin: 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
  color: #0f2a43;
}

.sfx-tp .tp-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 18px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  background: #0f2a43;
  color: #f5a623;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  transition: transform 0.3s ease, background 0.3s ease;
}

.sfx-tp .tp-faq-item[open] summary::after {
  content: "\2212";
  background: #f5a623;
  color: #111111;
  transform: rotate(180deg);
}

.sfx-tp .tp-faq-answer {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 27px;
  color: #52606f;
}

.sfx-tp .tp-faq-cta {
  flex: 0 0 360px;
  position: sticky;
  top: 120px;
  padding: 40px 32px;
  text-align: center;
  border-radius: 8px;
  background: #2465a8;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.sfx-tp .tp-faq-cta-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 64px;
  background: #f5a623;
  color: #111111;
}

.sfx-tp .tp-faq-cta-icon svg {
  width: 28px;
  height: 28px;
}

.sfx-tp .tp-faq-cta h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
}

.sfx-tp .tp-faq-cta p {
  font-size: 15px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 24px;
}

.sfx-tp .tp-faq-phone {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 700;
}

.sfx-tp .tp-faq-phone a {
  color: #ffffff;
  text-decoration: none;
}

.sfx-tp .tp-faq-phone a:hover {
  color: #f5a623;
}

.sfx-tp .tp-faq-address {
  margin-top: 14px;
  font-size: 14px;
  line-height: 23px;
  color: rgba(255, 255, 255, 0.85);
}

/* =====================================================
   FINAL CTA BAND
===================================================== */
.sfx-tp .tp-band {
  padding: 70px 0;
  background: #f5a623;
}

.sfx-tp .tp-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.sfx-tp .tp-band h2 {
  font-size: 32px;
  line-height: 42px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 8px;
}

.sfx-tp .tp-band p {
  margin: 0;
  font-size: 16px;
  line-height: 27px;
  color: #1f2933;
}

.sfx-tp .tp-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =====================================================
   RESPONSIVE (px breakpoints)
===================================================== */
@media (max-width: 1199px) {
  .sfx-tp .tp-hero h1 {
    font-size: 50px;
    line-height: 58px;
  }
}

@media (max-width: 991px) {
  .sfx-tp .tp-section {
    padding: 70px 0;
  }

  .sfx-tp .tp-title {
    font-size: 32px;
    line-height: 42px;
  }

  .sfx-tp .tp-toc {
    position: static;
    flex: 1 1 100px;
  }

  .sfx-tp .tp-toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
  }

  .sfx-tp .tp-toc-list li {
    flex: 1 1 240px;
  }

  .sfx-tp .tp-faq-cta {
    position: static;
    flex: 1 1 100px;
  }

  .sfx-tp .tp-band-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .sfx-tp .tp-band-actions {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .sfx-tp .tp-wrap {
    padding: 0 20px;
  }

  .sfx-tp .tp-hero {
    min-height: 440px;
  }

  .sfx-tp .tp-hero .tp-wrap {
    padding-top: 64px;
    padding-bottom: 76px;
  }

  .sfx-tp .tp-hero h1 {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.8px;
  }

  .sfx-tp .tp-hero-copy {
    font-size: 15px;
    line-height: 26px;
  }

  .sfx-tp .tp-block {
    padding: 28px 22px;
  }

  .sfx-tp .tp-block h2 {
    font-size: 22px;
    line-height: 31px;
  }

  .sfx-tp .tp-stage {
    padding: 20px 20px;
  }

  .sfx-tp .tp-stage-percent {
    font-size: 34px;
  }

  .sfx-tp .tp-faq-item summary h3 {
    font-size: 16px;
    line-height: 24px;
  }

  .sfx-tp .tp-band h2 {
    font-size: 26px;
    line-height: 36px;
  }
}

@media (max-width: 480px) {
  .sfx-tp .tp-hero h1 {
    font-size: 30px;
    line-height: 38px;
  }

  .sfx-tp .tp-title {
    font-size: 27px;
    line-height: 37px;
  }

  .sfx-tp .tp-btn {
    display: flex;
    flex: 1 1 100px;
  }

  .sfx-tp .tp-hero-actions,
  .sfx-tp .tp-band-actions {
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .sfx-tp *,
  .sfx-tp *::before,
  .sfx-tp *::after {
    transition: none;
  }
}