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

/* =====================================================
   ROOT — بلوطي فاخر × أسود
===================================================== */
:root{
  --ink:#0b0a08;          /* أسود دافئ */
  --panel:#141210;         /* لوحة غامقة */
  --panel-2:#1c1712;       /* لوحة أفتح قليلاً */
  --oak-deep:#3a2414;      /* بلوطي غامق */
  --oak:#8a5a34;           /* بلوطي متوسط */
  --oak-light:#b8865a;     /* بلوطي فاتح */
  --gold:#c9a15a;          /* ذهبي عتيق */
  --gold-soft:#e4c48a;     /* ذهبي فاتح */
  --ivory:#f4efe4;         /* عاجي */
  --ivory-2:#ece3d2;       /* عاجي أغمق قليلاً */
  --ink-on-light:#241b10;  /* نص على خلفية فاتحة */
  --muted-dark:rgba(244,239,228,.66);
  --muted-light:rgba(36,27,16,.62);
  --line-dark:rgba(201,161,90,.22);
  --line-light:rgba(36,27,16,.12);

  --shadow-lg:0 30px 70px rgba(0,0,0,.35);
  --shadow-md:0 18px 40px rgba(0,0,0,.18);

  --radius:4px;
  --ease:cubic-bezier(.22,1,.36,1);
}

/* =====================================================
   RESET / BASE
===================================================== */
*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  font-family:'Cairo',sans-serif;
  background:var(--ivory);
  color:var(--ink-on-light);
  overflow-x:hidden;
  line-height:1.85;
  font-weight:400;
}

img{ display:block; max-width:100%; }

::selection{ background:var(--gold); color:var(--ink); }

/* =====================================================
   TYPOGRAPHY
===================================================== */
.display{
  font-family:'Amiri',serif;
  font-weight:700;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--gold);
  text-transform:uppercase;
  margin-bottom:18px;
}

.eyebrow::before{
  content:'';
  width:34px;
  height:1px;
  background:var(--gold);
  display:inline-block;
}

.section-ivory .eyebrow,
.section-ivory-2 .eyebrow{
  color:var(--oak);
}
.section-ivory .eyebrow::before,
.section-ivory-2 .eyebrow::before{
  background:var(--oak);
}

h1,h2,h3{ color:inherit; }

h2.section-title{
  font-family:'Amiri',serif;
  font-weight:700;
  font-size:clamp(28px,4vw,44px);
  line-height:1.3;
  margin-bottom:16px;
}

.section-lead{
  max-width:640px;
  font-size:17px;
  color:var(--muted-light);
}

.on-dark .section-lead{ color:var(--muted-dark); }

/* =====================================================
   SIGNATURE — إطار الزوايا (وصلة نجارة)
===================================================== */
.corner-frame{ position:relative; }

.corner-frame::before{
  content:'';
  position:absolute;
  inset:12px;
  pointer-events:none;
  background:
    linear-gradient(var(--gold),var(--gold)) top right / 26px 2px no-repeat,
    linear-gradient(var(--gold),var(--gold)) top right / 2px 26px no-repeat,
    linear-gradient(var(--gold),var(--gold)) top left / 26px 2px no-repeat,
    linear-gradient(var(--gold),var(--gold)) top left / 2px 26px no-repeat,
    linear-gradient(var(--gold),var(--gold)) bottom right / 26px 2px no-repeat,
    linear-gradient(var(--gold),var(--gold)) bottom right / 2px 26px no-repeat,
    linear-gradient(var(--gold),var(--gold)) bottom left / 26px 2px no-repeat,
    linear-gradient(var(--gold),var(--gold)) bottom left / 2px 26px no-repeat;
  opacity:.85;
  transition:inset .5s var(--ease);
}

.corner-frame:hover::before{ inset:6px; }

/* divider */
.divider{
  width:70px;
  height:2px;
  background:linear-gradient(90deg,var(--gold),transparent);
  margin:22px auto;
}
.divider.left{ margin:22px 0; }

