@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* ---------------------------------------------------------------------------
   1. VARIABILE
   --------------------------------------------------------------------------- */
.kc-promo {
  --kc-magenta: #C92575;
  --kc-orange:  #E75323;
  --kc-cream:   #FFFBF8;
  --kc-soft:    #FFEDDF;
  --kc-warm:    #FFD1C2;
  --kc-ink:     #2A2A2E;
  --kc-white:   #ffffff;

  --kc-font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --kc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);

}

/* ---------------------------------------------------------------------------
   2. CONTAINER
   --------------------------------------------------------------------------- */
.kc-promo {
  position: relative;
  overflow: clip;
  margin: 0;
  padding: 0;
  font-family: var(--kc-font);
  color: var(--kc-ink);
  background: #ffffff;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

/* Variantă pe toată lățimea, dacă nu folosești un rând full-width din Flatsome. */
.kc-promo--full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ---------------------------------------------------------------------------
   3. RESET LOCAL
   Neutralizează regulile Flatsome doar în interiorul blocului.
   `:where()` are specificitate zero, deci resetul rămâne la (0,1,0) și pierde
   mereu în fața regulilor de componentă, care sunt la (0,2,0).
   --------------------------------------------------------------------------- */
.kc-promo,
.kc-promo :where(*, *::before, *::after) {
  box-sizing: border-box;
}

.kc-promo :where(div, section, article, header, footer, span, p, h1, h2, h3, ul, li, figure) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  list-style: none;
}

.kc-promo :where(h1, h2, h3) {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}

.kc-promo :where(a) {
  color: inherit;
  text-decoration: none;
  background: none;
  box-shadow: none;
  border: 0;
}
.kc-promo :where(a:hover, a:focus) {
  color: inherit;
  text-decoration: none;
}

.kc-promo :where(svg) {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  vertical-align: middle;
}

/* ---------------------------------------------------------------------------
   4. SCENE
   --------------------------------------------------------------------------- */
.kc-promo .kc-scene {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 0;
  padding: 5rem 1.25rem 4rem;
  overflow: hidden;
  background: #ffffff;
}
@media (min-width: 860px) {
  .kc-promo .kc-scene { padding: 7rem 1.25rem 4.25rem; }
}

.kc-promo .kc-wrap {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
  margin: 0 auto;
}

/* ---------------------------------------------------------------------------
   5. ANTET
   --------------------------------------------------------------------------- */

.kc-promo .kc-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}
.kc-promo .kc-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5.4vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--kc-magenta);
  text-shadow: 0 2px 18px rgba(255, 251, 248, 0.95);
  opacity: 0;
  animation: kcRise 700ms var(--kc-ease-out) 60ms both;
}

/* ---------------------------------------------------------------------------
   6. GRILA DE CARDURI
   --------------------------------------------------------------------------- */
.kc-promo .kc-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: stretch;
}
@media (min-width: 860px) {
  .kc-promo .kc-cards {
    grid-template-columns: minmax(0, 1fr);
    width: calc((100% - 2.5rem) / 3);
    margin-inline: auto;
  }
}

.kc-promo .kc-enter {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  animation: kcCardIn 620ms var(--kc-ease-out) forwards;
}
.kc-promo .kc-enter:nth-child(1) { animation-delay: 140ms; }
.kc-promo .kc-enter:nth-child(2) { animation-delay: 210ms; }
.kc-promo .kc-enter:nth-child(3) { animation-delay: 280ms; }

@keyframes kcCardIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes kcRise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes kcShine {
  to { transform: translateX(130%); }
}

