/* ============================================
   PROBLEM SECTION — "100k€" upgrade
   11 changes bundled
   ============================================ */

/* ---------- #1 EDITORIAL H2 ---------- */
.problem .section-heading--compact {
  text-align: left !important;
  overflow: visible !important;
  max-width: 1100px;
  margin: 0 auto 3.5rem;
  padding: 0 0 0 4vw;
}
.problem__h2 {
  font-family: "Clash Display", "Outfit", system-ui, sans-serif !important;
  font-size: clamp(2.5rem, 1.5rem + 4.5vw, 6.5rem) !important;
  overflow: visible !important;
  font-weight: 500 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.035em !important;
  color: #fafafa;
  text-wrap: balance;
  max-width: 18ch;
  margin: 0;
}
.problem__h2-italic {
  font-family: "Clash Display", "Outfit", system-ui, sans-serif !important;
  font-style: italic;
  color: #D4976F;
  font-weight: 500;
  display: inline;
}
.problem__h2-sub {
  display: block;
  margin-top: 1.5rem;
  font-family: "Clash Display", "Outfit", system-ui, sans-serif;
  font-size: clamp(1rem, 0.6rem + 0.8vw, 1.35rem);
  font-weight: 400;
  color: rgba(250, 250, 250, 0.55);
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}
.problem.is-in-view .problem__h2-sub {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- #2 ASYMMETRIC BENTO GRID ---------- */
.problem__grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr !important;
  grid-template-rows: auto auto !important;
  gap: 1rem !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2vw;
}
.problem__grid .problem-card:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3; /* spans both rows — hero card */
}
.problem__grid .problem-card:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.problem__grid .problem-card:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.problem__grid .problem-card:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

@media (max-width: 900px) {
  .problem__grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
  }
  .problem__grid .problem-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: auto;
  }
  .problem__grid .problem-card:nth-child(2),
  .problem__grid .problem-card:nth-child(3),
  .problem__grid .problem-card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
}
@media (max-width: 560px) {
  .problem__grid {
    grid-template-columns: 1fr !important;
  }
  .problem__grid .problem-card:nth-child(1) {
    grid-column: 1;
  }
}

/* ---------- #10 3-LEVEL TEXT HIERARCHY IN CARDS ---------- */
.problem-card {
  text-align: left !important;
  padding: 2rem !important;
  background: rgba(18, 18, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.5s ease,
    background 0.5s ease !important;
}
.problem-card .card__icon {
  margin: 0 0 1.25rem !important;
  width: 44px;
  height: 44px;
  color: rgba(212, 151, 111, 0.9);
}
.problem-card .card__overline {
  display: block;
  font-family: "Clash Display", "Outfit", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(212, 151, 111, 0.7);
  margin-bottom: 0.75rem;
}
.problem-card .card__title {
  font-family: "Clash Display", "Outfit", system-ui, sans-serif !important;
  font-size: clamp(1.15rem, 0.7rem + 0.9vw, 1.65rem) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;
  color: #fafafa;
  margin: 0 0 0.85rem;
}
.problem-card .card__text {
  font-family: "Clash Display", "Outfit", system-ui, sans-serif !important;
  font-size: clamp(0.95rem, 0.6rem + 0.4vw, 1.05rem) !important;
  line-height: 1.55 !important;
  color: rgba(250, 250, 250, 0.7) !important;
  margin: 0 0 1.25rem !important;
  max-width: 34ch;
}
.problem-card .card__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(212, 151, 111, 0.08);
  border: 1px solid rgba(212, 151, 111, 0.18);
  font-family: "Clash Display", "Outfit", system-ui, sans-serif;
  font-size: 0.82rem;
  color: rgba(212, 151, 111, 0.95);
  letter-spacing: 0.01em;
}
.problem-card .card__stat-number {
  font-weight: 600;
  color: #E5B896;
}

/* Hero card: bigger type, extra detail */
.problem-card--hero {
  padding: 2.5rem !important;
}
.problem-card--hero .card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.75rem !important;
}
.problem-card--hero .card__title {
  font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem) !important;
  line-height: 1.05 !important;
  margin-bottom: 1.25rem;
}
.problem-card--hero .card__text {
  font-size: clamp(1.05rem, 0.7rem + 0.6vw, 1.25rem) !important;
  line-height: 1.55 !important;
  max-width: 32ch;
  margin-bottom: 1.75rem !important;
}
.problem-card--hero .card__detail {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}
.problem.is-in-view .problem-card--hero .card__detail {
  opacity: 1;
  transform: translateY(0);
}
.problem-card--hero .card__detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.45);
}
.problem-card--hero .card__detail-number {
  font-family: "Clash Display", "Outfit", system-ui, sans-serif;
  font-style: italic;
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(135deg, #E5B896 0%, #D4976F 45%, #B87E5F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Make hero card a flex-column so detail pushes to bottom */
.problem-card--hero {
  display: flex;
  flex-direction: column;
}

/* ---------- #4 PREMIUM HOVER STATES ---------- */
.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 151, 111, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.problem-card > * { position: relative; z-index: 1; }
.problem-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(212, 151, 111, 0.25) !important;
  background: rgba(24, 18, 16, 0.7) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(212, 151, 111, 0.1),
    0 30px 80px rgba(184, 126, 95, 0.12) !important;
}
.problem-card:hover::before {
  opacity: 1;
}
.problem-card:hover .card__micro-detail {
  max-height: 40px;
  opacity: 1;
}
.problem-card .card__micro-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  font-size: 0.8rem;
  color: rgba(212, 151, 111, 0.75);
  margin-top: 1rem;
  font-style: italic;
}

