
:root{--blue:#126f9a;--blue2:#2f7fa5;--navy:#071827;--navy2:#0d2638;--ink:#102337;--muted:#607080;--line:#d8e1e7;--bg:#f6f8fa;--white:#fff;--gold:#b98534;--radius:18px;--shadow:0 18px 45px rgba(7,24,39,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.container{width:min(1180px,calc(100% - 40px));margin:auto}.utility{background:var(--navy);color:#dce8ef;font-size:12px}.utility .container{display:flex;justify-content:center;gap:28px;padding:8px 0}.nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(216,225,231,.7)}.nav-inner{display:flex;align-items:center;justify-content:space-between;min-height:82px}.logo{width:172px}.menu{display:flex;align-items:center;gap:30px;font-size:14px;font-weight:600}.menu a:hover,.menu a.active{color:var(--blue)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:14px 22px;border-radius:4px;border:1px solid var(--navy);font-size:13px;font-weight:700;letter-spacing:.02em;transition:.25s}.btn.primary{background:var(--navy);color:white}.btn.primary:hover{background:var(--blue)}.btn.outline:hover{background:var(--navy);color:#fff}.hero{min-height:610px;display:grid;grid-template-columns:1fr 1.08fr;align-items:stretch;background:linear-gradient(115deg,#fff 0%,#fff 46%,#eef4f7 46%)}.hero-copy{display:flex;flex-direction:column;justify-content:center;padding:72px max(32px,calc((100vw - 1180px)/2)) 72px max(32px,calc((100vw - 1180px)/2));padding-right:55px}.eyebrow{color:var(--blue);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:20px}.hero h1{font-size:clamp(48px,5.3vw,78px);line-height:.98;letter-spacing:-.05em;margin:0 0 26px}.hero h1 span{color:var(--blue2)}.hero p{font-size:18px;color:var(--muted);max-width:590px;margin:0 0 32px}.actions{display:flex;gap:14px;flex-wrap:wrap}.hero-media{min-height:580px;background-position:center;background-size:cover;position:relative}.hero-media:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.55),transparent 22%)}.proof{background:var(--navy);color:#fff}.proof-grid{display:grid;grid-template-columns:repeat(5,1fr)}.proof-item{padding:26px 20px;border-right:1px solid rgba(255,255,255,.17)}.proof-item strong{font-size:17px;display:block}.proof-item span{font-size:12px;color:#b9cbd5}.section{padding:90px 0}.section.soft{background:var(--bg)}.section.dark{background:var(--navy);color:#fff}.section-head{display:grid;grid-template-columns:.8fr 1.2fr;gap:60px;align-items:end;margin-bottom:42px}.section h2{font-size:clamp(36px,4.2vw,58px);line-height:1.03;letter-spacing:-.04em;margin:0}.section-lead{color:var(--muted);font-size:17px}.dark .section-lead{color:#b9cbd5}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;transition:.25s}.card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.card img{height:210px;width:100%;object-fit:cover}.card-body{padding:25px}.card h3{font-size:23px;margin:0 0 12px}.card p{color:var(--muted);font-size:14px}.link{font-weight:800;font-size:12px;color:var(--blue);text-transform:uppercase;letter-spacing:.04em}.feature{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}.feature img{border-radius:var(--radius);box-shadow:var(--shadow);height:430px;width:100%;object-fit:cover}.bullets{display:grid;gap:14px;margin-top:25px}.bullet{display:flex;gap:12px}.bullet:before{content:'✓';color:var(--blue);font-weight:900}.process{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.step{padding:25px 18px;border-top:2px solid var(--blue);background:#fff;border-radius:0 0 12px 12px}.dark .step{background:rgba(255,255,255,.05)}.step b{color:var(--blue);font-size:12px}.step h4{margin:8px 0}.cta{padding:65px 0;background:linear-gradient(100deg,var(--navy),#0b3b57);color:#fff}.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:30px}.cta h2{margin:0;font-size:42px}.footer{background:#041321;color:#d9e6ed;padding:60px 0 24px}.footer-grid{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:35px}.footer h4{color:#fff;margin:0 0 14px}.footer a,.footer p{font-size:13px;color:#b9cbd5;display:block;margin:7px 0}.footer-logo{width:155px;filter:brightness(0) invert(1)}.legal{border-top:1px solid rgba(255,255,255,.15);margin-top:35px;padding-top:20px;font-size:12px;color:#94a9b5}.contact-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:35px}.form{display:grid;gap:13px}.form input,.form textarea,.form select{width:100%;border:1px solid var(--line);padding:15px;font:inherit;background:#fff}.form textarea{min-height:150px}.info-box{border:1px solid var(--line);padding:28px;border-radius:var(--radius);background:#fff}.article-list{display:grid;grid-template-columns:1.3fr repeat(2,1fr);gap:20px}.article-list .card:first-child{grid-row:span 2}.mobile-toggle{display:none;border:0;background:none;font-size:27px}
@media(max-width:900px){.utility{display:none}.menu{position:fixed;inset:82px 0 auto 0;background:white;padding:25px;display:none;flex-direction:column;align-items:flex-start;border-bottom:1px solid var(--line)}.menu.open{display:flex}.mobile-toggle{display:block}.nav .btn{display:none}.hero{grid-template-columns:1fr;background:white}.hero-copy{padding:55px 25px}.hero-media{min-height:360px;order:-1}.proof-grid{grid-template-columns:1fr 1fr}.section-head,.feature,.contact-grid{grid-template-columns:1fr}.cards{grid-template-columns:1fr 1fr}.process{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr 1fr}.article-list{grid-template-columns:1fr}.cta-inner{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.container{width:min(100% - 28px,1180px)}.hero h1{font-size:48px}.cards{grid-template-columns:1fr}.proof-grid{grid-template-columns:1fr}.proof-item{border-bottom:1px solid rgba(255,255,255,.12)}.process{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}.section{padding:65px 0}.cta h2{font-size:34px}.logo{width:145px}}

/* Contact form mail handler */
.hp-field{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.consent{display:flex;gap:.65rem;align-items:flex-start;font-size:.86rem;line-height:1.45;color:var(--muted);grid-column:1/-1}
.consent input{width:auto;margin-top:.2rem;accent-color:var(--blue)}

/* Risk Management page — approved split layout */
.risk-page .risk-hero{background:linear-gradient(115deg,#fff 0%,#fff 46%,#eef4f7 46%);min-height:610px}
.risk-page .risk-hero .hero-copy{position:relative;z-index:2;background:transparent}
.risk-page .risk-hero .hero-media{background-position:center center;background-size:cover;min-height:610px}
.risk-page .risk-hero .hero-media:after{background:linear-gradient(90deg,rgba(255,255,255,.52),transparent 18%)}
.risk-page .risk-hero h1{font-size:clamp(46px,4.35vw,68px);line-height:1.01}
.risk-page .risk-details .article-list{grid-template-columns:1.28fr repeat(3,1fr);align-items:stretch}
.risk-page .risk-details .article-list .card:first-child{grid-row:auto}
.risk-page .risk-details .article-list .card{min-height:255px}
.risk-page .risk-details .article-list .card:first-child img{height:210px}
.risk-page .risk-details .article-list .card:not(:first-child){display:flex;align-items:center}
@media(max-width:900px){.risk-page .risk-hero{grid-template-columns:1fr;background:#fff}.risk-page .risk-hero .hero-media{order:-1;min-height:390px}.risk-page .risk-details .article-list{grid-template-columns:1fr 1fr}.risk-page .risk-details .article-list .card:not(:first-child){display:block}}
@media(max-width:600px){.risk-page .risk-details .article-list{grid-template-columns:1fr}}


/* =========================================================
   AL TAAWUN PREMIUM MOTION SYSTEM v3.0
   Lightweight, accessible, mobile-friendly
   ========================================================= */

:root{
  --motion-ease:cubic-bezier(.22,1,.36,1);
  --motion-fast:240ms;
  --motion-medium:620ms;
  --motion-slow:820ms;
}

/* Navigation underline */
.menu a{
  position:relative;
  transition:color var(--motion-fast) ease;
}
.menu a::after{
  content:"";
  position:absolute;
  left:50%;
  right:50%;
  bottom:-9px;
  height:2px;
  border-radius:999px;
  background:var(--blue);
  transition:left var(--motion-fast) var(--motion-ease),
             right var(--motion-fast) var(--motion-ease);
}
.menu a:hover::after,
.menu a.active::after{
  left:0;
  right:0;
}

/* Buttons */
.btn{
  will-change:transform;
  transition:
    transform var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
}
.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(7,24,39,.13);
}
.btn:active{
  transform:translateY(0);
}

/* Cards and image zoom */
.card{
  will-change:transform;
  transition:
    transform 380ms var(--motion-ease),
    box-shadow 380ms var(--motion-ease),
    border-color 380ms ease;
}
.card img{
  transition:transform 620ms var(--motion-ease);
  will-change:transform;
}
.card:hover{
  transform:translateY(-7px);
  box-shadow:0 22px 48px rgba(7,24,39,.14);
  border-color:rgba(18,111,154,.28);
}
.card:hover img{
  transform:scale(1.035);
}
.card .link{
  display:inline-block;
  transition:transform var(--motion-fast) var(--motion-ease),
             color var(--motion-fast) ease;
}
.card:hover .link{
  transform:translateX(4px);
}

/* Supporting images */
.feature img{
  transition:
    transform 700ms var(--motion-ease),
    box-shadow 500ms var(--motion-ease);
  will-change:transform;
}
.feature:hover img{
  transform:scale(1.012);
  box-shadow:0 24px 52px rgba(7,24,39,.15);
}

/* Process and information blocks */
.step,
.info-box,
.proof-item{
  transition:
    transform 340ms var(--motion-ease),
    background-color 340ms ease,
    box-shadow 340ms ease;
}
.step:hover,
.info-box:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 34px rgba(7,24,39,.10);
}

/* Scroll reveal */
.motion-enabled .motion-reveal{
  opacity:0;
  transform:translate3d(0,20px,0);
  transition:
    opacity var(--motion-medium) var(--motion-ease),
    transform var(--motion-medium) var(--motion-ease);
  transition-delay:var(--motion-delay,0ms);
  will-change:opacity,transform;
}
.motion-enabled .motion-reveal.motion-left{
  transform:translate3d(-18px,0,0);
}
.motion-enabled .motion-reveal.motion-right{
  transform:translate3d(18px,0,0);
}
.motion-enabled .motion-reveal.is-visible{
  opacity:1;
  transform:translate3d(0,0,0);
}

/* Hero entrance */
.motion-enabled .hero-copy > *{
  opacity:0;
  transform:translate3d(0,18px,0);
  animation:taawunHeroIn 720ms var(--motion-ease) forwards;
}
.motion-enabled .hero-copy > *:nth-child(1){animation-delay:80ms}
.motion-enabled .hero-copy > *:nth-child(2){animation-delay:160ms}
.motion-enabled .hero-copy > *:nth-child(3){animation-delay:240ms}
.motion-enabled .hero-copy > *:nth-child(4){animation-delay:320ms}
.motion-enabled .hero-media{
  opacity:0;
  transform:scale(1.012);
  animation:taawunMediaIn 900ms var(--motion-ease) 120ms forwards;
  --parallax-y:0px;
  background-position:center calc(50% + var(--parallax-y));
}
@keyframes taawunHeroIn{
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes taawunMediaIn{
  to{opacity:1;transform:scale(1)}
}

/* Proof/statistics stagger */
.motion-enabled .proof-item{
  opacity:0;
  transform:translate3d(0,14px,0);
  animation:taawunProofIn 520ms var(--motion-ease) forwards;
}
.motion-enabled .proof-item:nth-child(1){animation-delay:360ms}
.motion-enabled .proof-item:nth-child(2){animation-delay:440ms}
.motion-enabled .proof-item:nth-child(3){animation-delay:520ms}
.motion-enabled .proof-item:nth-child(4){animation-delay:600ms}
.motion-enabled .proof-item:nth-child(5){animation-delay:680ms}
@keyframes taawunProofIn{
  to{opacity:1;transform:translate3d(0,0,0)}
}

/* Soft page entrance */
.motion-enabled{
  animation:taawunPageIn 280ms ease both;
}
@keyframes taawunPageIn{
  from{opacity:.01}
  to{opacity:1}
}

/* Mobile: shorter distances and no parallax */
@media(max-width:900px){
  .motion-enabled .motion-reveal{
    transform:translate3d(0,12px,0);
    transition-duration:520ms;
  }
  .motion-enabled .motion-reveal.motion-left,
  .motion-enabled .motion-reveal.motion-right{
    transform:translate3d(0,12px,0);
  }
  .motion-enabled .hero-media{
    background-position:center center !important;
  }
  .menu a::after{
    bottom:-4px;
  }
}

/* Accessibility: disable all non-essential motion */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
  .motion-enabled .motion-reveal,
  .motion-enabled .hero-copy > *,
  .motion-enabled .hero-media,
  .motion-enabled .proof-item{
    opacity:1 !important;
    transform:none !important;
  }
}


/* =========================================================
   AL TAAWUN MOBILE OPTIMISATION SYSTEM v3.1
   ========================================================= */

/* Global overflow and resilient media */
html,
body{
  max-width:100%;
  overflow-x:hidden;
}
img,
svg,
video{
  max-width:100%;
}
.card,
.step,
.info-box,
.proof-item,
.hero-copy,
.section-head > *,
.feature > *{
  min-width:0;
}
.card h3,
.card h4,
.card p,
.step h4,
.step p,
.section-head h2,
.section-lead{
  overflow-wrap:anywhere;
  word-break:normal;
}

/* Tablet */
@media(max-width:900px){
  body{
    font-size:16px;
  }

  .container{
    width:min(100% - 40px, 720px);
  }

  .nav{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,.98);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }

  .nav-inner{
    min-height:76px;
  }

  .logo{
    width:155px;
    height:auto;
  }

  .mobile-toggle{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    padding:0;
    border-radius:10px;
    font-size:25px;
    line-height:1;
  }

  .menu{
    inset:76px 0 auto 0;
    padding:20px;
    gap:0;
    box-shadow:0 20px 40px rgba(7,24,39,.12);
  }

  .menu a{
    width:100%;
    padding:14px 4px;
    border-bottom:1px solid var(--line);
  }

  .menu a:last-child{
    border-bottom:0;
  }

  /* Hero remains readable and uses a shorter image */
  .hero,
  .risk-page .risk-hero{
    grid-template-columns:1fr;
  }

  .hero-copy{
    order:1;
    padding:48px 28px 54px;
  }

  .hero-media,
  .risk-page .risk-hero .hero-media{
    order:0;
    min-height:clamp(270px,58vw,430px);
  }

  .hero h1{
    max-width:13ch;
    font-size:clamp(43px,8vw,64px);
    line-height:.98;
  }

  .hero p{
    max-width:38rem;
    font-size:17px;
    line-height:1.6;
  }

  .actions{
    flex-wrap:wrap;
    gap:12px;
  }

  .actions .btn{
    min-height:48px;
  }

  .section{
    padding:76px 0;
  }

  .section-head{
    gap:22px;
    margin-bottom:34px;
  }

  .section-head h2{
    font-size:clamp(36px,7vw,52px);
    line-height:1.03;
  }

  .section-lead{
    font-size:17px;
    line-height:1.65;
  }

  /* Override inline desktop grid declarations */
  .cards,
  .cards[style],
  .risk-page .article-list{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:20px;
  }

  .card{
    width:100%;
    border-radius:22px;
    overflow:hidden;
  }

  .card img{
    width:100%;
    height:230px;
    object-fit:cover;
  }

  .card-body{
    padding:25px 22px 28px;
  }

  .card h3{
    font-size:25px;
    line-height:1.13;
  }

  .card p{
    font-size:16px;
    line-height:1.55;
  }

  /* Process timeline becomes a clean two-column grid */
  .process,
  .process[style]{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:16px;
  }

  .step{
    padding:25px 22px;
    border-top-width:2px;
    border-radius:0 0 16px 16px;
  }

  .step h4{
    font-size:21px;
  }

  .feature{
    gap:32px;
  }

  .feature img{
    width:100%;
    max-height:500px;
    object-fit:cover;
  }

  .proof-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .footer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:36px 24px;
  }

  .cta{
    padding:62px 0;
  }

  .cta-inner{
    gap:26px;
  }
}

/* Phones */
@media(max-width:600px){
  :root{
    --mobile-gutter:20px;
  }

  .container{
    width:calc(100% - (var(--mobile-gutter) * 2));
  }

  .nav-inner{
    min-height:72px;
  }

  .logo{
    width:148px;
  }

  .menu{
    inset:72px 0 auto 0;
  }

  .hero-media,
  .risk-page .risk-hero .hero-media{
    min-height:285px;
    background-size:cover;
    background-position:center center !important;
  }

  .hero-copy{
    padding:38px var(--mobile-gutter) 48px;
  }

  .hero h1{
    max-width:none;
    font-size:clamp(39px,12vw,52px);
    line-height:1;
    letter-spacing:-.035em;
  }

  .hero p{
    font-size:16px;
  }

  .actions{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }

  .actions .btn{
    width:100%;
    justify-content:center;
    text-align:center;
  }

  .proof-grid{
    grid-template-columns:1fr;
  }

  .proof-item{
    padding:23px var(--mobile-gutter);
  }

  .section{
    padding:58px 0;
  }

  .section-head{
    margin-bottom:28px;
  }

  .section-head h2{
    font-size:clamp(34px,10.5vw,45px);
  }

  .eyebrow{
    font-size:13px;
    letter-spacing:.08em;
  }

  /* One card per row: fixes clipped 4-column service cards */
  .cards,
  .cards[style],
  .article-list,
  .risk-page .risk-details .article-list{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:20px !important;
    width:100%;
  }

  .card{
    display:block;
    width:100%;
    max-width:none;
    min-height:0;
  }

  .card img{
    height:220px;
  }

  .card-body{
    padding:24px 22px 28px;
  }

  .card h3{
    font-size:27px;
    line-height:1.1;
    margin-bottom:14px;
  }

  .card p{
    font-size:17px;
    line-height:1.55;
  }

  /* Single-column process, reduced bulk */
  .process,
  .process[style]{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:14px !important;
  }

  .step{
    min-height:0;
    padding:22px 21px 24px;
  }

  .step b{
    font-size:13px;
  }

  .step h4{
    margin:14px 0 8px;
    font-size:22px;
  }

  .step p{
    margin:0;
    font-size:16px;
    line-height:1.5;
  }

  .dark .section-head h2{
    font-size:clamp(34px,10vw,44px);
  }

  .feature{
    gap:25px;
  }

  .feature img{
    max-height:380px;
    border-radius:20px;
  }

  .contact-grid,
  .footer-grid{
    grid-template-columns:minmax(0,1fr);
  }

  .footer{
    padding-top:54px;
  }

  .footer-grid{
    gap:30px;
  }

  .footer a,
  .footer p{
    overflow-wrap:anywhere;
  }

  .cta{
    padding:52px 0;
  }

  .cta h2{
    font-size:clamp(32px,10vw,42px);
  }

  .cta .btn{
    width:100%;
    text-align:center;
    justify-content:center;
  }

  /* Motion stays subtle on small screens */
  .card:hover,
  .btn:hover,
  .step:hover,
  .info-box:hover{
    transform:none;
  }
}

/* Very narrow devices */
@media(max-width:380px){
  .container{
    width:calc(100% - 30px);
  }

  .logo{
    width:136px;
  }

  .hero-copy{
    padding-left:15px;
    padding-right:15px;
  }

  .hero h1{
    font-size:37px;
  }

  .card img{
    height:195px;
  }

  .card-body{
    padding:21px 18px 24px;
  }
}
