/* Home on the quatt.io structure (Dec 2). Loaded after rf.css. */
.center-t { text-align: center; }
.rf-home .q-sols .h2, .rf-home .q-prods .h2, .rf-home .q-svcs .h2, .rf-home .q-jobs .h2, .rf-home .q-areas .h2 { margin-bottom: 28px; }

/* trust strip under the hero */
.q-trust { background: var(--rf-bg); padding: 22px 0 6px; position: relative; z-index: 3; }
.q-trust .wrap { display: flex; justify-content: center; gap: clamp(18px, 4vw, 56px); flex-wrap: wrap; }
.q-trust span { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--rf-ink); }
.q-trust svg { width: 20px; height: 20px; fill: none; stroke: var(--rf-red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* solutions: three tall photo cards with text on the image */
.q-sol-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.q-sol { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; color: #fff; isolation: isolate; }
.q-sol img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.q-sol::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 24, 0) 40%, rgba(8, 14, 24, .82) 100%); }
.q-sol:hover img { transform: scale(1.06); }
.q-sol-tx { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 24px 22px; }
.q-sol h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.q-sol p { font-size: 14.5px; line-height: 1.5; opacity: .9; margin-top: 6px; max-width: 26rem; }
.q-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.q-more .ms { font-size: 18px; transition: transform .3s var(--ease); }
.q-sol:hover .q-more .ms { transform: translateX(4px); }

/* products: big horizontal cards, image alternates sides */
.q-prod-list { display: grid; gap: 22px; }
.q-prod { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 26px; overflow: hidden; border: 1px solid var(--rf-line); box-shadow: 0 30px 60px -44px rgba(15, 30, 60, .45); min-height: 380px; }
.q-prod.flip .q-prod-img { order: 2; }
.q-prod-img { position: relative; overflow: hidden; background: var(--rf-bg); }
.q-prod-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.q-prod:hover .q-prod-img img { transform: scale(1.04); }
.q-prod-tx { padding: clamp(26px, 3.4vw, 50px); display: flex; flex-direction: column; justify-content: center; }
.q-kick { font-size: 14px; font-weight: 600; color: var(--rf-red-t); }
.q-prod h3 { font-size: clamp(26px, 2.5vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 10px; color: var(--rf-ink); }
.q-prod p { color: var(--rf-mute); font-size: 16px; line-height: 1.6; }
.q-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.q-ghost { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 20px; border-radius: 99px; border: 1.5px solid var(--rf-line); font-size: 14.5px; font-weight: 600; color: var(--rf-ink); background: #fff; transition: border-color .25s, transform .25s var(--ease); }
.q-ghost:hover { border-color: var(--rf-ink); transform: translateY(-1px); }
.q-ghost .ms { font-size: 18px; }
.q-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rf-line); }
.q-facts small { display: block; font-size: 12.5px; color: var(--rf-mute); }
.q-facts b { display: block; font-size: 15px; font-weight: 700; color: var(--rf-ink); margin-top: 2px; }

/* services: four small cards */
.q-svc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.q-svc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 18px 22px; background: #fff; border-radius: 20px; border: 1px solid var(--rf-line); transition: transform .35s var(--ease), box-shadow .35s; }
.q-svc:hover { transform: translateY(-5px); box-shadow: var(--rf-sh); }
.q-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--rf-sky-l); color: var(--rf-sky); margin-bottom: 6px; }
.q-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.q-svc b { font-size: 16px; color: var(--rf-ink); }
.q-svc small { font-size: 13px; color: var(--rf-mute); }
.q-pill { margin-top: 10px; padding: 7px 16px; border-radius: 99px; border: 1.5px solid var(--rf-line); font-size: 13px; font-weight: 600; color: var(--rf-ink); transition: background .25s, color .25s, border-color .25s; }
.q-svc:hover .q-pill { background: var(--rf-red); border-color: var(--rf-red); color: #fff; }

/* how it works: accordion left, picture right */
.q-how .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.q-how .lead { margin: 12px 0 22px; }
.q-accs { display: grid; gap: 10px; }
.q-acc { background: #fff; border: 1px solid var(--rf-line); border-radius: 16px; padding: 0 18px; transition: box-shadow .3s; }
.q-acc[open] { box-shadow: 0 16px 36px -26px rgba(15, 30, 60, .4); }
.q-acc summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 0; font-weight: 700; font-size: 16px; color: var(--rf-ink); cursor: pointer; }
.q-acc summary::-webkit-details-marker { display: none; }
.q-acc summary i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--rf-bg); border: 1px solid var(--rf-line); flex: none; }
.q-acc[open] summary i { background: var(--rf-red); color: #fff; border-color: var(--rf-red); }
.q-acc summary .ms { margin-left: auto; transition: transform .3s var(--ease); color: var(--rf-mute); }
.q-acc[open] summary .ms { transform: rotate(180deg); }
.q-acc p { padding: 0 0 16px 40px; color: var(--rf-mute); font-size: 14.5px; line-height: 1.6; }
.q-how-img { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 4.2; }
.q-how-img img { width: 100%; height: 100%; object-fit: cover; }

/* guides: news-style cards */
.q-row-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.q-news-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.q-news { display: block; }
.q-news-img { aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; }
.q-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.q-news:hover .q-news-img img { transform: scale(1.05); }
.q-meta { display: block; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--rf-mute); letter-spacing: .04em; text-transform: uppercase; }
.q-news h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin-top: 6px; color: var(--rf-ink); }