/* =====================================================
   REVEAL ANIMATION
===================================================== */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in-view{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* =====================================================
   HEADER
===================================================== */
header.site-header{
  position:fixed;
  inset-inline:0;
  top:0;
  z-index:1000;
  padding:18px 5%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:linear-gradient(180deg,rgba(11,10,8,.75),transparent);
  transition:background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}

header.site-header.scrolled{
  background:rgba(11,10,8,.94);
  backdrop-filter:blur(10px);
  padding:12px 5%;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  border-bottom:1px solid var(--line-dark);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.brand img{ height:44px; width:auto; }

.brand-text{
  color:var(--ivory);
  font-family:'Amiri',serif;
  font-weight:700;
  font-size:19px;
  letter-spacing:.04em;
}

.brand-text span{
  display:block;
  font-family:'Cairo',sans-serif;
  font-weight:400;
  font-size:10px;
  letter-spacing:.14em;
  color:var(--gold-soft);
  margin-top:2px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:38px;
  list-style:none;
}

.nav-links a{
  color:var(--ivory);
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  position:relative;
  padding-bottom:4px;
}

.nav-links a::after{
  content:'';
  position:absolute;
  right:0;
  bottom:0;
  width:0;
  height:1px;
  background:var(--gold);
  transition:width .35s var(--ease);
}

.nav-links a:hover::after{ width:100%; }

.header-actions{
  display:flex;
  align-items:center;
  gap:14px;
}

.language-switch button{
  border:1px solid var(--line-dark);
  background:transparent;
  color:var(--ivory);
  padding:7px 14px;
  border-radius:2px;
  cursor:pointer;
  font-weight:700;
  font-size:12px;
  letter-spacing:.06em;
  transition:.3s;
}

.language-switch button:hover,
.language-switch button.active{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--ink);
}

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
}
.nav-toggle span{
  width:24px; height:2px; background:var(--ivory);
}

/* =====================================================
   HERO
===================================================== */
.hero{
  position:relative;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  color:var(--ivory);
}

.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
}

.hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  animation:kenburns 26s ease-in-out infinite alternate;
}

@keyframes kenburns{
  0%{ transform:scale(1) translate(0,0); }
  100%{ transform:scale(1.16) translate(-1.5%,-2%); }
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(11,10,8,.55) 0%, rgba(11,10,8,.6) 40%, rgba(11,10,8,.94) 100%),
    linear-gradient(90deg, rgba(58,36,20,.35), rgba(11,10,8,.35));
  z-index:1;
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:820px;
  padding:60px 32px;
}

.hero-mark{
  width:96px;
  margin:0 auto 26px;
  opacity:.95;
}

.hero-content .eyebrow{
  justify-content:center;
  color:var(--gold-soft);
}
.hero-content .eyebrow::before{ display:none; }

.hero-content h1{
  font-family:'Amiri',serif;
  font-weight:700;
  font-size:clamp(34px,6vw,64px);
  line-height:1.25;
  margin-bottom:20px;
  letter-spacing:.01em;
}

.hero-content p.lead{
  font-size:clamp(16px,2vw,19px);
  color:var(--muted-dark);
  max-width:560px;
  margin:0 auto 34px;
}

.hero-cta{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}

.scroll-cue{
  position:absolute;
  bottom:34px;
  left:50%;
  transform:translateX(-50%);
  z-index:2;
  width:1px;
  height:60px;
  background:linear-gradient(180deg,var(--gold),transparent);
}
.scroll-cue::after{
  content:'';
  position:absolute;
  top:0; left:50%;
  transform:translateX(-50%);
  width:5px; height:5px;
  border-radius:50%;
  background:var(--gold);
  animation:scrolldown 2.2s infinite;
}
@keyframes scrolldown{
  0%{ top:0; opacity:1; }
  85%{ opacity:0; }
  100%{ top:56px; opacity:0; }
}

