/* ==========================================================
   CAR CSR – components.css
   Carduri, acordeon, tabele, liste, bandă CTA, hero interior,
   conținut editabil WordPress
   ========================================================== */

/* Carduri */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c3d4ee; }
.card .icon { margin-bottom: 1.1rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0 0 .8em; font-size: 1rem; }
.card p:last-child { margin-bottom: 0; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); }

/* Liste cu bife */
.checks li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e8f7e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Pași numerotați (Cum devii membru) */
.steps { counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: .1rem 0 1.1rem 3.2rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; font-size: .95rem;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: .2rem; width: 2px; background: var(--line); }

/* ACORDEON ------------------------------------------------ */
.accordion { display: grid; gap: .85rem; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s var(--ease); }
.acc-item.is-open { border-color: #b7cdee; box-shadow: var(--shadow); }
.acc-head { margin: 0; font-family: var(--font-body); font-size: 1.05rem; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left;
  padding: 1.15rem 1.4rem; background: transparent; border: 0; cursor: pointer;
  font: 700 1.08rem/1.35 var(--font-body); color: var(--navy); transition: background-color .2s, color .2s;
}
.acc-trigger:hover { background: var(--ice); }
.acc-item.is-open .acc-trigger { color: var(--blue); }
.acc-icon { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--sky); transition: background-color .3s, transform .4s var(--ease); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--blue); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .4s var(--ease), background-color .3s; }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.is-open .acc-icon { background: var(--blue); transform: rotate(180deg); }
.acc-item.is-open .acc-icon::before, .acc-item.is-open .acc-icon::after { background: #fff; }
.acc-item.is-open .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.acc-panel { display: grid; grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-body { padding: .25rem 1.4rem 1.5rem; }
.js .acc-panel { transition: grid-template-rows .45s var(--ease), visibility 0s; }
.js .acc-item:not(.is-open) .acc-panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s var(--ease), visibility 0s .45s; }

/* TABELE -------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 1rem 0; max-height: 520px; background: #fff; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; font-variant-numeric: tabular-nums; min-width: 460px; }
.table th, .table td { padding: .65rem 1rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; }
.table thead th { position: sticky; top: 0; z-index: 1; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; }
.table tbody tr:nth-child(even) td { background: var(--ice); }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover td { background: var(--sky); }
.table tfoot td { position: sticky; bottom: 0; background: #f8efd9; font-weight: 800; color: var(--navy); border-bottom: 0; border-top: 2px solid var(--gold-light); }
.table--center th, .table--center td { text-align: center; }

/* Parametri împrumut (definition list) */
.params { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 1.5rem; margin: 0 0 1.25rem; padding: 1.1rem 1.25rem; background: var(--ice); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.params div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.params dt { color: var(--muted); font-size: .95rem; }
.params dd { margin: 0; font-weight: 800; color: var(--navy); text-align: right; }
.table-title { font-family: var(--font-body); font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin: 1.25rem 0 0; }
.table-note { font-size: .92rem; color: var(--muted); margin: .4rem 0 0; }
.table-note strong { color: var(--teal); }

/* Bandă CTA */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, var(--navy-2) 100%); color: #fff; border-radius: 26px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .06); }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: #cfdcf3; margin: 0; }
.cta-info { position: relative; z-index: 1; display: grid; gap: .9rem; }
.cta-info > div { display: flex; gap: .9rem; align-items: flex-start; }
.cta-info svg { width: 24px; height: 24px; stroke: var(--gold-light); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-top: 3px; }
.cta-info a { color: #fff; font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.cta-info span { display: block; font-size: .95rem; color: #cfdcf3; }
.cta-info p { margin: 0; }

/* Hero pagini interioare */
.page-hero { background: linear-gradient(160deg, var(--navy), #123a6b); color: #fff; padding: clamp(2.75rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .3em; text-transform: none; }
.page-hero p { color: #c3d3ec; max-width: 40em; margin: 0; font-size: 1.15rem; }
.crumbs { font-size: .9rem; margin-bottom: 1rem !important; color: #9db5d9 !important; }
.crumbs a { color: #d6e2f5; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: #fff7e2; border: 1px solid #f0dca4; color: #6e5410; font-size: .95rem; margin-bottom: 2rem; }

/* Pagini legale (text lung) */
.legal { max-width: 820px; }
.legal p { margin-bottom: 1.1em; }
.legal h2 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); margin: 2.2rem 0 .7rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal .lead-strong { padding: 1rem 1.25rem; border-left: 4px solid var(--gold-light); background: #fff8e6; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 800; color: var(--navy); }
.legal-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.legal-nav a { padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--muted); transition: background-color .2s, color .2s, border-color .2s; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { background: var(--blue); color: #fff; border-color: var(--blue); }

@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .params { grid-template-columns: 1fr; }
  .acc-trigger { padding: 1rem 1.1rem; font-size: 1rem; }
  .acc-body { padding: .1rem 1.1rem 1.25rem; }
}
