/* Front page */

.he-hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--he-white);
  border-bottom: 1px solid var(--he-slate-300);
  overflow: hidden;
  position: relative;
}

.he-hero::before {
  content: "";
  position: absolute;
  top: 25%;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(239, 68, 68, 0.05);
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 1024px) {
  .he-hero { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

.he-hero__content {
  order: 2;
  display: flex;
  align-items: center;
  padding: 3rem 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) { .he-hero__content { padding: 6rem 1.5rem; } }
@media (min-width: 1024px) { .he-hero__content { order: 1; padding: 6rem 4rem 6rem 4rem; } }
@media (min-width: 1280px) { .he-hero__content { padding: 0 7%; } }

.he-hero__inner { max-width: 42rem; width: 100%; }

.he-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--he-white);
  border: 1px solid rgba(211, 15, 21, 0.25);
  border-radius: 9999px;
  color: var(--he-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) { .he-hero__badge { font-size: 1rem; } }

.he-hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--he-slate-900);
  letter-spacing: -0.02em;
}

.he-hero__title-gradient {
  background: linear-gradient(to right, var(--he-primary), #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.he-hero__desc {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--he-slate-600);
  letter-spacing: 0.02em;
}

.he-hero__cta .he-btn {
  padding: 1rem 2rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.2);
}

.he-hero__cta .he-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.3);
}

.he-hero__cta .he-icon { transition: transform var(--he-transition); }
.he-hero__cta .he-btn:hover .he-icon { transform: translateX(4px); }

.he-br-desktop { display: none; }
@media (min-width: 640px) { .he-br-desktop { display: block; } }

.he-hero__image {
  order: 1;
  position: relative;
  overflow: hidden;
  min-height: 350px;
}

@media (min-width: 640px) { .he-hero__image { min-height: 450px; } }
@media (min-width: 1024px) { .he-hero__image { order: 2; min-height: 600px; } }
@media (min-width: 1280px) { .he-hero__image { min-height: 700px; } }

.he-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Why choose us */
.he-why {
  padding: 5rem 0;
  background: var(--he-white);
}

.he-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 96rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .he-why__grid { padding: 0 2rem; } }
@media (min-width: 768px) { .he-why__grid { padding: 0 3rem; } }
@media (min-width: 1024px) {
  .he-why__grid { grid-template-columns: 5fr 7fr; gap: 4rem; padding: 0 4rem; }
}
@media (min-width: 1280px) { .he-why__grid { gap: 5rem; padding: 0 6rem; } }

.he-why__visual { position: relative; }

.he-why__photo {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(15,23,42,0.15);
  border: 4px solid var(--he-slate-200);
  aspect-ratio: 1;
}

@media (min-width: 640px) { .he-why__photo { aspect-ratio: 4/3; } }
@media (min-width: 1024px) { .he-why__photo { aspect-ratio: 3/4; } }

.he-why__photo img { width: 100%; height: 100%; object-fit: cover; }

.he-why__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,6,23,0.3), transparent);
}

.he-why__deco-1,
.he-why__deco-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  z-index: -1;
}

.he-why__deco-1 { top: -1.5rem; left: -1.5rem; width: 8rem; height: 8rem; background: #fef2f2; }
.he-why__deco-2 { bottom: -1.5rem; right: -1.5rem; width: 9rem; height: 9rem; background: #fee2e2; filter: blur(32px); }

.he-why__points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .he-why__points { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.he-why__point {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--he-slate-300);
}

@media (min-width: 640px) {
  .he-why__point { padding: 0; border-bottom: none; }
}

.he-why__point:last-child { border-bottom: none; }

.he-why__point-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.he-why__point-icon {
  padding: 0.625rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: var(--he-primary);
}

.he-why__point h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--he-slate-900);
}

@media (min-width: 640px) { .he-why__point h3 { font-size: 1.125rem; } }

.he-why__point p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--he-slate-600);
}

/* Services grid */
.he-services {
  padding: 3rem 0 6rem;
  background: var(--he-slate-200);
  position: relative;
  overflow: hidden;
}

.he-services::before,
.he-services::after {
  content: "";
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.he-services::before { right: 0; top: 25%; background: rgba(199,210,254,0.1); }
.he-services::after { left: 0; bottom: 25%; background: rgba(203,213,225,0.45); }

.he-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) { .he-services__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (min-width: 1024px) { .he-services__grid { grid-template-columns: repeat(3, 1fr); } }

.he-service-card {
  background: var(--he-white);
  border-radius: 0.75rem;
  border-left: 4px solid;
  padding: 1.25rem;
  box-shadow: var(--he-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 640px) { .he-service-card { padding: 2rem; } }

.he-service-card--indigo { border-left-color: #4f46e5; }
.he-service-card--emerald { border-left-color: #059669; }
.he-service-card--amber { border-left-color: #f59e0b; }
.he-service-card--purple { border-left-color: #9333ea; }
.he-service-card--slate { border-left-color: var(--he-slate-700); }
.he-service-card--primary { border-left-color: var(--he-primary); }

.he-service-card__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .he-service-card__head { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 0; }
}

.he-service-card__icon {
  display: inline-flex;
  padding: 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid;
  flex-shrink: 0;
}

.he-service-card--indigo .he-service-card__icon { background: rgba(238,242,255,0.7); border-color: rgba(199,210,254,0.6); color: #4f46e5; }
.he-service-card--emerald .he-service-card__icon { background: rgba(236,253,245,0.7); border-color: rgba(167,243,208,0.6); color: #059669; }
.he-service-card--amber .he-service-card__icon { background: rgba(255,251,235,0.7); border-color: rgba(253,230,138,0.6); color: #d97706; }
.he-service-card--purple .he-service-card__icon { background: rgba(250,245,255,0.7); border-color: rgba(233,213,255,0.6); color: #9333ea; }
.he-service-card--slate .he-service-card__icon { background: rgba(226,232,240,0.8); border-color: rgba(203,213,225,0.6); color: var(--he-slate-700); }
.he-service-card--primary .he-service-card__icon { background: #fef2f2; border-color: #fecaca; color: var(--he-primary); }

@media (min-width: 640px) { .he-service-card__icon { margin-bottom: 1.25rem; padding: 0.75rem; } }

.he-service-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--he-slate-900);
  line-height: 1.25;
}

@media (min-width: 640px) { .he-service-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; } }

.he-service-card__tagline {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--he-slate-600);
  letter-spacing: 0.02em;
}

@media (min-width: 640px) { .he-service-card__tagline { font-size: 1rem; } }

.he-service-card__footer {
  border-top: 1px solid var(--he-slate-300);
  padding-top: 0;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) { .he-service-card__footer { padding-top: 1rem; margin-top: 1rem; } }

.he-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--he-slate-700);
  transition: color var(--he-transition);
}

.he-service-card__link:hover { color: var(--he-primary); }
.he-service-card__link .he-icon { color: var(--he-slate-400); transition: all var(--he-transition); }
.he-service-card__link:hover .he-icon { color: var(--he-primary); transform: translateX(4px); }
