/* =========================================================
   Square Arabia Industrial Solution — Design Tokens
   ========================================================= */
:root{
  --ink:        #17130f;
  --ink-soft:   #2a231e;
  --maroon:     #7c1f2b;
  --maroon-2:   #9c2734;
  --maroon-deep:#4a0f18;
  --steel:      #21262b;
  --steel-2:    #2c3238;
  --sand:       #eee7d7;
  --sand-2:     #e4dac4;
  --paper:      #fbf8f2;
  --gold:       #b9843a;
  --white:      #ffffff;
  --line:       rgba(23,19,15,0.12);
  --line-onDark:rgba(255,255,255,0.14);

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --shell: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

html, body{ max-width:100%; overflow-x:hidden; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
a, button{ touch-action:manipulation; }
button{ -webkit-appearance:none; appearance:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-family:var(--font-display); font-weight:600; letter-spacing:0.01em; }
p{ margin:0 0 1em; }
p:last-child{ margin-bottom:0; }

:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; }

.shell{
  max-width:var(--shell);
  margin:0 auto;
  padding:0 24px;
      width: 100%;
    box-sizing: border-box;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--ink); color:var(--white); padding:12px 20px; z-index:999;
}
.skip-link:focus{ left:16px; top:16px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:500; letter-spacing:0.06em; text-transform:uppercase;
  font-size:0.82rem;
  padding:15px 30px;
  border:1.5px solid transparent;
  border-radius:var(--radius);
  cursor:pointer;
  transition:transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary{ background:var(--maroon); color:var(--white); }
.btn--primary:hover{ background:var(--maroon-2); transform:translateY(-2px); }
.btn--ghost{ border-color:var(--line-onDark); color:inherit; }
.btn--ghost:hover{ border-color:var(--maroon); color:var(--maroon); transform:translateY(-2px); }
.btn--block{ width:100%; }

/* ---------- Eyebrow / Section heads ---------- */
.eyebrow{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:0.78rem; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--maroon); margin:0 0 14px;
}
.eyebrow--onDark{ color:var(--gold); }
.eyebrow__diamond{
  width:9px; height:9px; background:currentColor; transform:rotate(45deg); flex:none;
}
.section-title{
  font-size:clamp(1.9rem, 3.2vw, 2.7rem);
  line-height:1.15;
  margin:0 0 18px;
  color:var(--ink);
}
.section-title--onDark{ color:var(--white); }
.section-lede{ max-width:640px; font-size:1.05rem; color:var(--ink-soft); }
.section-head{ max-width:760px; margin:0 0 48px; }
.section-head--light .section-title{ margin-bottom:0; }

/* =========================================================
   Topbar + Header
   ========================================================= */
.topbar{
  background:var(--ink); color:rgba(255,255,255,0.75);
  font-family:var(--font-mono); font-size:0.74rem; letter-spacing:0.04em;
}
.topbar__row{ display:flex; justify-content:space-between; align-items:center; padding:9px 24px; gap:16px; flex-wrap:wrap; }
.topbar__info{ display:flex; align-items:center; gap:10px; }
.topbar__info a:hover{ color:var(--gold); }
.topbar__sep{ opacity:0.4; }
.topbar__info--right{ color:rgba(255,255,255,0.5); }

