/* ============================================================
   MARKET LENDER — credite.css
   Styles de la page Tipuri de Credite
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   1. HERO PAGE (bandeau titre, réutilisable sur pages internes)
══════════════════════════════════════════════════════════════ */
.pagina-hero {
  position: relative;
  background: linear-gradient(135deg, var(--marine-profond) 0%, #0A1F3A 60%, #0D3060 100%);
  padding: calc(var(--space-5xl) + 2rem) 0 var(--space-4xl);
  overflow: hidden;
}

.pagina-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(46, 139, 192, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(244, 165, 0, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.pagina-hero__continut {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.fir-ariana {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-lg);
}

.fir-ariana a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.fir-ariana a:hover {
  color: var(--or-cta);
}

.fir-ariana span[aria-current] {
  color: var(--or-cta);
  font-weight: 600;
}

.pagina-hero .badge {
  background: rgba(46, 139, 192, 0.2);
  color: #7DD3F0;
  border: 1px solid rgba(46, 139, 192, 0.35);
  margin-bottom: var(--space-lg);
  display: inline-flex;
}

.pagina-hero__titlu {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--blanc);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.pagina-hero__subtitlu {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════════
   2. NAVIGATION RAPIDĂ (ancres)
══════════════════════════════════════════════════════════════ */
.credite-nav {
  background: var(--blanc);
  border-bottom: 1px solid var(--bordure);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 12px rgba(13, 43, 78, 0.06);
}

.credite-nav__lista {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding: var(--space-md) 0;
  scrollbar-width: none;
}

.credite-nav__lista::-webkit-scrollbar {
  display: none;
}

.credite-nav__link {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--texte-secondaire);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border: 1px solid var(--bordure);
}

.credite-nav__link:hover {
  color: var(--marine-profond);
  border-color: var(--bleu-ciel);
  background: rgba(46, 139, 192, 0.06);
}

/* ══════════════════════════════════════════════════════════════
   3. BLOCURI PROFIL (alternanță text / imagine)
══════════════════════════════════════════════════════════════ */
.profil-credit {
  scroll-margin-top: 90px;
}

.profil-credit__grila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.profil-credit__grila--inversat .profil-credit__imagine {
  order: 1;
}

.profil-credit__grila--inversat .profil-credit__text {
  order: 2;
}

.profil-credit__icona {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.profil-credit__icona--1 { background: rgba(13,43,78,0.08);   color: var(--marine-profond); }
.profil-credit__icona--2 { background: rgba(46,139,192,0.12); color: var(--bleu-ciel); }
.profil-credit__icona--3 { background: rgba(244,165,0,0.12);  color: var(--or-cta); }
.profil-credit__icona--4 { background: rgba(239,68,68,0.10);  color: #EF4444; }
.profil-credit__icona--5 { background: rgba(34,197,94,0.12);  color: #22C55E; }
.profil-credit__icona--6 { background: rgba(139,92,246,0.12); color: #8B5CF6; }

.profil-credit__text .label {
  display: block;
  margin-bottom: var(--space-sm);
}

.profil-credit__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--texte-principal);
  margin-bottom: var(--space-lg);
  line-height: 1.25;
}

.profil-credit__descriere {
  font-size: var(--fs-md);
  color: var(--texte-secondaire);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
}

.profil-credit__lista {
  list-style: none;
  margin: 0 0 var(--space-2xl);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.profil-credit__lista li {
  position: relative;
  padding-left: 1.85rem;
  font-size: var(--fs-sm);
  color: var(--texte-principal);
  line-height: 1.5;
}

.profil-credit__lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.profil-credit__imagine {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--ombre-md);
}

.profil-credit__imagine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profil-credit__imagine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(9, 26, 48, 0.25) 100%);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   4. CTA FINAL
══════════════════════════════════════════════════════════════ */
.credite-cta {
  padding: var(--space-5xl) 0;
  text-align: center;
}

.credite-cta__continut {
  max-width: 640px;
  margin: 0 auto;
}

.credite-cta__titlu {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: var(--space-md);
}

.credite-cta__text {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: var(--space-2xl);
}

.credite-cta__actiuni {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .profil-credit__grila,
  .profil-credit__grila--inversat {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .profil-credit__grila--inversat .profil-credit__imagine,
  .profil-credit__grila--inversat .profil-credit__text {
    order: unset;
  }

  .profil-credit__imagine {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  .pagina-hero {
    padding: calc(var(--space-4xl) + 1rem) 0 var(--space-2xl);
  }

  .credite-cta__actiuni {
    flex-direction: column;
  }

  .credite-cta__actiuni .btn {
    width: 100%;
    justify-content: center;
  }
}