/* =========================================================
   ASB — Abdulrahman Saad Al-Buqami Legal Consultancy Company
   Built strictly from the official Brand Guidelines:
   Colors: #003B40 (primary teal) / #C9A989 (gold) / #042C2D (deep teal) / #DAD2C2 (cream)
   Type: Helvetica Neue LT Arabic — 45 Light / 55 Roman / 75 Bold
   ========================================================= */

@font-face{
  font-family:'HN Arabic';
  src:url('fonts/HelveticaNeueArabic-Light.ttf') format('truetype');
  font-weight:300; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'HN Arabic';
  src:url('fonts/HelveticaNeueArabic-Roman.ttf') format('truetype');
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'HN Arabic';
  src:url('fonts/HelveticaNeueArabic-Bold.ttf') format('truetype');
  font-weight:700; font-style:normal; font-display:swap;
}

:root{
  --teal:#003B40;
  --teal-deep:#042C2D;
  --gold:#C9A989;
  --cream:#DAD2C2;
  --white:#FFFFFF;
  --off-white:#FAF8F4;
  --ink:#0E1F1E;
  --line: rgba(201,169,137,.35);
  --shadow: 0 20px 60px rgba(4,44,45,.12);
  --maxw: 1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'HN Arabic', 'Helvetica Neue', Arial, sans-serif;
  background:var(--off-white);
  color:var(--ink);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
html[data-lang="ar"] body{ direction:rtl; }
html[data-lang="en"] body{ direction:ltr; }

/* language visibility toggle */
html[data-lang="ar"] [data-en]{ display:none !important; }
html[data-lang="en"] [data-ar]{ display:none !important; }

img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4,p{margin:0;}
section{position:relative;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px;}
.eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  color:var(--gold);font-weight:700;letter-spacing:.02em;
  font-size:14px;margin-bottom:14px;
}
.eyebrow::before{
  content:"";width:26px;height:2px;background:var(--gold);display:inline-block;
}
h2.section-title{
  font-size:clamp(26px,3.4vw,40px);
  font-weight:700;
  color:var(--teal);
  line-height:1.35;
  margin-bottom:18px;
}
.section-title.on-dark{color:var(--cream);}
.section-title.on-dark em{color:var(--gold);font-style:normal;}
p.lede{
  font-size:17px;line-height:2;color:#3c4b4a;max-width:820px;
}
.section-pad{padding:88px 0;}
@media (max-width:720px){ .section-pad{padding:56px 0;} }

