/* ================================================
   ASHMAAN GROUP — HOME PAGE SPECIFIC STYLES
   home.css — loaded only on index.html
   ================================================ */

/* ─────────────────────────────────────────────────
   NAVBAR — ENHANCED (logo only, no duplicate)
───────────────────────────────────────────────── */
.nav-logo { display: flex; align-items: center; gap: 0; text-decoration: none; }

/* Text fallback — only shows if image fails */
.nav-logo-text {
  display: none;
  flex-direction: column;
}
.nav-logo-text.visible { display: flex; }

/* ─────────────────────────────────────────────────
   FULLSCREEN HERO SLIDER
───────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background: #050c14;
}

/* Track holds all slides */
.hs-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Individual slide */
.hs-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1), visibility 1.1s;
  display: flex;
  align-items: center;
  padding-bottom: 168px;
  box-sizing: border-box;
}
.hs-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hs-slide.leaving {
  opacity: 0;
  visibility: visible;
  z-index: 1;
}

/* Background image layer */
.hs-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
  will-change: transform;
}
.hs-slide.active .hs-bg { transform: scale(1); }

/* Optimized slide backgrounds using responsive query weights */
.hs-bg-1 { background-image: url('hero-facade.png'); }
.hs-bg-2 { background-image: url('hero-curtain-wall.png'); }
.hs-bg-3 { background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1920&q=80&auto=format&fit=crop'); }
.hs-bg-4 { background-image: url('hero-remediation.png'); }
.hs-bg-5 { background-image: url('https://images.unsplash.com/photo-1496568816309-51d7c20e3b21?w=1920&q=80&auto=format&fit=crop'); }

@media (max-width: 900px) {
  .hs-bg-1 { background-image: url('hero-facade.png'); background-position: 70% center; }
  .hs-bg-2 { background-image: url('hero-curtain-wall.png'); }
  .hs-bg-3 { background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=900&q=80&auto=format&fit=crop'); }
  .hs-bg-4 { background-image: url('hero-remediation.png'); }
  .hs-bg-5 { background-image: url('https://images.unsplash.com/photo-1496568816309-51d7c20e3b21?w=900&q=80&auto=format&fit=crop'); }
}

@media (max-width: 600px) {
  .hs-bg-1 { background-image: url('hero-facade.png'); background-position: 70% center; }
  .hs-bg-2 { background-image: url('hero-curtain-wall.png'); }
  .hs-bg-3 { background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=600&q=80&auto=format&fit=crop'); }
  .hs-bg-4 { background-image: url('hero-remediation.png'); }
  .hs-bg-5 { background-image: url('https://images.unsplash.com/photo-1496568816309-51d7c20e3b21?w=600&q=80&auto=format&fit=crop'); }
}

/* Dark gradient overlay — stronger on left for text legibility */
.hs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5,12,20,.94) 0%,
    rgba(8,15,26,.85) 38%,
    rgba(8,15,26,.60) 65%,
    rgba(8,15,26,.48) 100%
  );
  z-index: 1;
}

/* Slide content */
.hs-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-w, 1280px);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  padding-top: 160px; /* Shifted down to create 68px clearance from the header logo */
}

/* Animated pill */
.hs-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(125,194,66,.12);
  border: 1px solid rgba(125,194,66,.35);
  color: #7dc242;
  padding: 7px 18px;
  border-radius: 24px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease .1s, transform .6s ease .1s;
}
.hs-slide.active .hs-pill { opacity: 1; transform: translateY(0); }

.hs-dot {
  width: 8px;
  height: 8px;
  background: #7dc242;
  border-radius: 50%;
  animation: blink 2s ease infinite;
  flex-shrink: 0;
}

