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

:root {
  --green-dark:  #0a2e1a;
  --green-mid:   #0f3d25;
  --green-main:  #1a6b3c;
  --green-light: #2d8a52;
  --green-pale:  #e8f5e9;
  --orange:      #d4861a;
  --orange-light:#f0a030;
  --orange-pale: #fff3e0;
  --beige:       #c9a96e;
  --beige-pale:  #f9f4ed;
  --white:       #ffffff;
  --gray-100:    #f7f7f4;
  --gray-200:    #edece7;
  --gray-500:    #8a8a82;
  --gray-800:    #2c2c28;
  --text:        #1a1a16;
  --shadow:      0 4px 24px rgba(10,46,26,.10);
  --shadow-lg:   0 12px 48px rgba(10,46,26,.18);
  --radius:      12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Tajawal', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; direction: rtl; }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--green-main); border-radius: 3px; }

/* ===================== NAV ===================== */
#navbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  height: 72px; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,46,26,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,169,110,.2);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.35); }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 48px; width: auto; object-fit: contain; filter: brightness(1.1); }
.nav-logo-label { display: flex; flex-direction: column; }
.nav-logo-label .n1 { font-size: 15px; font-weight: 800; color: #fff; line-height: 1.1; }
.nav-logo-label .n2 { font-size: 10px; color: var(--beige); letter-spacing: .1em; }

.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--beige); }
.nav-cta { background: var(--orange) !important; color: var(--green-dark) !important; padding: 8px 20px !important; border-radius: 8px !important; font-weight: 800 !important; }
.nav-cta:hover { background: var(--orange-light) !important; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }

.mobile-menu {
  display: none; position: fixed; top: 72px; right: 0; left: 0;
  background: var(--green-dark); padding: 20px 5%; z-index: 999;
  border-top: 1px solid rgba(201,169,110,.2);
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 14px; }
.mobile-menu a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 16px; font-weight: 500; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }

/* ===================== HERO ===================== */
#hero {
  min-height: 100vh;
  background: var(--green-dark);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 100px 5% 60px;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background: url('../assets/hero-bg.jpg') center/cover no-repeat;
  opacity: .6;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,46,26,.72) 40%, rgba(10,46,26,.28) 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size: 55px 55px;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,134,26,.15); border: 1px solid rgba(212,134,26,.35);
  color: var(--beige); padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 28px;
  animation: fadeUp .8s ease both;
}
.hero-badge span.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

.hero h1 { font-size: clamp(36px,5vw,64px); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 20px; animation: fadeUp .8s .1s ease both; }
.hero h1 em { color: var(--orange); font-style: normal; }

.hero-sub { font-size: 18px; color: rgba(255,255,255,.7); margin-bottom: 36px; max-width: 520px; animation: fadeUp .8s .2s ease both; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .8s .3s ease both; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius); font-size: 16px; font-weight: 800; text-decoration: none; transition: all .2s; cursor: pointer; border: none; font-family: 'Tajawal', sans-serif; }
.btn-primary { background: var(--orange); color: var(--green-dark); box-shadow: 0 4px 20px rgba(212,134,26,.4); }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,134,26,.5); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-outline:hover { border-color: var(--beige); color: var(--beige); transform: translateY(-2px); }
.btn-green { background: var(--green-main); color: #fff; }
.btn-green:hover { background: var(--green-light); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 36px; margin-top: 52px; flex-wrap: wrap; animation: fadeUp .8s .4s ease both; }
.hero-stat .num { font-size: 34px; font-weight: 900; color: var(--orange); line-height: 1; }
.hero-stat .lbl { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 3px; }

@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }

/* ===================== SECTIONS ===================== */
section { padding: 88px 5%; }
.sec-label { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--green-main); text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sec-label::before { content:''; width: 28px; height: 2px; background: var(--orange); }
.sec-title { font-size: clamp(26px,3.5vw,44px); font-weight: 900; color: var(--green-dark); line-height: 1.2; margin-bottom: 14px; }
.sec-title em { color: var(--orange); font-style: normal; }
.sec-sub { font-size: 16px; color: var(--gray-500); max-width: 560px; line-height: 1.85; }

/* ===================== ABOUT ===================== */
#about { background: var(--gray-100); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 32px; }
.about-img-wrap { position: relative; }
.about-logo-big { width: 100%; max-width: 420px; filter: drop-shadow(0 12px 40px rgba(26,107,60,.2)); animation: floatAnim 5s ease-in-out infinite; }
@keyframes floatAnim { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.about-year-badge {
  position: absolute; bottom: -10px; left: 10px;
  background: var(--green-dark); color: var(--beige);
  padding: 14px 22px; border-radius: 14px;
  border: 1px solid rgba(201,169,110,.3);
  text-align: center;
}
.about-year-badge .y { font-size: 30px; font-weight: 900; color: var(--orange); }
.about-year-badge .t { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }

.about-items { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.about-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 12px; background: var(--white); border: 1px solid var(--gray-200); transition: all .2s; }
.about-item:hover { border-color: rgba(26,107,60,.25); box-shadow: var(--shadow); }
.about-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--green-main); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.about-icon svg { width: 22px; height: 22px; stroke: var(--beige); fill: none; stroke-width: 2; }
.about-item h4 { font-size: 16px; font-weight: 700; color: var(--green-dark); margin-bottom: 3px; }
.about-item p { font-size: 14px; color: var(--gray-500); }

