/* =========================================================
   SB Global Solution — Home page — sections only on the home page, scoped by the body class .page-home. Loaded only on the home page (front-page.php).
   Same rules as html-work/css/style.css.
   ========================================================= */
/* Arrows */
.page-home .hero-arrows { position: absolute; left: 0; right: 0; top: 50%; z-index: 3; pointer-events: none; }
.page-home .hero-arrows .container { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; transform: translateY(-50%); }
.page-home .hero-arrow {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4); color: #fff; background: rgba(0,0,0,.25); backdrop-filter: blur(4px);
  pointer-events: auto; transition: background .2s, border-color .2s;
}
.page-home .hero-arrow .ic { width: 22px; height: 22px; }
.page-home .hero-arrow:hover { background: var(--orange-500); border-color: var(--orange-500); }
.page-home .hero-dots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.page-home .hero-dot { display: flex; flex-direction: column; gap: 10px; text-align: left; color: rgba(255,255,255,.6); transition: color .2s; }
.page-home .hero-dot__bar { position: relative; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.page-home .hero-dot__bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--orange-500), #FFA25C);
  transform: scaleX(0); transform-origin: left;
}
.page-home .hero-dot.is-active .hero-dot__bar::after { animation: hero-progress var(--hero-delay, 6s) linear forwards; }
.page-home .hero.is-paused .hero-dot.is-active .hero-dot__bar::after { animation-play-state: paused; }
.page-home .hero-dot.is-done .hero-dot__bar::after { transform: scaleX(1); }
.page-home .hero-dot__label { display: flex; gap: 10px; font-family: var(--font-head); font-size: 14px; font-weight: 700; }
.page-home .hero-dot:hover,
.page-home .hero-dot.is-active { color: #fff; }
@media (max-width: 960px) {
  .page-home .hero-dots { gap: 8px; }
  .page-home .hero-dot__label span:last-child { display: none; }
  .page-home .hero-arrows { display: none; }
}
@media (max-width: 767px) {
  .page-home .hero-dots { margin-bottom: 18px; }
}
/* =========================================================
   Our Services (tabs)
   ========================================================= */
:is(.page-home, .page-landing) .services {
  position: relative; padding: var(--sec-pad) 0; overflow: hidden;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(255,122,26,.07), transparent 70%),
    radial-gradient(600px 300px at 100% 0%, rgba(59,79,216,.07), transparent 70%),
    #F6F8FC;
}
:is(.page-home, .page-landing) .services .sec-head { margin-bottom: 36px; }
:is(.page-home, .page-landing) .svc__body b,
.page-home .proj b,
.page-home .ai__item b { text-wrap: balance; }
/* Tabs */
:is(.page-home, .page-landing) .svc-tabs {
  display: flex; justify-content: center; gap: 6px; width: fit-content; max-width: 100%;
  margin: 0 auto 36px; padding: 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px -12px rgba(15,23,42,.2);
}
:is(.page-home, .page-landing) .svc-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--text); white-space: nowrap;
  transition: background .2s, color .2s;
}
:is(.page-home, .page-landing) .svc-tab:hover { color: var(--navy-800); }
:is(.page-home, .page-landing) .svc-tab.is-active { background: var(--navy-800); color: #fff; }
:is(.page-home, .page-landing) .svc-tab.is-active .ic { color: var(--orange-500); }
/* Cards */
:is(.page-home, .page-landing) .svc-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; animation: svcIn .4s ease; }
:is(.page-home, .page-landing) .svc-panel[hidden] { display: none; }
:is(.page-home, .page-landing) .svc {
  --c: #F07A1A; --bg1: #FFF6EE; --bg2: #FFFBF7;
  display: grid; grid-template-columns: 52px 1fr 44px; align-items: center; gap: 18px;
  padding: 26px 22px 26px 26px; border-radius: 20px;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  border: 1px solid rgba(15,23,42,.05);
  box-shadow: 0 10px 30px -22px rgba(15,23,42,.35);
  transition: transform .25s, box-shadow .25s;
}
:is(.page-home, .page-landing) .svc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(15,23,42,.45); }
:is(.page-home, .page-landing) .svc__ic svg { width: 44px; height: 44px; fill: none; stroke: var(--c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
:is(.page-home, .page-landing) .svc__body b { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--navy-900); margin-bottom: 6px; }
:is(.page-home, .page-landing) .svc__body span { display: block; font-size: 15px; line-height: 1.6; color: var(--text); }
:is(.page-home, .page-landing) .svc__go {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 6px 16px -6px rgba(15,23,42,.25); transition: background .25s;
}
:is(.page-home, .page-landing) .svc__go svg { width: 20px; height: 20px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s, stroke .25s; }
:is(.page-home, .page-landing) .svc:hover .svc__go { background: var(--c); }
:is(.page-home, .page-landing) .svc:hover .svc__go svg { stroke: #fff; transform: translateX(2px); }
/* Soft colour cycle, like the reference */
:is(.page-home, .page-landing) .svc:nth-child(6n+2) { --c: #7C3AED; --bg1: #F6F1FF; --bg2: #FBF9FF; }
:is(.page-home, .page-landing) .svc:nth-child(6n+3) { --c: #2563EB; --bg1: #EEF4FF; --bg2: #F8FBFF; }
:is(.page-home, .page-landing) .svc:nth-child(6n+4) { --c: #16A34A; --bg1: #ECFAF2; --bg2: #F7FDF9; }
:is(.page-home, .page-landing) .svc:nth-child(6n+5) { --c: #0284C7; --bg1: #ECF6FD; --bg2: #F7FBFE; }
:is(.page-home, .page-landing) .svc:nth-child(6n+6) { --c: #DB2777; --bg1: #FDEFF5; --bg2: #FEF8FB; }
@media (max-width: 1100px) {
  :is(.page-home, .page-landing) .svc-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :is(.page-home, .page-landing) .services { padding: var(--sec-pad) 0; }
  :is(.page-home, .page-landing) .svc-tabs { width: 100%; border-radius: 16px; }
  :is(.page-home, .page-landing) .svc-tab { flex: 1 1 0; justify-content: center; padding: 10px 8px; font-size: 13px; gap: 6px; border-radius: 12px; }
  :is(.page-home, .page-landing) .svc-tab .ic { width: 16px; height: 16px; }
  :is(.page-home, .page-landing) .svc-panel { grid-template-columns: 1fr; gap: 14px; }
  :is(.page-home, .page-landing) .svc { grid-template-columns: 40px 1fr 38px; gap: 14px; padding: 20px 16px 20px 18px; }
  :is(.page-home, .page-landing) .svc__ic svg { width: 36px; height: 36px; }
  :is(.page-home, .page-landing) .svc__body b { font-size: 16.5px; }
  :is(.page-home, .page-landing) .svc__go { width: 38px; height: 38px; }
}
@media (max-width: 380px) {
  :is(.page-home, .page-landing) .svc-tab .ic { display: none; }
}
/* =========================================================
   Who We Are
   ========================================================= */
.page-home .who { padding: var(--sec-pad) 0; background: #fff; overflow: hidden; }
.page-home .who__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.page-home .who__media { position: relative; }
.page-home .who__frame {
  position: relative; z-index: 1; border-radius: 36px; overflow: hidden;
  border: 8px solid #fff; box-shadow: 0 30px 60px -28px rgba(15,23,42,.45);
}
.page-home .who__frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.page-home .who__list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 0; }
.page-home .who__list li { display: flex; align-items: flex-start; gap: 14px; padding-right: 16px; min-width: 0; }
.page-home .who__list li:nth-child(even) { padding: 0 0 0 24px; border-left: 1px solid var(--line); }
.page-home .who__list svg { width: 32px; height: 32px; flex-shrink: 0; fill: none; stroke: var(--orange-500); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.page-home .who__list b { display: block; font-family: var(--font-head); font-size: 16.5px; font-weight: 800; color: var(--navy-900); margin-bottom: 3px; white-space: nowrap; }
.page-home .who__list span { font-size: 15px; color: var(--text); }
@media (max-width: 1240px) and (min-width: 1101px) {
  .page-home .who__list b { font-size: 15.5px; }
}
@media (max-width: 1100px) {
  .page-home .who__inner { grid-template-columns: 1fr; gap: 64px; }
  .page-home .who__media { max-width: 620px; margin: 0 auto; width: 100%; }
}
@media (max-width: 767px) {
  .page-home .who { padding: var(--sec-pad) 0; }
  .page-home .who__frame { border-radius: 20px; border-width: 6px; }
  .page-home .who__list { grid-template-columns: 1fr; gap: 20px; }
  .page-home .who__list li,
.page-home .who__list li:nth-child(even) { padding: 0; border-left: 0; }
  .page-home .who__list svg { width: 30px; height: 30px; }
}
/* =========================================================
   Why Choose Us
   ========================================================= */
.page-home .why { padding: var(--sec-pad) 0; background: linear-gradient(180deg, #F6F8FC 0%, #F6F8FC 100%); }
.page-home .why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.page-home .why-card {
  position: relative; overflow: hidden;
  padding: 34px 30px 32px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 34px -26px rgba(15,23,42,.4);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.page-home .why-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange-500), #FFA25C);
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.page-home .why-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -26px rgba(15,23,42,.5); border-color: transparent; }
.page-home .why-card:hover::before { transform: scaleX(1); }
.page-home .why-card__num {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--font-head); font-size: 40px; font-weight: 800; line-height: 1;
  color: rgba(15,23,42,.06); transition: color .25s;
}
.page-home .why-card:hover .why-card__num { color: rgba(255,122,26,.18); }
.page-home .why-card__ic {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: var(--orange-50); margin-bottom: 22px; transition: background .25s;
}
.page-home .why-card__ic svg { width: 28px; height: 28px; fill: none; stroke: var(--orange-500); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.page-home .why-card:hover .why-card__ic { background: var(--orange-500); }
.page-home .why-card:hover .why-card__ic svg { stroke: #fff; }
.page-home .why-card h3 { margin: 0 0 10px; font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--navy-900); }
.page-home .why-card p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--text); }
@media (max-width: 1100px) {
  .page-home .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .page-home .why { padding: var(--sec-pad) 0; }
  .page-home .why__grid { grid-template-columns: 1fr; gap: 16px; }
  .page-home .why-card { padding: 26px 22px; }
  .page-home .why-card__ic { width: 50px; height: 50px; margin-bottom: 16px; }
}
/* =========================================================
   AI Solutions (light indigo band: pitch left, service list right)
   ========================================================= */
.page-home .ai {
  --ai-bg: #EEF1FD;
  position: relative; padding: var(--sec-pad) 0; overflow: hidden; color: var(--text);
  background:
    radial-gradient(520px 340px at 12% 30%, rgba(255,122,26,.12), transparent 70%),
    radial-gradient(620px 420px at 92% 70%, rgba(59,79,216,.16), transparent 70%),
    var(--ai-bg);
}
.page-home .ai__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.page-home .ai__badge {
  display: inline-block; margin-bottom: 20px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,122,26,.45); background: rgba(255,122,26,.1);
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-500);
}
.page-home .ai__text { margin: 20px 0 0; max-width: 560px; font-size: 17px; line-height: 1.7; }
.page-home .ai__text--strong { margin-top: 12px; color: var(--ink); font-weight: 600; }
.page-home .ai .btn { margin-top: 32px; }
.page-home .ai__list {
  list-style: none; margin: 0; padding: 6px 0; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -34px rgba(30,42,120,.45);
}
.page-home .ai__list li + li { border-top: 1px solid var(--line); }
.page-home .ai__list a { display: flex; align-items: center; gap: 16px; padding: 16px 24px; transition: background .2s; }
.page-home .ai__list li:first-child a { border-radius: 20px 20px 0 0; }
.page-home .ai__list li:last-child a { border-radius: 0 0 20px 20px; }
.page-home .ai__list a:hover { background: #fff; }
.page-home .ai__dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 4px rgba(255,122,26,.15); }
.page-home .ai__item { flex: 1; min-width: 0; }
.page-home .ai__item b { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--ink); }
.page-home .ai__item small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.page-home .ai__arrow { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #94A3B8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s, transform .2s; }
.page-home .ai__list a:hover .ai__arrow { stroke: var(--orange-500); transform: translateX(4px); }
@media (max-width: 1100px) {
  .page-home .ai__inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 767px) {
  .page-home .ai { padding: var(--sec-pad) 0; }
  .page-home .ai__list a { padding: 14px 18px; gap: 14px; align-items: flex-start; }
  .page-home .ai__dot { margin-top: 8px; }
  .page-home .ai__arrow { margin-top: 3px; }
  .page-home .ai__item b { font-size: 15px; }
  .page-home .ai .btn { width: 100%; }
}
/* =========================================================
   Numbers + Featured Projects + CTA banner
   ========================================================= */
.page-home .work { padding: 40px 0 var(--sec-pad); background: #F6F8FC; }
/* Projects carousel (native scroll + snap, driven by arrows/dots/auto-play) */
.page-home .projects {
  --per: 4; --gap: 24px;
  display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 10px 2px 26px; margin: -10px -2px -26px;   /* room for hover lift + shadow */
  scrollbar-width: none;
}
.page-home .projects::-webkit-scrollbar { display: none; }
.page-home .projects .proj { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; }
.page-home .proj {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 34px -24px rgba(15,23,42,.4); transition: transform .25s, box-shadow .25s;
}
.page-home .proj:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -24px rgba(15,23,42,.5); }
.page-home .proj__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-50); }
.page-home .proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.page-home .proj:hover .proj__img img { transform: scale(1.05); }
.page-home .proj__info { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.page-home .proj__info svg { width: 30px; height: 30px; flex-shrink: 0; fill: none; stroke: var(--orange-500); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.page-home .proj__info b { display: block; font-family: var(--font-head); font-size: 16.5px; font-weight: 800; color: var(--navy-900); }
.page-home .proj__info span { font-size: 14px; color: var(--text); }
/* Optional detail text (What We Build → Detail Text) */
.page-home .proj__info:has(.proj__text) { align-items: flex-start; }
.page-home .proj__text { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.page-home .projects__more { text-align: center; margin-top: 22px; }
@media (max-width: 1100px) {
  .page-home .projects { --per: 2; }
}
@media (max-width: 767px) {
  .page-home .work { padding: 24px 0 64px; }
  .page-home .projects { --per: 1; --gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-dot.is-active .hero-dot__bar::after { animation: none; transform: scaleX(1); }
}
/* ---- Cards: lifted, not flat ---- */
:is(.page-home, .page-landing) .svc,
.page-home .why-card,
.page-home .proj,
:is(.page-home, .page-landing) .svc-tabs { box-shadow: var(--shadow-1); }
:is(.page-home, .page-landing) .svc,
.page-home .why-card,
.page-home .proj { border-color: rgba(229,233,242,.8); }
:is(.page-home, .page-landing) .svc:hover,
.page-home .why-card:hover,
.page-home .proj:hover { box-shadow: var(--shadow-2); }
.page-home .who__frame { box-shadow: var(--shadow-3); }
.page-home .hero-arrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); backdrop-filter: blur(10px); }
.page-home .ai__list {
  border: 1.5px solid transparent;
  background: linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)) padding-box,
              linear-gradient(135deg, rgba(59,79,216,.35), rgba(255,255,255,.6), rgba(255,122,26,.35)) border-box;
  box-shadow: var(--shadow-3);
}
/* ---- 3D-style icon boxes: soft gradient + inner light + glow ---- */
.page-home .why-card__ic {
  background: linear-gradient(145deg, #FFF7F0 0%, #FFE2CC 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px rgba(255,122,26,.14), 0 10px 20px -12px rgba(255,122,26,.6);
}
.page-home .why-card:hover .why-card__ic {
  background: linear-gradient(145deg, #FF9A4D 0%, #FF6A1A 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 12px 24px -10px rgba(255,106,26,.7);
}
:is(.page-home, .page-landing) .svc__go { box-shadow: inset 0 1px 0 #fff, 0 8px 18px -8px rgba(30,42,120,.35); }
/* 5. Bigger tap areas for the hero slide bars and the phone share button */
.page-home .hero-dot { padding-block: 10px; margin-block: -10px; }
/* 2. Services tabs on phones: equal widths, text may wrap, never overflow */
@media (max-width: 767px) {
  :is(.page-home, .page-landing) .svc-tabs { width: 100%; max-width: 100%; gap: 4px; padding: 5px; }
  :is(.page-home, .page-landing) .svc-tab { flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; line-height: 1.25; padding: 10px 6px; font-size: 13px; }
}
@media (max-width: 420px) {
  :is(.page-home, .page-landing) .svc-tab .ic { display: none; }
  :is(.page-home, .page-landing) .svc-tab { font-size: 12.5px; padding: 9px 4px; }
}
/* 3. Service cards on tablet + phone: icon and arrow on top, text full width below */
@media (max-width: 1100px) {
  :is(.page-home, .page-landing) .svc {
    grid-template-columns: 1fr auto;
    grid-template-areas: "ic go" "body body";
    align-items: start; gap: 14px 12px; padding: 24px 22px;
  }
  :is(.page-home, .page-landing) .svc__ic { grid-area: ic; }
  :is(.page-home, .page-landing) .svc__go { grid-area: go; }
  :is(.page-home, .page-landing) .svc__body { grid-area: body; }
  :is(.page-home, .page-landing) .svc__ic svg { width: 38px; height: 38px; }
}
@media (max-width: 767px) {
  :is(.page-home, .page-landing) .svc { padding: 20px 18px; }
  :is(.page-home, .page-landing) .svc__ic svg { width: 34px; height: 34px; }
}
