/* ==========================================================================
   Componente reutilizabile
   ========================================================================== */

/* --- Butoane --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border: 0; border-radius: var(--r-pill);
  font-size: var(--fs-base); font-weight: 500; cursor: pointer;
  transition: background var(--t-med), color var(--t-med), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); }
.btn--ghost { background: var(--c-surface-3); color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-border); }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--onDark { background: rgba(255,255,255,.12); color: #fff; border: 1px solid var(--c-on-dark-line); }
.btn--onDark:hover { background: rgba(255,255,255,.2); }
.btn--lg { padding: 16px 28px; font-size: var(--fs-md); }
.btn--block { width: 100%; }

/* --- Chip / filtru --- */
.chip {
  padding: 12px 20px; border: 0; border-radius: var(--r-pill);
  background: var(--c-surface-3); color: var(--c-ink);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.chip:hover { background: var(--c-border); }
.chip[aria-pressed="true"] { background: var(--c-ink); color: #fff; }

/* --- Badge / stare --- */
.badge {
  display: inline-flex; align-items: center; gap: .4em;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 500; line-height: 1.3;
}
.badge--accent { background: var(--c-accent); color: #fff; }
.badge--soft   { background: var(--c-accent-tint); color: var(--c-accent-dark); }
.badge--ok     { background: var(--c-ok-tint); color: var(--c-ok); }
.badge--muted  { background: var(--c-surface-3); color: var(--c-ink-soft); }

/* --- Card --- */
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #F7F7F7;
  border-radius: 20px; padding: 20px;
  transition: border-color var(--t-med), transform var(--t-med);
}
.card:hover { border-color: var(--c-accent-soft); transform: translateY(-5px); }
.card__media {
  position: relative; overflow: hidden;
  border-radius: var(--r-md); aspect-ratio: 4/3; background: var(--c-surface);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badges { position: absolute; inset: 12px 12px auto 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; flex: 1; }
.card__title { font-family: var(--f-display); font-size: var(--fs-lg); letter-spacing: var(--ls-head); }
.card__meta { font-size: var(--fs-sm); color: var(--c-ink-soft); }
.card__price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.card__price b { font-family: var(--f-display); font-size: var(--fs-xl); letter-spacing: var(--ls-head); font-weight: 600; }
.card__price span { font-size: var(--fs-sm); color: var(--c-ink-soft); }
.card__cta { margin-top: auto; padding-top: 16px; }

/* --- Specificatii (cheie/valoare) --- */
.specs { display: grid; gap: 0; border-top: 1px solid var(--c-surface-3); }
.specs__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--c-surface-3);
  font-size: var(--fs-base);
}
.specs__row dt { color: var(--c-ink-soft); }
.specs__row dd { font-weight: 500; text-align: right; }

/* --- Tabel --- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--c-surface-3); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.table th, .table td { padding: 12px 16px; text-align: left; white-space: nowrap; }
.table thead th {
  position: sticky; top: 0; background: var(--c-surface);
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-ink-soft);
  border-bottom: 1px solid var(--c-surface-3);
}
.table tbody tr { border-bottom: 1px solid var(--c-surface-2); }
.table tbody tr:last-child { border-bottom: 0; }
.table tbody tr:hover { background: var(--c-surface); }

/* --- Modal --- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 32px)); width: 100%; }
.modal::backdrop { background: rgba(23,19,15,.62); backdrop-filter: blur(3px); }
.modal__inner { background: var(--c-bg); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); position: relative; }
.modal__close {
  position: absolute; inset: 14px 14px auto auto;
  width: 34px; height: 34px; border: 0; border-radius: var(--r-full);
  background: var(--c-surface-3); cursor: pointer; font-size: 17px; line-height: 1;
}
.modal__close:hover { background: var(--c-border); }

/* --- Formular --- */
.form { display: grid; gap: 13px; }
.form__row { display: grid; gap: 13px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > label { font-size: var(--fs-sm); color: var(--c-ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  background: #fff; border: 1px solid var(--c-surface-3);
  border-radius: 12px; font-size: var(--fs-base);
  transition: border-color var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-accent); outline: 0; }
.field textarea { min-height: 108px; resize: vertical; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check input { width: 17px; height: 17px; margin-top: 3px; }
.field--check label { font-size: var(--fs-xs); line-height: 1.5; }
.field[data-error] input, .field[data-error] select { border-color: var(--c-accent); }
.field__err { font-size: var(--fs-xs); color: var(--c-accent); }
.form__note { font-size: var(--fs-xs); color: var(--c-ink-soft); }
.form__status { font-size: var(--fs-sm); padding: 11px 14px; border-radius: 12px; }
.form__status--ok  { background: var(--c-ok-tint); color: var(--c-ok); }
.form__status--err { background: var(--c-accent-tint); color: var(--c-accent-dark); }

/* --- Galerie --- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.gallery button {
  all: unset; cursor: zoom-in; display: block; position: relative;
  overflow: hidden; border-radius: var(--r-md); aspect-ratio: 4/3; background: var(--c-surface);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.04); }

/* --- Listă agenți (popup „Sună") --- */
.agenti { display: grid; gap: 10px; }
.agent {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--c-surface-3);
  transition: border-color var(--t-fast);
}
.agent:hover { border-color: var(--c-accent-soft); }
.agent__foto, .agent__initiale {
  width: 56px; height: 56px; border-radius: var(--r-full);
  object-fit: cover; flex: 0 0 auto;
}
.agent__initiale {
  display: grid; place-items: center;
  background: var(--c-surface-3); color: var(--c-ink-soft);
  font-family: var(--f-display); font-size: var(--fs-md); font-weight: 600;
}
.agent__info { display: grid; gap: 1px; min-width: 0; }
.agent__info b { font-size: var(--fs-base); }
.agent__info span { font-size: var(--fs-xs); color: var(--c-ink-soft); }
.agent__actions { margin-left: auto; display: flex; gap: 7px; flex: 0 0 auto; }
.agent__call {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--c-accent); color: #fff; font-size: 14px; font-weight: 500;
}
.agent__call:hover { background: var(--c-accent-hover); }
.agent__wa {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-full); background: var(--c-ok-tint); color: var(--c-ok);
}
.agent__wa:hover { background: #d6e8d6; }
@media (max-width: 460px) {
  .agent { flex-wrap: wrap; }
  .agent__actions { margin-left: 0; width: 100%; }
  .agent__call { flex: 1; justify-content: center; }
}
.linkish { all: unset; cursor: pointer; text-decoration: underline; color: var(--c-accent); }

/* --- Hero --- */
.hero { position: relative; min-height: 92vh; display: grid; align-items: end; overflow: hidden; background: var(--c-dark); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,19,15,.62) 0%, rgba(23,19,15,.34) 40%, rgba(23,19,15,.88) 100%); }
.hero__inner { position: relative; z-index: 2; padding-block: 120px 56px; color: #fff; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero__sub { color: rgba(255,255,255,.82); max-width: 54ch; margin-top: 16px; font-size: var(--fs-md); }
.hero__cta { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 28px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--sp-sm); margin-top: 44px; padding-top: var(--sp-md); border-top: 1px solid var(--c-on-dark-line); }
@media (max-width: 720px) { .hero__facts { grid-template-columns: 1fr; gap: var(--sp-sm); } .hero { min-height: auto; } }
.fact b { display: block; font-family: var(--f-display); font-size: var(--fs-xl); font-weight: 600; letter-spacing: var(--ls-head); color: #fff; }
.fact span { font-size: var(--fs-sm); color: rgba(255,255,255,.68); }

/* --- Bandă ofertă --- */
.oferta { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 460px; display: grid; place-items: center; text-align: center; }
.oferta__bg { position: absolute; inset: 0; }
.oferta__bg video, .oferta__bg img { width: 100%; height: 100%; object-fit: cover; }
.oferta__bg::after { content: ""; position: absolute; inset: 0; background: rgba(23,19,15,.44); }
.oferta__inner { position: relative; z-index: 2; padding: clamp(30px,5vw,58px); color: #fff; max-width: 720px; }
.oferta h2 { color: #fff; }
.oferta h2 em { font-style: italic; font-weight: 300; }
.oferta p { color: rgba(255,255,255,.86); margin-top: 12px; }
.countdown { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.countdown div { background: #fff; border-radius: var(--r-md); padding: 12px 18px; min-width: 78px; }
.countdown b { display: block; font-family: var(--f-display); font-size: var(--fs-2xl); font-weight: 600; color: var(--c-accent); line-height: 1.1; }
.countdown span { font-size: var(--fs-xs); color: var(--c-ink-soft); }

/* --- Listă beneficii --- */
.benefit { display: grid; gap: 8px; padding: 24px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--c-surface-3); }
.benefit b { font-family: var(--f-display); font-size: var(--fs-md); }
.benefit p { font-size: 14.5px; color: var(--c-ink-soft); }
.benefit i { font-style: normal; font-size: var(--fs-xs); color: var(--c-accent); font-weight: 600; letter-spacing: .1em; }

/* --- Statistici --- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 24px; background: var(--c-surface); border-radius: var(--r-md); }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(28px,4vw,40px); font-weight: 600; letter-spacing: var(--ls-tight); }
.stat span { font-size: 14.5px; color: var(--c-ink-soft); }

/* --- Testimoniale --- */
.quote { display: grid; gap: 14px; padding: 26px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--c-surface-3); }
.quote p { font-size: var(--fs-md); line-height: 1.55; }
.quote footer { font-size: var(--fs-sm); color: var(--c-ink-soft); }
.stars { color: var(--c-accent); letter-spacing: .12em; font-size: 14px; }

/* --- FAQ --- */
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--c-surface-3); border-radius: var(--r-md); }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c-accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 20px; color: var(--c-ink-soft); font-size: 15px; }
