/* ============================================================================
   tools.css — stiluri pentru paginile publice de unelte + comparație (ruman.ro)
   Temă dark, consistentă cu landing.css (reutilizează --teal, --amber, etc.)
   ========================================================================== */

.tools-body {
  background: var(--dark);
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

/* Nav links responsive (ascunde meniul pe mobil, păstrează CTA) */
@media (max-width: 860px) {
  .tools-nav-links { display: none !important; }
}

.tools-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 7rem 1.5rem 0;
}
.tools-main.narrow { max-width: 860px; }

/* ─── Breadcrumb ─── */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-light); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ─── Hero unealtă ─── */
.tool-hero { margin-bottom: 2.5rem; }
.tool-hero .eyebrow {
  display: inline-block;
  background: rgba(8,145,178,0.12);
  border: 1px solid var(--border);
  color: var(--teal-light);
  font-size: 0.75rem; font-weight: 600;
  padding: 0.35rem 0.85rem; border-radius: 100px;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.tool-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.tool-hero h1 em { color: var(--teal-light); font-style: normal; }
.tool-hero .lead {
  font-size: 1.08rem; color: var(--text-muted);
  max-width: 640px; line-height: 1.7;
}

/* ─── Carduri generice ─── */
.tool-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  margin: 3rem 0 1.25rem;
}
.section-title.first { margin-top: 0; }

.prose { color: var(--text-muted); line-height: 1.8; font-size: 1rem; }
.prose p { margin-bottom: 1rem; }
.prose strong { color: #fff; }
.prose a { color: var(--teal-light); }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: 0.5rem; }

/* ─── CALCULATOR SALARIU ─── */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 820px) { .calc-wrap { grid-template-columns: 1fr; } }

.calc-form label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.4rem; color: #dbe9ef;
}
.calc-field { margin-bottom: 1.15rem; }
.calc-input, .calc-select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  color: #fff; font-size: 1.05rem; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.calc-input:focus, .calc-select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.2);
}
.calc-select option { background: var(--dark-card); color: #fff; }
.calc-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.35rem; }

