/* ============================================================
   QUANTRO AI — Service page styles (extends styles.css)
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-top: 104px; }
.breadcrumb .wrap { padding-block: 18px 0; }
.breadcrumb ol { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; list-style: none; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--text-faint); }
.breadcrumb li { list-style: none; }
.breadcrumb a { color: var(--text-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold-deep); }
[data-theme="dark"] .breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--gold-deep); }
[data-theme="dark"] .breadcrumb .current { color: var(--gold); }

/* ---------- Service hero ---------- */
.svc-hero { position: relative; overflow: hidden; background: var(--hero-bg); padding-block: clamp(40px,5vw,64px) clamp(64px,8vw,104px); }
.svc-hero .hero-halftone { -webkit-mask-image: radial-gradient(110% 90% at 82% 30%, #000 0%, transparent 60%); mask-image: radial-gradient(110% 90% at 82% 30%, #000 0%, transparent 60%); }
.svc-hero .wrap { position: relative; z-index: 2; }
.svc-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px,5vw,72px); align-items: center; }
.svc-hero h1 { font-size: clamp(2.6rem,5.4vw,4.4rem); letter-spacing: -.035em; margin-top: 22px; }
html[lang="ar"] .svc-hero h1 { font-size: clamp(2.2rem,5vw,4rem); }
.svc-hero .tagline { margin-top: 20px; font-size: clamp(1.2rem,1.7vw,1.6rem); font-family: var(--font-display); font-weight: 500; color: var(--gold-deep); letter-spacing: -.02em; line-height: 1.3; }
[data-theme="dark"] .svc-hero .tagline { color: var(--gold); }
html[lang="ar"] .svc-hero .tagline { font-family: var(--font-ar); }
.svc-hero .intro { margin-top: 22px; font-size: clamp(1.08rem,1.4vw,1.28rem); color: var(--text-muted); max-width: 52ch; }
.svc-hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* hero visual */
.svc-hero-visual { position: relative; }
.svc-hero-panel { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-card); aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; }
.svc-hero-panel .mark-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px); background-size: 40px 40px; }
.svc-hero-panel .big-ico { position: relative; width: 38%; height: 38%; color: var(--gold-deep); filter: drop-shadow(0 16px 40px rgba(211,174,108,.4)); }
[data-theme="dark"] .svc-hero-panel .big-ico { color: var(--gold); }
.svc-hero-panel .big-ico svg { width: 100%; height: 100%; }
.svc-hero-panel .corner-spark { position: absolute; width: 26px; height: 26px; background: var(--gold); clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); top: 26px; inset-inline-end: 30px; opacity: .85; }

/* ---------- Section title helper ---------- */
.svc-sec { padding-block: clamp(60px,8vw,108px); }
.svc-sec-head { max-width: 640px; margin-bottom: clamp(36px,4.5vw,56px); }
.svc-sec-head h2 { font-size: clamp(1.9rem,3.6vw,2.9rem); margin-top: 16px; }
.svc-sec-head p { color: var(--text-muted); margin-top: 16px; font-size: 1.1rem; max-width: 54ch; }

/* ---------- Pain points ---------- */
.pains-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.pain {
  padding: 26px 24px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px;
}
.pain-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(160deg, rgba(211,174,108,.18), rgba(211,174,108,.05)); border: 1px solid rgba(211,174,108,.3); color: var(--gold-deep); }
[data-theme="dark"] .pain-ico { color: var(--gold); }
.pain-ico svg { width: 21px; height: 21px; }
.pain p { font-size: 1.05rem; color: var(--text); line-height: 1.45; font-weight: 500; }

/* ---------- Deliverables ---------- */
.deliver { background: var(--bg-alt); border-block: 1px solid var(--border); }
.deliver-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.deliver-item { padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .4s var(--ease-out), border-color .35s, box-shadow .4s var(--ease-out); }
.deliver-item:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.deliver-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(211,174,108,.18), rgba(211,174,108,.06)); border: 1px solid rgba(211,174,108,.32); color: var(--gold-deep); }
[data-theme="dark"] .deliver-ico { color: var(--gold); }
.deliver-ico svg { width: 22px; height: 22px; }
.deliver-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.deliver-item p { color: var(--text-muted); font-size: .98rem; }

/* ---------- How it works (reuse .steps from styles.css) ---------- */

/* ---------- Use cases ---------- */
.usecases { display: flex; flex-wrap: wrap; gap: 14px; }
.usecase {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 1.08rem; font-weight: 500;
  transition: border-color .3s, transform .3s var(--ease-out);
}
.usecase:hover { border-color: var(--gold); transform: translateY(-2px); }
.usecase .sparkle { width: 13px; height: 13px; flex: none; }

