/* =========================================================
   About page — matches demosites.bragyst.com/hawaii-led-screen/about/
   Everything is scoped under .about-main so it does not
   affect the rest of the site (style.css stays untouched).
   ========================================================= */
.about-main {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink)
}

.about-main .wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px)
}

.about-main section {
  padding: clamp(44px, 5.2vw, 76px) 0;
  scroll-margin-top: 64px
}

.about-main h1,
.about-main h2,
.about-main h3 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0
}

.about-main h1 {
  font-weight: 500;
  font-size: clamp(26px, 3.1vw, 44px)
}

.about-main h2 {
  font-weight: 500;
  font-size: clamp(26px, 3.1vw, 40px)
}

.about-main h3 {
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 19px)
}

.about-main p {
  margin: 0
}

.about-main .lead {
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--mut);
  max-width: 60ch
}

.about-main .lead p+p {
  margin-top: 0
}


.lead p.justify {
    text-align: justify !important;
}

.about-main .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--blue);
  margin-bottom: 16px;
  letter-spacing: 0;
  text-transform: none
}

.about-main .eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px
}

.about-main .sec-head {
  display: block;
  max-width: 760px;
  margin-bottom: clamp(20px, 2.6vw, 34px)
}

.about-main .sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center
}

.about-main .sec-head.center .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px
}

.about-main .mt-14 {
  margin-top: 14px
}

.about-main .bg-soft {
  background: var(--soft)
}

.about-main .u-blue {
  color: var(--blue)
}

.about-main .u-amber {
  color: #D68A1C
}

.about-main .u-maxw1400 {
  max-width: 1400px
}

/* ---------- Page banner ---------- */
.about-main .pagehead {
  position: relative;
  background: radial-gradient(120% 160% at 15% 0%, #0A2C7A, var(--navy3) 60%);
  padding-top: calc(var(--hdr, 76px) + 40px);
  padding-bottom: clamp(30px, 4vw, 44px);
  overflow: hidden
}

.about-main .pagehead.has-banner {
  background-size: cover;
  background-position: center 38%;
  padding-top: calc(var(--hdr, 76px) + 70px);
  padding-bottom: clamp(50px, 7vw, 80px)
}

.about-main .pagehead.banner-about {
  background-image: linear-gradient(rgba(1, 13, 40, .28) 0%, rgba(1, 13, 40, .1) 45%, rgba(1, 13, 40, .58) 100%), linear-gradient(90deg, rgba(1, 13, 40, .58) 0%, rgba(1, 13, 40, .22) 46%, rgba(1, 13, 40, .02) 76%), var(--hero-bg, url("../img/about-banner.jpg"))
}

/* Page-specific banner images */
.about-main .pagehead.ap-hero {
  --hero-bg: url("../img/products-banner.jpg");
}

.about-main .pagehead.pj-hero {
  --hero-bg: url("../img/novastar-banner.jpg");
}

.about-main .pagehead.ns-hero {
  --hero-bg: url("../img/novastar-banner.jpg");
}

.about-main .pagehead.sl-hero {
  --hero-bg: url("../img/solutions-banner.webp");
}

.about-main .pagehead.ct-hero {
  --hero-bg: url("../img/contact-banner.png");
}

.about-main .pagehead.ab-hero {
  --hero-bg: url("../img/about-banner.jpg");
}


.about-main .pagehead.banner-about-pos {
  background-position: center center
}

.about-main .pagehead .wrap {
  position: relative;
  z-index: 1
}

.about-main .crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  color: #AFC6F5;
  margin: 0 0 18px;
  padding: 0;
  list-style: none
}

.about-main .crumbs a {
  color: #AFC6F5
}

.about-main .crumbs a:hover {
  color: #fff
}

.about-main .crumbs span {
  color: #5C79B8
}

.about-main .crumbs li::after {
  content: none
}

.about-main .pagehead h1 {
  color: #fff;
  text-shadow: rgba(1, 13, 40, .5) 0 2px 34px
}

/* ---------- Who we are ---------- */
.about-main .why {
  background: linear-gradient(#fff 0%, #EAF0FF 100%)
}

.about-main .why .wgrid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start
}

.about-main .cathero {
  position: relative;
  border-radius: var(--rad);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: radial-gradient(120% 120% at 50% 20%, #0A2C7A, #010D28)
}

.about-main .cathero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.about-main .statstrip {
  display: flex;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--rad-s, 10px);
  overflow: hidden;
  background: #fff
}

