/**
 * home.css
 * ─────────────────────────────────────────────────────────────────
 * Styles specific to the home page (index.html).
 * Sections: hero, who-we-are, testimonials
 *
 * DEPENDENCY: variables.css, global.css, components.css
 * ─────────────────────────────────────────────────────────────────
 */

/* ── Hero Section ──────────────────────────────────────────────── */
/**
 * Three-column layout:
 *   [Dark card with headline + CTA] [Woman portrait] [Tech team portrait]
 */
.hero {
  background-color: var(--color-page-bg);
  padding: 0;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 240px 240px;
  min-height: 520px;
  gap: 0;
}

/* Left: dark hero card */
.hero__card {
  background-color: var(--color-dark-hero);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.hero__card::before {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(78, 187, 245, 0.06);
  pointer-events: none;
}

.hero__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero__heading {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
}

.hero__desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  max-width: 380px;
  line-height: 1.7;
}

.hero__cta {
  margin-top: 8px;
}

/* Middle + right image columns */
.hero__image {
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Who We Are Section ────────────────────────────────────────── */
.who-we-are {
  padding: 0;
  overflow: hidden;
}

.who-we-are__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

/* Left: image on blue gradient bg */
.who-we-are__image-col {
  background: linear-gradient(145deg, #5171d4 0%, #7b5ea7 100%);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.who-we-are__image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  mix-blend-mode: luminosity;
  opacity: 0.9;
}

/* Right: text content card */
.who-we-are__content-col {
  background-color: var(--color-light-card);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.who-we-are__heading {
  color: var(--color-navy);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
}

.who-we-are__desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 460px;
}

/* Industry icon row */
.who-we-are__icons {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.who-we-are__cta {
  margin-top: 8px;
}

/* ── Testimonials Section ──────────────────────────────────────── */
.testimonials {
  background-color: var(--color-light-card);
  padding: 0;
  overflow: hidden;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

/* Left: image */
.testimonials__image-col {
  overflow: hidden;
}

.testimonials__image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right: two stacked testimonial cards */
.testimonials__cards-col {
  background-color: var(--color-light-card);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

/* ── Home Page Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 200px;
  }

  /* Hide third column on tablets */
  .hero__image:last-child {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__card {
    border-radius: 0;
    padding: 48px 24px;
  }

  .hero__image {
    height: 280px;
  }

  .who-we-are__grid {
    grid-template-columns: 1fr;
  }

  .who-we-are__image-col {
    border-radius: 0;
    height: 280px;
  }

  .who-we-are__content-col {
    border-radius: 0;
    padding: 48px 24px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__image-col {
    height: 240px;
  }

  .testimonials__cards-col {
    padding: 32px 24px;
  }
}
