/* Homepage only */

/* Hero */
.hero-section {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding-top: 92px;
  background: url("../img/hero-bg.jpg") center center / cover no-repeat;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-content h1 {
  font-size: 54px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}

.hero-content h2 {
  font-size: 24px;
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
}

.hero-content-centered {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-buttons-centered {
  justify-content: center;
}

.hero-trust-points {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}

/* Homepage cards */
.homepage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.homepage-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  height: 100%;
}

.homepage-card:hover {
  transform: translateY(-6px);
}

.card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff3f3;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 22px;
}

.homepage-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}

.homepage-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 22px;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  border: 0;
}

.card-btn:hover {
  background: var(--dark);
  color: var(--white);
}

.card-btn-secondary {
  background: var(--dark);
  color: var(--white);
}

.card-btn-secondary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Homepage service cards */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-content {
  flex: 1 1 auto;
}

.service-card-buttons {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.services-grid-5 {
  grid-template-columns: repeat(3, 1fr);
}

/* Why section */
.why-section-wrap {
  background: linear-gradient(180deg, #f8f9fa 0%, #f3f5f8 100%);
  padding: 90px 0;
}

.why-section-box {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fcfcfd 100%);
  border: 1px solid rgba(224, 58, 60, 0.08);
  border-radius: 26px;
  padding: 64px;
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.08),
    0 4px 18px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.why-section-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 4px;
  background: linear-gradient(90deg, #e03a3c 0%, #ff7a7c 100%);
  border-radius: 0 0 10px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.feature-box {
  display: grid;
  gap: 16px;
}

.feature-text-dark h2 {
  color: #111111;
  font-size: 54px;
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 26px;
  letter-spacing: -0.02em;
}

.feature-text-dark p {
  color: #667085;
  max-width: 650px;
  font-size: 17px;
  line-height: 2;
  margin-bottom: 34px;
}

.feature-mini-card-light {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid #e7ebf0;
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.feature-mini-card-light:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(224, 58, 60, 0.18);
}

.feature-mini-card-light h3 {
  color: #1a1a1a;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-mini-card-light h3 i {
  color: var(--primary);
  font-size: 18px;
}

.feature-mini-card-light p {
  color: #667085;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 0;
}

.why-section-box .btn-primary-main {
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(224, 58, 60, 0.18);
}

.why-section-box .btn-primary-main:hover {
  box-shadow: 0 14px 28px rgba(224, 58, 60, 0.22);
}

/* Responsive */
@media (max-width: 1199px) {
  .homepage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content h2 {
    font-size: 21px;
  }

  .why-section-box {
    padding: 42px 32px;
  }

  .feature-text-dark h2 {
    font-size: 42px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: 92vh;
    padding-top: 82px;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content h2 {
    font-size: 18px;
    line-height: 1.8;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-trust-points {
    flex-direction: column;
    align-items: center;
  }

  .homepage-grid,
  .services-grid-5 {
    grid-template-columns: 1fr;
  }

  .why-section-wrap {
    padding: 64px 0;
  }

  .why-section-box {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .feature-text-dark h2 {
    font-size: 34px;
    line-height: 1.15;
  }

  .feature-text-dark p {
    font-size: 16px;
    line-height: 1.9;
  }

  .feature-mini-card-light {
    padding: 22px 18px;
  }
}