/* ===========================================================
   Palm Hills Gulf — Company Profile Website
   Brand tokens sampled directly from the company's own logo
   =========================================================== */
:root{
  --navy-dark:#0A1B45;
  --navy:#0C2AA6;
  --navy-mid:#13379E;
  --navy-panel:#0E2C8C;
  --gold:#F5C400;
  --gold-deep:#C99A00;
  --white:#FFFFFF;
  --bg-light:#F4F6FB;
  --bg-soft:#EDF1FA;
  --text-dark:#16213E;
  --text-mute:#5B6785;
  --line:#E2E6F0;

  --font: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10,27,69,.08);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:84px; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text-dark);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-weight:800; }
p{ margin:0; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
section{ padding:88px 0; }
.en{ direction:ltr; text-align:left; }
.ar{ direction:rtl; text-align:right; }

/* focus visibility for accessibility */
a:focus-visible, button:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:2px;
}

/* ---------- eyebrow / tag ---------- */
.tag{
  display:inline-block;
  font-size:.78rem;
  font-weight:700;
  color:var(--gold-deep);
  background:#FFF6D9;
  padding:5px 14px;
  border-radius:999px;
  margin-bottom:14px;
}
.tag.on-dark{ color:var(--gold); background:rgba(245,196,0,.14); }

/* ---------- header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 24px; max-width:var(--maxw); margin:0 auto;
  gap:16px;
}
.nav__brand{ display:flex; align-items:center; gap:10px; }
.nav__brand img{ height:38px; width:auto; }
.nav__brand span{ font-weight:800; color:var(--navy); font-size:1.05rem; white-space:nowrap; }
.nav__links{ display:flex; align-items:center; gap:26px; }
.nav__links a{
  font-size:.92rem; font-weight:600; color:var(--text-dark);
  padding:8px 2px; border-bottom:2px solid transparent;
  transition:border-color .2s ease, color .2s ease;
}
.nav__links a:hover{ color:var(--navy); border-bottom-color:var(--gold); }
.nav__cta{
  background:var(--navy); color:var(--white)!important;
  padding:10px 20px; border-radius:999px; font-weight:700; font-size:.88rem;
  white-space:nowrap;
}
.nav__cta:hover{ background:var(--navy-mid); }
.nav__cta--ghost{
  background:transparent; color:var(--navy)!important; border:1.5px solid var(--navy);
}
.nav__cta--ghost:hover{ background:var(--navy); color:var(--white)!important; }
.nav__toggle{
  display:none; background:none; border:none; cursor:pointer;
  width:40px; height:40px; align-items:center; justify-content:center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after{
  content:''; display:block; width:22px; height:2px; background:var(--navy);
  position:relative; transition:.2s;
}
.nav__toggle span::before{ position:absolute; top:-7px; }
.nav__toggle span::after{ position:absolute; top:7px; }

/* ---------- hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background:var(--navy-dark);
  padding:120px 0 150px;
  color:var(--white);
}
.hero::after{
  content:''; position:absolute; left:-10%; right:-10%; bottom:-6%;
  height:38%; background:var(--navy);
  transform:rotate(-3deg); z-index:0;
}
.hero__inner{ position:relative; z-index:1; text-align:center; }
.hero__badge{
  font-size:.78rem; letter-spacing:.12em; color:#9FB0DC; margin-bottom:28px;
  display:flex; align-items:center; justify-content:center; gap:10px;
}
.hero__badge img{ height:44px; width:auto; }
.hero__logo{ max-width:480px; width:80%; margin:0 auto 30px; }
.hero__rule{ width:70px; height:3px; background:var(--gold); margin:26px auto; border:none; }
.hero__tag-en{ font-size:1.3rem; font-style:italic; color:var(--gold); margin-bottom:8px; }
.hero__tag-ar{ font-size:1.05rem; color:#C7D0EA; font-family:var(--font); }
.hero__download{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--gold); color:var(--navy-dark); font-weight:800;
  padding:14px 30px; border-radius:999px; font-size:.98rem;
  margin-top:32px; box-shadow:0 10px 24px rgba(245,196,0,.25);
  transition:transform .15s ease, box-shadow .15s ease;
}
.hero__download span{ font-size:1.15rem; line-height:0; }
.hero__download:hover{ transform:translateY(-2px); box-shadow:0 14px 30px rgba(245,196,0,.35); }
.hero__meta{
  margin-top:56px; padding-top:24px; border-top:1px solid #24408F;
  font-size:.92rem; color:#9FB0DC; display:flex; flex-wrap:wrap;
  gap:10px 22px; justify-content:center;
}
.hero__meta strong{ color:var(--white); }

/* ---------- section headers ---------- */
.shead{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:24px; padding-bottom:20px; border-bottom:1px solid var(--line);
  margin-bottom:44px; flex-wrap:wrap;
}
.shead h2{ font-size:1.9rem; color:var(--navy); }
.shead h2.ar-h{ font-size:1.7rem; }
.shead-sub{
  text-align:center; max-width:760px; margin:-22px auto 44px;
  color:var(--text-mute); font-style:italic; font-size:.98rem;
}

