/* ==========================================================================
   ZAAD PRIME VISION — Page-level sections
   Loaded after app.css. Each block maps to one band in the design mockups.
   ========================================================================== */

/* ------------------------------------------------------- Home: hero ---- */
.hero--home{min-height:560px}
.hero--home .hero__media{inset-inline-start:34%}
.hero--home .hero__scrim{
  background:linear-gradient(90deg,#fff 0 38%,rgba(255,255,255,.92) 47%,rgba(255,255,255,0) 66%);
}
.hero--home .hero__inner{padding:74px 0 54px}
.hero__features{
  display:flex;gap:34px;max-width:560px;margin-top:44px;padding-top:26px;
  border-top:1px solid var(--line);
}
.hero__features h4{font-size:12.5px;line-height:1.3;margin-top:9px;max-width:96px}
.hero__features .ico{color:var(--ink)}

/* ------------------------------------------- Home: featured projects --- */
.featured-band{position:relative;overflow:hidden;isolation:isolate}
.featured-band__media{position:absolute;inset:0;inset-inline-start:38%;z-index:0}
.featured-band__media img{width:100%;height:100%;object-fit:cover}
.featured-band::after{
  content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,var(--navy-900) 0 36%,rgba(1,26,45,.55) 56%,rgba(1,26,45,.1) 78%);
}
.featured-band__inner{
  position:relative;z-index:3;padding:72px 0;min-height:420px;
  display:flex;align-items:flex-end;gap:40px;
}
.featured-band__copy{max-width:430px;margin-inline-end:auto}
.slider-dots{display:flex;align-items:center;gap:16px;margin-top:40px;color:rgba(255,255,255,.75)}
.slider-dots b{font-size:13px;font-weight:700;color:#fff}
.slider-dots__rail{width:84px;height:1px;background:rgba(255,255,255,.4)}
.slider-dots button{width:34px;height:34px;color:#fff;display:inline-flex;align-items:center;justify-content:center}
.slider-dots button svg{width:17px;height:17px}
.project-pill{background:rgba(6,34,56,.92);padding:22px 24px;max-width:400px;flex:none;border-radius:2px}
.project-pill h3{font-size:19px;color:#fff;margin-bottom:14px;line-height:1.28}
.project-pill__meta{display:flex;align-items:center;gap:10px;font-size:11.5px;color:rgba(255,255,255,.72)}
.project-pill__meta .arrow-btn{margin-inline-start:auto;color:var(--orange-bright)}

/* ------------------------------------------------- Home: approach ------ */
.approach{display:grid;grid-template-columns:.85fr 1.6fr;gap:56px;align-items:center}
.approach__intro p{font-size:14px}

/* ---------------------------------------------- Home: why / stats band - */
.why-band{position:relative;overflow:hidden;isolation:isolate}
.why-band__media{position:absolute;inset:0;inset-inline-start:40%;z-index:0;background-size:cover;background-position:center}
.why-band__scrim{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,var(--navy-900) 0 40%,rgba(1,26,45,.9) 56%,rgba(1,26,45,.62) 100%);
}
.why-band__inner{position:relative;z-index:3;display:flex;align-items:center;gap:48px;padding:66px 0}
.why-band__copy{max-width:430px}
.why-band__stats{margin-inline-start:auto}
.why-band__stats .stats__item b{font-size:34px}

/* ------------------------------------------------- About: hero -------- */
.hero--about{min-height:520px}
.hero--about .hero__media{inset-inline-start:34%}
.hero--about .hero__scrim{
  background:linear-gradient(90deg,var(--navy-900) 0 32%,rgba(1,26,45,.82) 48%,rgba(1,26,45,.25) 72%);
}
.hero--about .hero__inner{padding:62px 0 0}
.hero--about .hero__footer{margin-top:52px}

/* ------------------------------------------------- About: presence ---- */
.presence{display:grid;grid-template-columns:1fr 1.25fr;align-items:stretch}
.presence__media{position:relative;overflow:hidden;min-height:370px;isolation:isolate}
.presence__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.presence__body{padding:56px 0 56px 56px}
.presence__row{display:flex;gap:40px;align-items:flex-start;margin-bottom:22px}
.presence__icons{display:flex;gap:30px;flex:none}
.presence__icons div{text-align:center;max-width:94px;padding-inline:14px;position:relative}
.presence__icons div+div::before{content:"";position:absolute;inset-inline-start:-15px;top:4px;bottom:4px;width:1px;background:var(--line)}
.presence__icons .ico{margin:0 auto 10px;color:var(--ink)}
.presence__icons span{font-size:11.5px;line-height:1.35;display:block;color:var(--ink);font-weight:600}

/* ------------------------------------------------ About: leadership --- */
.leadership{display:grid;grid-template-columns:.95fr 2.5fr 1.1fr;gap:26px;align-items:stretch}
.leadership__people{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;align-items:start}
.person{position:relative;isolation:isolate}
.person__media{aspect-ratio:3/3.4;overflow:hidden}
.person__media img{width:100%;height:100%;object-fit:cover}
.person__card{
  position:absolute;z-index:2;inset-inline:12px;bottom:14px;background:#fff;
  border:1px solid var(--line-soft);padding:12px 14px;box-shadow:var(--shadow-card);
}
.person__card h4{font-size:13px;display:flex;align-items:center;gap:9px;margin-bottom:5px}
.person__card svg{width:16px;height:16px;color:var(--orange);flex:none}
.person__card p{font-size:11.5px;line-height:1.45;color:var(--body-soft)}

/* ----------------------------------------------- Services: hero ------- */
.hero--services{min-height:420px;background:var(--bg-soft)}
.hero--services .hero__media{inset-inline-start:42%}
.hero--services .hero__scrim{
  background:linear-gradient(90deg,var(--bg-soft) 0 40%,rgba(249,249,249,.9) 50%,rgba(249,249,249,0) 68%);
}
.hero--services .hero__copy{max-width:430px}

/* The featured band bleeds its photo to the viewport edge while the copy
   column stays aligned with the 1180px content grid. */
.feature__body{padding-block:70px;padding-inline:var(--wrap-edge) 48px}

/* ----------------------------------------------- Projects: hero ------- */
/* Wider copy column than the other heroes, so the blades move right. */
.hero--projects{min-height:430px}
.hero--projects .hero__media{inset-inline-start:28%}
.hero--projects .hero__scrim{
  background:linear-gradient(90deg,var(--navy-900) 0 30%,rgba(1,26,45,.8) 48%,rgba(1,26,45,.2) 76%);
}
.hero--projects .hero__copy{max-width:620px}
.hero--projects .hero__copy p{max-width:470px}
.hero--projects .diag .b-navy{inset-inline-start:62%;width:150px}
.hero--projects .diag .b-navy-soft{inset-inline-start:75%;width:34px}
.hero--projects .diag .b-orange{inset-inline-start:79%;width:48px}
.hero--projects .diag .b-orange-soft{inset-inline-start:84%;width:13px}

/* ------------------------------------------ Project detail: hero ------ */
.hero--detail{min-height:400px}
.hero--detail .hero__scrim{
  background:linear-gradient(90deg,var(--navy-900) 0 22%,rgba(1,26,45,.78) 46%,rgba(1,26,45,.3) 80%);
}
.hero--detail .hero__inner{padding:40px 0 34px}
.chipbar{
  display:flex;flex-wrap:wrap;background:rgba(1,26,45,.9);border-radius:2px;
  margin-top:30px;margin-inline-start:auto;width:fit-content;
}
.chipbar div{display:flex;align-items:center;gap:10px;padding:14px 20px;border-inline-end:1px solid rgba(255,255,255,.14)}
.chipbar div:last-child{border-inline-end:0}
.chipbar svg{width:18px;height:18px;color:#fff;flex:none;stroke-width:1.6}
.chipbar b{display:block;font-size:11.5px;color:#fff;font-weight:700}
.chipbar span{display:block;font-size:11px;color:rgba(255,255,255,.62)}

/* --------------------------------- Project detail: objectives band ---- */
.objectives{position:relative;overflow:hidden;isolation:isolate}
.objectives__media{position:absolute;inset:0;inset-inline-start:46%;z-index:0}
.objectives__media img{width:100%;height:100%;object-fit:cover}
.objectives::after{
  content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,var(--navy-900) 0 44%,rgba(1,26,45,.5) 62%,rgba(1,26,45,0) 80%);
}
.objectives__inner{position:relative;z-index:3;padding:58px 0}
.objectives__copy{max-width:560px}

/* ----------------------------------------- Project detail: scope ------ */
.scope{display:grid;grid-template-columns:repeat(5,1fr)}
.scope__item{padding-inline:26px;position:relative}
.scope__item:first-child{padding-inline-start:0}
.scope__item+.scope__item::before{content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:1px;background:var(--line)}
.scope__item .ico{margin-bottom:16px}
.scope__item h4{font-size:13.5px;margin-bottom:7px}
.scope__item p{font-size:12px;line-height:1.6;color:var(--body-soft)}

/* ------------------------------------------- Contact / humanitarian --- */
.contact-grid{display:grid;grid-template-columns:1.3fr .85fr;gap:52px;align-items:start}
.contact-card{background:var(--bg-card);border:1px solid var(--line-soft);padding:28px;border-radius:var(--radius)}
.contact-card h4{font-size:15px;margin-bottom:18px}
.contact-card li{display:flex;gap:12px;padding:11px 0;font-size:13px;border-bottom:1px solid var(--line-soft)}
.contact-card li:last-child{border-bottom:0}
.contact-card svg{width:18px;height:18px;color:var(--orange);flex:none;margin-top:2px}
.contact-card b{display:block;color:var(--ink);font-size:12.5px}
/* a dialable number or address reads as part of the row, not as a link,
   until the pointer is on it */
.contact-card a{color:inherit;text-decoration:none;border-bottom:1px solid transparent}
.contact-card a:hover{color:var(--orange);border-bottom-color:currentColor}

/* ------------------------------------------------------- Responsive --- */
@media (max-width:1100px){
  .approach,.presence,.contact-grid{grid-template-columns:1fr}
  .leadership{grid-template-columns:1fr}
  .scope{grid-template-columns:repeat(3,1fr);gap:28px 0}
  .scope__item{padding-inline:20px}
  .presence__body{padding:44px 0}
}
@media (max-width:900px){
  .hero--home .hero__media,.hero--about .hero__media,.hero--services .hero__media,
  .hero--projects .hero__media,.featured-band__media,.why-band__media,.objectives__media{inset-inline-start:0}
  .hero--home .hero__scrim{background:linear-gradient(180deg,rgba(255,255,255,.96) 0 62%,rgba(255,255,255,.82) 100%)}
  .hero--about .hero__scrim,.hero--projects .hero__scrim,.hero--detail .hero__scrim{background:rgba(1,26,45,.86)}
  .hero--services .hero__scrim{background:rgba(249,249,249,.93)}
  .featured-band::after,.objectives::after{background:rgba(1,26,45,.88)}
  .why-band__scrim{background:rgba(1,26,45,.9)}
  .featured-band__inner,.why-band__inner{flex-direction:column;align-items:flex-start}
  .why-band__stats{margin-inline-start:0}
  .chipbar{margin-inline-start:0;width:100%}
  .leadership__people{grid-template-columns:1fr}
  .hero__features{flex-wrap:wrap;gap:20px}
  .project-pill{max-width:100%}
}
@media (max-width:640px){
  .scope{grid-template-columns:1fr;gap:26px}
  .scope__item{padding-inline:0}
  .scope__item+.scope__item::before{display:none}
  .presence__icons{flex-wrap:wrap}
}

/* --------------------------------------------- Home: hero slideshow --- */
/* The slides stack exactly where the single hero image used to sit, so the
   layout is unchanged; only the picture behind the copy cross-fades. */
.hero__slides{position:absolute;inset:0;z-index:0}
.hero__slides .hero__media{
  position:absolute;inset:0;
  opacity:0;
  transition:opacity 1.1s ease-in-out;
}
.hero__slides .hero__media.is-active{opacity:1}
.hero--home .hero__slides .hero__media{inset-inline-start:34%}

@media (max-width:900px){
  .hero--home .hero__slides .hero__media{inset-inline-start:0}
}

/* A visitor who asks for less motion gets the first slide and nothing else. */
@media (prefers-reduced-motion:reduce){
  .hero__slides .hero__media{transition:none}
}

/* ------------------------------------------- Home: industry tiles ----- */
/* Everything added here is invisible at rest, so the strip still matches the
   approved design exactly; the motion only appears on hover and on arrival. */

.tiles{--tile-ease:cubic-bezier(.22,.61,.36,1)}

.tile{transition:opacity .4s var(--tile-ease),filter .4s var(--tile-ease)}
.tile img{transition:transform .7s var(--tile-ease)}

/* Hovering one tile pulls focus to it and settles the rest back. */
.tiles:hover .tile,
.tiles:focus-within .tile{opacity:.55;filter:saturate(.65)}
.tiles .tile:hover,
.tiles .tile:focus{opacity:1;filter:none}
.tile:hover img,
.tile:focus img{transform:scale(1.07)}

/* The scrim deepens to the brand navy under the pointer. */
.tile::after{transition:background .45s var(--tile-ease)}
.tile:hover::after,
.tile:focus::after{
  background:linear-gradient(180deg,rgba(1,26,45,.1) 0%,rgba(1,26,45,.55) 45%,rgba(1,26,45,.95) 100%);
}

/* Label lifts; its icon takes the brand colour. */
.tile__label{transition:transform .45s var(--tile-ease)}
.tile:hover .tile__label,
.tile:focus .tile__label{transform:translateY(-6px)}
.tile__label svg{transition:color .35s var(--tile-ease),transform .45s var(--tile-ease)}
.tile:hover .tile__label svg,
.tile:focus .tile__label svg{color:var(--orange-bright);transform:translateY(-2px)}

/* A rule draws itself under the title. */
/* Absolutely placed so it adds no height — the label must not shift. */
.tile__rule{
  position:absolute;inset-inline-start:0;bottom:-11px;
  height:2px;width:0;background:var(--orange);
  transition:width .5s var(--tile-ease);
}
.tile:hover .tile__rule,
.tile:focus .tile__rule{width:34px}

/* And an arrow fades in at the far corner. */
.tile__go{
  position:absolute;z-index:2;inset-inline-end:14px;top:14px;
  width:30px;height:30px;border-radius:50%;
  background:var(--orange);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;
  opacity:0;transform:translateY(-6px) scale(.85);
  transition:opacity .35s var(--tile-ease),transform .35s var(--tile-ease);
}
.tile__go svg{width:15px;height:15px}
.tile:hover .tile__go,
.tile:focus .tile__go{opacity:1;transform:none}

/* Arrival: the strip deals itself in as it enters the viewport.
   The hidden state is applied by script (`is-armed`), never by the stylesheet,
   so a visitor whose JavaScript fails still sees the tiles. */
.tiles[data-reveal].is-armed .tile{opacity:0;transform:translateY(26px)}
.tiles[data-reveal].is-armed.is-in .tile{
  opacity:1;transform:none;
  transition:opacity .6s var(--tile-ease) var(--tile-delay,0ms),
             transform .6s var(--tile-ease) var(--tile-delay,0ms);
}
/* Once revealed, hovering may dim it again — that rule wins by coming later. */
.tiles[data-reveal].is-armed.is-in:hover .tile,
.tiles[data-reveal].is-armed.is-in:focus-within .tile{opacity:.55}
.tiles[data-reveal].is-armed.is-in .tile:hover,
.tiles[data-reveal].is-armed.is-in .tile:focus{opacity:1}

@media (prefers-reduced-motion:reduce){
  .tiles[data-reveal].is-armed .tile,
  .tiles[data-reveal].is-armed.is-in .tile{opacity:1;transform:none;transition:none}
  .tiles:hover .tile,
  .tiles[data-reveal].is-armed.is-in:hover .tile{opacity:1;filter:none}
  .tile img,.tile__label,.tile__label svg,.tile__rule,.tile__go,.tile::after{transition:none}
}