.about-main .statstrip .ss {
  flex: 1 1 0%;
  text-align: center;
  padding: 12px 6px
}

.about-main .statstrip .ss+.ss {
  border-left: 1px solid var(--line)
}

.about-main .statstrip .n {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(16px, 1.8vw, 21px);
  color: var(--navy)
}

.about-main .statstrip .n.u-blue {
  color: var(--blue)
}

.about-main .statstrip .n.u-amber {
  color: #D68A1C
}

.about-main .statstrip .l {
  font-size: 10.5px;
  color: var(--mut);
  margin-top: 2px;
  line-height: 1.25
}

/* ---------- Numbers ---------- */
.about-main .numgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center
}

.about-main .numcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px
}

.about-main .numic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center
}

.about-main .numic svg {
  width: 30px;
  height: 30px
}

.about-main .numic.ic-amber {
  background: rgba(214, 138, 28, .12);
  color: #D68A1C
}

.about-main .numic.ic-green {
  background: rgba(38, 166, 91, .12);
  color: #26A65B
}

.about-main .numic.ic-red {
  background: rgba(214, 58, 58, .12);
  color: #D63A3A
}

.about-main .numic.ic-blue {
  background: rgba(45, 107, 255, .12);
  color: var(--blue)
}

.about-main .numval {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 36px);
  color: var(--ink)
}

.about-main .numlab {
  color: var(--mut);
  font-size: 14.5px
}

/* ---------- Vision / Mission / Quality ---------- */
.about-main .mvgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px
}

.about-main .mvgrid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.about-main .mvcard {
  position: relative;
  background: var(--navy);
  border-radius: var(--rad);
  box-shadow: var(--sh);
  padding: clamp(24px, 2.6vw, 34px);
  border-top: 4px solid var(--blue);
  transition: transform .3s, box-shadow .3s
}

.about-main .mvcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg)
}

.about-main .mvcard:nth-child(2) {
  border-top-color: var(--amber)
}

.about-main .mvcard .idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  margin-bottom: 14px
}

.about-main .mvcard .idx svg {
  width: 22px;
  height: 22px;
  stroke: #fff
}

.about-main .mvcard:nth-child(2) .idx {
  background: var(--amber)
}

.about-main .mvcard h3 {
  font-size: clamp(19px, 2vw, 22px);
  margin-bottom: 8px;
  color: #fff
}

.about-main .mvcard p {
  color: #fff;
  font-size: 14.5px;
  line-height: 1.65
}

/* ---------- CTA band ---------- */
.about-main .ctaband {
  position: relative;
  background: var(--navy2) url("../img/novastar-banner.jpg") center/cover no-repeat;
  color: #fff;
  overflow: hidden;
  isolation: isolate
}

.about-main .ctaband::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(rgba(1, 13, 40, .88) 0%, rgba(1, 13, 40, .8) 50%, rgba(1, 13, 40, .92) 100%)
}

.about-main #ctafx {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .5;
  pointer-events: none;
  width: 100%;
  height: 100%
}

.about-main .ctaband .wrap {
  position: relative;
  z-index: 1;
  text-align: center
}

.about-main .ctaband h2 {
  color: #fff
}

.about-main .ctaband p {
  color: #C7D3EA;
  max-width: 56ch;
  margin: 16px auto 0
}

.about-main .ctaband .eyebrow.u-center-inline {
  color: #8FB2F5;
  justify-content: center;
  display: inline-flex
}

.about-main .ctaband .eyebrow.u-center-inline::before {
  background: #8FB2F5
}

.about-main .ctaband .row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: center;
  margin-top: 30px
}

.about-main .ab-btn-white {
  background: #fff;
  color: var(--navy)
}

.about-main .ab-btn-white:hover {
  box-shadow: rgba(0, 0, 0, .22) 0 12px 26px;
  transform: translateY(-2px)
}

.about-main .ab-btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: rgba(255, 255, 255, .55) 0 0 0 1.5px inset
}

.about-main .ab-btn-ghost:hover {
  box-shadow: #fff 0 0 0 1.5px inset;
  background: rgba(255, 255, 255, .08);
  transform: translateY(-2px)
}

.about-main .ab-btn-wa {
  background: var(--wa);
  color: #fff
}