/* toggle brut/net segmented */
.seg {
  display: inline-flex; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 100px;
  padding: 4px; margin-bottom: 1.5rem;
}
.seg button {
  border: none; background: transparent; color: var(--text-muted);
  font-family: inherit; font-weight: 600; font-size: 0.9rem;
  padding: 0.55rem 1.3rem; border-radius: 100px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.seg button.active { background: var(--teal); color: #fff; }

.calc-check {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; color: #dbe9ef; cursor: pointer; margin-bottom: 0.9rem;
}
.calc-check input { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }

.calc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Rezultate */
.calc-results { position: sticky; top: 6.5rem; }
.result-big {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.result-big:last-of-type { border-bottom: none; }
.result-big .lbl { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.result-big .val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem; font-weight: 800;
}
.result-big .val small { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.result-big.net .val { color: var(--teal-light); }
.result-big.brut .val { color: #fff; }

.breakdown { margin-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1rem; }
.breakdown-row {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; padding: 0.45rem 0; color: var(--text-muted);
}
.breakdown-row .k { display: flex; align-items: center; gap: 0.5rem; }
.breakdown-row .v { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.breakdown-row.total { border-top: 1px dashed rgba(255,255,255,0.16); margin-top: 0.4rem; padding-top: 0.7rem; }
.breakdown-row.total .k, .breakdown-row.total .v { color: #fff; font-weight: 700; }
.pill-amber { color: var(--amber-light) !important; }

.employer-box {
  margin-top: 1.25rem; background: rgba(245,158,11,0.07);
  border: 1px solid var(--border-amber); border-radius: 12px; padding: 1rem 1.2rem;
}
.employer-box .k { font-size: 0.85rem; color: var(--amber-light); font-weight: 600; }
.employer-box .v { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 800; }

/* Info / notă */
.note {
  background: rgba(8,145,178,0.07);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 10px; padding: 1rem 1.15rem;
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.65;
  margin: 1.5rem 0;
}
.note strong { color: #fff; }

/* ─── TABELE (exemple / zile libere / comparație) ─── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
table.data {
  width: 100%; border-collapse: collapse; min-width: 480px;
  background: var(--dark-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
table.data th, table.data td {
  padding: 0.8rem 1rem; text-align: left; font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
table.data th {
  background: rgba(255,255,255,0.03); color: #dbe9ef;
  font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em;
}
table.data td { color: var(--text-muted); }
table.data td strong { color: #fff; }
table.data tr:last-child td { border-bottom: none; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tag-weekend { color: var(--amber-light); font-size: 0.78rem; font-weight: 600; }
.tag-workday { color: var(--teal-light); font-size: 0.78rem; font-weight: 600; }

/* Statistici (bento) */
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0;
}
@media (max-width: 640px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-box {
  background: var(--dark-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.25rem;
}
.stat-box .n {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--teal-light);
}
.stat-box .l { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ─── MODEL CERERE ─── */
.cerere-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.75rem; align-items: start; }
@media (max-width: 900px) { .cerere-wrap { grid-template-columns: 1fr; } }

.paper {
  background: #fbfcfd; color: #1a2230; border-radius: 10px;
  padding: 2.5rem 2.75rem; line-height: 1.85; font-size: 0.95rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4); min-height: 460px;
}
.paper h3 { text-align: center; letter-spacing: 1px; font-size: 1.15rem; margin-bottom: 1.75rem; color: #0b1522; }
.paper .to { font-weight: 700; margin-bottom: 1.5rem; }
.paper .body { text-align: justify; margin-bottom: 2rem; }
.paper .ph { color: var(--teal-dark); font-weight: 600; }
.paper .foot { display: flex; justify-content: space-between; margin-top: 2.5rem; }
.paper .sig { text-align: left; }
.paper .apr { text-align: right; color: #5b6472; }

.download-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.btn-download {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--teal); color: #fff; text-decoration: none;
  padding: 0.75rem 1.4rem; border-radius: 8px; font-weight: 700; font-size: 0.9rem;
  border: none; cursor: pointer; font-family: inherit; transition: background 0.2s, transform 0.15s;
}
.btn-download:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-download.ghost { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); }
.btn-download.ghost:hover { background: rgba(255,255,255,0.12); }

/* ─── COMPARAȚIE ─── */
.cmp-check { color: var(--teal-light); font-weight: 700; }
.cmp-cross { color: rgba(255,255,255,0.28); }
.cmp-partial { color: var(--amber-light); }
table.data.cmp td:first-child { color: #fff; font-weight: 600; }
table.data.cmp th.us { color: var(--teal-light); }

/* ─── FAQ ─── */
.faq { margin-top: 1rem; }
.faq-item {
  background: var(--dark-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 0.75rem; cursor: pointer;
}
.faq-item .q {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 600; font-size: 1rem; color: #fff;
}
.faq-item .q .arrow { transition: transform 0.2s; flex-shrink: 0; color: var(--teal-light); }
.faq-item.open .q .arrow { transform: rotate(90deg); }
.faq-item .a {
  max-height: 0; overflow: hidden; color: var(--text-muted); line-height: 1.7;
  font-size: 0.92rem; transition: max-height 0.25s ease, margin 0.25s ease;
}
.faq-item.open .a { max-height: 400px; margin-top: 0.85rem; }

/* ─── CTA band ─── */
.tools-cta {
  margin-top: 5rem;
  background: linear-gradient(135deg, rgba(8,145,178,0.14), rgba(14,116,144,0.06));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem; text-align: center;
}
.tools-cta-inner { max-width: 680px; margin: 0 auto; }
.tools-cta h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800; margin-bottom: 1rem; line-height: 1.2;
}
.tools-cta p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; }
.tools-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.tools-cta-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 1.25rem; margin-bottom: 0; }

.btn-primary {
  background: var(--teal); color: #fff; text-decoration: none;
  padding: 0.9rem 1.8rem; border-radius: 8px; font-weight: 700; font-size: 0.98rem;
  border: none; cursor: pointer; font-family: inherit; display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.06); color: #fff; text-decoration: none;
  padding: 0.9rem 1.8rem; border-radius: 8px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid rgba(255,255,255,0.25); cursor: pointer; font-family: inherit; display: inline-block;
  transition: background 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ─── Footer ─── */
.tools-footer { background: var(--dark-mid); border-top: 1px solid var(--border); padding: 3.5rem 1.5rem 0; }
.tools-footer-inner {
  max-width: 1080px; margin: 0 auto; display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
@media (max-width: 780px) { .tools-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .tools-footer-inner { grid-template-columns: 1fr; } }
.tools-footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-top: 0.75rem; max-width: 300px; }
.tools-footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: #dbe9ef; margin-bottom: 0.9rem; }
.tools-footer-col ul { list-style: none; }
.tools-footer-col li { margin-bottom: 0.55rem; }
.tools-footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; }
.tools-footer-col a:hover { color: var(--teal-light); }
.tools-footer-bottom {
  max-width: 1080px; margin: 2.5rem auto 0; border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0; text-align: center;
}
.tools-footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }

.updated-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