/* real jobs: two big photo cards */
.q-job-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.q-job { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 24px; overflow: hidden; color: #fff; isolation: isolate; }
.q-job img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.q-job::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 24, 0) 50%, rgba(8, 14, 24, .78)); }
.q-job:hover img { transform: scale(1.05); }
.q-job span { position: absolute; left: 22px; bottom: 20px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.q-job small { display: block; font-size: 13px; font-weight: 600; opacity: .85; letter-spacing: 0; margin-bottom: 4px; }
.q-note { text-align: center; color: var(--rf-mute); font-size: 14.5px; margin-top: 18px; }
.q-note a { color: var(--rf-red-t); font-weight: 600; }

/* parishes: scrolling strip in place of partner logos */
.q-areas { padding: 40px 0 50px; overflow: hidden; }
.q-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.q-track { display: flex; gap: 14px; width: max-content; animation: qMarq 40s linear infinite; }
.q-track a { padding: 12px 22px; border-radius: 99px; background: var(--rf-bg); border: 1px solid var(--rf-line); font-size: 15px; font-weight: 600; color: var(--rf-ink); white-space: nowrap; }
.q-track a:hover { background: var(--rf-ink); color: #fff; }
.q-marquee:hover .q-track { animation-play-state: paused; }
@keyframes qMarq { to { transform: translateX(-50%); } }

/* backgrounds alternate */
.rf-home .q-sols, .rf-home .q-svcs, .rf-home .q-guides { background: #fff; }
.rf-home .q-prods, .rf-home .q-how, .rf-home .q-jobs { background: var(--rf-bg); }

@media (max-width: 960px) {
  .q-prod, .q-how .wrap { grid-template-columns: 1fr; }
  .q-prod.flip .q-prod-img { order: 0; }
  .q-prod-img { aspect-ratio: 16 / 10; }
  .q-svc-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .q-trust { padding: 16px 0 0; } .q-trust .wrap { gap: 10px 18px; } .q-trust span { font-size: 13px; }
  .q-sol-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .q-sol { aspect-ratio: 3 / 4; border-radius: 18px; }
  .q-sol:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .q-sol-tx { padding: 14px; } .q-sol h3 { font-size: 18px; } .q-sol p { display: none; } .q-more { margin-top: 6px; font-size: 12.5px; }
  .q-prod { border-radius: 20px; min-height: 0; }
  .q-prod-tx { padding: 20px; } .q-prod h3 { font-size: 23px; } .q-prod p { font-size: 14.5px; }
  .q-facts { gap: 8px; margin-top: 18px; padding-top: 14px; } .q-facts b { font-size: 13.5px; }
  .q-btns { gap: 10px; margin-top: 16px; } .q-btns .pbtn { height: 44px; }
  .q-svc { padding: 18px 12px 16px; } .q-ic { width: 44px; height: 44px; }
  .q-news-row { grid-template-columns: 1fr 1fr; gap: 12px; } .q-news:nth-child(3) { display: none; }
  .q-news h3 { font-size: 15px; } .q-news-img { border-radius: 14px; }
  .q-job-row { grid-template-columns: 1fr 1fr; gap: 10px; } .q-job { aspect-ratio: 3 / 4; border-radius: 18px; } .q-job span { left: 12px; bottom: 12px; font-size: 16px; }
  .q-how-img { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) { .q-track { animation: none; } }
