/* =============================================
   03-hero-sections.css — Home Hero Section, Feature Cards, Scroll Indicator
   ============================================= */

/* ============================= */
/* HERO SECTION                  */
/* ============================= */

.hero-section {
  min-height: calc(100vh - 90px);
  padding: 60px 0 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Background */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      rgba(9, 18, 40, 0.97) 0%,
      rgba(18, 34, 70, 0.96) 45%,
      rgba(25, 50, 100, 0.93) 100%
    ),
    url("images/Network-security.webp") center/cover no-repeat;
}

/* Content Layout */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 90px;
  align-items: flex-start;
}

/* LEFT SIDE */
.hero-text {
  color: #ffffff;
}

#hero .hero-title {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 22px;
  max-width: 520px;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-btn-primary,
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.hero-btn-primary {
  background: #0d3b88;
  color: #ffffff;
  border: 1.5px solid #0d3b88;
}

.hero-btn-primary:hover {
  background: #f58220;
  border-color: #f58220;
  transform: translateY(-2px);
}

.hero-btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.hero-btn-secondary:hover {
  background: #ffffff;
  color: #0f1c3f;
  transform: translateY(-2px);
}

/* Stats strip */
.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 22px;
  margin-top: 10px;
  margin-left: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hstat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f19839;
  letter-spacing: -0.02em;
}

.hstat-lbl {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 2px;
}

/* RIGHT SIDE — FEATURES */
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
  width: 100%;
  max-width: 460px;
}

/* ── Feature Card (single definition) ── */
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  height: 56px;
  /* FIX: removed white-space: nowrap — caused overflow on mobile */
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  opacity: 0;
  transform: translateX(20px);
  animation: cardSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 0.07s + 0.3s);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}

@keyframes cardSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Orange left-border reveal */
.feature-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #f19839, #f58220);
  border-radius: 3px 0 0 3px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-link:hover .feature-item::before {
  transform: scaleY(1);
}

.feature-link {
  text-decoration: none;
  color: inherit;
}

.feature-link:hover .feature-item {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(241, 152, 57, 0.4);
  transform: translateX(6px);
  color: #fff;
}

/* Arrow indicator */
.feature-arrow {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  margin-left: auto;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.feature-link:hover .feature-arrow {
  color: #f19839;
  transform: translateX(3px);
}

.feature-link:hover .feature-icon {
  background: rgba(241, 152, 57, 0.22);
}

/* Featured — Managed IT */
.feature-item.feature-featured {
  background: rgba(241, 152, 57, 0.08);
  border-color: rgba(241, 152, 57, 0.35);
  border-left: 3px solid #f19839;
  color: #fff;
}
.feature-item.feature-featured::before {
  display: none;
}
.feature-item.feature-featured .feature-icon {
  background: rgba(241, 152, 57, 0.2);
}
.feature-item.feature-featured .feature-arrow {
  color: rgba(241, 152, 57, 0.55);
}
.feature-link:hover .feature-item.feature-featured {
  background: rgba(241, 152, 57, 0.14);
  border-color: rgba(241, 152, 57, 0.6);
}

/* Icon */
#hero .feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

#hero .feature-icon svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease;
}

#hero .feature-link:hover .feature-icon svg {
  stroke: #f19839;
}
#hero .feature-item.feature-featured .feature-icon svg {
  stroke: #f19839;
}

/* ============================= */
/* RESPONSIVE                    */
/* ============================= */

/* Tablet */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 30px;
  }

  .hero-section {
    padding: 70px 0 50px;
  }

  .hero-features {
    max-width: 100%; /* FIX: allow full width on tablet */
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-features {
    max-width: 100%;
    gap: 10px;
  }

  .feature-item {
    height: auto; /* FIX: allow text to wrap naturally */
    min-height: 52px;
    padding: 10px 14px;
    white-space: normal; /* FIX: allow wrapping */
  }
}

/* Small mobile */
@media (max-width: 576px) {
  .hero-content {
    padding: 0 16px; /* FIX: tighter edge padding on small screens */
  }

  .hero-section {
    padding: 50px 0 40px;
  }

  .hero-stats {
    gap: 16px; /* FIX: was 48px — too wide on mobile */
    flex-wrap: wrap;
    margin-left: 0; /* FIX: remove the 50px left indent on mobile */
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  #hero .hero-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }
}

/* ============================= */
/* SCROLL INDICATOR              */
/* ============================= */

.global-scroll-indicator {
  position: fixed;
  bottom: max(30px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 999;
  padding: 8px;
}

@media (max-width: 768px) {
  .global-scroll-indicator {
    display: none;
  }
}

.scroll-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(15, 28, 63, 0.95),
    rgba(36, 62, 126, 0.9)
  );
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-arrow:hover {
  background: linear-gradient(135deg, #f19839, #ff7b00);
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 8px 25px rgba(241, 152, 57, 0.4);
}

.scroll-arrow:active {
  transform: scale(0.98);
}