/* ---------- two-column bilingual grid ---------- */
.bi-grid{ display:grid; grid-template-columns:1fr 1fr; gap:36px; }
@media (max-width:820px){ .bi-grid{ grid-template-columns:1fr; } }

/* ---------- about / vision-mission ---------- */
.vm-card{
  border-radius:var(--radius); padding:34px 36px; box-shadow:var(--shadow);
}
.vm-card--light{ background:var(--bg-light); border:1px solid var(--line); }
.vm-card--dark{ background:var(--navy); color:#E4E9FA; }
.vm-card h3{ font-size:1.2rem; margin-bottom:14px; }
.vm-card--light h3{ color:var(--navy); }
.vm-card--dark h3{ color:var(--gold); }
.vm-card p{ font-size:.98rem; }
.vm-stack{ display:grid; gap:24px; margin-top:24px; }

/* ---------- services ---------- */
.service-row{
  display:grid; grid-template-columns:56px 1fr 1fr; gap:24px;
  align-items:start; padding:22px 24px; border-radius:12px; margin-bottom:14px;
}
.service-row:nth-child(odd){ background:var(--bg-light); }
.service-num{
  width:44px; height:44px; border-radius:50%; background:var(--navy);
  color:var(--white); font-weight:800; display:flex; align-items:center; justify-content:center;
}
.service-row h4{ font-size:1.02rem; color:var(--navy); margin-bottom:6px; }
.service-row p{ font-size:.88rem; color:var(--text-mute); }
@media (max-width:760px){
  .service-row{ grid-template-columns:44px 1fr; }
  .service-row .en, .service-row .ar{ grid-column:2; }
}

/* ---------- why us ---------- */
.why-list{ display:grid; gap:16px; }
.why-item{ display:flex; gap:12px; align-items:flex-start; }
.why-item .dot{ width:8px; height:8px; border-radius:50%; background:var(--gold); margin-top:8px; flex:none; }
.why-item.ar{ flex-direction:row-reverse; text-align:right; }
.adv-box{
  margin-top:40px; background:var(--navy); color:var(--white);
  border-radius:var(--radius); padding:32px 36px;
}
.adv-box h3{ color:var(--gold); font-size:1.15rem; margin-bottom:10px; }
.adv-box p{ font-size:.92rem; color:#E4E9FA; }

/* ---------- process ---------- */
.process-list{ display:grid; gap:0; }
.process-item{
  display:grid; grid-template-columns:56px 1fr 1fr; gap:24px; position:relative;
  padding:22px 0;
}
.process-num{
  width:44px; height:44px; border-radius:50%; background:var(--gold);
  color:var(--navy-dark); font-weight:800; display:flex; align-items:center; justify-content:center;
  z-index:1;
}
.process-item:not(:last-child)::before{
  content:''; position:absolute; left:22px; top:56px; bottom:-10px; width:2px;
  background:repeating-linear-gradient(var(--line) 0 6px, transparent 6px 12px);
}
[dir="rtl"] .process-item:not(:last-child)::before{ left:auto; right:22px; }
.process-item h4{ color:var(--navy); font-size:1.02rem; margin-bottom:6px; }
.process-item p{ font-size:.88rem; color:var(--text-mute); }
@media (max-width:760px){
  .process-item{ grid-template-columns:44px 1fr; }
  .process-item .en, .process-item .ar{ grid-column:2; }
  .process-item::before{ display:none; }
}

/* ---------- stats strip ---------- */
.stats{ background:var(--navy-dark); color:var(--white); padding:70px 0; position:relative; overflow:hidden; }
.stats::before{
  content:''; position:absolute; inset:-20% -10% auto -10%; height:60%;
  background:var(--navy); transform:rotate(-3deg);
}
.stats__inner{ position:relative; z-index:1; }
.stats h2{ text-align:center; font-size:1.9rem; margin-bottom:6px; }
.stats .ar-h{ text-align:center; color:var(--gold); font-size:1.2rem; margin-bottom:20px; }
.stats-sub{ text-align:center; max-width:700px; margin:0 auto 40px; color:#C7D0EA; font-size:.95rem; font-style:italic; }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
@media (max-width:760px){ .stats-grid{ grid-template-columns:repeat(2,1fr); } }
.stat-card{
  background:#112C7A; border:1px solid #24408F; border-radius:12px;
  padding:26px 12px; text-align:center;
}
.stat-card .num{ font-size:2.1rem; font-weight:800; color:var(--gold); }
.stat-card .lbl{ font-size:.82rem; margin-top:6px; }
.stat-card .lbl.ar{ color:#AEBBE8; font-size:.8rem; margin-top:3px; }

/* ---------- projects ---------- */
.project{
  display:grid; grid-template-columns:1fr 1fr; gap:36px; align-items:stretch;
  padding:56px 0; border-bottom:1px solid var(--line);
}
.project:last-child{ border-bottom:none; }
.project.flip .project__media{ order:2; }
.project.flip .project__info{ order:1; }
@media (max-width:860px){
  .project{ grid-template-columns:1fr; }
  .project.flip .project__media, .project.flip .project__info{ order:initial; }
}
.project__media{
  display:grid; grid-template-columns:1fr 1fr; gap:8px;
}
.project__media img{
  width:100%; height:100%; object-fit:cover; border-radius:8px;
  aspect-ratio:4/3; cursor:zoom-in;
}
.project__info{
  background:var(--navy); color:var(--white); border-radius:var(--radius);
  padding:32px; display:flex; flex-direction:column; justify-content:center;
}
.project__meta{ font-size:.8rem; font-weight:700; color:var(--gold-deep); margin-bottom:6px; }
.project__title{ font-size:1.35rem; margin-bottom:6px; }
.project__title-ar{ font-size:1.2rem; color:var(--gold); margin-bottom:18px; }
.project__tag{ font-size:.82rem; font-weight:700; color:var(--gold); margin-bottom:8px; }
.project__desc{ font-size:.92rem; color:#E4E9FA; margin-bottom:20px; }
.project__divider{ border:none; border-top:1px solid #2C4BB0; margin:6px 0 20px; }

/* ---------- contact ---------- */
.contact{ background:var(--bg-light); }
.contact-grid{ display:grid; grid-template-columns:1.1fr 1fr; gap:44px; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-cards{ display:grid; gap:16px; margin-top:26px; }
.contact-card{
  display:flex; align-items:center; gap:16px; background:var(--white);
  border:1px solid var(--line); border-radius:12px; padding:18px 20px;
}
.contact-card .ic{
  width:46px; height:46px; border-radius:50%; background:var(--navy);
  color:var(--gold); display:flex; align-items:center; justify-content:center; flex:none;
  font-size:1.15rem;
}
.contact-card .lbl{ font-size:.76rem; font-weight:700; color:var(--gold-deep); letter-spacing:.04em; }
.contact-card a, .contact-card .val{ font-weight:700; color:var(--text-dark); font-size:.98rem; }

.form-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:32px; box-shadow:var(--shadow);
}
.form-row{ margin-bottom:16px; }
.form-row label{ display:block; font-size:.85rem; font-weight:700; color:var(--navy); margin-bottom:6px; }
.form-row input, .form-row textarea{
  width:100%; border:1px solid var(--line); border-radius:8px; padding:11px 14px;
  font-family:var(--font); font-size:.95rem; background:var(--bg-light);
}
.form-row input:focus, .form-row textarea:focus{ outline:2px solid var(--navy); background:var(--white); }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:var(--navy); color:var(--white); border:none; cursor:pointer;
  padding:13px 26px; border-radius:999px; font-weight:700; font-size:.95rem;
  font-family:var(--font); width:100%;
}
.btn:hover{ background:var(--navy-mid); }

/* ---------- footer ---------- */
.site-footer{ background:var(--navy-dark); color:#9FB0DC; padding:40px 0 26px; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.footer-brand{ display:flex; align-items:center; gap:10px; }
.footer-brand img{ height:30px; }
.footer-brand span{ color:var(--white); font-weight:700; }
.footer-links{ display:flex; gap:20px; font-size:.85rem; }
.footer-bottom{
  text-align:center; margin-top:26px; padding-top:20px; border-top:1px solid #1B2E63;
  font-size:.8rem; color:#7688B8;
}

/* ---------- lightbox ---------- */
.lightbox{
  position:fixed; inset:0; background:rgba(6,12,32,.92); z-index:200;
  display:none; align-items:center; justify-content:center; padding:30px;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-width:min(92vw,1100px); max-height:88vh; border-radius:8px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lightbox__close{
  position:absolute; top:22px; right:26px; background:none; border:none; color:#fff;
  font-size:2rem; cursor:pointer; line-height:1;
}

/* ---------- back to top ---------- */
.totop{
  position:fixed; bottom:26px; right:26px; z-index:70;
  width:46px; height:46px; border-radius:50%; background:var(--navy); color:var(--gold);
  display:flex; align-items:center; justify-content:center; font-size:1.2rem;
  border:none; cursor:pointer; box-shadow:var(--shadow); opacity:0; pointer-events:none;
  transition:opacity .2s ease;
}
.totop.show{ opacity:1; pointer-events:auto; }

/* ---------- mobile nav ---------- */
@media (max-width:900px){
  .nav__links{
    position:fixed; top:66px; left:0; right:0; background:#fff; flex-direction:column;
    padding:18px 24px; gap:14px; border-bottom:1px solid var(--line);
    transform:translateY(-130%); transition:transform .25s ease; box-shadow:var(--shadow);
  }
  .nav__links.open{ transform:translateY(0); }
  .nav__toggle{ display:flex; }
  .nav__cta{ order:99; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none!important; animation:none!important; }
}