.site-header{
  /* position:sticky; */ position: fixed; left: 0; width: 100%;
   top:0; z-index:100;
  background:rgba(251,248,242,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

/* .site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    background: rgba(251, 248, 242, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--line);
} */
.header__row{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; gap:24px; }
.brand__logo{ height:56px; width:auto; }

.nav__mobile-head{ display:none; }
.nav__list{ display:flex; gap:34px; }
.nav__list a{
  font-family:var(--font-display); font-weight:500; font-size:0.86rem; letter-spacing:0.04em; text-transform:uppercase;
  position:relative; padding:6px 0;
}
.nav__list a::after{
  content:''; position:absolute; left:0; right:100%; bottom:0; height:2px; background:var(--maroon);
  transition:right .25s var(--ease);
}
.nav__list a:hover::after{ right:0; }

.header__actions{ display:flex; align-items:center; gap:18px; }
.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:42px; height:42px; border:1px solid var(--line); background:none; border-radius:var(--radius); cursor:pointer;
}
.nav-toggle span{ width:20px; height:2px; background:var(--ink); margin:0 auto; }

/* =========================================================
   Hero — full-bleed slider
   ========================================================= */
.hero{
  position:relative;
  background:var(--ink);
  color:var(--white);
}

.hero-slider{
  position:relative;
  height:min(86vh, 820px);
  min-height:560px;
  overflow:hidden;
}
.hero-slider__track{ position:relative; width:100%; height:100%; }

.hero-slide{
  position:absolute; inset:0;
  opacity:0; visibility:hidden;
  transition:opacity 1s var(--ease);
}
.hero-slide.is-active{ opacity:1; visibility:visible; }
.hero-slide__bg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.hero-slide__scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(15,12,10,0.82) 0%, rgba(15,12,10,0.5) 46%, rgba(15,12,10,0.22) 75%),
    linear-gradient(0deg, rgba(15,12,10,0.55), transparent 42%);
}
.hero-slide__inner{
  position:relative; z-index:1;
  height:100%;
  display:flex; flex-direction:column; justify-content:center;
  padding-top:40px;
}
.hero-slide__title{
  font-size:clamp(2.3rem, 4.6vw, 3.9rem);
  line-height:1.08;
  margin-bottom:22px;
  max-width:760px;
}
.hero-slide__lede{ max-width:520px; color:rgba(255,255,255,0.78); font-size:1.05rem; margin-bottom:34px; }
.hero-slide__cta{ display:flex; gap:16px; flex-wrap:wrap; }
.hero .btn--ghost{ color:var(--white); }

.hero-slider__arrow{
  position:absolute; top:50%; translate:0 -50%;
  width:56px; height:56px; border-radius:50%;
  background:rgba(23,19,15,0.4); color:var(--white);
  border:1px solid rgba(255,255,255,0.35);
  font-size:1.6rem; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
  z-index:3;
  backdrop-filter:blur(4px);
}
.hero-slider__arrow:hover{ background:var(--maroon); border-color:var(--maroon); transform:translateY(-50%) scale(1.06); }
.hero-slider__arrow--prev{ left:28px; }
.hero-slider__arrow--next{ right:28px; }

.hero-slider__dots{
  position:absolute; left:0; right:0; bottom:28px; z-index:3;
  display:flex; justify-content:center; gap:10px;
}
.hero-slider__dots button{
  width:34px; height:3px; border-radius:2px; border:none;
  background:rgba(255,255,255,0.35); cursor:pointer; padding:0;
  transition:background .25s var(--ease), transform .2s var(--ease);
}
.hero-slider__dots button.is-active{ background:var(--gold); }

.hero__stats{ background:var(--steel); border-top:1px solid var(--line-onDark); margin:0; }
.hero__stats-row{
  display:grid; grid-template-columns:repeat(4,auto); gap:32px;
  padding:26px 24px;
}
.hero__stats dt{
  font-family:var(--font-mono); font-size:1.55rem; font-weight:600; color:var(--gold); margin:0;
}
.hero__stats dd{
  margin:4px 0 0; font-size:0.76rem; letter-spacing:0.03em; color:rgba(255,255,255,0.6);
}

/* =========================================================
   About
   ========================================================= */
.about{ padding:110px 0 90px; }
.about__row{
  display:grid; grid-template-columns:minmax(0,420px) 1fr; gap:64px; align-items:center; margin-bottom:70px;
}
.about__media{
  position:relative; border-radius:var(--radius); overflow:visible;
}
.about__media img{
  width:100%; aspect-ratio:4/3.4; object-fit:cover; border-radius:var(--radius);
}
.about__badge{
  position:absolute; right:-18px; bottom:-18px;
  width:96px; height:96px;
  background:var(--maroon); color:var(--white);
  transform:rotate(45deg);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 20px 40px -16px rgba(23,19,15,0.5);
}
.about__badge::before{ content:''; position:absolute; inset:10px; border:1px solid rgba(255,255,255,0.35); }
.about__badge span:last-child{
  transform:rotate(-45deg);
  font-family:var(--font-display); text-transform:uppercase; font-size:0.68rem; letter-spacing:0.06em;
  text-align:center; line-height:1.3;
}
.about__copy p{ color:var(--ink-soft); font-size:1.02rem; }

