/* ================================================================
   ATLAS GATE CONSULTANCY — global.css
   Shared: reset, variables, navbar, footer, utilities, animations
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --gold:      #e6b800;
  --gold-d:    #c9a200;
  --gold-l:    #ffd740;
  --dark:      #141414;
  --dark2:     #1f1f1f;
  --dark3:     #2c2c2c;
  --white:     #ffffff;
  --off:       #f8f8f8;
  --gray:      #f0f0f0;
  --gray2:     #e0e0e0;
  --muted:     #686868;
  --nav-h:     88px;
  --r:         14px;
  --r-lg:      22px;
  --sh:        0 8px 32px rgba(0,0,0,.09);
  --sh-lg:     0 24px 64px rgba(0,0,0,.14);
  --ease:      cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo','Tajawal',sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  direction: rtl;
  line-height: 1.65;
}
a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul  { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── NAVBAR ────────────────────────────────────────────────────── */
.nb {
  position: fixed; top:0; left:0; right:0;
  height: var(--nav-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.07);
  z-index: 9900;
  display: flex; align-items: center;
  transition: height .3s var(--ease), box-shadow .3s var(--ease);
}
.nb.scrolled { height: 68px; box-shadow: 0 4px 30px rgba(0,0,0,.12); }

.nb-inner {
  width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}

/* Logo */
.logo { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.logo-mark {
  width: 50px; height: 50px; background: var(--dark);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  transition: transform .3s var(--ease);
}
.logo-mark:hover { transform: scale(1.06) rotate(-2deg); }
.logo-mark svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.logo-mark::after {
  content: ''; position: absolute; bottom:0; left:0; right:0; height: 36%;
  background: linear-gradient(to top, var(--gold), transparent); opacity: .4;
}
.logo-words .brand {
  font-weight: 900; font-size: .88rem; color: var(--dark);
  text-transform: uppercase; letter-spacing: .4px; line-height: 1.15;
}
.logo-words .tag { font-size: .6rem; color: var(--muted); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: .05rem; }
.nav-links a {
  display: block; padding: .44rem .76rem;
  font-size: .83rem; font-weight: 600; color: var(--dark3);
  border-radius: 7px; white-space: nowrap;
  transition: color .2s, background .2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 2px; right: 50%; left: 50%;
  height: 2px; background: var(--gold); border-radius: 2px;
  transition: right .25s var(--ease), left .25s var(--ease);
}
.nav-links a:hover  { color: var(--gold-d); }
.nav-links a.active { color: var(--gold-d); }
.nav-links a.active::after { right: 12%; left: 12%; }
.nav-cta {
  background: var(--gold) !important; color: var(--dark) !important;
  padding: .48rem 1.3rem !important; border-radius: 8px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 14px rgba(230,184,0,.28);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover  { background: var(--gold-d) !important; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(230,184,0,.38) !important; }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; background: none; border: none;
}
.burger span {
  display: block; width: 25px; height: 2.5px;
  background: var(--dark); border-radius: 3px; transition: .28s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav drawer */
.mob-nav {
  display: none; position: fixed;
  top: var(--nav-h); left:0; right:0; bottom:0;
  background: var(--white); z-index: 9800;
  overflow-y: auto; padding: 1.5rem 1.5rem 2rem;
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.mob-nav.open { display: block; transform: translateX(0); }
.mob-nav ul { display: flex; flex-direction: column; gap: .4rem; }
.mob-nav ul a {
  display: block; padding: .9rem 1.2rem;
  font-weight: 600; font-size: 1rem;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.mob-nav ul a:hover  { background: rgba(230,184,0,.1); color: var(--gold-d); }
.mob-nav ul a.active { background: var(--gold); color: var(--dark); font-weight: 700; }

/* ── PAGE HERO (inner pages) ───────────────────────────────────── */
.page-hero {
  margin-top: var(--nav-h); height: 380px;
  position: relative; display: flex; align-items: center; overflow: hidden;
}
.ph-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05); transition: transform 8s var(--ease);
}
.ph-bg.in { transform: scale(1); }
.ph-ov {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.25) 100%);
}
.ph-ct {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: rgba(255,255,255,.6); margin-bottom: .8rem;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.35); }
.ph-ct h1 {
  font-size: clamp(2rem,5vw,3.2rem); font-weight: 900;
  color: white; line-height: 1.15; margin-bottom: .8rem;
}
.ph-ct h1 em { font-style: normal; color: var(--gold); }
.ph-ct p { font-size: 1.04rem; color: rgba(255,255,255,.8); max-width: 520px; line-height: 1.72; }