/* =====================================================
   BUTTONS
===================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:15px 32px;
  border-radius:2px;
  text-decoration:none;
  font-weight:700;
  font-size:15px;
  letter-spacing:.02em;
  border:1px solid transparent;
  cursor:pointer;
  transition:.35s var(--ease);
}

.btn-gold{
  background:linear-gradient(135deg,var(--gold),var(--oak-light));
  color:var(--ink);
}
.btn-gold:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(201,161,90,.35);
}

.btn-outline{
  border-color:var(--gold-soft);
  color:var(--ivory);
  background:transparent;
}
.btn-outline:hover{
  background:rgba(201,161,90,.1);
  transform:translateY(-3px);
}

.btn-outline-dark{
  border-color:var(--oak);
  color:var(--ink-on-light);
  background:transparent;
}
.btn-outline-dark:hover{
  background:rgba(138,90,52,.08);
  transform:translateY(-3px);
}

/* =====================================================
   SECTIONS / CONTAINER
===================================================== */
section{ padding:110px 5%; }
.container{ max-width:1240px; margin:auto; }

.section-dark{ background:var(--ink); color:var(--ivory); }
.section-panel{ background:var(--panel); color:var(--ivory); }
.section-ivory{ background:var(--ivory); color:var(--ink-on-light); }
.section-ivory-2{ background:var(--ivory-2); color:var(--ink-on-light); }

.head-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  flex-wrap:wrap;
  margin-bottom:56px;
}

/* =====================================================
   ABOUT
===================================================== */
.about-grid{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:70px;
  align-items:center;
}

.about-mark{
  background:var(--panel);
  border:1px solid var(--line-dark);
  padding:60px 40px;
  text-align:center;
  position:relative;
}

.about-mark img{
  width:140px;
  margin:0 auto 24px;
}

.about-mark .quote{
  font-family:'Amiri',serif;
  font-style:italic;
  font-size:19px;
  color:var(--gold-soft);
  line-height:1.9;
}

.about-body p{
  font-size:16.5px;
  color:var(--muted-dark);
  margin-bottom:18px;
}

.about-facts{
  display:flex;
  gap:40px;
  margin-top:36px;
  flex-wrap:wrap;
}

.about-fact b{
  display:block;
  font-family:'Amiri',serif;
  font-size:28px;
  font-weight:700;
  color:var(--gold-soft);
}
.about-fact span{
  font-size:13px;
  color:var(--muted-dark);
}

/* =====================================================
   STATS
===================================================== */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--line-dark);
  border:1px solid var(--line-dark);
}

.stat-box{
  background:var(--ink);
  padding:48px 24px;
  text-align:center;
}

.stat-number{
  font-family:'Amiri',serif;
  font-size:52px;
  font-weight:700;
  color:var(--gold);
  line-height:1;
}
.stat-suffix{
  font-family:'Amiri',serif;
  font-size:34px;
  color:var(--gold);
}

.stat-text{
  display:block;
  margin-top:14px;
  font-size:14px;
  color:var(--muted-dark);
  font-weight:600;
}

/* =====================================================
   SERVICES
===================================================== */
.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1px;
  background:var(--line-light);
  border:1px solid var(--line-light);
}

.service-card{
  background:var(--ivory);
  padding:40px 32px;
  transition:.35s var(--ease);
  position:relative;
}

.service-card:hover{
  background:var(--ink);
  color:var(--ivory);
}

.service-card .num{
  font-family:'Amiri',serif;
  font-size:14px;
  color:var(--oak);
  letter-spacing:.08em;
}
.service-card:hover .num{ color:var(--gold); }

.service-card h3{
  font-family:'Amiri',serif;
  font-weight:700;
  font-size:22px;
  margin:18px 0 12px;
}

.service-card p{
  font-size:14.5px;
  color:var(--muted-light);
}
.service-card:hover p{ color:var(--muted-dark); }

/* =====================================================
   WHY US — مورد واحد
===================================================== */
.why-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  border:1px solid var(--line-light);
}

.why-col{ padding:50px 44px; }

.why-col.old{
  background:var(--ivory-2);
}
.why-col.new{
  background:var(--ink);
  color:var(--ivory);
}

.why-col h4{
  font-family:'Amiri',serif;
  font-size:22px;
  margin-bottom:22px;
}

