/* ==========================================================
   CAR CSR – home.css
   Prima pagină: hero, card exemplu împrumut, statistici, servicii
   ========================================================== */

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(31, 95, 191, .55), transparent 65%),
    linear-gradient(160deg, var(--navy) 0%, #0d2d54 60%, #123a6b 100%);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(5rem, 9vw, 7.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero p.lead { font-size: 1.2rem; color: #c3d3ec; max-width: 34em; margin-bottom: 2rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; padding: .4rem 1rem .4rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .9rem; font-weight: 600; color: #e6eefb; }
.hero-badge b { background: var(--gold-light); color: var(--navy); border-radius: 999px; padding: .2rem .7rem; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero .hero-copy > * { animation: rise .8s var(--ease) both; }
.hero .hero-copy > *:nth-child(2) { animation-delay: .1s; }
.hero .hero-copy > *:nth-child(3) { animation-delay: .2s; }
.hero .hero-copy > *:nth-child(4) { animation-delay: .3s; }

/* Card exemplu împrumut (inel animat) */
.loan-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow-lg); animation: rise .9s .25s var(--ease) both; }
.loan-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.loan-card-head h2 { font-size: 1.15rem; margin: 0; }
.loan-card-head p { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--teal-soft); color: var(--teal); white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14, 143, 126, .5); } 70% { box-shadow: 0 0 0 8px rgba(14, 143, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 143, 126, 0); } }

.loan-body { display: grid; grid-template-columns: 170px 1fr; gap: 1.4rem; align-items: center; }
.ring { position: relative; width: 170px; height: 170px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 16; }
.ring .track { stroke: var(--blue); }
.ring .arc { stroke: var(--gold-light); stroke-linecap: round; stroke-dasharray: 0 326.73; animation: ring 1.6s .7s var(--ease) forwards; }
@keyframes ring { to { stroke-dasharray: var(--arc) 326.73; } }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--navy); line-height: 1; }
.ring-center span { font-size: .75rem; color: var(--muted); font-weight: 600; margin-top: .25rem; }
.loan-legend li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--muted); padding: .3rem 0; }
.loan-legend li strong { margin-left: auto; color: var(--navy); font-weight: 800; }
.loan-legend i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.loan-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; padding-top: 1rem; margin-top: 1.2rem; border-top: 1px solid var(--line); }
.loan-foot strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--navy); line-height: 1.1; }
.loan-foot span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.loan-card .btn { margin-top: 1.2rem; }

/* Statistici suprapuse peste hero */
.stats { margin-top: -3.5rem; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 1.75rem 1.5rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; color: var(--blue); line-height: 1; margin-bottom: .4rem; }
.stat-num small { font-size: .5em; color: var(--gold); margin-left: .25rem; font-family: var(--font-body); font-weight: 800; }
.stat p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.4; }

/* Servicii (teaser) */
.svc-card .btn { margin-top: 1.1rem; }
.svc-list li { padding: .35rem 0 .35rem 1.4rem; position: relative; color: var(--muted); }
.svc-list li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); }

/* Puncte de lucru (teaser) */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.loc { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.loc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.loc h3 { font-size: 1.05rem; margin: 0 0 .15rem; font-family: var(--font-body); font-weight: 800; }
.loc p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.loc a { font-weight: 800; text-decoration: none; }
.loc--main { border-color: var(--gold-light); background: linear-gradient(#fffaf0, #fff); }

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .hero-actions .btn { width: 100%; }
  .loan-body { grid-template-columns: 1fr; justify-items: center; }
  .loan-legend { width: 100%; }
  .stat { padding: 1.25rem 1rem; }
  .loc-grid { grid-template-columns: 1fr; }
}
