/*
 * FDI pages (page-fdi.php landing, page-fdi-service.php child pages): additions to home.css, which they share with the front page.
 * hx-fdi-* only; the rest of the markup reuses the hx-* blocks.
 */
.hx-fdi-quote { margin-top: clamp(40px, 5.5vw, 72px); scroll-margin-top: 70px; }   /* CTA sits in the "other services" section (.hx-testi) */
.hx-fdi-quote .itx-q-cta { margin: 0 auto; }
/* service pages: the last two sections follow the standard white / grey alternation (AGENTS.md rule 10) */
.hx-section.hx-fdi-white { background: #fff; }
.hx-section.hx-fdi-grey, .hx-section.hx-testi.hx-fdi-grey { background: #F5F8FC; }

/* ---------- service page hero: no trust strip below, so no overlap padding ---------- */
/* hero = standard article banner (AGENTS.md rule 10): Media 122, parallax, 420px / 320px, same gradient overlay as [ux_banner] pages */
.hx-fdi-hero { display: grid; align-items: center; min-height: 420px; padding: 32px 0; }
.hx-fdi-hero .hx-fdi-crumb { margin-bottom: 12px; }
.hx-fdi-hero .hx-kicker { margin-bottom: 12px; }
.hx-fdi-hero h1 { font-size: clamp(30px, 3.3vw, 46px); }
.hx-fdi-hero .hx-lead { margin-top: 14px; font-size: clamp(15px, 1.2vw, 17px); }
.hx-fdi-hero .hx-cta { margin-top: 22px; }
.hx-fdi-hero .hx-hero-bg { background-size: cover; background-position: center; background-attachment: fixed; }
.hx-fdi-hero .hx-hero-bg::after { background: linear-gradient(90deg, rgba(1, 58, 117, .94) 0%, rgba(1, 58, 117, .82) 42%, rgba(1, 58, 117, .2) 100%); }
@media (max-width: 849px) { .hx-fdi-hero { min-height: 320px; padding: 40px 0; } .hx-fdi-hero .hx-hero-bg { background-attachment: scroll; } }
.hx-fdi-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 14px; line-height: 1.5; color: #C0D5EE; }
.hx-fdi-crumb a { color: #fff; transition: color .25s; }
.hx-fdi-crumb a:hover { color: var(--hx-sky); }
.hx-fdi-crumb > * + *::before { content: "›"; margin-right: 8px; opacity: .6; }

/* ---------- what we do (hx-why-item cards in a grid) ---------- */
.hx-fdi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* ---------- how it works ---------- */
.hx-fdi-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.hx-fdi-steps li { padding: 28px 26px; border-radius: var(--hx-r); background: #fff; border: 1px solid var(--hx-line); box-shadow: 0 2px 6px rgba(2, 62, 123, .04), 0 14px 32px rgba(2, 62, 123, .07); }
.hx-fdi-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: #E9F2FC; color: #024F9E; }   /* = .itx-ab-ico on the about page */
.hx-fdi-ico svg { width: 26px; height: 26px; }
.hx-fdi-steps h3 { margin-bottom: 8px; font-size: 19px; font-weight: 700; color: var(--hx-ink); }
.hx-fdi-steps p { font-size: 15px; line-height: 1.65; }

/* ---------- FAQ ---------- */
.hx-fdi-faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin-inline: auto; }
.hx-fdi-faq details { border-radius: 18px; background: #fff; border: 1px solid var(--hx-line); }
.hx-fdi-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-size: 16.5px; font-weight: 600; color: var(--hx-ink); cursor: pointer; list-style: none; }
.hx-fdi-faq summary::-webkit-details-marker { display: none; }
.hx-fdi-faq summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; color: var(--hx-blue); transition: transform .3s var(--hx-ease); }
.hx-fdi-faq details[open] summary::after { transform: rotate(45deg); }
.hx-fdi-faq p { padding: 0 24px 22px; font-size: 15.5px; line-height: 1.7; }

/* ---------- responsive ---------- */
@media (min-width: 1101px) { .hx-fdi-related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .hx-fdi-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .hx-fdi-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .hx-fdi-steps { grid-template-columns: 1fr; }
  .hx-fdi-faq summary { padding: 18px 20px; }
  .hx-fdi-faq p { padding: 0 20px 20px; }
}