.why-col ul{ list-style:none; }
.why-col li{
  padding:12px 0;
  border-bottom:1px solid var(--line-light);
  font-size:15px;
  color:var(--muted-light);
  display:flex;
  align-items:center;
  gap:10px;
}
.why-col.new li{
  border-bottom:1px solid var(--line-dark);
  color:var(--ivory);
  font-weight:600;
}

.why-col li i{ color:var(--oak); }
.why-col.new li i{ color:var(--gold); }

/* =====================================================
   FEATURED PROJECT — متحف القرآن
===================================================== */
.feature-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:center;
}

.feature-img{ position:relative; }
.feature-img img{
  width:100%;
  height:480px;
  object-fit:cover;
}

.feature-tag{
  position:absolute;
  bottom:-1px;
  right:-1px;
  background:var(--gold);
  color:var(--ink);
  padding:10px 22px;
  font-weight:700;
  font-size:13px;
  letter-spacing:.05em;
}

.feature-text p{
  color:var(--muted-dark);
  font-size:16.5px;
  margin-bottom:18px;
}

.feature-strip{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin-top:60px;
}
.feature-strip img{
  width:100%;
  height:150px;
  object-fit:cover;
  cursor:pointer;
  transition:.4s;
}
.feature-strip img:hover{ opacity:.8; transform:scale(1.02); }

/* =====================================================
   VIDEO REEL
===================================================== */
.video-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:30px;
}

.video-card{
  position:relative;
  background:#000;
}

.video-card video{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
}

.video-card .video-caption{
  padding:18px 4px 0;
}

.video-card .video-caption h4{
  font-family:'Amiri',serif;
  font-size:19px;
  color:var(--ivory);
}
.video-card .video-caption span{
  font-size:13px;
  color:var(--muted-dark);
}

/* =====================================================
   PROJECT FILTERS + GALLERY
===================================================== */
.filter-bar{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:50px;
}

.filter-btn{
  padding:10px 22px;
  border:1px solid var(--oak);
  background:transparent;
  color:var(--ink-on-light);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  border-radius:2px;
  transition:.3s;
}

.filter-btn:hover,
.filter-btn.active{
  background:var(--ink);
  border-color:var(--ink);
  color:var(--gold-soft);
}

.project-block{
  margin-bottom:64px;
  transition:opacity .3s, transform .3s;
}
.project-block.hide{
  display:none;
}

.project-head{
  display:flex;
  align-items:baseline;
  gap:16px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.project-head h3{
  font-family:'Amiri',serif;
  font-weight:700;
  font-size:23px;
  color:var(--ink-on-light);
}

.project-badge{
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  padding:5px 12px;
  border-radius:2px;
  text-transform:uppercase;
}
.project-badge.gov{ background:rgba(138,90,52,.14); color:var(--oak); }
.project-badge.com{ background:rgba(36,27,16,.08); color:var(--muted-light); }

.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}

.gallery img{
  width:100%;
  height:220px;
  object-fit:cover;
  cursor:pointer;
  transition:.4s var(--ease);
}

.gallery img:hover{
  transform:scale(1.03);
  box-shadow:var(--shadow-md);
}

/* =====================================================
   LIGHTBOX
===================================================== */
#lightbox{
  position:fixed;
  inset:0;
  display:none;
  justify-content:center;
  align-items:center;
  background:rgba(11,10,8,.97);
  z-index:9999;
  padding:40px;
}

#lightbox img{
  max-width:92%;
  max-height:88vh;
}

#lightbox-close{
  position:absolute;
  top:24px;
  left:24px;
  color:var(--ivory);
  font-size:28px;
  cursor:pointer;
  border:1px solid var(--line-dark);
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
}

/* =====================================================
   CONTACT
===================================================== */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:center;
}

.contact-list{ margin-top:30px; }

.contact-item{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px 0;
  border-bottom:1px solid var(--line-dark);
}

.contact-item i{
  width:44px; height:44px;
  border:1px solid var(--gold);
  color:var(--gold);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:17px;
  flex-shrink:0;
}

