/* ==========================================================================
   Flooxio – Service page (templates/service.php)
   ========================================================================== */

/* Hero: text on the left (same width as the problem column), big symbol on the right */
.hero.svc-hero { min-height: 0; padding-bottom: 0; }
.svc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 70px;
}
.svc-hero-mark { align-self: start; }
.svc-hero-mark img { display: block; width: 100%; max-width: 640px; height: auto; margin-left: auto; }
.svc-back { display: inline-block; padding-bottom: 2px; border-bottom: 1px solid currentColor; text-decoration: none; }
.svc-measure { max-width: 760px; }

/* Problem */
.svc-problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.svc-problem .space-p p + p { margin-top: 15px; }

/* Deliverables */
.svc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.svc-card { padding: 50px; border-radius: 20px; }
.svc-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.svc-card--cyan { background: var(--cyan); color: var(--black); }
.svc-card--black { background: var(--black); color: var(--white); }
.svc-card--black h3 { color: var(--cyan); }

/* Process */
.svc-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 60px; }
.svc-step { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 30px; align-items: start; }
.svc-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: -8px 5px 0 var(--black);
  color: var(--blue);
  font-size: 52px;
  line-height: 1;
}

/* Examples */
.svc-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.svc-example { display: block; text-decoration: none; }
.svc-example-media { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 20px; background: var(--blue); }
.svc-example-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-example--placeholder .svc-example-media { background: var(--blue) url(../img/flooxio-symbol-white.svg) center / 32% no-repeat; opacity: .55; }
.svc-overline { text-transform: uppercase; letter-spacing: 2px; }

/* FAQ + related services */
.svc-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.svc-faq .faq-question,
.svc-faq .faq-question p,
.svc-faq .faq-question span { color: var(--white); }
.svc-faq .faq-con { border-color: rgba(255, 255, 255, .25); }
.svc-faq .faq-arrow img { filter: invert(1); }
.svc-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 30px; margin: 25px 0 0; padding: 0; list-style: none; }
.svc-related li { padding-bottom: 10px; border-bottom: 2px solid var(--cyan); }
.svc-related a { text-decoration: none; }

@media (hover: hover) and (pointer: fine) {
  a.svc-example:hover .svc-example-media img { transform: scale(1.04); }
  .svc-related a:hover { color: var(--cyan); }
}

/* Responsive */
@media (max-width: 1024px) {
  .svc-hero-grid { grid-template-columns: 1fr; padding-top: 120px; padding-bottom: 50px; }
  .svc-hero-mark { display: none; }
  .svc-problem,
  .svc-faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .svc-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .svc-hero-grid { padding-top: 110px; padding-bottom: 40px; }
  .svc-cards,
  .svc-steps,
  .svc-examples,
  .svc-related { grid-template-columns: 1fr; }
  .svc-card { padding: 30px; }
  .svc-step { grid-template-columns: 64px minmax(0, 1fr); gap: 20px; }
  .svc-step-num { width: 64px; height: 64px; font-size: 34px; box-shadow: -5px 4px 0 var(--black); }
  .svc-faq-grid { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-example-media img { transition: none; }
}

/* ==========================================================================
   .svc-hero.svc--x  = expertise sub-pages: no symbol, bigger hero text, full-width intro
   .black-bg.svc--x  = all service pages: CTA (two lines) before the related services,
                       related-services title styled like the FAQ title
   ========================================================================== */
.svc-hero.svc--x .svc-hero-grid { grid-template-columns: 1fr; padding-bottom: 90px; }
.svc-hero.svc--x .svc-hero-mark { display: none; }
.svc-hero.svc--x h1 { font-size: clamp(34px, 4.4vw, 66px); line-height: 1.12; }
.svc-hero.svc--x .svc-measure { max-width: none; font-size: clamp(18px, 1.8vw, 28px); line-height: 1.5; }

.black-bg.svc--x .container { display: flex; flex-direction: column; }
.black-bg.svc--x .svc-faq-grid { order: 1; }
.black-bg.svc--x .strategy-footer { order: 2; align-items: center; }
.black-bg.svc--x .container > div:has(.svc-related) { order: 3; }
.black-bg.svc--x .fx-fit { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.black-bg.svc--x .fx-fit-line { display: block; white-space: nowrap; }
.black-bg.svc--x .strategy-footer > .main-btn { flex: 0 0 auto; }

@media (max-width: 767px) {
  .svc-hero.svc--x .svc-hero-grid { padding-bottom: 50px; }
  .black-bg.svc--x .strategy-footer { align-items: flex-start; }
  .black-bg.svc--x .fx-fit-line { white-space: normal; }
  .black-bg.svc--x .fx-fit-line + .fx-fit-line { margin-top: 6px; }
}

.black-bg.svc--x .svc-related-title { white-space: nowrap; }