.kc-promo .kc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 28rem;
  padding: 2.15rem 1.7rem 1.35rem;
  background: var(--kc-white);
  border-radius: 1.4rem;
  box-shadow:
    0 22px 44px -18px rgba(42, 42, 46, 0.32),
    0 10px 24px -12px rgba(201, 37, 117, 0.16);
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform 220ms var(--kc-ease-out),
    box-shadow 220ms var(--kc-ease-out),
    border-color 220ms ease;
}
.kc-promo .kc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #E75323, #C92575);
  opacity: 0.9;
}
.kc-promo .kc-card--hot {
  border: 1.5px solid transparent;
  border-color: transparent;
  background:
    linear-gradient(135deg, #E75323, #C92575) border-box;
  box-shadow: 0 26px 48px -20px rgba(201, 37, 117, 0.38);
  color: #ffffff !important;
}
.kc-promo .kc-card .kc-cta {
  position: relative;
  margin-top: auto;
}
.kc-promo .kc-card .kc-cta::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  top: -1rem;
  height: 1px;
  background: rgba(42, 42, 46, 0.08);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .kc-promo .kc-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 37, 117, 0.28);
    box-shadow: 0 28px 52px -18px rgba(201, 37, 117, 0.28);
  }
  .kc-promo .kc-card--hot:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 32px 56px -16px rgba(201, 37, 117, 0.42);
  }
}

.kc-promo .kc-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: var(--kc-soft);
  color: var(--kc-magenta);
  margin-bottom: 1.35rem;
}
.kc-promo .kc-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

/* ---------------------------------------------------------------------------
   7. PROCENT
   --------------------------------------------------------------------------- */
.kc-promo .kc-deal {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}
.kc-promo .kc-deal .kc-pct {
  font-size: clamp(2.85rem, 4.8vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #E75323 12%, #C92575 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kc-promo .kc-deal .kc-word {
  font-size: clamp(0.92rem, 1.35vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kc-magenta);
}
.kc-promo .kc-deal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.7) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: kcShine 1.15s var(--kc-ease-out) 0.85s both;
  pointer-events: none;
}

.kc-promo .kc-service {
  margin: 1.15rem 0 0;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--kc-ink);
}

.kc-promo .kc-notes { 
  width:auto;
  padding: 10px;
  display: block;
  background: var(--kc-soft);
  border-radius: 10px;
  font-size: 14px;
  margin: 20px 0;
 }

/* ---------------------------------------------------------------------------
   8. BUTOANE
   Selectorii includ `a` ca să bată butoanele temei Flatsome fără !important.
   --------------------------------------------------------------------------- */
.kc-promo a.kc-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.05rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-family: var(--kc-font);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  text-shadow: none;
  border: none;
  cursor: pointer;
  transition: transform 140ms var(--kc-ease-out), filter 180ms ease, background 180ms ease, color 180ms ease;
}
.kc-promo a.kc-cta:active { transform: scale(0.97); }

.kc-promo a.kc-cta-solid {
  color: #fff;
  background: linear-gradient(120deg, #E75323 0%, #C92575 100%);
  box-shadow: 0 12px 22px -10px rgba(201, 37, 117, 0.55);
}
.kc-promo a.kc-cta-ghost {
  color: var(--kc-magenta);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(201, 37, 117, 0.28);
}
@media (hover: hover) and (pointer: fine) {
  .kc-promo a.kc-cta-solid:hover {
    color: #fff;
    filter: brightness(1.06);
  }
  .kc-promo a.kc-cta-ghost:hover {
    color: var(--kc-magenta);
    background: var(--kc-soft);
    box-shadow: inset 0 0 0 1.5px rgba(201, 37, 117, 0.5);
  }
}

/* ---------------------------------------------------------------------------
   9. TERMENI
   --------------------------------------------------------------------------- */
.kc-promo .kc-terms {
  margin: 1.85rem auto 0;
  max-width: 58rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(42, 42, 46, 0.62);
  opacity: 0;
  animation: kcRise 620ms var(--kc-ease-out) 420ms both;
}
.kc-promo .kc-terms p {
  margin: 0;
  white-space: nowrap;
}
.kc-promo .kc-terms .kc-sep {
  margin: 0 0.45em;
  color: rgba(201, 37, 117, 0.45);
  font-weight: 600;
}
@media (max-width: 820px) {
  .kc-promo .kc-terms p { white-space: normal; }
}

/* ---------------------------------------------------------------------------
   10. SCENA A DOUA
   --------------------------------------------------------------------------- */
.kc-promo .kc-scene--scan {
  min-height: 0;
  padding-top: 70px;
}
.kc-promo .kc-scene--scan .kc-hero { margin-bottom: 2.1rem; }
.kc-promo .kc-scene--scan .kc-hero h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.85rem);
}