/* ===================== SERVICES ===================== */
#services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 20px; margin-top: 48px; }
.service-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 32px 26px; transition: all .3s; position: relative; overflow: hidden; }
.service-card::after { content:''; position: absolute; bottom:0; right:0; width:70px; height:70px; background: radial-gradient(circle,rgba(212,134,26,.08) 0%,transparent 70%); transition: all .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(212,134,26,.3); }
.service-card:hover::after { width: 150px; height: 150px; }
.svc-icon { width: 58px; height: 58px; border-radius: 14px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.svc-icon svg { width: 28px; height: 28px; stroke: var(--green-main); fill: none; stroke-width: 2; }
.service-card h3 { font-size: 20px; font-weight: 800; color: var(--green-dark); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--gray-500); line-height: 1.85; }
.svc-tag { display: inline-block; margin-top: 16px; background: var(--orange-pale); color: #8a5200; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; }

/* ===================== PROJECTS ===================== */
#projects { background: var(--gray-100); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; margin-top: 48px; }
.project-card { background: var(--white); border-radius: 16px; border: 1px solid var(--gray-200); overflow: hidden; transition: all .3s; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-header { background: var(--green-dark); padding: 28px 22px; display: flex; align-items: center; gap: 14px; }
.project-icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(212,134,26,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.project-icon svg { width: 22px; height: 22px; stroke: var(--beige); fill: none; stroke-width: 2; }
.project-header h4 { font-size: 16px; font-weight: 700; color: #fff; }
.project-header .loc { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 3px; }
.project-body { padding: 20px 22px; }
.project-body p { font-size: 14px; color: var(--gray-500); line-height: 1.8; margin-bottom: 14px; }
.project-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-badge { background: var(--green-pale); color: var(--green-main); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; }
.meta-badge.orange { background: var(--orange-pale); color: #7a4800; }

/* ===================== WHY US ===================== */
#whyus { background: var(--green-dark); position: relative; overflow: hidden; }
#whyus .sec-label { color: var(--beige); }
#whyus .sec-title { color: #fff; }
#whyus .sec-sub { color: rgba(255,255,255,.6); }
.whyus-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 18px; margin-top: 48px; }
.why-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 26px 22px; transition: all .2s; }
.why-card:hover { background: rgba(255,255,255,.1); border-color: rgba(201,169,110,.25); }
.why-num { font-size: 38px; font-weight: 900; color: var(--orange); line-height: 1; margin-bottom: 10px; }
.why-card h4 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.8; }
.whyus-bg-deco { position: absolute; top: -80px; left: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle,rgba(212,134,26,.07) 0%,transparent 65%); }

/* ===================== CONTACT ===================== */
#contact { background: var(--beige-pale); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; margin-top: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.c-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--white); border: 1px solid var(--gray-200); text-decoration: none; transition: all .2s; }
.c-item:hover { border-color: rgba(26,107,60,.25); box-shadow: var(--shadow); }
.c-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--green-main); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-icon svg { width: 20px; height: 20px; stroke: var(--beige); fill: none; stroke-width: 2; }
.c-label { font-size: 11px; color: var(--gray-500); font-weight: 500; }
.c-value { font-size: 15px; color: var(--green-dark); font-weight: 700; margin-top: 2px; }
.contact-map { border-radius: 14px; overflow: hidden; border: 1px solid var(--gray-200); margin-top: 14px; }

.contact-form { background: var(--white); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.contact-form h3 { font-size: 22px; font-weight: 800; color: var(--green-dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--green-dark); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 15px;
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  font-size: 15px; font-family: 'Tajawal', sans-serif;
  color: var(--text); background: var(--gray-100);
  transition: all .2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--green-main); background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,107,60,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-msg { display: none; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.form-msg.success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; display: block; }
.form-msg.error   { background: #fdecea; color: #b71c1c; border: 1px solid #ef9a9a; display: block; }

/* ===================== FOOTER ===================== */
footer { background: #061a0e; padding: 48px 5% 24px; border-top: 1px solid rgba(255,255,255,.05); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-brand .logo-wrap img { height: 56px; width: auto; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.45); max-width: 280px; line-height: 1.8; }
.footer-col h5 { font-size: 15px; font-weight: 700; color: var(--beige); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--beige); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-bottom .brand { color: var(--orange); font-weight: 700; }

/* ===================== WHATSAPP FLOAT ===================== */
.wa-float { position: fixed; bottom: 28px; left: 28px; z-index: 900; width: 56px; height: 56px; border-radius: 50%; background: #25d366; box-shadow: 0 4px 20px rgba(37,211,102,.5); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all .2s; animation: bounceIn 1s 1s ease both; }
.wa-float:hover { transform: scale(1.12); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
@keyframes bounceIn { from{opacity:0;transform:scale(.3)} 80%{transform:scale(1.1)} to{opacity:1;transform:scale(1)} }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.on { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media(max-width:900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-img-wrap { text-align: center; }
  .about-logo-big { max-width: 280px; }
}
@media(max-width:640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  section { padding: 60px 5%; }
  .footer-top { flex-direction: column; }
}