.about-main .ab-btn-wa:hover {
  background: #189A47;
  box-shadow: rgba(31, 175, 84, .32) 0 12px 26px;
  transform: translateY(-2px)
}

/* ---------- Reveal (same as reference: .rv → .rv.in) ---------- */
.about-main .rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1)
}

.about-main .rv.in {
  opacity: 1;
  transform: none
}

.about-main .mvcard.rv.in:hover {
  transform: translateY(-6px)
}

.about-main .d1 {
  transition-delay: .08s
}

.about-main .d2 {
  transition-delay: .16s
}

.about-main .d3 {
  transition-delay: .24s
}

/* ---------- Intro: image + stats stay in view while the long text scrolls ---------- */
@media (min-width:901px) {
  .about-main .why .why__media {
    position: sticky;
    top: calc(var(--hdr, 76px) + 24px)
  }
}

/* ---------- Responsive ---------- */
@media (max-width:900px) {
  .about-main .why .wgrid {
    grid-template-columns: 1fr
  }
}

@media (max-width:700px) {
  .about-main .numgrid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px
  }

  .about-main .mvgrid,
  .about-main .mvgrid-3 {
    grid-template-columns: 1fr
  }
}

@media (max-width:520px) {
  .about-main .statstrip {
    flex-wrap: wrap
  }

  .about-main .statstrip .ss {
    flex: 0 0 50%
  }

  .about-main .statstrip .ss:nth-child(2) {
    border-left: 1px solid var(--line)
  }

  .about-main .statstrip .ss:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line)
  }

  .about-main .statstrip .ss:nth-child(4) {
    border-top: 1px solid var(--line)
  }
}

@media (prefers-reduced-motion:reduce) {
  .about-main .rv {
    opacity: 1;
    transform: none;
    transition: none
  }
}

/* ---------- Team photo banner (About + Certificates) ---------- */
/* Desktop: wide composite (team on the right, blue space on the left for the title) */
.about-main .pagehead.team-hero {
  --hero-bg: url("../img/team-banner-wide.jpg");
  background-color: #0A2C9E;
  background-position: right center;
  min-height: clamp(420px, 36vw, 600px);
  display: flex;
  align-items: center
}

.about-main .pagehead.team-hero .wrap {
  width: 100%
}

/* Tablet / phone: original 4:3 photo, title sits over the lower shade */
@media (max-width:900px) {
  .about-main .pagehead.team-hero {
    --hero-bg: url("../img/team-banner.jpg");
    background-position: center 40%;
    min-height: clamp(360px, 70vw, 520px);
    align-items: flex-end
  }
}
/* ---------- All inner page banners: one size ----------
   Same height on every inner page (About, Products, category pages, NovaStar, Solutions,
   solution detail, Projects, Certificates, Software, Contact, product detail), whatever the
   title length or language. Title sits in the same place (top padding is the same). */
:root {
  /* 400px up to a 1920px wide screen, then grows with the width so very wide screens
     (or a zoomed-out browser) show the same part of the photo instead of a thin strip */
  --inner-banner-h: max(400px, calc(100vw * 400 / 1920))
}

@media (max-width: 1100px) {
  :root {
    --inner-banner-h: 340px
  }
}

@media (max-width: 600px) {
  :root {
    --inner-banner-h: 320px
  }

  /* product detail has eyebrow + title + breadcrumb: a little less padding so it fits the same height */
  #main .phero--fullwidth {
    padding-top: calc(var(--hdr, 76px) + 50px) !important;
    padding-bottom: 36px !important
  }
}

.about-main .pagehead.has-banner:not(.team-hero),
#main .phero--fullwidth {
  box-sizing: border-box;
  min-height: var(--inner-banner-h)
}

/* product detail banner: same padding model and title position as the others */
#main .phero--fullwidth {
  align-items: flex-start;
  padding-top: calc(var(--hdr, 76px) + 70px);
  padding-bottom: clamp(50px, 7vw, 80px)
}

/* Arabic (right-to-left): the title is on the right, so the dark shade moves to the right too */
[dir="rtl"] .about-main .pagehead.banner-about {
  background-image: linear-gradient(rgba(1, 13, 40, .28) 0%, rgba(1, 13, 40, .1) 45%, rgba(1, 13, 40, .58) 100%), linear-gradient(270deg, rgba(1, 13, 40, .58) 0%, rgba(1, 13, 40, .22) 46%, rgba(1, 13, 40, .02) 76%), var(--hero-bg, url("../img/about-banner.jpg"))
}

