/* Interactive shared sections: industries rail, FAQ tabs + accordion,
   closing split CTA. Behaviour lives in assets/js/ui.js. */

/* ---------- industries rail ---------- */

.industries { padding: 104px 0 112px; overflow: hidden; background: var(--paper); }
.industries__head { max-width: 900px; margin-bottom: 8px; padding: 0 var(--gutter); }
.industries__head .lead { max-width: 620px; margin: 22px auto 0; font-size: 17px; line-height: 1.55; }
.industries__head .text-link { margin-top: 28px; }

.industries__track {
  display: flex;
  gap: 22px;
  margin-bottom: -28px;
  padding: 52px var(--gutter) 48px;
  overflow-x: auto;
  cursor: grab;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.industries__track::-webkit-scrollbar { display: none; }
.industries__track.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.industry {
  position: relative;
  flex: none;
  width: 320px;
  height: 420px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 22px 44px rgb(30 50 90 / 16%);
  transition: transform .4s var(--ease);
}
.industry:hover { transform: translateY(-10px); }

.industry::before,
.industry::after { content: ''; position: absolute; inset: 0; }
.industry::before { opacity: .14; background: radial-gradient(circle at 72% 22%, #fff, transparent 55%); }
.industry::after { background: linear-gradient(180deg, rgb(10 14 22 / 10%) 30%, rgb(10 14 22 / 82%)); }

/* Photo thumbnail; the gradient behind it shows while it loads. */
.industry__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.industry:hover .industry__img { transform: scale(1.04); }
.industry--media { background: linear-gradient(165deg, #2e4a7b, #3b74e8); }
.industry--sports { background: linear-gradient(165deg, #1f7a64, #2fb08c); }
.industry--education { background: linear-gradient(165deg, #c15f3c, #e88a4a); }
.industry--advertising { background: linear-gradient(165deg, #5b4b8a, #8b6fd4); }
.industry--realestate { background: linear-gradient(165deg, #1f5f8b, #3b9fe8); }
.industry--fintech { background: linear-gradient(165deg, #b14a76, #e06a9a); }
.industry--healthcare { background: linear-gradient(165deg, #2b7d7d, #43b0a8); }
.industry--ecommerce { background: linear-gradient(165deg, #8a6d1f, #d9a83a); }
.industry--logistics { background: linear-gradient(165deg, #3a4a6b, #6379a8); }
.industry--saas { background: linear-gradient(165deg, #4a3a7d, #7a63c4); }

.industry__icon {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgb(10 14 22 / 38%);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.industry__text { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; }
.industry__text h3 { margin-bottom: 6px; font-weight: 700; font-size: 24px; letter-spacing: -.6px; color: var(--white); }
.industry__text p { font-size: 12.5px; color: rgb(255 255 255 / 70%); }

.industries__controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 0 var(--gutter); }
.rail-progress { flex: 1; height: 4px; margin-right: 6px; overflow: hidden; border-radius: 999px; background: #e4e1d8; }
.rail-progress__bar { width: 22%; height: 100%; border-radius: 999px; background: var(--blue); transition: width .1s linear; }

/* ---------- tabs (shared by FAQ and toolkit) ---------- */

[role='tabpanel'][hidden] { display: none; }

/* ---------- FAQ ---------- */

.section--faq { padding-bottom: 112px; }
.faq { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; }
.faq__cats { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 6px; }

.faq__cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--white);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  color: var(--slate);
  cursor: pointer;
  transition: all .25s;
}
.faq__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #c2ccdd; }
.faq__cat[aria-selected='true'] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.faq__cat[aria-selected='true'] .faq__dot { background: var(--gold); }
.faq__panel { display: flex; flex-direction: column; gap: 14px; }

.faq__item {
  border: 1px solid #e7e4dc;
  border-radius: 16px;
  background: var(--white);
  transition: border-color .25s, box-shadow .25s;
}
.faq__item.is-open { border-color: var(--gold-line); box-shadow: 0 12px 30px rgb(30 50 90 / 8%); }

.faq__q button {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 24px 28px;
  border: 0;
  background: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -.3px;
  text-align: left;
  cursor: pointer;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 50%;
  background: #f0eee7;
  transition: transform .35s, background .25s;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2.4px;
  border-radius: 2px;
  background: var(--stone);
  transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--gold); transform: rotate(135deg); }
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: var(--ink); }

.faq__a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s cubic-bezier(.4, 0, .2, 1), opacity .3s; }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; opacity: 1; }
.faq__a p { padding: 0 78px 24px 28px; font-size: 15.5px; line-height: 1.6; color: var(--slate); }

/* ---------- closing split CTA ---------- */

.cta-split-wrap { padding: 0 var(--gutter) 112px; background: var(--paper); }
.cta-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid) 55%, #2b74e8);
}

.cta-split__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 52px;
  color: var(--white);
}
.cta-split__title { margin-bottom: 20px; font-weight: 600; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.1; letter-spacing: -1.4px; }
.cta-split__text { max-width: 480px; margin-bottom: 40px; font-size: 16.5px; line-height: 1.65; color: rgb(255 255 255 / 86%); }

/* Illustration (also in the agentic .readiness card): fills its column beside the copy,
   left edge faded into the card. Below 1200px the card stacks with the whole image on top. */
.cta-split__media { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; mask-image: linear-gradient(90deg, transparent, #000 9%); }

@media (max-width: 1200px) {
  .cta-split { grid-template-columns: minmax(0, 1fr); }
  .cta-split__media { order: -1; height: auto; min-height: 0; aspect-ratio: 1520 / 810; mask-image: linear-gradient(180deg, #000 88%, transparent); }
}

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; gap: 20px; }
  /* One row of category tabs that scrolls sideways, never vertically; ui.js slides the chosen tab into view. */
  .faq__cats { position: static; flex-flow: row nowrap; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .faq__cats::-webkit-scrollbar { display: none; }
  .faq__cat { flex: none; gap: 10px; padding: 11px 16px; white-space: nowrap; }
  .faq__a p { padding-right: 28px; }
  .cta-split__copy { padding: 36px 28px 44px; }
  .cta-split__text { margin-bottom: 32px; }
  .cta-split-wrap { padding-bottom: var(--section-y); }
  .industry { width: 260px; height: 360px; }
}

@media (max-width: 720px) {
  .industries { padding: 72px 0 48px; }
  .industries + .growth-banner-wrap { padding-top: 0; }
}