/* ---------------- Header ---------------- */
header.site{
  position:fixed;inset-inline:0;top:0;z-index:60;
  background:rgba(250,248,244,.86);
  backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid var(--line);
  transition:background .3s ease;
}
header.site .bar{
  max-width:var(--maxw);margin:0 auto;padding:14px 28px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
header.site .brand{display:flex;align-items:center;gap:12px;}
header.site .brand img{height:38px;width:auto;}
nav.main{display:flex;align-items:center;gap:30px;}
nav.main a{
  font-size:15px;font-weight:400;color:var(--teal);
  position:relative;padding:4px 0;
}
nav.main a::after{
  content:"";position:absolute;inset-inline-start:0;bottom:-2px;width:0;height:2px;
  background:var(--gold);transition:width .25s ease;
}
nav.main a:hover::after{width:100%;}
.header-actions{display:flex;align-items:center;gap:14px;}
.lang-btn{
  border:1px solid var(--teal);color:var(--teal);
  background:transparent;padding:8px 16px;border-radius:30px;
  font-family:inherit;font-size:14px;cursor:pointer;font-weight:700;
  transition:.25s;
}
.lang-btn:hover{background:var(--teal);color:var(--white);}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 26px;border-radius:30px;font-weight:700;font-size:15px;
  transition:.25s ease; border:1px solid transparent; cursor:pointer;
}
.btn-gold{background:var(--gold);color:var(--teal-deep);}
.btn-gold:hover{background:#b99873;}
.btn-outline-light{border-color:rgba(255,255,255,.5);color:var(--white);}
.btn-outline-light:hover{background:rgba(255,255,255,.12);}
.btn-outline{border-color:var(--teal);color:var(--teal);}
.btn-outline:hover{background:var(--teal);color:var(--white);}

.burger{display:none;background:none;border:0;cursor:pointer;padding:6px;}
.burger span{display:block;width:24px;height:2px;background:var(--teal);margin:5px 0;}

/* ---------------- Hero ---------------- */
.hero{
  min-height:100vh;
  display:flex;align-items:flex-end;
  background:
    linear-gradient(180deg, rgba(4,44,45,.55) 0%, rgba(4,44,45,.72) 45%, rgba(4,44,45,.94) 100%),
    url('images/hero-photo.jpg') center/cover no-repeat;
  padding-top:140px;
}
.hero .wrap{padding-bottom:90px;width:100%;}
.hero-icon{width:64px;margin-bottom:26px;opacity:.95;}
.hero h1{
  color:var(--white);
  font-size:clamp(32px,5.4vw,58px);
  font-weight:700;line-height:1.28;max-width:920px;
  margin-bottom:22px;
}
.hero h1 span{color:var(--gold);}
.hero p.sub{
  color:var(--cream);font-size:18px;line-height:1.95;max-width:680px;margin-bottom:38px;
}
.hero .cta-row{display:flex;flex-wrap:wrap;gap:16px;}
.hero .scroll-cue{
  position:absolute;bottom:26px;inset-inline-start:0;right:0;margin:0 auto;
  display:flex;justify-content:center;color:var(--cream);font-size:12px;letter-spacing:.15em;
}

/* ---------------- About / Who we are ---------------- */
.about{background:var(--off-white);}
.about-grid{
  display:grid;grid-template-columns: 1.1fr .9fr; gap:64px; align-items:center;
}
@media (max-width:860px){ .about-grid{grid-template-columns:1fr;gap:34px;} }
.about-figure{
  position:relative;border-radius:6px;overflow:hidden;box-shadow:var(--shadow);
}
.about-figure img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/5;}
.about-figure .frame{
  position:absolute;inset:16px;border:1px solid rgba(255,255,255,.55);pointer-events:none;
}
.stat-chip{
  position:absolute; bottom:-1px; inset-inline-start:-1px;
  background:var(--teal); color:var(--cream);
  padding:22px 26px; border-start-end-radius:6px;
}
.stat-chip b{display:block;color:var(--gold);font-size:30px;font-weight:700;}
.stat-chip span{font-size:13px;}