.pillars{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.pillar{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:36px 30px; position:relative;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pillar:hover{ transform:translateY(-6px); box-shadow:0 24px 48px -28px rgba(23,19,15,0.35); }
.pillar__diamond{
  display:block; width:16px; height:16px; background:var(--maroon); transform:rotate(45deg); margin-bottom:22px;
}
.pillar h3{ font-size:1.2rem; margin-bottom:12px; }
.pillar p{ color:var(--ink-soft); font-size:0.95rem; }

/* =========================================================
   Services — horizontal segmented tabs
   ========================================================= */
.services{ padding:100px 0; background:var(--sand); }

.tabs__nav{
  display:flex; flex-wrap:wrap; justify-content:center; gap:6px;
  background:var(--paper); border:1px solid var(--line); border-radius:999px;
  padding:8px; margin:0 auto 40px; max-width:fit-content;
}
.tabs__btn{
  display:flex; align-items:center; gap:10px; text-align:left;
  background:none; border:none; cursor:pointer;
  padding:11px 22px 11px 11px; border-radius:999px;
  color:var(--ink-soft);
  transition:background .25s var(--ease), color .25s var(--ease);
}
.tabs__btn.is-active{ background:var(--maroon); color:var(--white); box-shadow:0 16px 30px -16px rgba(124,31,43,0.6); }
@media (hover:hover) and (pointer:fine){
  .tabs__btn:hover{ background:var(--sand); color:var(--ink); }
}

.tabs__btn-icon{
  flex:none; width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--sand-2); color:var(--maroon);
  transition:background .25s var(--ease), color .25s var(--ease);
}
.tabs__btn-icon svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:8; }
.tabs__btn.is-active .tabs__btn-icon{ background:rgba(255,255,255,0.18); color:var(--white); }

.tabs__btn-text{
  font-family:var(--font-display); font-size:0.86rem; letter-spacing:0.02em; text-transform:uppercase;
}
.tabs__btn-index, .tabs__btn-arrow{ display:none; }

.tabs__panels{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:0 40px 80px -50px rgba(23,19,15,0.3);
  padding:48px;
}
.tabs__panel{
  display:grid; grid-template-columns:minmax(0,380px) 1fr; gap:40px; align-items:start;
}
.tabs__panel[hidden]{ display:none; }
.tabs__media{
  border-radius:var(--radius); overflow:hidden;
  aspect-ratio:4/3.3;
  background:var(--ink);
}
.tabs__media img{ width:100%; height:100%; object-fit:cover; }
.tabs__media--icon{
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--maroon-deep), var(--maroon));
}
.tabs__media--icon svg{ width:38%; height:38%; color:var(--white); fill:none; stroke:currentColor; }

.tabs__content h3{ font-size:1.5rem; margin-bottom:16px; }
.tabs__content p{ color:var(--ink-soft); font-size:1rem; }
.tabs__quote{
  font-family:var(--font-display); font-style:italic; font-size:1.05rem;
  color:var(--maroon); border-left:3px solid var(--maroon); padding-left:16px; margin:20px 0;
}
.tabs__label{
  /* font-family:var(--font-mono); */ font-family: var(--font-display);
   font-size:0.74rem; text-transform:uppercase; letter-spacing:0.1em;
  color:var(--gold); margin:24px 0 12px;
}
.tabs__list{ display:flex; flex-direction:column; gap:8px; }
.tabs__list li{
  font-size:0.94rem; color:var(--ink-soft); padding-left:18px; position:relative;
}
.tabs__list li::before{
  content:''; position:absolute; left:0; top:8px; width:6px; height:6px; background:var(--maroon); transform:rotate(45deg);
}
.tabs__list--wrap{
  flex-direction:row; flex-wrap:wrap; gap:10px 18px;
}
.tabs__list--wrap li{ padding-left:16px; }

.tabs__panel .manpower-grid{ margin-top:28px; }

/* =========================================================
   Quality & Safety
   ========================================================= */
.quality{ padding:100px 0; background:var(--ink); color:var(--white); }
.policy-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; margin-bottom:56px; }
.policy-card{
  border:1px solid var(--line-onDark); border-radius:var(--radius); padding:34px;
  background:rgba(255,255,255,0.03);
}
.policy-card h3{ color:var(--gold); font-size:1.15rem; margin-bottom:14px; }
.policy-card p{ color:rgba(255,255,255,0.72); font-size:0.96rem; }