/* ── FOOTER ────────────────────────────────────────────────────── */
.site-footer { background: #0d0d0d; color: rgba(255,255,255,.6); padding: 70px 0 0; }
.ft-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.ft-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ft-brand p { font-size: .85rem; line-height: 1.85; color: rgba(255,255,255,.42); margin-top: 1.1rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.sc {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all .25s;
}
.sc:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.sc-link { color: rgba(255,255,255,.7); text-decoration: none; }
.sc-link:hover { color: var(--dark); }
.logo-img { background: transparent !important; padding: 4px; }
.logo-img img { width: 50px; height: 50px; object-fit: contain; border-radius: 0; }
.ft-col h4 {
  color: white; font-weight: 700; font-size: .93rem; margin-bottom: 1.2rem;
  position: relative;
}
.ft-col h4::after {
  content: ''; position: absolute; bottom: -5px; right: 0;
  width: 26px; height: 2px; background: var(--gold); border-radius: 2px;
}
.ft-col ul { display: flex; flex-direction: column; gap: .65rem; margin-top: .4rem; }
.ft-col ul a { font-size: .83rem; color: rgba(255,255,255,.43); transition: color .2s, padding-right .2s; }
.ft-col ul a:hover { color: var(--gold); padding-right: 4px; }
.ft-bottom {
  padding: 1.5rem 0; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.ft-bottom p { font-size: .8rem; }
.ft-bottom .cr { color: rgba(255,255,255,.28); }

/* ── UTILITIES ─────────────────────────────────────────────────── */
.wrap    { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.wrap-xl { max-width: 1420px; margin: 0 auto; padding: 0 2rem; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(230,184,0,.1); color: var(--gold-d);
  font-size: .7rem; font-weight: 700;
  padding: .28rem 1rem; border-radius: 20px; margin-bottom: .75rem;
  letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid rgba(230,184,0,.2);
}
.sec-h  { font-size: clamp(1.8rem,3.8vw,2.8rem); font-weight: 900; line-height: 1.2; margin-bottom: 1rem; }
.sec-h span { color: var(--gold-d); }
.sec-p  { font-size: 1.02rem; color: var(--muted); line-height: 1.85; max-width: 640px; }
.tc     { text-align: center; }
.tc .sec-p { margin: 0 auto; }

/* Buttons */
.btn-g {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--gold); color: var(--dark);
  font-family: inherit; font-weight: 700; font-size: .97rem;
  padding: .9rem 2.2rem; border-radius: 10px; border: none;
  transition: all .28s var(--ease); box-shadow: 0 4px 18px rgba(230,184,0,.25);
}
.btn-g:hover { background: var(--gold-d); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(230,184,0,.35); }

.btn-d {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--dark); color: white;
  font-family: inherit; font-weight: 700; font-size: .97rem;
  padding: .9rem 2.2rem; border-radius: 10px; border: none;
  transition: all .28s var(--ease);
}
.btn-d:hover { background: var(--dark3); transform: translateY(-2px); box-shadow: var(--sh); }

.btn-ow {
  display: inline-flex; align-items: center; gap: .55rem;
  background: transparent; color: white;
  font-family: inherit; font-weight: 600; font-size: .97rem;
  padding: .88rem 2.2rem; border-radius: 10px;
  border: 2px solid rgba(255,255,255,.3);
  transition: all .28s var(--ease);
}
.btn-ow:hover { border-color: var(--gold); color: var(--gold); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg,#111 0%,#222 100%);
  padding: 90px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse,rgba(230,184,0,.11) 0%,transparent 70%);
}
.cta-band h2 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 900; color: white; margin-bottom: 1rem; }
.cta-band h2 span { color: var(--gold); }
.cta-band .sub { color: rgba(255,255,255,.62); font-size: 1.04rem; max-width: 540px; margin: 0 auto 2.5rem; line-height: 1.75; }
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Scroll reveal */
.rv  { opacity: 0; transform: translateY(30px);  transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rvl { opacity: 0; transform: translateX(40px);   transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rvr { opacity: 0; transform: translateX(-40px);  transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.on,.rvl.on,.rvr.on { opacity: 1; transform: none; }

/* Scroll-to-top */
#stt {
  position: fixed; bottom: 2rem; left: 2rem;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--gold); color: var(--dark); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  border: none; z-index: 500;
  box-shadow: 0 6px 24px rgba(230,184,0,.35);
  opacity: 0; pointer-events: none; transition: all .3s var(--ease);
}
#stt.on { opacity: 1; pointer-events: auto; }
#stt:hover { background: var(--dark); color: var(--gold); transform: translateY(-3px); }

/* Contact form */
.cform { display: flex; flex-direction: column; gap: 1.2rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg    { display: flex; flex-direction: column; gap: .48rem; }
.fg label { font-size: .84rem; font-weight: 600; color: var(--dark); }
.fg input,.fg select,.fg textarea {
  padding: .85rem 1.1rem; border: 1.5px solid var(--gray2);
  border-radius: 10px; font-family: inherit; font-size: .92rem;
  color: var(--dark); background: var(--white);
  transition: border-color .22s, box-shadow .22s;
  text-align: right; direction: rtl;
}
.fg input:focus,.fg select:focus,.fg textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(230,184,0,.1);
}
.fg textarea { resize: vertical; min-height: 130px; }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media(max-width:1100px) {
  .nav-links a { padding: .42rem .58rem; font-size: .79rem; }
}
@media(max-width:900px) {
  .nav-links { display: none; }
  .burger    { display: flex; }
  .ft-grid   { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .page-hero { height: 300px; }
}
@media(max-width:640px) {
  :root { --nav-h: 68px; }
  .ft-grid   { grid-template-columns: 1fr; }
  .f-row     { grid-template-columns: 1fr; }
  .ft-bottom { flex-direction: column; text-align: center; }
}
