/* 2026-11-19 — laptop (MacBook) banner fixes. Loaded last; overrides earlier layers. */

/* ---------- Stats band: one consistent layout for all three items ---------- */
.stat-band:not(:has(.assessment-features))>.wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;align-items:center}
.stat-band:not(:has(.assessment-features))>.wrap>div{display:flex;align-items:center;gap:22px;min-width:0;padding:6px 32px;border:0;border-inline-end:1px solid #98d5e533}
.stat-band:not(:has(.assessment-features))>.wrap>div:first-child{padding-inline-start:0}
.stat-band:not(:has(.assessment-features))>.wrap>div:last-child{border:0}
.stat-band .stat-item p{margin:0;color:#fff;font-size:inherit;line-height:1.2;white-space:normal}
.stat-band .stat-item strong{display:block;font:600 clamp(26px,2.3vw,34px)/1.1 var(--font);letter-spacing:-.02em;color:#fff}
.stat-band .stat-item small{display:block;margin-top:8px;font-size:14px;line-height:1.4;color:#c4d6e2}
.stat-band .stat-item svg{width:52px;height:52px;flex-shrink:0}
@media(max-width:800px){
  .stat-band:not(:has(.assessment-features))>.wrap{grid-template-columns:1fr;gap:22px}
  .stat-band:not(:has(.assessment-features))>.wrap>div{padding:0;border:0}
  .stat-band .stat-item strong{font-size:26px}
}

@media(min-width:801px){
  /* ---------- Home hero: fit the visible screen, keep film beside the text ---------- */
  .ref-page.ref-home .ref-hero{display:flex;align-items:center;min-height:clamp(520px,calc(100svh - 120px),780px)}
  .ref-page.ref-home .ref-hero>.wrap{width:min(1280px,calc(100% - 120px))}
  .ref-page.ref-home .ref-hero-copy{min-height:0;padding-block:clamp(28px,5vh,56px)}
  .ref-page.ref-home .ref-hero h1{font-size:clamp(48px,min(5.25vw,10.5svh),84px)}
  .ref-page.ref-home .ref-hero-photo{inset:0}
  .ref-page.ref-home .client-brand-video{position:absolute;inset:0 0 0 auto;width:60%}
  .ref-page.ref-home .client-brand-video>.client-banner-frame,
  .ref-page.ref-home .client-brand-video>.client-banner-frame>img,
  .ref-page.ref-home .client-brand-video>.home-people-film{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:right center}

  /* ---------- Inner page banners: less cropping, keep faces in frame ---------- */
  .ref-page:not(.ref-home):not(.ref-faq) .ref-hero{display:flex;align-items:center;min-height:clamp(480px,min(46vw,calc(100svh - 120px)),820px)}
  .ref-page:not(.ref-home):not(.ref-faq) .ref-hero-copy{min-height:0}
  .ref-page:not(.ref-home):not(.ref-faq) .ref-hero-photo img{object-fit:cover;object-position:70% 22%}

  /* ---------- FAQ banner: one continuous background, no seam ---------- */
  .ref-faq .ref-hero{background:radial-gradient(ellipse 60% 90% at 72% 45%,#063456 0%,#001b2e 70%)}
  .ref-faq .ref-hero-photo{background:none!important}
  .ref-faq .ref-hero:after{background:none}
}
@media(min-width:801px){
  .ref-page.ref-home .client-brand-video>.client-banner-frame>img,
  .ref-page.ref-home .client-brand-video>.home-people-film{transform:none!important;translate:none!important;top:0!important;inset:0!important}
}
.stat-band .stat-item strong{font-size:clamp(22px,1.85vw,30px);white-space:nowrap}
@media(min-width:801px){.ref-page.ref-home .client-brand-video{width:54%}}
/* One light-gray shade for every feature/tint band across solution pages */
:root{--tbg-band:#eef4f8}
.ref-section.compact,.ref-section.blue-tint,.ref-section:has(> .wrap > .four-features),.ref-section:has(> .wrap > .six-features),.ref-section:has(.learning-features){background:var(--tbg-band)!important}
.ref-section.compact .wrap,.ref-section.compact .four-features,.ref-section.compact .learning-features,.ref-section:has(> .wrap > .six-features) .six-features,.ref-section:has(> .wrap > .four-features) .four-features{background:transparent!important}
/* Brand slogan above the stats band (home) */
.slogan-band{background:#00233b;padding:clamp(28px,4vw,48px) 0 0}
.slogan-band .wrap{display:flex;align-items:center;justify-content:center;gap:28px}
.slogan-band p{margin:0;color:#fff;font:600 clamp(24px,2.6vw,40px)/1.2 var(--font);letter-spacing:-.02em;text-align:center}
.slogan-rule{flex:1;max-width:120px;height:1px;background:#00a3df}
@media(max-width:800px){.slogan-rule{display:none}}
/* Let's Talk page: one consistent type scale */
.ref-contact .enquiry-copy .eyebrow{font-size:12px;letter-spacing:.17em}
.ref-contact .enquiry-copy h1{font-size:clamp(38px,3.6vw,54px);line-height:1.1}
.ref-contact .enquiry-copy>p:not(.eyebrow),.ref-contact .contact-detail address,.ref-contact .contact-detail a,.ref-contact .contact-detail bdi,.ref-contact .contact-detail p{font-size:17px;line-height:1.55;font-style:normal}
.ref-contact .contact-detail h2{font:600 13px/1.4 var(--font);letter-spacing:.12em;text-transform:uppercase;color:#98d5e5;margin-bottom:6px}
.ref-contact .form-grid label{font-size:15px}
.ref-contact .reference-form input,.ref-contact .reference-form select,.ref-contact .reference-form option,.ref-contact .reference-form textarea{font-size:15px}
.ref-contact .reference-form>.button{font-size:15px}
/* Home slider (3 photos): keep faces in frame, no zoom-crop */
.ref-page.ref-home [data-tbg-hero-slider] .client-banner-frame img{object-fit:cover;object-position:68% 18%;animation:none!important;transform:none!important;scale:none!important}
@media(min-width:801px){.ref-page.ref-home .ref-hero:has([data-tbg-hero-slider]){max-height:max(560px,56.25vw)}}
@media(max-width:800px){.ref-page.ref-home [data-tbg-hero-slider] .client-banner-frame img{object-position:72% 15%}}
/* Stats band: any number of items on one row (About has 4) */
@media(min-width:801px){
  .stat-band:not(:has(.assessment-features))>.wrap{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
  .stat-band:not(:has(.assessment-features))>.wrap>div{justify-content:center;padding-inline:24px}
  .stat-band:not(:has(.assessment-features))>.wrap>div:first-child{padding-inline-start:0}
  .stat-band:not(:has(.assessment-features))>.wrap>div p{text-align:start}
}
@media(min-width:801px) and (max-width:1150px){.ref-about .stat-band>.wrap{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:24px}}
/* Home hero: reserve room for the "People. Potential. Progress." caption under the button */
@media(min-width:801px){
  .ref-page.ref-home .ref-hero:has([data-tbg-hero-slider]){max-height:none}
  .ref-page.ref-home .ref-hero-copy{padding-bottom:max(96px,9vh)!important}
  .ref-page.ref-home .hero-film-caption{bottom:30px;inset-inline-start:max(60px,calc((100% - 1280px)/2))}
}
@media(max-width:800px){.ref-page.ref-home .ref-hero-copy{padding-bottom:80px!important}}
/* Arabic (RTL): text sits on the right, so mirror home slides 2 & 3 (people on the right, no text in photo) */
[dir=rtl] .ref-page.ref-home [data-tbg-hero-slider] .client-banner-frame:nth-child(2) img,
[dir=rtl] .ref-page.ref-home [data-tbg-hero-slider] .client-banner-frame:nth-child(3) img{transform:scaleX(-1)!important;object-position:32% 18%}
/* Feature icons: clearer blue tile, identical on every page (Gamified, Training, Assessment...) */
.learning-features svg,.learning-features .motion-icon{background:#00a3df29!important;color:#0093cc!important;border-radius:14px;padding:12px;width:56px!important;height:56px!important;box-sizing:border-box}
.stat-band .learning-features svg,.stat-band .learning-features .motion-icon{background:#00a3df33!important;color:#3cc4f0!important}
/* Tagline: "Progress." highlighted with an upward arrow */
.tagline-progress{color:#00b5e6;display:inline-flex;align-items:center;gap:.25em;white-space:nowrap;font-weight:600}
.tagline-arrow{width:1.05em;height:1.05em;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
[dir=rtl] .tagline-arrow{transform:scaleX(-1)}
.hero-film-caption .tagline-progress{margin-inline-start:.35em}
.footer-tagline .tagline-progress{margin-inline-start:.25em}
/* Gamified: icons get their own full-width band (like Corporate Training); simulations area below stays white */
.ref-gamified-simulations .ref-section:has(.learning-features){background:#fff!important;padding-top:0}
.ref-gamified-simulations .learning-features{position:relative;background:var(--tbg-band)!important;box-shadow:0 0 0 100vmax var(--tbg-band);clip-path:inset(0 -100vmax);padding-block:34px!important;margin-bottom:44px}
body.ref-gamified-simulations section.ref-section .wrap .four-features.learning-features{background:var(--tbg-band)!important;box-shadow:0 0 0 100vmax var(--tbg-band);clip-path:inset(0 -100vmax)}
/* TEMP (2026-11-22): English-only launch — hide language switcher. Arabic pages stay live at ?locale=ar.
   To bring the switcher back, delete the next line. */
.ref-header .language,.ref-footer .language,.nav-row .language,.footer-row .language{display:none!important}
/* Home hero — VIDEO mode (2026-11-24). Switch back: set $homeHero = 'carousel' in reference.blade.php */
.ref-hero.is-video{position:relative;overflow:hidden;background:#001b2e}
.ref-hero.is-video .ref-hero-photo{position:absolute;inset:0}
.hero-video-bg{position:absolute;inset:0}
.hero-video-bg video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.75)}
.hero-video-veil{position:absolute;inset:0;background:linear-gradient(90deg,#001b2ee6 0%,#001b2eb3 38%,#00233b80 70%,#00233b66 100%),linear-gradient(0deg,#001b2e99 0%,transparent 35%)}
.ref-hero.is-video:after,.ref-hero.is-video:before{display:none!important}
.ref-hero.is-video>.wrap,.ref-hero.is-video .hero-film-caption,.ref-hero.is-video .hero-film-reel{position:relative;z-index:2}
.ref-hero.is-video .hero-film-caption,.ref-hero.is-video .hero-film-reel{position:absolute}
.ref-hero.is-video h1,.ref-hero.is-video .ref-hero-copy>p{color:#fff}
@media(min-width:801px){.ref-page.ref-home .ref-hero.is-video{min-height:clamp(560px,calc(100svh - 90px),860px)}}
@media(max-width:800px){.ref-hero.is-video{min-height:620px}.hero-video-veil{background:linear-gradient(0deg,#001b2ef2 0%,#001b2ecc 55%,#001b2e99 100%)}}
@media(prefers-reduced-motion:reduce){.hero-video-bg video{display:none}}
[dir=rtl] .hero-video-veil{background:linear-gradient(270deg,#001b2ee6 0%,#001b2eb3 38%,#00233b80 70%,#00233b66 100%),linear-gradient(0deg,#001b2e99 0%,transparent 35%)}
/* Large screens & TVs (2026-11-25): scale whole page, hero keeps the video's 16:9 so nothing is cropped */
.ref-hero-copy .eyebrow{margin-bottom:18px}
@media(min-width:801px){.ref-page.ref-home .ref-hero.is-video{min-height:0;height:auto;aspect-ratio:16/9;max-height:none}}
@media(min-width:1800px){body.ref-page{zoom:1.2}}
@media(min-width:2200px){body.ref-page{zoom:1.4}}
@media(min-width:2800px){body.ref-page{zoom:1.75}}
@media(min-width:3600px){body.ref-page{zoom:2.3}}
.forms-live .preview-notice{display:none!important}