[dir="rtl"] #main .phero--fullwidth::after {
  background: linear-gradient(270deg, rgba(4, 16, 46, .90) 0%, rgba(4, 16, 46, .74) 28%, rgba(4, 16, 46, .30) 52%, rgba(4, 16, 46, 0) 70%)
}

/* Arabic: banner photos are made for English (empty/dark side on the left for the title, subject on
   the right). The title is on the right in Arabic, so the photo is mirrored: the empty side moves behind
   the title and the subject moves left. Not for the NovaStar/Projects banner (it has logos and text). */
[dir="rtl"] #main .phero--fullwidth .phero-fullwidth__image img {
  transform: scaleX(-1)
}

[dir="rtl"] .about-main .pagehead.banner-about:not(.ns-hero):not(.pj-hero):not(.team-hero) {
  background-image: none
}

[dir="rtl"] .about-main .pagehead.banner-about:not(.ns-hero):not(.pj-hero):not(.team-hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  /* the English shading, mirrored together with the photo, ends up dark on the right */
  background-image: linear-gradient(rgba(1, 13, 40, .28) 0%, rgba(1, 13, 40, .1) 45%, rgba(1, 13, 40, .58) 100%), linear-gradient(90deg, rgba(1, 13, 40, .58) 0%, rgba(1, 13, 40, .22) 46%, rgba(1, 13, 40, .02) 76%), var(--hero-bg, url("../img/about-banner.jpg"));
  background-size: cover;
  background-position: inherit;
  transform: scaleX(-1)
}

/* ---------- Phones: the whole banner photo, no crop ----------
   The desktop banner is shown full width at its own shape under the header, and the title sits
   below it on a navy shade that fades up into the photo, so one image works on desktop and phone.
   A category with its own Mobile Banner Image (.has-cat-bg-m) keeps that image instead. */
@media (max-width: 760px) {
  .about-main .pagehead.has-banner.banner-about:not(.team-hero):not(.has-cat-bg-m) {
    min-height: 0;
    padding-top: calc(var(--hdr, 76px) + 100vw * 800 / 2560 - 18px) !important;
    padding-bottom: 26px !important;
    background-color: #061333;
    background-image: linear-gradient(0deg, #061333 0%, #061333 34%, rgba(6, 19, 51, .55) 50%, rgba(6, 19, 51, 0) 66%), var(--hero-bg, url("../img/about-banner.jpg")) !important;
    background-size: 100% 100%, 100% auto !important;
    background-position: 0 0, 0 var(--hdr, 76px) !important;
    background-repeat: no-repeat !important
  }

  [dir="rtl"] .about-main .pagehead.has-banner.banner-about:not(.team-hero):not(.has-cat-bg-m)::before {
    content: none
  }
}

/* ---------- Banner video (About page "Banner Video" box) ----------
   The video replaces the banner photo; .pagehead__shade gives the same shading
   so the title stays readable. Without a video nothing here applies. */
.about-main .pagehead.has-banner.banner-about.has-video:not(.team-hero):not(.has-cat-bg-m) {
  background-image: none !important;
  background-color: #061333
}

.about-main .pagehead.has-video::before {
  content: none !important
}

.about-main .pagehead__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none
}

.about-main .pagehead__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(1, 13, 40, .28) 0%, rgba(1, 13, 40, .1) 45%, rgba(1, 13, 40, .58) 100%), linear-gradient(90deg, rgba(1, 13, 40, .66) 0%, rgba(1, 13, 40, .28) 46%, rgba(1, 13, 40, .04) 76%)
}

/* Arabic: title on the right, so the darker side moves right (the video itself is not mirrored) */
[dir="rtl"] .about-main .pagehead__shade {
  transform: scaleX(-1)
}

/* Phones: video strip under the header, same height as the photo strip (no extra height),
   title below it on navy. A landscape video is cropped to fit. */
@media (max-width: 760px) {
  .about-main .pagehead__video,
  .about-main .pagehead__shade {
    inset: var(--hdr, 76px) 0 auto;
    height: calc(100vw * 800 / 2560)
  }

  .about-main .pagehead__shade,
  [dir="rtl"] .about-main .pagehead__shade {
    transform: none;
    background-image: linear-gradient(0deg, #061333 0%, rgba(6, 19, 51, .55) 22%, rgba(6, 19, 51, 0) 50%)
  }
}