.contact-item a, .contact-item span{
  color:var(--ivory);
  text-decoration:none;
  font-weight:600;
  font-size:16px;
}
.contact-item small{
  display:block;
  color:var(--muted-dark);
  font-weight:400;
  font-size:12px;
  margin-top:2px;
}

.contact-cta{
  background:var(--panel);
  border:1px solid var(--line-dark);
  padding:50px 40px;
  text-align:center;
}
.contact-cta img{ width:80px; margin:0 auto 20px; }
.contact-cta h3{
  font-family:'Amiri',serif;
  font-size:24px;
  margin-bottom:14px;
  color:var(--ivory);
}
.contact-cta p{
  color:var(--muted-dark);
  margin-bottom:26px;
  font-size:15px;
}

/* =====================================================
   FOOTER
===================================================== */
footer{
  background:var(--ink);
  color:var(--muted-dark);
  padding:50px 5% 26px;
  text-align:center;
  border-top:1px solid var(--line-dark);
}

footer .brand-text{ justify-content:center; margin-bottom:10px; }

footer .footer-links{
  display:flex;
  gap:26px;
  justify-content:center;
  margin:22px 0;
  flex-wrap:wrap;
}
footer .footer-links a{
  color:var(--ivory);
  text-decoration:none;
  font-size:14px;
  font-weight:600;
}
footer .footer-links a:hover{ color:var(--gold); }

footer .legal{
  font-size:12.5px;
  line-height:1.9;
  max-width:760px;
  margin:26px auto 0;
  color:var(--muted-dark);
  opacity:.75;
}

footer .copyright{
  margin-top:26px;
  font-size:12px;
  opacity:.55;
}

/* =====================================================
   WHATSAPP FLOAT
===================================================== */
.whatsapp-float{
  position:fixed;
  bottom:26px;
  inset-inline-end:26px;
  width:60px; height:60px;
  background:#25D366;
  color:#fff;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:28px;
  text-decoration:none;
  z-index:900;
  box-shadow:0 15px 35px rgba(0,0,0,.3);
  animation:pulse 2.4s infinite;
}
.whatsapp-float:hover{ transform:scale(1.08); }

@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(37,211,102,.5); }
  70%{ box-shadow:0 0 0 18px rgba(37,211,102,0); }
  100%{ box-shadow:0 0 0 0 rgba(37,211,102,0); }
}

/* =====================================================
   SCROLLBAR
===================================================== */
::-webkit-scrollbar{ width:9px; }
::-webkit-scrollbar-track{ background:var(--ivory-2); }
::-webkit-scrollbar-thumb{ background:var(--oak); }
::-webkit-scrollbar-thumb:hover{ background:var(--gold); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media(max-width:980px){
  .about-grid, .feature-grid, .contact-grid{
    grid-template-columns:1fr;
    gap:40px;
  }
  .why-grid{ grid-template-columns:1fr; }
  .stats-grid{ grid-template-columns:repeat(2,1fr); }
  .video-grid{ grid-template-columns:1fr; }
  .feature-strip{ grid-template-columns:repeat(3,1fr); }
}

@media(max-width:768px){
  section{ padding:76px 5%; }
  .nav-links{
    position:fixed;
    top:0; inset-inline-end:0;
    height:100vh;
    height:100svh;
    width:min(78vw,320px);
    background:var(--ink);
    flex-direction:column;
    justify-content:center;
    gap:30px;
    transform:translateX(100%);
    transition:transform .4s var(--ease);
    border-inline-start:1px solid var(--line-dark);
  }
  html[dir="rtl"] .nav-links{ transform:translateX(-100%); }
  html[dir="ltr"] .nav-links{ transform:translateX(100%); }
  .nav-links.open{ transform:translateX(0); }
  .nav-toggle{ display:flex; }
  .stats-grid{ grid-template-columns:1fr 1fr; }
  .feature-strip{ grid-template-columns:repeat(2,1fr); }
  .brand-text{ font-size:16px; }
  .brand img{ height:36px; }
}
