/* =====================================================================
   Asos Alhadaria — General Contracting & Real Estate Investment
   اسس حضارية للمقاولات العامة والاستثمار العقاري
   Shared stylesheet. Works for both English (LTR) and Arabic (RTL)
   via CSS logical properties + the html[lang] / html[dir] switches.
   ===================================================================== */

/* ---- Fonts ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ---- Design tokens -------------------------------------------------- */
:root {
  --navy:      #0E2233;
  --navy-700:  #16324A;
  --navy-600:  #1E3E59;
  --navy-500:  #2B4E6B;
  --gold:      #C1923B;
  --gold-600:  #A87B2C;
  --gold-200:  #E7D2A4;
  --sand:      #F5F2EA;
  --sand-50:   #FBFAF6;
  --slate:     #566673;
  --ink:       #0E2233;
  --line:      #E6E1D6;
  --line-dark: rgba(255,255,255,.14);
  --white:     #FFFFFF;

  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14,34,51,.06), 0 6px 20px rgba(14,34,51,.06);
  --shadow-md: 0 10px 40px rgba(14,34,51,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif; }
html[lang="ar"] body { font-family: 'Tajawal', 'Plus Jakarta Sans', system-ui, sans-serif; line-height: 1.85; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; font-weight: 800; }
p { margin: 0; }

/* Language visibility: elements marked [data-ar]/[data-en] are filled by JS.
   Standalone .en / .ar blocks are toggled by display. */
html[lang="en"] .ar { display: none !important; }
html[lang="ar"] .en { display: none !important; }