/* ---------------- Vision / Mission ---------------- */
.vm-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-top:36px;}
@media (max-width:720px){ .vm-grid{grid-template-columns:1fr;} }
.vm-card{
  background:var(--white); border:1px solid var(--line); border-radius:8px;
  padding:38px 34px; box-shadow:var(--shadow);
}
.vm-card .ic{
  width:52px;height:52px;border-radius:50%;background:var(--teal);
  display:flex;align-items:center;justify-content:center;margin-bottom:20px;
}
.vm-card .ic img{width:24px;}
.vm-card h3{color:var(--teal);font-size:21px;font-weight:700;margin-bottom:14px;}
.vm-card p{color:#445;line-height:1.95;font-size:15.5px;}

/* ---------------- Philosophy (dark) ---------------- */
.philosophy{
  background:var(--teal-deep);
  background-image:
    linear-gradient(180deg, rgba(4,44,45,.92), rgba(4,44,45,.96)),
    url('images/pattern.png');
  background-size:auto, 900px;
  background-position:center, top center;
  background-repeat:no-repeat, repeat;
}
.philosophy .inner{max-width:900px;margin:0 auto;text-align:center;}
.philosophy p.lede{color:#cfe0de;margin:0 auto;text-align:center;font-size:18px;}
.philosophy .quote-mark{font-size:70px;color:var(--gold);line-height:.4;margin-bottom:20px;display:block;font-family:Georgia,serif;}

/* ---------------- Services ---------------- */
.services{background:var(--off-white);}
.svc-head{max-width:760px;margin:0 auto 50px;text-align:center;}
.svc-head p.lede{margin:0 auto;text-align:center;}
.svc-head h2{margin:0 auto 18px;}

.svc-category{
  background:var(--white); border:1px solid var(--line); border-radius:10px;
  padding:40px; margin-bottom:26px; box-shadow:var(--shadow);
}
.svc-category .cat-top{
  display:flex; gap:20px; align-items:flex-start; margin-bottom:26px;
  padding-bottom:24px; border-bottom:1px dashed var(--line);
}
.svc-category .num{
  font-size:15px;color:var(--gold);font-weight:700;border:1px solid var(--gold);
  border-radius:50%;width:38px;height:38px;flex:none;
  display:flex;align-items:center;justify-content:center;
}
.svc-category h3{color:var(--teal);font-size:22px;font-weight:700;margin-bottom:8px;}
.svc-category .cat-top p{color:#4a5a58;font-size:15px;line-height:1.9;}
.svc-sub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;}
@media (max-width:560px){ .svc-sub-grid{grid-template-columns:1fr;} }
.svc-sub{
  background:var(--off-white); border:1px solid var(--line); border-radius:8px;
  padding:18px 16px;
}
.svc-sub h4{color:var(--teal);font-size:15.5px;font-weight:700;margin-bottom:8px;}
.svc-sub p{color:#57655f;font-size:13.8px;line-height:1.8;}

/* pill list (contract drafting suite) */
.pill-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
@media (max-width:860px){ .pill-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .pill-grid{grid-template-columns:1fr;} }
.pill{
  border:1px solid var(--gold); border-radius:40px;
  padding:16px 22px; text-align:center;
  color:var(--teal); font-weight:700; font-size:14.5px; line-height:1.6;
  background:var(--white);
  transition:.25s;
}
.pill:hover{background:var(--teal);color:var(--white);border-color:var(--teal);}

/* ---------------- Methodology ---------------- */
.method{background:var(--teal);}
.method .section-title{color:var(--cream);}
.method p.lede{color:#cfe0de;}
.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;margin-top:44px;counter-reset:step;}
@media (max-width:960px){ .steps{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .steps{grid-template-columns:1fr;} }
.step{
  background:rgba(255,255,255,.06); border:1px solid rgba(201,169,137,.3);
  border-radius:10px; padding:26px 20px; position:relative;
}
.step .n{
  color:var(--gold);font-size:34px;font-weight:700;margin-bottom:14px;display:block;
  font-family:Georgia,serif;
}
.step h4{color:var(--white);font-size:15.5px;font-weight:700;margin-bottom:10px;line-height:1.6;}
.step p{color:#bcd0ce;font-size:13.5px;line-height:1.8;}
.step-arrow{
  position:absolute; top:50%; inset-inline-end:-24px; transform:translateY(-50%);
  color:var(--gold); font-size:18px;
}
html[dir="rtl"] .step-arrow{transform:translateY(-50%) scaleX(-1);}
@media (max-width:960px){ .step-arrow{display:none;} }

/* ---------------- Sectors ---------------- */
.sectors{background:var(--off-white);}
.sector-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:40px;}
@media (max-width:860px){ .sector-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .sector-grid{grid-template-columns:1fr;} }
.sector-card{
  background:var(--white); border:1px solid var(--line); border-radius:10px;
  padding:32px 26px; box-shadow:var(--shadow); transition:.3s;
}
.sector-card:hover{transform:translateY(-4px); border-color:var(--gold);}
.sector-card .idx{color:var(--gold);font-weight:700;font-size:13px;margin-bottom:14px;display:block;letter-spacing:.1em;}
.sector-card h4{color:var(--teal);font-size:18px;font-weight:700;line-height:1.6;}

/* ---------------- Clients ---------------- */
.clients{background:var(--white);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.clients .wrap{padding-top:56px;padding-bottom:56px;}
.clients .head{text-align:center;margin-bottom:40px;}
.client-row{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:52px;
}
.client-row img{
  max-height:52px;width:auto;filter:grayscale(1) opacity(.7);transition:.3s;
}
.client-row img:hover{filter:grayscale(0) opacity(1);}

/* ---------------- Commitments ---------------- */
.commit{background:var(--off-white);}
.commit-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;margin-top:40px;}
@media (max-width:960px){ .commit-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .commit-grid{grid-template-columns:1fr;} }
.commit-card{
  background:var(--white); border:1px solid var(--line); border-radius:10px; padding:28px 20px;
  text-align:center; box-shadow:var(--shadow);
}
.commit-card .ic{
  width:54px;height:54px;border-radius:50%;background:var(--cream);
  display:flex;align-items:center;justify-content:center;margin:0 auto 18px;
}
.commit-card .ic img{width:24px;}
.commit-card h4{color:var(--teal);font-size:15px;font-weight:700;margin-bottom:10px;line-height:1.6;}
.commit-card p{color:#57655f;font-size:13px;line-height:1.8;}

/* ---------------- Contact / CTA ---------------- */
.contact{
  background:var(--teal-deep);
  background-image:
    linear-gradient(180deg, rgba(4,44,45,.95), rgba(4,44,45,.98)),
    url('images/pattern.png');
  background-size:auto, 900px;
  background-position:center, bottom center;
  background-repeat:no-repeat, repeat;
  color:var(--cream);
}
.contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;}
@media (max-width:860px){ .contact-grid{grid-template-columns:1fr;} }
.contact h2{color:var(--white);}
.contact p.lede{color:#bcd0ce;}
.contact-cards{display:grid;gap:16px;}
.c-card{
  display:flex;align-items:center;gap:16px;
  background:rgba(255,255,255,.05); border:1px solid rgba(201,169,137,.3);
  border-radius:10px; padding:20px 22px;
}
.c-card .ic{
  width:46px;height:46px;border-radius:50%;background:var(--gold);flex:none;
  display:flex;align-items:center;justify-content:center;color:var(--teal-deep);font-weight:700;
}
.c-card .txt span{display:block;color:#9db8b5;font-size:12.5px;margin-bottom:4px;}
.c-card .txt a, .c-card .txt div{color:var(--white);font-size:15.5px;font-weight:700;}

/* ---------------- Footer ---------------- */
footer.site{background:var(--teal-deep);border-top:1px solid rgba(201,169,137,.25);}
.foot-grid{
  display:flex;justify-content:space-between;align-items:center;gap:20px;
  padding:30px 0;flex-wrap:wrap;
}
footer.site img.flogo{height:30px;}
footer.site .foot-links{display:flex;gap:24px;flex-wrap:wrap;}
footer.site .foot-links a{color:#9db8b5;font-size:13.5px;}
footer.site .foot-links a:hover{color:var(--gold);}
footer.site .copy{color:#729592;font-size:12.5px;}

/* whatsapp float */
.wa-float{
  position:fixed; bottom:26px; inset-inline-end:26px; z-index:70;
  width:58px;height:58px;border-radius:50%;background:#25D366;
  display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.wa-float svg{width:28px;height:28px;fill:#fff;}

/* reveal animation — content is ALWAYS visible (opacity:1); only a subtle
   position shift is deferred, so nothing ever depends on JS to be readable */
.reveal{opacity:1;transform:translateY(0);transition:transform .7s ease;}
.reveal.pre{transform:translateY(22px);}
.reveal.in{transform:translateY(0);}

/* mobile nav */
@media (max-width:920px){
  nav.main{
    position:fixed; inset-inline:0; top:70px; background:var(--off-white);
    flex-direction:column; align-items:flex-start; gap:0; padding:10px 28px 20px;
    border-bottom:1px solid var(--line); transform:translateY(-130%); transition:.3s;
  }
  nav.main.open{transform:translateY(0);}
  nav.main a{padding:12px 0;width:100%;border-bottom:1px solid var(--line);}
  .burger{display:block;}
  .header-actions .btn-outline{display:none;}
}