/* ---------- Proof ---------- */
.proof { background: var(--bg-alt); border-block: 1px solid var(--border); }
.proof-card { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px,4vw,64px); align-items: center; }
.proof-metric { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem,8vw,6rem); line-height: .9; letter-spacing: -.05em; color: var(--gold-deep); white-space: nowrap; }
[data-theme="dark"] .proof-metric { color: var(--gold); }
.proof-body .eyebrow { margin-bottom: 16px; }
.proof-body p { font-size: clamp(1.2rem,2vw,1.6rem); font-family: var(--font-display); font-weight: 400; line-height: 1.4; letter-spacing: -.01em; color: var(--text); max-width: 30ch; }
html[lang="ar"] .proof-body p { font-family: var(--font-ar); }
.proof-body .more { margin-top: 22px; display: inline-flex; align-items: center; gap: .5em; color: var(--gold-deep); font-weight: 600; }
[data-theme="dark"] .proof-body .more { color: var(--gold); }
.proof-body .more .arrow { transition: transform .35s var(--ease-out); }
.proof-body .more:hover .arrow { transform: translateX(4px); }
html[lang="ar"] .proof-body .more .arrow { transform: scaleX(-1); }

/* ---------- Tech chips ---------- */
.tech-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-chip { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border); font-family: var(--font-mono); font-size: .92rem; font-weight: 500; color: var(--text-muted);
  transition: border-color .3s, color .3s, transform .3s var(--ease-out); }
.tech-chip:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
[data-theme="dark"] .tech-chip:hover { color: var(--gold); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 4px; text-align: start; cursor: pointer; }
.faq-q span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem,1.6vw,1.35rem); letter-spacing: -.02em; color: var(--text); }
html[lang="ar"] .faq-q span { font-family: var(--font-ar); }
.faq-toggle { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--gold-deep); position: relative; transition: border-color .3s, background .3s; }
[data-theme="dark"] .faq-toggle { color: var(--gold); }
.faq-toggle::before, .faq-toggle::after { content:""; position: absolute; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.faq-toggle::before { width: 14px; height: 2px; }
.faq-toggle::after { width: 2px; height: 14px; }
.faq-item.open .faq-toggle { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.faq-item.open .faq-toggle::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 4px 26px; color: var(--text-muted); font-size: 1.08rem; line-height: 1.6; max-width: 64ch; }

/* ---------- Related services ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.related-card { display: flex; align-items: center; gap: 18px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .4s var(--ease-out), border-color .35s, box-shadow .4s var(--ease-out); }
.related-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.related-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(211,174,108,.18), rgba(211,174,108,.06)); border: 1px solid rgba(211,174,108,.32); color: var(--gold-deep); }
[data-theme="dark"] .related-ico { color: var(--gold); }
.related-ico svg { width: 22px; height: 22px; }
.related-card h3 { font-size: 1.12rem; }
.related-card .go { margin-top: 4px; font-size: .9rem; color: var(--gold-deep); font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
[data-theme="dark"] .related-card .go { color: var(--gold); }
.related-card .go .arrow { transition: transform .35s var(--ease-out); }
.related-card:hover .go .arrow { transform: translateX(4px); }
html[lang="ar"] .related-card .go .arrow { transform: scaleX(-1); }

/* ---------- Sticky mobile CTA bar ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 80;
  display: none; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--nav-solid); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.sticky-cta .label { flex: 1; min-width: 0; }
.sticky-cta .label b { display: block; font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.sticky-cta .label span { color: var(--text-faint); font-size: .8rem; }
.sticky-cta .btn { padding: 12px 20px; }

/* ---------- Visual polish: gradient border ring on hover (matches .svc) ---------- */
.deliver-item, .related-card, .pain { position: relative; overflow: hidden; }
.deliver-item::before, .related-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--gold-bright), transparent 45%, var(--gold-deep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity .45s var(--ease-out);
  pointer-events: none; z-index: 1;
}
.deliver-item:hover::before, .related-card:hover::before { opacity: 1; }
.pain { transition: border-color .3s, transform .3s var(--ease-out); }
.pain:hover { border-color: var(--border-strong); transform: translateY(-2px); }

@media (max-width: 1000px) {
  .pains-grid { grid-template-columns: repeat(2,1fr); }
  .deliver-grid, .related-grid { grid-template-columns: repeat(2,1fr); }
  .svc-hero-grid { grid-template-columns: 1fr; }
  .svc-hero-visual { max-width: 440px; }
}
@media (max-width: 680px) {
  .pains-grid, .deliver-grid, .related-grid { grid-template-columns: 1fr; }
  .proof-card { grid-template-columns: 1fr; gap: 20px; }
  .sticky-cta { display: flex; }
  .wa-float { inset-block-end: 86px; }
  body { padding-bottom: 0; }
}