/* ---- Layout helpers ------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 96px; }
.section--tight { padding-block: 64px; }
.section--sand { background: var(--sand-50); }
.section--navy { background: var(--navy); color: #E7EDF3; }

.kicker {
  display: inline-block;
  color: var(--gold-600);
  font-weight: 600;
  font-size: .92rem;
  margin-block-end: 14px;
}
.section--navy .kicker { color: var(--gold-200); }

.lead {
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 60ch;
}
.section--navy .lead { color: #B7C6D3; }

.section-head { max-width: 62ch; margin-block-end: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #1a1205; }
.btn-gold:hover { background: var(--gold-600); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: #EAF0F5; }
.btn-ghost:hover { border-color: var(--gold-200); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-600); transform: translateY(-2px); }

/* ---- Header / nav --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-block-end: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; margin-inline-end: auto; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand img.mark { width: auto; height: 46px; border-radius: 8px; }
.brand .brand-name { font-weight: 800; font-size: 1.12rem; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.brand .brand-sub { display: block; font-weight: 500; font-size: .66rem; color: var(--gold-600); letter-spacing: .06em; }
html[lang="ar"] .brand .brand-sub { letter-spacing: 0; font-size: .7rem; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 8px; font-weight: 500; color: var(--navy-700);
  font-size: .98rem; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--sand); color: var(--navy); }
.nav-links a.active { color: var(--gold-600); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-weight: 600; font-size: .9rem; transition: border-color .15s, color .15s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-600); }
.lang-toggle svg { width: 16px; height: 16px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy); margin-inline: auto; position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero ----------------------------------------------------------- */
.hero {
  position: relative; color: #EAF0F5; overflow: hidden;
  background: #0E2233 url("../img/hero-bg.jpg") center / cover no-repeat;
  background-attachment: fixed;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at var(--hero-x, 85%) -10%, rgba(193,146,59,.18), transparent 60%),
    linear-gradient(180deg, rgba(14,34,51,.74) 0%, rgba(16,42,62,.82) 100%);
}
.hero .container { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center;
  padding-block: clamp(80px, 11vw, 150px);
}
.hero-grid > div { max-width: 760px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.65rem); color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
html[lang="ar"] .hero h1 { line-height: 1.3; }
.hero .lead { color: #B9C7D4; margin-block-start: 22px; font-size: 1.16rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 34px; }
.hero-stats { display: flex; gap: 34px; margin-block-start: 46px; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.9rem; font-weight: 800; color: var(--gold-200); }
.hero-stats .lbl { font-size: .9rem; color: #9FB1C0; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }

/* ---- Page header (inner pages) -------------------------------------- */
.page-head { background: var(--navy); color: #EAF0F5; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 360px at 90% -30%, rgba(193,146,59,.20), transparent 60%);
}
.page-head .container { position: relative; padding-block: clamp(56px, 7vw, 84px); }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); color: #fff; }
.page-head p { color: #B9C7D4; margin-block-start: 14px; max-width: 58ch; }
.crumbs { font-size: .9rem; color: #8FA3B4; margin-block-end: 16px; }
.crumbs a:hover { color: var(--gold-200); }

/* ---- Cards / grids -------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-200); }
.card .ico {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, #1a3a52, #0E2233); color: var(--gold-200); margin-block-end: 18px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.22rem; margin-block-end: 10px; }
.card p { color: var(--slate); font-size: .98rem; }

/* ---- Stats band ----------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: #fff;
}
.stats .stat { text-align: center; }
.stats .num { font-size: 2.1rem; font-weight: 800; color: var(--navy); }
.stats .num b { color: var(--gold); font-weight: 800; }
.stats .lbl { color: var(--slate); font-size: .95rem; margin-block-start: 4px; }

/* ---- Partnership steps (the signature section) ---------------------- */
.model { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-block-start: 8px; }
.step {
  position: relative; background: var(--navy-700); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 30px; color: #E7EDF3;
}
.step .no {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #1a1205; font-weight: 800; margin-block-end: 18px;
}
.step h3 { color: #fff; font-size: 1.2rem; margin-block-end: 8px; }
.step p { color: #B7C6D3; font-size: .98rem; }
.split-bar { display: flex; height: 54px; border-radius: 10px; overflow: hidden; margin-block-start: 26px; border: 1px solid var(--line-dark); }
.split-bar .half { display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.split-bar .owner { background: #163349; color: #CFE0EE; flex: 1; }
.split-bar .company { background: var(--gold); color: #1a1205; flex: 1; }

/* ---- Projects ------------------------------------------------------- */
.project {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project .thumb {
  aspect-ratio: 4 / 3; background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, var(--navy-600), var(--navy));
  position: relative; display: grid; place-items: center; color: var(--gold-200);
}
.project .thumb .ph { text-align: center; opacity: .8; font-size: .9rem; }
.project .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project:hover .thumb img { transform: scale(1.07); }
.project .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,34,51,0) 40%, rgba(14,34,51,.55)); }
.project .tag, .project .thumb .ph { z-index: 1; }
.project .tag {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
  background: rgba(14,34,51,.78); color: #EAF0F5; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
}
.project .body { padding: 22px 24px 26px; }
.project .body h3 { font-size: 1.18rem; margin-block-end: 6px; }
.project .meta { color: var(--slate); font-size: .92rem; display: flex; gap: 8px; flex-wrap: wrap; }
.project .meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---- About / split content ------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 5 / 4; background:
    repeating-linear-gradient(135deg, rgba(14,34,51,.05) 0 16px, transparent 16px 32px),
    linear-gradient(160deg, var(--sand), #ECE6D8);
  display: grid; place-items: center; color: var(--navy-600);
}
.ticklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ticklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate); }
.ticklist li svg { flex: none; width: 22px; height: 22px; color: var(--gold); margin-block-start: 2px; }
.ticklist li b { color: var(--navy); font-weight: 600; }

/* ---- Values / principles ------------------------------------------- */
.value { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value h3 { font-size: 1.1rem; margin-block-end: 8px; color: var(--navy); }
.value p { color: var(--slate); font-size: .96rem; }
.value .vno { color: var(--gold); font-weight: 800; font-size: 1.1rem; margin-block-end: 10px; }

/* ---- CTA band ------------------------------------------------------- */
.ctaband { background: linear-gradient(140deg, var(--navy-700), var(--navy)); color: #fff; border-radius: 20px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
.ctaband::before { content:""; position:absolute; inset:0; background: radial-gradient(500px 240px at 15% 120%, rgba(193,146,59,.25), transparent 60%); }
.ctaband > * { position: relative; }
.ctaband h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.ctaband p { color: #B9C7D4; margin: 14px auto 28px; max-width: 54ch; }

/* ---- Contact -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-item { display: flex; gap: 16px; padding-block: 18px; border-block-end: 1px solid var(--line); align-items: flex-start; }
.info-item:last-child { border-block-end: none; }
.info-item .ico { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--sand); color: var(--gold-600); }
.info-item .ico svg { width: 22px; height: 22px; }
.info-item h4 { font-size: 1rem; margin-block-end: 2px; color: var(--navy); }
.info-item a, .info-item p { color: var(--slate); font-size: .98rem; }
.info-item a:hover { color: var(--gold-600); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-block-end: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-block-end: 7px; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--sand-50); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193,146,59,.18); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; }
.form-note { font-size: .85rem; color: var(--slate); margin-block-start: 12px; text-align: center; }

.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-block-start: 28px; }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---- Footer --------------------------------------------------------- */
.site-footer { background: var(--navy); color: #AEC0CE; padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer .brand-name { color: #fff; }
.site-footer p { font-size: .96rem; color: #9FB1C0; margin-block-start: 14px; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-block-end: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #AEC0CE; font-size: .95rem; }
.footer-col a:hover { color: var(--gold-200); }
.footer-bottom {
  margin-block-start: 44px; padding-block-start: 22px; border-block-start: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .9rem; color: #7E93A3;
}

/* ---- Full-width image band ----------------------------------------- */
.imgband {
  position: relative; min-height: 340px; display: grid; place-items: center;
  text-align: center; color: #fff; overflow: hidden;
  background: #0E2233 center / cover no-repeat; background-attachment: fixed;
}
.imgband::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,34,51,.78), rgba(16,42,62,.84)); }
.imgband .inner { position: relative; max-width: 720px; padding: 72px 24px; }
.imgband h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: #fff; }
.imgband p { color: #C6D4E0; margin-block-start: 12px; font-size: 1.08rem; }
.imgband .btn { margin-block-start: 24px; }

/* About media as photo */
.split .media.photo { padding: 0; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Floating WhatsApp button -------------------------------------- */
.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .18s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float svg { width: 30px; height: 30px; }
.info-item .ico.wa { background: #e7f9ee; color: #1faa52; }

/* ---- Reveal animation (single, subtle, reduced-motion aware) -------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Focus visibility ---------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 420px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .model { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding-block: 64px; }
  .nav-links, .nav-actions .desktop-only { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; inset-inline: 0; top: 74px; background: #fff;
    border-block-end: 1px solid var(--line); padding: 14px 20px 20px; box-shadow: var(--shadow-md);
  }
  .site-header.open .nav-links a { padding: 13px 10px; border-radius: 8px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ctaband { padding: 40px 26px; }
  .ctaband .hero-cta, .hero-cta { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn:hover, .card:hover, .project:hover { transform: none; }
}
