/* ============================================================
   HOME PAGE — hero centered + mobile optimized
   ============================================================ */

/* ── HERO ── */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.8s ease;
  background-size: cover;
  background-position: center center;
}
.hero-slide.on { opacity: 1; }
.hs1 { background-image: url('/assets/images/banner-1.jpeg');}
.hs2 { background-image: url('/assets/images/banner-2.jpeg'); }
.hs3 { background-image: url('/assets/images/banner-3.jpeg'); }

/* Strong dark overlay for text legibility */
.hero-ov {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.60) 40%,
    rgba(0,0,0,.70) 100%
  );
  z-index: 1;
}

/* Centered hero content */
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  max-width: 800px;
  padding: 140px 32px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(95,175,58,.22);
  border: 1px solid rgba(95,175,58,.5);
  color: #c6f0a2;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
  letter-spacing: -.5px;
}
.hero-content h1 em {
  font-style: italic;
  color: #9de86a;
}
.hero-content p {
  color: rgba(255,255,255,.88);
  font-size: clamp(.95rem, 2vw, 1.12rem);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

/* Stats bar — centered under hero */
.hero-stats {
  display: flex;
  margin-top: 52px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r);
  overflow: hidden;
}
.hstat {
  padding: 18px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
  flex: 1;
}
.hstat:last-child { border-right: none; }
.hstat .n {
  font-family: var(--fd);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hstat .n sup { font-size: .85rem; color: #9de86a; font-family: var(--fb); }
.hstat .l {
  font-size: .66rem;
  color: rgba(255,255,255,.6);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 3;
}
.hdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: var(--tr);
  border: none;
}
.hdot.on { background: var(--green); width: 28px; border-radius: 4px; }

/* ── INTRO STRIP ── */
.intro-strip { background: var(--green); padding: 24px 0; }
.intro-strip-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.intro-strip p { color: rgba(255,255,255,.92); font-size: .97rem; font-weight: 500; margin: 0; }
.intro-strip p strong { color: #fff; }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--green);
  padding: 11px 26px; border-radius: 50px;
  font-weight: 700; font-size: .86rem;
  transition: var(--tr); white-space: nowrap;
}
.btn-white:hover { background: var(--green-xlt); transform: translateY(-2px); }

/* ── OVERVIEW ── */
.hov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hov-text h2 { margin-bottom: 18px; }
.hov-text p  { margin-bottom: 14px; }
.hov-feats   { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 26px; }
.hov-feat {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px;
  background: var(--green-xlt);
  border-radius: var(--rsm);
  border-left: 3px solid var(--green);
}
.hov-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.hov-feat span { font-size: .83rem; font-weight: 600; color: var(--dark2); }
.hov-visual { position: relative; }
.hov-img-main {
  border-radius: var(--rlg); overflow: hidden;
  aspect-ratio: 4/5; box-shadow: var(--shlg);
}
.hov-img-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hov-img-float {
  position: absolute; bottom: -22px; left: -22px;
  width: 175px; height: 175px;
  border-radius: var(--r); overflow: hidden;
  border: 4px solid #fff; box-shadow: var(--shlg);
}
.hov-img-float img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hov-badge {
  position: absolute; top: 24px; right: -18px;
  background: var(--green); color: #fff;
  border-radius: var(--r); padding: 20px;
  text-align: center; box-shadow: var(--shg);
}
.hov-badge .bn { font-family: var(--fd); font-size: 2rem; font-weight: 700; line-height: 1; }
.hov-badge .bt { font-size: .67rem; opacity: .9; margin-top: 5px; line-height: 1.3; }

/* ── SERVICES PREVIEW ── */
.hsv-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.hsv-card {
  background: #fff; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shsm); border: 1px solid var(--g200);
  transition: var(--tr);
}
.hsv-card:hover { transform: translateY(-6px); box-shadow: var(--shlg); border-color: transparent; }
.hsv-card-img { height: 155px; overflow: hidden; }
.hsv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.hsv-card:hover .hsv-card-img img { transform: scale(1.07); }
.hsv-card-body { padding: 18px 20px 22px; }
.hsv-card-body::before { content: ''; display: block; width: 28px; height: 2px; background: var(--green); border-radius: 2px; margin-bottom: 11px; }
.hsv-card-body h3 { font-size: .97rem; margin-bottom: 8px; }
.hsv-card-body p  { font-size: .81rem; line-height: 1.6; margin-bottom: 12px; }
.hsv-link { font-size: .8rem; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 5px; transition: gap .22s; }
.hsv-link:hover { gap: 9px; }

/* ── HOW WE WORK ── */
.proc-steps { display: grid; grid-template-columns: repeat(6,1fr); position: relative; margin-top: 60px; }
.proc-steps::before {
  content: ''; position: absolute;
  top: 36px; left: 8.33%; right: 8.33%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  z-index: 0;
}
.proc-step { text-align: center; position: relative; z-index: 1; padding: 0 10px; }
.step-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: #fff; border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: var(--shg);
  position: relative; transition: var(--tr);
}
.step-circle:hover { background: var(--green-lt); transform: scale(1.08); }
.step-num {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px;
  background: var(--green); color: #fff;
  border-radius: 50%; font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fb);
}
.step-icon { width: 26px; height: 26px; stroke: var(--green); stroke-width: 1.8; fill: none; }
.proc-step h4 { font-size: .8rem; font-family: var(--fb); font-weight: 600; color: var(--dark2); line-height: 1.45; }

