/* ====== Home Page ====== */

/* ---- Hero ---- */
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: 92px 24px 0;
  overflow: hidden;
  background: url("../../assets/headerBgHero.png") center / cover no-repeat;
}

.home-hero::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 190px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,.3) 45%, rgba(255,255,255,.75) 70%, #fff 100%);
  content: "";
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  margin: 0 auto;
  text-align: center;
}

.home-hero__title {
  max-width: 720px;
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.32;
  text-shadow: 0 2px 18px rgba(20,38,48,.28);
}

.home-hero__lead {
  margin: 14px 0 0;
  color: rgba(255,255,255,.9);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
}

/* ---- Stats in hero ---- */
.home-hero__stats {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0;
  width: min(720px, 100%);
  margin: 40px auto 0;
  padding: 24px 32px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
}

.home-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 32px;
  position: relative;
}

.home-stats__item + .home-stats__item::before {
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.25);
  content: "";
}

.home-stats__item strong {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.home-stats__item span {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
}

/* ---- Services grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 20px;
  align-items: start;
  padding: var(--space-xl) 30px 28px;
  border: var(--border-light);
  border-radius: var(--radius-md);
  background: var(--glass);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--warm), rgba(217,145,82,0.2));
  content: "";
  width: 0;
  transition: width var(--motion-hover);
}

.service-card:hover::before { width: 100%; }

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--warm-deep);
  flex-shrink: 0;
}

.service-icon svg {
  width: 34px;
  height: 34px;
}

.service-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.service-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-card-title);
  font-weight: 600;
}

.service-card h2 a {
  color: #344e62;
  text-decoration: none;
  transition: color var(--motion-fast);
}

.service-card h2 a:hover { color: var(--warm-deep); }

.service-card .card-tag {
  display: inline-flex;
  padding: 3px 10px;
  border: 1px solid rgba(198,119,50,0.2);
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: rgba(255,250,244,0.6);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.service-card p {
  margin: var(--space-sm) 0 0;
  color: #64798d;
  font-size: 14px;
  line-height: 1.65;
  grid-column: 2;
}

/* ---- Recruit grid ---- */
.recruit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.recruit-grid .case-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 16px;
  align-items: start;
  min-height: 0;
}

.recruit-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--warm-deep);
}

.recruit-icon svg {
  width: 30px;
  height: 30px;
}

.recruit-grid .case-card h3,
.recruit-grid .case-card .project-kicker,
.recruit-grid .case-card p {
  grid-column: 2;
}

.recruit-grid .case-card .project-kicker {
  justify-self: start;
}

/* ---- Highlight grid ---- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.highlight-grid .case-card {
  min-height: 0;
}

.case-card h3 {
  font-size: var(--text-card-title) !important;
  font-weight: 600 !important;
}

.case-card p,
.case-card li {
  font-size: 14px !important;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .services-grid,
  .highlight-grid,
  .recruit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 360px;
    padding: 112px 18px 54px;
  }

  .home-hero__title { font-size: 30px; }
  .home-hero__lead  { font-size: 13px; }

  .home-hero__stats {
    flex-direction: column;
    gap: 12px;
    padding: 18px 24px;
    margin: 32px 18px 0;
    width: auto;
  }

  .home-stats__item {
    padding: 4px 0;
  }

  .home-stats__item + .home-stats__item::before {
    display: none;
  }

  .home-stats__item strong { font-size: 22px; }
  .home-stats__item span  { font-size: 12px; }
}
