/* ─── Overview Section ──────────────────────────────────────── */
/* Uses variables from theme.css */

.overview {
  padding: 100px var(--section-padding-x);
  background: var(--bg-light);
}

@media (max-width: 1200px) {
  .overview {
    padding: 80px 80px;
  }
}

@media (max-width: 992px) {
  .overview {
    padding: 60px 20px;
  }
}

.overview__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* ─── Bento Cards Heading ─────────────────────────────────────── */
.overview__bento-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  padding-top: 1rem;
}

.overview__bento-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: 600;
  color: var(--charcoal-black);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.overview__bento-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--gray-muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 500px;
}

/* ─── Grid Layout - Bento/Masonry Style ──────────────────────── */
.overview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
}

@media (max-width: 768px) {
  .overview__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Feature Card - Light Design ───────────────────────────────── */
.overview__card {
  background: var(--bg-light);
  border: 1px solid rgb(227, 227, 227);
  padding: 0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.overview__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.overview__card:not(.overview__card--image) .overview__card-content {
  flex: 1;
  background: var(--bg-light);
}

/* ─── Cards that span 2 rows ─────────────────────────────────── */
.overview__card--span-row {
  grid-row: span 2;
  min-height: 420px;
}

@media (max-width: 768px) {
  .overview__card--span-row {
    grid-row: span 1;
    min-height: 200px;
  }
}

/* ─── Card with Image ──────────────────────────────────────── */
.overview__card--image {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.overview__card-content {
  padding: 32px 32px 20px;
}

.overview__card--image .overview__card-content {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
}

.overview__card-image {
  flex: 1;
  min-height: 180px;
  overflow: hidden;
  position: relative;
}

.overview__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .overview__card-image {
    min-height: 140px;
  }
}

/* ─── Accent Line (hidden) ──────────────────────────────────────────────── */
.overview__card-accent {
  display: none;
}

/* ─── Category Label ───────────────────────────────────────────── */
.overview__card-category {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* ─── Headline ─────────────────────────────────────────────────── */
.overview__card-headline {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal-black);
  line-height: 1.4;
  margin: 0;
}

/* ─── Description ──────────────────────────────────────────────── */
.overview__card-description {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: 400;
  color: var(--gray-muted);
  line-height: 1.5;
  margin: 0.5rem 0 0 0;
}
