/* Homepage v2 — landing care leagă coduri / Q&A / profesioniști. */

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.lh-hero-v2 {
  background:
    radial-gradient(900px 460px at 80% -10%, rgba(26,84,144,.10), transparent),
    radial-gradient(700px 360px at 10% 110%, rgba(26,84,144,.08), transparent),
    linear-gradient(180deg, #fbfcfd 0%, #f5f7fa 100%);
  padding: 3.5rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--lh-border);
}
.lh-hero-inner { max-width: 760px; margin: 0 auto; }

.lh-hero-eyebrow {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--lh-primary);
  font-weight: 600;
  margin: 0 0 .85rem;
}
.lh-hero-title {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 0 0 1.1rem;
  color: var(--lh-text);
}
.lh-hero-lead {
  font-size: 1.05rem;
  color: var(--lh-muted);
  max-width: 56ch;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

/* Search */
.lh-hero-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 999px;
  padding: .35rem .35rem .35rem 1rem;
  box-shadow: 0 6px 18px rgba(15,32,54,.06);
  max-width: 600px;
  margin: 0 auto 1.25rem;
  position: relative;
  transition: box-shadow .15s, border-color .15s;
}
.lh-hero-search:focus-within {
  border-color: var(--lh-primary);
  box-shadow: 0 0 0 4px rgba(26,84,144,.12), 0 8px 22px rgba(15,32,54,.10);
}
.lh-hero-search-icon { color: var(--lh-muted); display: inline-flex; flex-shrink: 0; }
.lh-hero-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: .92rem;
  padding: .55rem .25rem;
  min-width: 0;
  color: var(--lh-text);
}
.lh-hero-search input::placeholder { color: #9ca3af; }
.lh-hero-search button { flex-shrink: 0; border-radius: 999px; padding: .55rem 1.15rem; }

.lh-hero-quick {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .35rem .5rem;
  font-size: .82rem;
}
.lh-hero-quick-label { color: var(--lh-muted); margin-right: .35rem; }
.lh-quick-chip {
  display: inline-block;
  background: #fff;
  color: var(--lh-text);
  border: 1px solid var(--lh-border);
  border-radius: 999px;
  padding: .25rem .7rem;
  text-decoration: none;
  font-size: .8rem;
  transition: background .12s, border-color .12s, color .12s;
}
.lh-quick-chip:hover { background: var(--lh-primary); color: #fff; border-color: var(--lh-primary); }

/* Hero stats */
.lh-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(0,0,0,.06);
}
.lh-stat { text-align: center; }
.lh-stat-val {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--lh-primary);
  letter-spacing: -.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lh-stat-lbl {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lh-muted);
  margin-top: .35rem;
  font-weight: 600;
}

