/* ==========================================================================
   Home Page Specific Styles (Hero, Cards, Methodology Steps)
   ========================================================================== */

/* Centered Hero */
.hero-centered {
  padding: 110px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-centered::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(13, 148, 136, 0.12) 0%,
    rgba(37, 99, 235, 0.08) 50%,
    transparent 70%
  );
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-centered h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero-centered .lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-centered .btn-row {
  justify-content: center;
}

/* Services Preview Grid */
.services-preview {
  padding: 72px 0 84px;
}

.section-head.center {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 52px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow:
    0 16px 32px -8px rgba(13, 148, 136, 0.12),
    0 8px 16px -4px rgba(37, 99, 235, 0.08);
}

.card-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--brand-gradient-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.55s ease;
}

.service-card:hover .card-icon {
  background: var(--brand-gradient);
  color: #ffffff;
  transform: scale(1.08) translateY(-2px);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--accent);
}

.service-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.3s ease;
}

.service-card:hover .card-link {
  transform: translateX(6px);
  /* color: var(--brand-blue); */
}

.service-card-cta {
  background: linear-gradient(
    135deg,
    rgba(13, 148, 136, 0.05) 0%,
    rgba(37, 99, 235, 0.05) 100%
  );
  border: 1px dashed rgba(13, 148, 136, 0.3);
  text-align: center;
  justify-content: center;
}

/* Steps (Methodology) */
.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.steps li:hover {
  transform: translateY(-6px);
  background: var(--surface);
  border-top-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.steps li::before {
  /* content: "0" counter(step); */
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(13, 148, 136, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.step-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(13, 148, 136, 0.1);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.steps h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.steps p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .steps,
  .service-cards-grid {
    grid-template-columns: 1fr;
  }
  .hero-centered .btn-row {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .hero-centered .btn {
    width: 100%;
  }
}