.cert-strip{ display:flex; flex-wrap:wrap; gap:20px; }
.cert-badge{
  display:flex; align-items:center; gap:16px;
  border:1px solid var(--line-onDark); border-radius:var(--radius);
  padding:18px 24px; flex:1 1 260px;
}
.cert-badge__diamond{
  width:44px; height:44px; flex:none;
  background:var(--maroon); transform:rotate(45deg);
  position:relative;
}
.cert-badge__diamond::after{
  content:attr(aria-hidden); position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  transform:rotate(-45deg); font-family:var(--font-mono); font-size:0.66rem; color:var(--white);
}
.cert-badge strong{ display:block; font-family:var(--font-display); font-size:0.95rem; letter-spacing:0.02em; }
.cert-badge span{ display:block; font-size:0.8rem; color:rgba(255,255,255,0.55); margin-top:2px; }
.cert-badge--image img{
  width:52px; height:52px; flex:none; object-fit:contain;
  background:var(--white); border-radius:50%; padding:4px;
}

/* =========================================================
   Manpower (nested inside the Services tabs)
   ========================================================= */
.manpower-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:34px 28px; }
.manpower-group h4{
  font-size:0.86rem; text-transform:uppercase; letter-spacing:0.03em;
  color:var(--maroon); margin-bottom:14px;
  padding-bottom:10px; border-bottom:2px solid var(--maroon);
  display:inline-block;
}
.manpower-group ul li{
  font-size:0.9rem; color:var(--ink-soft); padding:6px 0 6px 16px; position:relative;
}
.manpower-group ul li::before{
  content:''; position:absolute; left:0; top:14px; width:6px; height:6px; background:var(--gold); transform:rotate(45deg);
}

/* =========================================================
   Clients
   ========================================================= */
.clients{ padding:100px 0; background:var(--paper); border-bottom:1px solid var(--line); overflow:hidden; }