.kc-promo .kc-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.7rem 1.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1.5px solid rgba(201, 37, 117, 0.22);
  color: var(--kc-magenta);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 10px 24px -12px rgba(201, 37, 117, 0.35);
  opacity: 0;
  animation: kcRise 620ms var(--kc-ease-out) 40ms both;
}

.kc-promo .kc-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  position: relative;
  align-items: stretch;
}
@media (min-width: 860px) {
  .kc-promo .kc-duo {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 58rem;
    margin: 0 auto;
  }
}

.kc-promo .kc-duo-or { display: none; }
@media (min-width: 860px) {
  .kc-promo .kc-duo-or {
    display: grid;
    place-items: center;
    position: absolute;
    left: 50%;
    top: 46%;
    z-index: 3;
    width: 3.35rem;
    height: 3.35rem;
    margin: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    color: var(--kc-magenta);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 28px -8px rgba(201, 37, 117, 0.4);
    border: 1.5px solid rgba(201, 37, 117, 0.18);
  }
}

.kc-promo .kc-duo-card {
  min-height: 0;
  padding: 1.7rem 1.55rem 1.3rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.kc-promo .kc-duo-card.kc-card--hot {
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)) padding-box,
    linear-gradient(135deg, #E75323, #C92575) border-box;
}
@media (min-width: 860px) {
  .kc-promo .kc-duo-card {
    min-height: 20.5rem;
    padding: 2rem 1.85rem 1.4rem;
  }
  .kc-promo .kc-duo-card--left {
    border-top-right-radius: 0.55rem;
    border-bottom-right-radius: 0.55rem;
    margin-right: 1.15rem;
  }
  .kc-promo .kc-duo-card--right {
    border-top-left-radius: 0.55rem;
    border-bottom-left-radius: 0.55rem;
    margin-left: 1.15rem;
  }
}

.kc-promo .kc-duo-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  margin-bottom: 1.05rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kc-magenta);
  background: var(--kc-soft);
}
.kc-promo .kc-duo-card.kc-card--hot .kc-duo-tag {
  color: #fff;
  background: linear-gradient(120deg, #E75323 0%, #C92575 100%);
}
.kc-promo .kc-duo-card .kc-service {
  margin-top: 0.85rem;
  font-size: 1.18rem;
}
.kc-promo .kc-duo-note {
  margin: 0.45rem 0 1.15rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(42, 42, 46, 0.58);
}
.kc-promo .kc-duo-card .kc-cta::before { display: none; }

/* Vizibil implicit: dacă JS este blocat sau întârzie, conținutul rămâne afișat. */
.kc-promo [data-kc-inview] {
  opacity: 1;
  transform: none;
}

/* Ascundem pentru animație numai după ce JS s-a inițializat cu succes. */
.kc-promo.kc-js [data-kc-inview] {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
}
.kc-promo.kc-js [data-kc-inview].kc-in {
  animation: kcCardIn 620ms var(--kc-ease-out) forwards;
}
.kc-promo .kc-duo-card--right.kc-in { animation-delay: 80ms; }
.kc-promo .kc-scene--scan .kc-terms {
  opacity: 1;
  animation: none;
}

/* ---------------------------------------------------------------------------
   11. ACCESIBILITATE
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .kc-promo .kc-enter,
  .kc-promo .kc-brand,
  .kc-promo .kc-hero h1,
  .kc-promo .kc-terms,
  .kc-promo .kc-deal::after,
  .kc-promo .kc-kicker,
  .kc-promo [data-kc-inview] {
    animation: none !important;
  }
  .kc-promo .kc-enter,
  .kc-promo .kc-brand,
  .kc-promo .kc-hero h1,
  .kc-promo .kc-terms,
  .kc-promo .kc-kicker,
  .kc-promo [data-kc-inview] {
    opacity: 1;
    transform: none;
  }
  .kc-promo .kc-card { transition: none; }
}