/* ── Sections shared chrome ──────────────────────────────────────────── */
.lh-home-section { padding: 3.5rem 1.5rem; }
.lh-section-grey { background: #f7f9fb; border-block: 1px solid var(--lh-border); }

/* Explicit children centering (rather than `> *` selector — more robust
   in cascade collisions with .lh-q-list, .lh-art-list, etc. which set
   their own margin shorthand). */
.lh-home-section > .lh-section-head,
.lh-home-section > .lh-code-grid,
.lh-home-section > .lh-q-list,
.lh-home-section > .lh-art-list,
.lh-home-section > .lh-pro-grid,
.lh-home-section > .lh-section-foot {
  max-width: 1100px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.lh-section-head { margin-bottom: 2rem; position: relative; }
.lh-section-head h2 {
  margin: 0 0 .35rem;
  font-size: 1.6rem;
  letter-spacing: -.015em;
  font-weight: 700;
}
.lh-section-head p {
  margin: 0;
  color: var(--lh-muted);
  font-size: .95rem;
  max-width: 60ch;
}
.lh-section-link {
  position: absolute; top: .35rem; right: 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--lh-primary);
  text-decoration: none;
}
.lh-section-link:hover { text-decoration: underline; }
.lh-section-foot { display: flex; justify-content: center; margin-top: 1.5rem; }

/* ── Code cards ──────────────────────────────────────────────────────── */
.lh-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.lh-code-card {
  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s, transform .08s, box-shadow .12s;
}
.lh-code-card-live:hover {
  border-color: var(--lh-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15,32,54,.08);
}
.lh-code-card-soon {
  background: #f9fafb;
  border-style: dashed;
  cursor: not-allowed;
  color: var(--lh-muted);
}
.lh-code-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.lh-code-card-head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--lh-text);
}
.lh-code-card-soon .lh-code-card-head h3 { color: var(--lh-muted); }
.lh-code-card-badge {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: #ecfdf5;
  color: #047857;
  padding: .15rem .45rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.lh-badge-soon { background: #f3f4f6; color: #6b7280; }
.lh-code-card-law { margin: 0; font-size: .75rem; color: var(--lh-muted); }
.lh-code-card-desc { margin: 0 0 .35rem; font-size: .88rem; line-height: 1.5; color: #374151; flex: 1; }
.lh-code-card-soon .lh-code-card-desc { color: #9ca3af; }
.lh-code-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .65rem; border-top: 1px solid var(--lh-border);
  font-size: .8rem;
}
.lh-code-card-count { color: var(--lh-muted); font-variant-numeric: tabular-nums; }
.lh-code-card-arrow { color: var(--lh-primary); font-weight: 600; }
.lh-code-card-arrow-disabled { color: #9ca3af; font-weight: 500; }

/* ── Q&A list ────────────────────────────────────────────────────────── */
.lh-q-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}
.lh-q-item { display: flex; }
.lh-q-card {
  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s, transform .08s;
}
.lh-q-card:hover { border-color: var(--lh-primary); transform: translateY(-2px); }
.lh-q-card-meta {
  display: flex; gap: .5rem .8rem; flex-wrap: wrap;
  font-size: .72rem;
  align-items: center;
}
.lh-q-cat {
  background: rgba(26,84,144,.08);
  color: var(--lh-primary);
  padding: .12rem .5rem;
  border-radius: 999px;
  font-weight: 600;
}
.lh-q-stat { color: var(--lh-muted); }
.lh-q-views { font-variant-numeric: tabular-nums; }
.lh-q-title {
  margin: .15rem 0 .15rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--lh-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lh-q-excerpt {
  margin: 0;
  font-size: .82rem;
  color: var(--lh-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Professionals featured ──────────────────────────────────────────── */
.lh-pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.lh-pro-card {
  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s, transform .08s, box-shadow .12s;
}
.lh-pro-card:hover {
  border-color: var(--lh-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15,32,54,.08);
}
.lh-pro-img {
  width: 76px; height: 76px; border-radius: 50%;
  object-fit: cover;
  background: var(--lh-accent);
  flex-shrink: 0;
}
.lh-pro-card-body { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.lh-pro-type {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lh-primary);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.lh-pro-verified {
  display: inline-block;
  width: 14px; height: 14px;
  background: #047857;
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  text-align: center;
  line-height: 14px;
}
.lh-pro-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lh-text);
  letter-spacing: -.005em;
}
.lh-pro-tagline {
  margin: .15rem 0;
  font-size: .82rem;
  color: var(--lh-muted);
  line-height: 1.4;
  font-family: var(--lh-font-serif);
}
.lh-pro-meta { font-size: .78rem; color: var(--lh-muted); margin-top: .15rem; }

/* ── CTA strip ───────────────────────────────────────────────────────── */
.lh-cta-strip {
  background: linear-gradient(135deg, #1a5490 0%, #144370 100%);
  color: #fff;
  padding: 3rem 1.5rem;
}
.lh-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}
.lh-cta-text h2 {
  margin: 0 0 .45rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.lh-cta-text p {
  margin: 0;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  max-width: 56ch;
}
.lh-cta-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.lh-cta-strip .lh-btn-primary {
  background: #fff;
  color: var(--lh-primary);
}
.lh-cta-strip .lh-btn-primary:hover { background: #f1f5f9; }
.lh-cta-strip .lh-btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.lh-cta-strip .lh-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .lh-hero-v2 { padding: 2.5rem 1rem 1.25rem; }
  .lh-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
  .lh-q-list { grid-template-columns: 1fr; }
  .lh-section-link { position: static; display: inline-block; margin-top: .65rem; }
  .lh-section-head h2 { font-size: 1.35rem; }
  .lh-home-section { padding: 2.5rem 1rem; }
  .lh-cta-inner { grid-template-columns: 1fr; }
  .lh-cta-actions { width: 100%; }
  .lh-cta-actions .lh-btn { flex: 1; text-align: center; }
}
@media (max-width: 520px) {
  .lh-hero-search { padding: .3rem; flex-wrap: wrap; }
  .lh-hero-search input { font-size: .88rem; padding: .5rem .65rem; flex-basis: 100%; order: 2; }
  .lh-hero-search button { flex-basis: 100%; order: 3; border-radius: 6px; }
  .lh-hero-search-icon { padding-left: .65rem; }
}

/* Articole recente — homepage section */
.lh-art-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.lh-art-mini {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none; color: inherit;
  transition: border-color .12s, transform .08s, box-shadow .12s;
  height: 100%;
}
.lh-art-mini:hover {
  border-color: var(--lh-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15,32,54,.08);
}
.lh-art-mini-meta {
  display: flex; gap: .5rem; align-items: center;
  font-size: .72rem;
  margin-bottom: .5rem;
}
.lh-art-mini-cat {
  background: rgba(26,84,144,.08);
  color: var(--lh-primary);
  font-weight: 600;
  padding: .12rem .55rem;
  border-radius: 999px;
}
.lh-art-mini-mins { color: var(--lh-muted); }
.lh-art-mini-title {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.005em;
  line-height: 1.3;
  color: var(--lh-text);
  font-family: var(--lh-font-serif);
}
.lh-art-mini-excerpt {
  margin: 0 0 .85rem;
  font-size: .85rem;
  color: var(--lh-muted);
  line-height: 1.5;
  font-family: var(--lh-font-serif);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.lh-art-mini-byline {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--lh-text);
  margin-top: auto;
}
.lh-art-mini-byline img {
  width: 24px; height: 24px;
  border-radius: 50%; object-fit: cover;
  background: var(--lh-accent);
}
