/* Encore Protection - Homepage Styles */

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-dark-navy);
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.4;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(2,46,84,0.94) 0%,
    rgba(10,25,43,0.80) 45%,
    rgba(10,25,43,0.45) 100%
  );
}

.home-hero__geo {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.home-hero__geo::before {
  content: '';
  position: absolute;
  right: -150px;
  top: -100px;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(216,216,216,0.10);
  transform: rotate(15deg);
  border-radius: 2px;
}

.home-hero__geo::after {
  content: '';
  position: absolute;
  right: 50px;
  top: 80px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(216,216,216,0.06);
  transform: rotate(30deg);
  border-radius: 2px;
}

.home-hero__content {
  position: relative;
  z-index: 3;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.home-hero__text {
  max-width: 780px;
}

.home-hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.home-hero__subtitle {
  font-size: var(--text-xl);
  color: var(--silver-200);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 620px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.home-hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--silver-500);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Services Grid ───────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.services-all-link {
  text-align: center;
}

/* ── Industries Grid ─────────────────────────────────────────────────────────── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.industry-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.industry-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--brand-navy-1);
}

.industry-card__image-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
}

.industry-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.industry-card:hover .industry-card__image-wrap img {
  transform: scale(1.05);
}

.industry-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.industry-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--brand-navy-1);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.industry-card__text {
  font-size: var(--text-sm);
  color: var(--brand-grey);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-3);
}

.industry-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-navy-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: auto;
}

/* Responsive */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .home-hero { min-height: 80vh; }
  .home-hero__scroll-hint { display: none; }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
  .industries-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
  .home-hero { min-height: 100svh; }
  .home-hero__content { padding-top: var(--space-12); padding-bottom: var(--space-16); }
  .home-hero__title { font-size: clamp(1.75rem, 7vw, 2.4rem); }
  .home-hero__subtitle { font-size: var(--text-base); margin-bottom: var(--space-6); }
  /* Service cards: reduce aspect ratio on small phones so they're not too tall */
  .service-card { aspect-ratio: 3/2; }
}

@media (max-width: 420px) {
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
}
