/* MAP
 * §1 scena hero 3:1 si fuziune atmosferica cu pagina       L7-L71
 * §2 tipografie si actiuni scalate proportional in cqw     L73-L197
 * §3 plasa curata pentru telefon ingust (< 640px)          L199-L224
 */

/* §1 scena hero 3:1 si fuziune atmosferica cu pagina */
.hero {
  position: relative;
  background-color: var(--bg-deep);
}

.hero__stage {
  position: relative;
  width: 100%;
  max-width: 2560px;
  margin-inline: auto;
  container-type: inline-size;
  overflow: hidden;
}

.hero__media {
  position: relative;
  width: 100%;
}

.hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center center;
}

.hero__fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: none;
}

.js .hero__fx-canvas {
  display: block;
}

.hero__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(180deg, var(--hero-top-fade) 0%, var(--hero-top-zero) 9%),
    linear-gradient(90deg, var(--hero-scrim-strong) 0%, var(--hero-scrim-mid) 21%, var(--hero-scrim-zero) 35.5%),
    linear-gradient(180deg, var(--hero-bot-zero) 80%, var(--hero-bot-mid) 93%, var(--bg-deep) 100%);
}

.hero__daylight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: var(--day-window-veil);
  background:
    radial-gradient(38% 72% at 22% 28%, rgba(235, 227, 215, 0.72) 0%, rgba(227, 186, 145, 0.24) 48%, rgba(227, 186, 145, 0) 78%),
    linear-gradient(90deg, rgba(235, 227, 215, 0.86) 0%, rgba(235, 227, 215, 0.56) 24%, rgba(235, 227, 215, 0.14) 34%, rgba(235, 227, 215, 0) 41%),
    radial-gradient(28% 54% at 62% 16%, rgba(227, 186, 145, 0.24) 0%, rgba(227, 186, 145, 0) 76%);
}

/* §2 tipografie si actiuni scalate proportional in cqw (4.8cqw..32.4cqw, nu atinge centrul) */
.hero__overlay {
  position: absolute;
  left: 4.8vw;
  top: 50%;
  transform: translateY(-50%);
  width: 27.6vw;
  z-index: 4;
}

.hero__overlay h1 {
  font-size: 1rem;
  line-height: 1;
}

@supports (width: 1cqw) {
  .hero__overlay {
    left: 4.8cqw;
    width: 27.6cqw;
  }
  .hero__kicker {
    display: flex;
    align-items: center;
    gap: 0.75cqw;
    font-size: 0.7cqw;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-hover);
  }
  .hero__kicker::before {
    content: "";
    width: 2cqw;
    height: 1px;
    background-color: var(--accent);
  }
  .hero__name {
    display: block;
    margin-top: 0.5cqw;
    font-family: var(--font-mark);
    font-weight: 400;
    font-size: 4.15cqw;
    line-height: 0.98;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    text-shadow: 0 0.2cqw 1.4cqw var(--hero-text-shadow);
  }
  .hero__subtitle {
    display: block;
    margin-top: 0.65cqw;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.52cqw;
    line-height: 1.15;
    color: var(--text);
  }
  .hero__subtitle em {
    font-style: italic;
    color: var(--accent-hover);
  }
  .hero__pillars {
    margin-top: 0.95cqw;
    width: 25.2cqw;
    border-top: 1px solid var(--hero-pillar-rule);
  }
  .hero__pillars li {
    display: flex;
    align-items: center;
    gap: 0.8cqw;
    padding-block: 0.42cqw;
    border-bottom: 1px solid var(--hero-pillar-rule);
    font-size: 0.84cqw;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
  }
  .hero__pillars li::before {
    content: "";
    width: 0.38cqw;
    height: 0.38cqw;
    border: 1px solid var(--accent-hover);
    background-color: var(--accent-soft);
    transform: rotate(45deg);
    flex-shrink: 0;
  }
  .hero__actions {
    margin-top: 1.1cqw;
    display: flex;
    align-items: center;
    gap: 1.25cqw;
  }
  .hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65cqw;
    padding: 0.56cqw 1.15cqw;
    border: 1px solid var(--accent);
    border-radius: 2px;
    background-color: var(--accent);
    color: var(--on-accent);
    font-size: 0.74cqw;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
  }
  .hero__btn svg { width: 0.85cqw; height: 0.85cqw; flex-shrink: 0; }
  .hero__btn:hover { background-color: var(--accent-hover); border-color: var(--accent-hover); }
  .hero__link {
    display: inline-flex;
    align-items: center;
    gap: 0.48cqw;
    font-size: 0.7cqw;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--text-body);
    white-space: nowrap;
  }
  .hero__link svg { width: 0.82cqw; height: 0.82cqw; color: var(--accent-hover); flex-shrink: 0; }
  .hero__link:hover { color: var(--accent-hover); }
}

/* §3 plasa curata pentru telefon ingust (< 640px) */
@media (max-width: 639px) {
  .hero__stage::before {
    inset: 0 0 auto 0;
    aspect-ratio: 3 / 1;
    background: linear-gradient(180deg, var(--hero-bot-zero) 62%, var(--bg-deep) 100%);
  }
  .hero__overlay {
    position: static;
    transform: none;
    width: auto;
    padding: 22px 5vw 36px;
    background-color: var(--bg-deep);
  }
  .hero__kicker { font-size: 0.72rem; gap: 10px; }
  .hero__kicker::before { width: 24px; }
  .hero__name { font-size: 2.55rem; margin-top: 8px; }
  .hero__subtitle { font-size: 1.32rem; margin-top: 10px; }
  .hero__pillars { width: 100%; margin-top: 18px; }
  .hero__pillars li { font-size: 0.8rem; padding-block: 10px; gap: 10px; }
  .hero__pillars li::before { width: 6px; height: 6px; }
  .hero__actions { margin-top: 22px; gap: 16px; flex-wrap: wrap; }
  .hero__btn { font-size: 0.78rem; padding: 12px 18px; gap: 10px; min-height: 46px; }
  .hero__btn svg, .hero__link svg { width: 15px; height: 15px; }
  .hero__link { font-size: 0.76rem; gap: 8px; }
}