.client-marquee{
  position:relative;
  display:flex;
  width:100%;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.client-marquee__track{
  display:flex; flex:none; align-items:center;
  gap:1px;
  animation:marquee 32s linear infinite;
}
.client-marquee:hover .client-marquee__track{ animation-play-state:paused; }
.client-marquee__track li{
  flex:none; width:230px;
  background:var(--white); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  /* padding:32px 28px; */ padding: 15px;
   min-height:130px;
  margin-right:-1px;
}
.client-marquee__track img{
  max-width:100%;  width:auto; max-height:80px;
  /* max-height:60px; filter:grayscale(1) contrast(0.9); opacity:0.72; */
  transition:filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.client-marquee__track li:hover img{
  filter:none; opacity:1; transform:scale(1.05);
}

@keyframes marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-100%); }
}
@media (prefers-reduced-motion: reduce){
  .client-marquee__track{ animation:none; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact{ padding:110px 0; background:linear-gradient(160deg, var(--maroon-deep), var(--maroon) 60%, var(--maroon-2)); color:var(--white); }
.contact__row{ display:grid; grid-template-columns:1fr 1fr; gap:64px; }
.contact__copy p{ color:rgba(255,255,255,0.82); font-size:1.02rem; margin-bottom:30px; max-width:460px; }
/* .contact-list{ display:flex; flex-direction:column; gap:18px; }
.contact-list li{ display:flex; flex-direction:column; gap:4px; } */
/* FIX 1: Prevent text strings from overflowing their flex wrappers */
.contact-list{ display:flex; flex-direction:column; gap:18px; }
.contact-list li{ display:flex; flex-direction:column; gap:4px; }
.contact-list li span, .contact-list li a {
  word-break: break-word;
  overflow-wrap: break-word;
}
.contact-list__label{
  font-family:var(--font-mono); font-size:0.72rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--gold);
}
.contact-list a:hover{ text-decoration:underline; }

.contact__form{
  background:var(--paper); color:var(--ink); border-radius:var(--radius);
  padding:38px; box-shadow:0 40px 80px -30px rgba(0,0,0,0.5);
}
.contact__form h3{ font-size:1.3rem; margin-bottom:22px; }
.form-row{ margin-bottom:18px; display:flex; flex-direction:column; gap:6px; }
.form-row label{ font-size:0.8rem; font-weight:600; color:var(--ink-soft); }
.form-row input, .form-row select, .form-row textarea{
  font-family:var(--font-body); font-size:0.95rem;
  border:1px solid var(--line); border-radius:var(--radius); padding:11px 13px;
  background:var(--white); color:var(--ink);
  transition:border-color .2s var(--ease);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  border-color:var(--maroon); outline:none;
}
.form-note{ margin-top:14px; font-size:0.86rem; color:var(--maroon); min-height:1.2em; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background:var(--ink); color:rgba(255,255,255,0.65); padding:70px 0 0; }
.footer__row{ display:grid; grid-template-columns:1.3fr 2fr; gap:56px; padding-bottom:56px; border-bottom:1px solid var(--line-onDark); }
.footer__logo{ height:50px; width:auto; margin-bottom:18px; filter:brightness(0) invert(1); opacity:0.92; }
.footer__brand p{ font-size:0.9rem; max-width:320px; color:rgba(255,255,255,0.5); }
.footer__nav{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.footer__nav h4{ color:var(--white); font-size:0.86rem; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:16px; }
.footer__nav ul{ display:flex; flex-direction:column; gap:10px; }
.footer__nav li{ display:flex; }
.footer__nav a{ display:inline-flex; align-items:center; gap:8px; }
.footer__nav a::before{
  content:'\276F'; font-size:0.66rem; color:var(--gold);
  transition:transform .2s var(--ease);
}
.footer__nav a:hover{ color:var(--gold); }
.footer__nav a:hover::before{ transform:translateX(3px); }
.footer__bottom{
  padding:24px; text-align:center; font-size:0.8rem; color:rgba(255,255,255,0.4);
  display:flex; flex-wrap:wrap; justify-content:center; gap:6px 18px;
}
.footer__credit a{ color:rgba(255,255,255,0.6); transition:color .2s var(--ease); }
.footer__credit a:hover{ color:var(--gold); }

.back-to-top{
  position:fixed; right:24px; bottom:94px; z-index:90;
  width:46px; height:46px; border-radius:50%;
  background:var(--maroon); color:var(--white);
  display:flex; align-items:center; justify-content:center; font-size:1.2rem;
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
  box-shadow:0 12px 30px -10px rgba(0,0,0,0.5);
}
.back-to-top.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background:var(--maroon-2); }

.whatsapp-btn{
  position:fixed; right:24px; bottom:24px; z-index:90;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; color:var(--white);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 14px 32px -10px rgba(23,19,15,0.5);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.whatsapp-btn svg{ width:30px; height:30px; }
.whatsapp-btn:hover{ transform:scale(1.08); box-shadow:0 18px 36px -8px rgba(23,19,15,0.55); }
.whatsapp-btn::before{
  content:''; position:absolute; inset:0; border-radius:50%;
  box-shadow:0 0 0 0 rgba(37,211,102,0.55);
  animation:whatsapp-pulse 2.4s ease-out infinite;
}
@keyframes whatsapp-pulse{
  0%{ box-shadow:0 0 0 0 rgba(37,211,102,0.55); }
  70%{ box-shadow:0 0 0 16px rgba(37,211,102,0); }
  100%{ box-shadow:0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce){
  .whatsapp-btn::before{ animation:none; }
}

/* =========================================================
   Scroll reveal
   ========================================================= */
[data-reveal]{
  opacity:0; transform:translateY(28px);
  transition:opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-revealed{ opacity:1; transform:translateY(0); }

/* Staggered cascade for grouped cards */
.pillars .pillar:nth-child(2){ transition-delay:.1s; }
.pillars .pillar:nth-child(3){ transition-delay:.2s; }
.policy-grid .policy-card:nth-child(2){ transition-delay:.1s; }
.cert-strip .cert-badge:nth-child(2){ transition-delay:.1s; }
.cert-strip .cert-badge:nth-child(3){ transition-delay:.2s; }
.footer__nav > div:nth-child(2){ transition-delay:.1s; }
.footer__nav > div:nth-child(3){ transition-delay:.2s; }

@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity:1; transform:none; transition:none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:1080px){
  .about__row{ grid-template-columns:1fr; }
  .about__media{ max-width:420px; margin:0 auto; }
  .tabs__panels{ padding:36px 28px; }
  .tabs__panel{ grid-template-columns:1fr; }
  .tabs__media{ max-width:420px; margin:0 auto; width:100%; }
  .manpower-grid{ grid-template-columns:repeat(2,1fr); }
  .footer__row{ grid-template-columns:1fr; }
}

@media (max-width:860px){
  .topbar__info--right{ display:none; }
  .nav{
    position:fixed; inset:0 0 0 auto; width:min(320px,80%); height:100vh;
    background:var(--paper); z-index:150;
    padding:0;
    display:flex; flex-direction:column;
    overflow-y:auto;
    transform:translateX(100%);
    visibility:hidden;
    pointer-events:none;
    transition:transform .35s var(--ease), visibility 0s linear .35s;
    box-shadow:-20px 0 60px rgba(0,0,0,0.2);
  }
  .nav.is-open{
    transform:translateX(0);
    visibility:visible;
    pointer-events:auto;
    transition:transform .35s var(--ease);
  }
  .nav__mobile-head{
    display:flex; align-items:center; justify-content:space-between;
    flex:none;
    padding:18px 20px 18px 24px;
    border-bottom:1px solid var(--line);
  }
  .nav__mobile-logo img{ height:36px; width:auto; }
  .nav__close{
    width:38px; height:38px; border-radius:50%;
    border:1px solid var(--line); background:none;
    display:flex; align-items:center; justify-content:center;
    font-size:1.5rem; line-height:1; color:var(--ink); cursor:pointer;
    transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  }
  .nav__close:hover{ background:var(--maroon); border-color:var(--maroon); color:var(--white); }
  .nav__list{ flex-direction:column; gap:26px; padding:28px 32px 32px; }
  .nav-toggle{ display:flex; }
  .header__actions .btn--primary{ display:none; }
  .pillars{ grid-template-columns:1fr; }
  .policy-grid{ grid-template-columns:1fr; }
  .contact__row{ grid-template-columns:1fr; gap:44px; }
  .hero-slider__arrow{ width:44px; height:44px; font-size:1.3rem; }
  .hero-slider__arrow--prev{ left:14px; }
  .hero-slider__arrow--next{ right:14px; }
}

@media (max-width:640px){
  .hero-slider{ height:64vh; min-height:440px; max-height:600px; }
  .hero-slide__inner{ padding-top:12px; }
  .hero-slide__title{ margin-bottom:12px; }
  .hero-slide__lede{ margin-bottom:14px; font-size:0.92rem; }
  .hero-slide__cta{ gap:10px; }
  .hero-slide__cta .btn{ padding:13px 22px; font-size:0.78rem; }
  .hero__stats-row{ grid-template-columns:repeat(2,1fr); gap:22px; padding:22px 24px; }
  .tabs__nav{ gap:4px; padding:6px; }
  .tabs__btn{ padding:9px 16px 9px 9px; }
  .tabs__btn-text{ font-size:0.78rem; }
  .manpower-grid{ grid-template-columns:1fr; }
  .footer__nav{     /* grid-template-columns:1fr 1fr;  */ grid-template-columns:1fr;    }
  .about__badge{ width:76px; height:76px; right:-10px; bottom:-10px; }
  .whatsapp-btn{ width:50px; height:50px; right:16px; bottom:16px; }
  .whatsapp-btn svg{ width:26px; height:26px; }
  .back-to-top{ width:40px; height:40px; right:16px; bottom:78px; }
  .tabs__nav{    border-radius: 0;}
}
@media (max-width: 480px) {
  .contact { padding: 60px 0; } /* Lower section tracking space slightly */
  .contact__form { padding: 24px; } /* Drop heavy padding footprint */
}

/* FIX 5: Strict rules for micro-screens (under 360px) to force zero horizontal scrolling */
@media (max-width: 360px) {
  .shell { padding: 0 14px; } /* Tighter container room */
  .contact__form { padding: 16px; } /* Shrink inner paddings further */
  
  /* Force long text segments like the Jubail office location or link strings to slice evenly */
  .contact-list li span, .contact-list li a {
    word-break: break-all !important;
    font-size: 0.92rem;
  }
  
  /* Clamp invisible reCAPTCHA tracking wrappers tight */
  .grecaptcha-badge {
    width: 100% !important;
    max-width: 100% !important;
  }
}