/* Slide title */
.hs-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 28px;
  max-width: 700px;
}
.hs-line-1, .hs-line-2, .hs-line-3 {
  display: block;
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.hs-line-2 { color: #7dc242; font-weight: 800; }
.hs-slide.active .hs-line-1 { opacity: 1; transform: none; transition-delay: .25s; }
.hs-slide.active .hs-line-2 { opacity: 1; transform: none; transition-delay: .38s; }
.hs-slide.active .hs-line-3 { opacity: 1; transform: none; transition-delay: .51s; }

/* Slide description */
.hs-desc {
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  color: rgba(255,255,255,.8);
  max-width: 560px;
  line-height: 1.82;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease .62s, transform .65s ease .62s;
}
.hs-slide.active .hs-desc { opacity: 1; transform: none; }

/* Slide buttons */
.hs-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease .76s, transform .6s ease .76s;
}
.hs-slide.active .hs-btns { opacity: 1; transform: none; }

/* ── Navigation Arrows ── */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  background: rgba(8,15,26,.6);
  border: 1px solid rgba(125,194,66,.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  backdrop-filter: blur(8px);
}
.hs-arrow svg { width: 20px; height: 20px; }
.hs-arrow:hover {
  background: #7dc242;
  border-color: #7dc242;
  color: #000;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 24px rgba(125,194,66,.4);
}
.hs-prev { left: 28px; }
.hs-next { right: 28px; }

/* ── Dot Indicators ── */
.hs-dots {
  position: absolute;
  bottom: 175px; /* offset to sit above scroll hint and bottom trust bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hs-dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: all .35s ease;
  padding: 0;
}
.hs-dot-btn.active {
  width: 28px;
  border-radius: 4px;
  background: #7dc242;
}
.hs-dot-btn:hover { background: rgba(125,194,66,.7); }

/* ── Slide Counter ── */
.hs-counter {
  position: absolute;
  bottom: 92px;
  right: 32px;
  z-index: 10;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 4px;
}
#hsCurrent { color: #7dc242; font-size: 1.3rem; }
.hs-divider { color: rgba(255,255,255,.35); font-size: .85rem; margin: 0 3px; }
.hs-total { font-size: .85rem; }

/* ── Progress Bar ── */
.hs-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.1);
  z-index: 10;
}
.hs-progress-bar {
  height: 100%;
  background: #7dc242;
  width: 0%;
  transition: none;
}