/* ---------- #3 PAIN INTENSIFIER — big stat pattern break ---------- */
.problem__intensifier {
  max-width: 1100px;
  margin: 5rem auto 4rem;
  padding: 0 2vw;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: end;
}
.problem__intensifier-label {
  font-family: "Clash Display", "Outfit", system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  line-height: 1.6;
}
.problem__intensifier-stat {
  font-family: "Clash Display", "Outfit", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(3.5rem, 2rem + 7vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fafafa;
  margin: 0;
  text-wrap: balance;
  text-shadow: none !important;
  display: block;
}
.problem__intensifier-stat .big {
  font-style: italic;
  background: linear-gradient(135deg, #E5B896 0%, #D4976F 45%, #B87E5F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none !important;
  display: inline-block;
  padding-right: 0.12em;
  overflow: visible;
}
.problem__intensifier-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.problem__intensifier-note {
  display: block;
  margin: 0;
  font-family: "Clash Display", "Outfit", system-ui, sans-serif !important;
  font-size: clamp(1rem, 0.7rem + 0.5vw, 1.2rem) !important;
  font-weight: 400 !important;
  color: rgba(250, 250, 250, 0.7) !important;
  line-height: 1.55 !important;
  max-width: 40ch;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  text-transform: none !important;
}
@media (max-width: 767px) {
  .problem__intensifier {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------- #6 BRIDGE — bigger, with underline ---------- */
.problem__bridge {
  max-width: 900px;
  margin: 5rem auto 0 !important;
  padding: 0 2vw;
  text-align: center;
  font-family: "Clash Display", "Outfit", system-ui, sans-serif !important;
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.35rem) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: rgba(250, 250, 250, 0.88) !important;
  letter-spacing: -0.015em;
  position: relative;
}
.problem__bridge::before {
  content: '';
  display: block;
  width: clamp(80px, 15vw, 160px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 151, 111, 0.5), transparent);
  margin: 0 auto 2.5rem;
}
.problem__bridge-accent {
  position: relative;
  display: inline-block;
  font-style: italic;
  background: linear-gradient(135deg, #E5B896 0%, #D4976F 45%, #B87E5F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.problem__bridge-accent svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  width: 100%;
  height: 0.08em;
  overflow: visible;
  pointer-events: none;
}
.problem__bridge-accent svg path {
  stroke: #D4976F;
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.problem.is-in-view .problem__bridge-accent svg path {
  stroke-dashoffset: 0;
}

/* ---------- #7 TRANSITION LINE to next section ---------- */
.problem__tail {
  position: relative;
  height: 120px;
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.problem__tail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(212, 151, 111, 0.7) 0%, rgba(212, 151, 111, 0.1) 70%, transparent 100%);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}
.problem.is-in-view .problem__tail::before {
  transform: translateX(-50%) scaleY(1);
}

/* ---------- #8 DUAL PARALLAX ORBS ---------- */
.problem {
  position: relative;
  overflow: hidden;
}
.problem__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}
.problem__orb--a {
  width: 500px; height: 500px;
  top: 10%; left: -10%;
  background: radial-gradient(circle, rgba(184, 126, 95, 0.18) 0%, transparent 70%);
  animation: problem-orb-a 36s ease-in-out infinite alternate;
}
.problem__orb--b {
  width: 400px; height: 400px;
  bottom: 5%; right: -8%;
  background: radial-gradient(circle, rgba(212, 151, 111, 0.18) 0%, transparent 70%);
  animation: problem-orb-b 52s ease-in-out infinite alternate;
}
@keyframes problem-orb-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(12vw, 8vh, 0) scale(1.2); }
}
@keyframes problem-orb-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-8vw, -10vh, 0) scale(1.15); }
}

/* Hide any pre-existing section-orb for problem (we replace with dual orbs) */
.problem > .section-orb {
  display: none;
}

/* All problem content above orbs */
.problem > .container {
  position: relative;
  z-index: 2;
}

/* ---------- #9 SECTION NUMBER — matches other sections ---------- */
.problem[data-number]::before {
  content: attr(data-number) !important;
  position: absolute !important;
  top: clamp(2rem, 4vw, 3.5rem) !important;
  left: clamp(1.5rem, 3vw, 3rem) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  color: rgba(212, 151, 111, 0.55) !important;
  font-family: var(--font-body) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 2 !important;
  line-height: 1 !important;
  background: none !important;
  -webkit-text-fill-color: unset !important;
  transform: none !important;
}
.problem[data-number]::after {
  display: none !important; /* suppress old dash */
}
@media (max-width: 900px) {
  .problem[data-number]::before {
    font-size: 0.8rem !important;
    top: 1.5rem !important;
    left: 1rem !important;
  }
}

/* ---------- SECTION padding tuning ---------- */
.problem.section {
  padding-top: clamp(5rem, 9vw, 8rem) !important;
  padding-bottom: 0 !important;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .problem__orb { animation: none !important; }
  .problem__h2-sub,
  .problem-card--hero .card__detail { opacity: 1 !important; transform: none !important; }
  .problem__bridge-accent svg path { stroke-dashoffset: 0 !important; }
  .problem__tail::before { transform: translateX(-50%) scaleY(1) !important; }
}