/* ── STATS BANNER ── */
.stats-banner { position: relative; overflow: hidden; }
.stats-banner-img { position: absolute; inset: 0; }
.stats-banner-img img { width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.stats-banner-bg { position: absolute; inset: 0; background: linear-gradient(135deg,#0d1f08 0%,#1a3a0f 40%,#2d6e18 100%); }
.stats-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; text-align: center; padding: 64px 0;
}
.stat-item { padding: 22px 20px; border-right: 1px solid rgba(255,255,255,.1); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-family: var(--fd); font-size: 2.8rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-item .num sup { font-size: 1.1rem; color: #9de86a; font-family: var(--fb); }
.stat-item .lbl2 { font-size: .73rem; color: rgba(255,255,255,.52); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 8px; }
.stat-item p { color: rgba(255,255,255,.42); font-size: .78rem; margin-top: 4px; }

/* ── FEATURED PROJECTS ── */
.hpr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.hpr-card {
  background: #fff; border-radius: var(--r);
  box-shadow: var(--shsm); border: 1px solid var(--g200);
  overflow: hidden; display: grid;
  grid-template-columns: 130px 1fr; transition: var(--tr);
}
.hpr-card:hover { box-shadow: var(--shmd); transform: translateY(-3px); }
.hpr-img { overflow: hidden; min-height: 120px; }
.hpr-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.hpr-card:hover .hpr-img img { transform: scale(1.06); }
.hpr-body { padding: 18px 20px; }
.hpr-tag { font-size: .67rem; font-weight: 600; color: var(--green); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.hpr-body h4 { font-size: .95rem; margin-bottom: 5px; color: var(--dark2); }
.hpr-body p  { font-size: .79rem; color: var(--g400); margin-bottom: 10px; }
.hpr-val { font-family: var(--fd); font-size: .98rem; font-weight: 700; color: var(--green); }
.hpr-val::before { content: 'AED '; font-size: .63rem; font-weight: 500; opacity: .65; }

/* ── TESTIMONIALS ── */
.test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.test-card {
  background: #fff; border-radius: var(--r);
  padding: 30px; box-shadow: var(--shsm);
  border: 1px solid var(--g200); position: relative;
  overflow: hidden; transition: var(--tr);
}
.test-card:hover { transform: translateY(-4px); box-shadow: var(--shmd); }
.test-card::before { content: '"'; font-family: var(--fd); font-size: 4rem; color: var(--green); opacity: .12; position: absolute; top: 14px; left: 22px; line-height: 1; }
.test-stars { color: #f5a623; font-size: .88rem; margin-bottom: 13px; letter-spacing: 2px; }
.test-card p { font-size: .87rem; line-height: 1.75; color: var(--g600); font-style: italic; margin-bottom: 18px; }
.test-author { display: flex; align-items: center; gap: 11px; }
.test-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-lt); display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-size: 1rem; font-weight: 700; color: var(--green); flex-shrink: 0; }
.test-name { font-weight: 600; font-size: .86rem; color: var(--dark2); }
.test-loc  { font-size: .74rem; color: var(--g400); }

/* ── CTA BANNER ── */
.cta-banner { position: relative; overflow: hidden; padding: 80px 0; }
.cta-banner-bg { position: absolute; inset: 0; background: linear-gradient(110deg,#1a3a0f 0%,#3d7a1e 60%,#5FAF3A 100%); }
.cta-banner-img { position: absolute; inset: 0; }
.cta-banner-img img { width: 100%; height: 100%; object-fit: cover; opacity: .1; }
.cta-content {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-content h2 { color: #fff; margin-bottom: 10px; }
.cta-content p  { color: rgba(255,255,255,.75); max-width: 520px; }
.cta-btns { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .hsv-grid  { grid-template-columns: repeat(2, 1fr); }
  .proc-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .proc-steps::before { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .test-grid { grid-template-columns: 1fr 1fr; }
  .hov-grid { gap: 50px; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Hero */
  .hero-content { padding: 100px 20px 80px; }
  .hero-content h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-content p  { font-size: .94rem; }
  .hero-stats { flex-wrap: wrap; border-radius: var(--rsm); width: 100%; }
  .hstat { flex: 1 1 45%; padding: 14px 16px; }
  .hero-btns { flex-direction: column; align-items: center; width: 100%; }
  .hero-btns .btn-pri,
  .hero-btns .btn-out { width: 100%; max-width: 320px; justify-content: center; }

  /* Intro strip */
  .intro-strip-inner { flex-direction: column; text-align: center; }

  /* Overview */
  .hov-grid { grid-template-columns: 1fr; gap: 40px; }
  .hov-visual { order: -1; }
  .hov-img-float { display: none; }
  .hov-badge { top: 16px; right: 16px; }
  .hov-feats { grid-template-columns: 1fr; }

  /* Services */
  .hsv-grid { grid-template-columns: 1fr; }

  /* Process */
  .proc-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Stats */
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item .num { font-size: 2.1rem; }

  /* Projects */
  .hpr-grid { grid-template-columns: 1fr; }
  .hpr-card { grid-template-columns: 110px 1fr; }

  /* Testimonials */
  .test-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-content { flex-direction: column; text-align: center; }
  .cta-btns { justify-content: center; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.75rem; letter-spacing: 0; }
  .hero-badge { font-size: .65rem; padding: 6px 14px; }
  .hero-stats { flex-direction: row; }
  .hstat { padding: 12px 10px; }
  .hstat .n { font-size: 1.5rem; }
  .hstat .l { font-size: .58rem; }
  .proc-steps { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .hpr-card { grid-template-columns: 1fr; }
  .hpr-img { height: 160px; }
  .hsv-grid { grid-template-columns: 1fr; }
}