/* ── Scroll Hint ── */
.scroll-hint {
  position: absolute;
  bottom: 120px; /* offset to sit above bottom trust bar & ticker */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.45);
  font-size: .68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-mouse::after {
  content: '';
  width: 3px;
  height: 7px;
  background: #7dc242;
  border-radius: 2px;
  animation: scrollball 2s ease infinite;
}
@keyframes scrollball {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ─────────────────────────────────────────────────
   BOTTOM TRUST BAR & TICKER
   ───────────────────────────────────────────────── */
.hero-bottom-area {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
}
.trust-bar {
  background: rgba(8, 15, 26, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(125,194,66,.12);
  padding: 10px 0;
  width: 100%;
}
.trust-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
.trust-item-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tbi-icon {
  font-size: 1.1rem;
  color: var(--green);
  line-height: 1;
}
.tbi-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.tbi-txt strong {
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tbi-txt span {
  font-size: 0.62rem;
  color: var(--text-sec);
  font-weight: 500;
}
.trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────
   TRUST RIBBON (directly below navbar, above hero)
───────────────────────────────────────────────── */
.trust-ribbon {
  position: fixed;
  top: 116px; /* navbar height */
  left: 0;
  right: 0;
  z-index: 999;
  background: #080f1a;
  border-bottom: 1px solid rgba(125,194,66,.14);
  padding: 12px 0;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.navbar.scrolled + .trust-ribbon {
  top: 76px; /* scrolled navbar height */
  background: rgba(8,15,26,.96);
  backdrop-filter: blur(24px);
}
.trust-ribbon-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tr-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.tr-icon {
  color: #7dc242;
  font-size: 0.95rem;
}
.tr-divider {
  width: 1px;
  height: 16px;
  background: rgba(125,194,66,.2);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────
   METRICS BAND
───────────────────────────────────────────────── */
.metrics-band {
  background: linear-gradient(135deg, #0c1a2e 0%, #080f1a 100%);
  border-top: 1px solid rgba(125,194,66,.1);
  border-bottom: 1px solid rgba(125,194,66,.1);
  padding: 40px 0;
}
.metrics-band .container {
  max-width: 1440px;
}
.mb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
}
.mb-item {
  text-align: center;
  padding: 10px 15px;
}
.mb-item:not(:last-child) {
  border-right: 1px solid rgba(125,194,66,.15);
}
.mb-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  color: #7dc242;
  line-height: 1;
  margin-bottom: 8px;
}
.mb-lbl {
  font-size: .8rem;
  color: #94aabf;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mb-divider {
  display: none;
}

/* ─────────────────────────────────────────────────
   ABOUT — enhanced with real image + floating card
───────────────────────────────────────────────── */
.about-img-box {
  position: relative;
}
.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  min-height: 440px;
}
/* Floating cert card */
.about-cert-card {
  position: absolute;
  top: 24px;
  left: -22px;
  background: rgba(8,15,26,.9);
  border: 1px solid rgba(125,194,66,.3);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  z-index: 3;
  animation: float-cert 4s ease-in-out infinite;
}
@keyframes float-cert {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.acc-ico { font-size: 1.5rem; }
.acc-txt strong { display: block; font-size: .85rem; font-weight: 800; color: #7dc242; }
.acc-txt span { font-size: .72rem; color: #94aabf; }

/* ─────────────────────────────────────────────────
   WHY CHOOSE US — right side image
───────────────────────────────────────────────── */
.why-visual {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  z-index: 1;
}
.why-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(125,194,66,0.12) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}
.why-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(125,194,66,.14);
  display: block;
  position: relative;
  z-index: 2;
}
.why-cert-strip {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8,15,26,.94);
  border: 1px solid rgba(125,194,66,.28);
  border-radius: 10px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  white-space: nowrap;
  z-index: 3;
}
.wcs-item { display: flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: #fff; }
.wcs-item span { font-size: 1rem; }
.wcs-divider { width: 1px; height: 20px; background: rgba(125,194,66,.2); }

/* ─────────────────────────────────────────────────
   PROJECT CARDS — image overlay
───────────────────────────────────────────────── */
.proj-img { position: relative; }
.proj-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,15,26,.6) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.proj-badge { z-index: 2; }

/* ─────────────────────────────────────────────────
   RESPONSIVE ADDITIONS
───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hs-slide { padding-bottom: 130px; }
  .hs-content { padding-top: 130px; }
  .hs-line-1, .hs-line-2, .hs-line-3 { font-size: clamp(2rem,6vw,3rem); }
  .hs-desc { font-size: .95rem; max-width: 100%; }
  .hs-prev { left: 14px; }
  .hs-next { right: 14px; }
  .hs-arrow { width: 44px; height: 44px; }
  .hs-dots { bottom: 155px; }
  .scroll-hint { bottom: 110px; }
  .trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
    justify-content: center;
  }
  .trust-divider {
    display: none;
  }
  .mb-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .mb-divider { display: none; }
  .mb-item { padding: 10px 15px; border-right: none; }
  .mb-item:not(:last-child) { border-right: none; }
  .why-visual { margin-top: 32px; width: 100%; max-width: 680px; margin-left: auto; margin-right: auto; }
  .why-visual img { height: 380px; }
  .why-cert-strip { font-size: .75rem; padding: 12px 16px; gap: 10px; }
  .about-cert-card { left: 8px; }
  .about-img-box { min-height: auto; aspect-ratio: 4 / 3; border-radius: 16px; }
  .about-img-box img { min-height: auto; height: auto; aspect-ratio: 4 / 3; border-radius: 16px; }
}
@media (max-width: 600px) {
  .hero-slider { min-height: 100svh; }
  .hs-slide { padding-bottom: 118px; }
  .hs-content { padding-top: 120px; }
  .hs-title { max-width: 100%; }
  .hs-line-1, .hs-line-2, .hs-line-3 { font-size: clamp(1.35rem, 6.8vw, 1.85rem); }
  .hs-desc { display: none; }
  .hs-btns { flex-direction: column; gap: 12px; }
  .hs-btns .btn { width: 100%; justify-content: center; }
  .hs-arrow { display: none; }
  .hs-dots { bottom: 140px; }
  .scroll-hint { bottom: 100px; }
  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
  }
  .mb-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .mb-item:last-child { grid-column: span 2; }
  .mb-divider { display: none; }
  .about-cert-card { display: none; }
  .why-visual { margin-top: 24px; width: 100%; max-width: 100%; }
  .why-visual img { height: auto; aspect-ratio: 4 / 3; border-radius: 14px; }
  .why-cert-strip {
    position: static;
    transform: none;
    margin-top: 16px;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    font-size: .75rem;
    padding: 12px 16px;
  }
  .why-cert-strip .wcs-divider { display: none; }
  .about-img-box { border-radius: 12px; }
  .about-img-box img { border-radius: 12px; }
}

@media (max-width: 480px) {
  .mb-num {
    font-size: 2rem;
  }
  .mb-lbl {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
  }
  .mb-grid {
    gap: 16px 8px;
  }
  .tbi-txt strong {
    font-size: 0.68rem;
  }
  .tbi-txt span {
    font-size: 0.56rem;
  }
  .tbi-icon {
    font-size: 0.95rem;
  }
}
