/* Home Page */

.fe-home-page {
  background: var(--bg);
}

.home-hero {
  padding: 92px 0 54px;
  background:
    radial-gradient(circle at top left, rgba(252, 210, 6, 0.24), transparent 34%),
    radial-gradient(circle at top right, rgba(117, 32, 146, 0.14), transparent 36%),
    linear-gradient(180deg, var(--white), var(--bg));
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: center;
}

.home-hero-title {
  margin-top: 18px;
  max-width: 980px;
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: -3px;
  color: var(--charcoal);
}

.home-hero-text {
  margin-top: 26px;
  max-width: 790px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
}

.home-hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.home-hero-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.home-hero-card h2 {
  font-family: var(--font-main);
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.home-hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.home-hero-card li {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-body);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.home-hero-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
  font-weight: 900;
}

.home-highlights {
  padding: 28px 0 24px;
}

.home-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-highlight-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.home-highlight-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-main);
  font-size: 24px;
  color: var(--charcoal);
}

.home-highlight-card span {
  font-family: var(--font-body);
  color: var(--text-muted);
  line-height: 1.6;
}

.home-section {
  padding: 66px 0;
}

.home-section-header {
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.home-section-header h2,
.home-why-box h2,
.home-final-cta h2 {
  margin-top: 14px;
  max-width: 780px;
  font-family: var(--font-main);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -1.4px;
  color: var(--charcoal);
}

.home-section-header > a {
  color: var(--purple);
  font-family: var(--font-body);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.home-section-header > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-card-grid {
  display: grid;
  gap: 24px;
}

.home-services-grid,
.home-blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-service-card,
.home-project-card,
.home-blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-service-card:hover,
.home-project-card:hover,
.home-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.home-card-media {
  display: block;
  background: var(--bg2);
  text-decoration: none;
}

.home-card-media img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  display: block;
}

.home-card-placeholder {
  height: 215px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(117, 32, 146, 0.16), rgba(252, 210, 6, 0.26));
}

.home-card-placeholder span {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: var(--yellow);
  font-weight: 900;
  font-size: 24px;
}

.home-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.home-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(117, 32, 146, 0.08);
  color: var(--purple);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
}

.home-card-tags span:nth-child(2n) {
  background: rgba(252, 210, 6, 0.22);
  color: var(--charcoal);
}

.home-card-body h3 {
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.home-card-body h3 a {
  color: var(--charcoal);
  text-decoration: none;
}

.home-card-body h3 a:hover {
  color: var(--purple);
}

.home-card-body p {
  font-family: var(--font-body);
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15.5px;
  flex: 1;
}

.home-card-link {
  margin-top: auto;
  color: var(--purple);
  text-decoration: none;
  font-weight: 800;
}

.home-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-why-section {
  padding: 68px 0;
}

.home-why-box {
  padding: 42px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.home-why-list {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-why-list div {
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.home-why-list strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-main);
  font-size: 22px;
  color: var(--charcoal);
}

.home-why-list p {
  font-family: var(--font-body);
  color: var(--text-muted);
  line-height: 1.7;
}

.home-final-cta-section {
  padding: 28px 0 96px;
}

.home-final-cta {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.home-final-cta h2 {
  color: var(--white);
  margin-top: 0;
}

.home-final-cta p {
  margin-top: 12px;
  max-width: 760px;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.home-final-cta .btn-primary {
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-projects-grid,
  .home-services-grid,
  .home-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-why-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-hero {
    padding: 60px 0 38px;
  }

  .home-hero-title {
    letter-spacing: -2px;
  }

  .home-highlight-grid,
  .home-projects-grid,
  .home-services-grid,
  .home-blog-grid {
    grid-template-columns: 1fr;
  }

  .home-section-header {
    display: block;
  }

  .home-section-header > a {
    display: inline-flex;
    margin-top: 14px;
  }

  .home-hero-card,
  .home-why-box,
  .home-final-cta {
    padding: 26px;
  }

  .home-final-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}