/**
 * Features section – Everything You Need for a Perfect Shave
 * Matches reference design: light bg, big image card + 4 small cards
 */

/* Tagline above section (EMPOWER YOUR ROUTINE) */
.section-tagline {
  color: #666;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Section container – light off-white background */
.features {
  padding: 3rem 1.5rem 4rem;
  margin: 0 0 150px;
}

/* Grid: left = 1 big card, right = 2x2 small cards */
.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 1.25rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1023px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Big card (01) – full-bleed image, white text overlay ─── */
.feature--primary {
  grid-row: span 2;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  min-height: 340px;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("../images/img_0037_a11cf60085d8.jpg");
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}

.feature--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.12) 100%
  );
  z-index: 0;
}

.feature--primary .feature__header,
.feature--primary .feature__text {
  position: relative;
  z-index: 1;
}

.feature--primary .feature__number {
  display: inline-block;
  background-color: #e87c4a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.feature--primary .feature__title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  line-height: 1.25;
}

.feature--primary .feature__text {
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  opacity: 0.96;
}

/* ─── Right column: 2x2 small cards ─── */
.features__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1023px) {
  .feature--primary {
    grid-row: auto;
    min-height: 300px;
  }
  .features__list {
    grid-template-columns: 1fr;
  }
}

/* Small cards – white, rounded, subtle shadow */
.feature--compact {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.feature--compact:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}

/* Icon – orange outline, top of card */
.feature__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

.feature__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Orange outline style for small-card icons */
.feature--compact .feature__icon svg {
  stroke: #e87c4a;
  fill: none;
}

.feature--compact .feature__icon svg[fill="#e87c4a"] {
  fill: #e87c4a;
  stroke: none;
}

/* Number – light grey, below icon */
.feature--compact .feature__number {
  color: #888;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  display: block;
}

/* Title – bold dark grey */
.feature--compact .feature__title {
  color: #1a1a1a;
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

/* Description – lighter grey */
.feature--compact .feature__text {
  color: #666;
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
}

.feature__header {
  margin-bottom: 0.25rem;
}

.feature--compact .feature__header {
  margin-bottom: 0.35rem;
}
