/* ABC Repair - Diagnoza Electrica Auto Floresti | tema Luminoasa (alba) unica | WCAG AA >= 4.5:1 */
/* Nu exista tema intunecata: regulile data-theme sunt aliniate intentionat la aceeasi paleta luminoasa. */
:root,
html[data-theme="light"],
html[data-theme="dark"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;              /* 17.8:1 pe --bg */
  --muted: #475569;             /* 7.5:1 pe --bg, 6.9:1 pe --surface-2 */
  --accent: #0f4c81;            /* 9.0:1 pe --bg */
  --accent-strong: #0a365e;
  --on-accent: #ffffff;         /* 8.1:1 pe --accent */
  --link: #0f4c81;
  --accent-soft: #eff6ff;
  --ok: #0f6938;
  --ok-bg: #e3f7ec;
  --warn: #7c4a03;
  --warn-bg: #fef3c7;
  --err: #b91c1c;
  --err-bg: #fee2e2;
  --focus: #0f4c81;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Accente per domeniu (toate >= 4.5:1 pe alb) */
body[data-site="cluj"] {
  --accent: #0f4c81; --accent-strong: #0a365e; --accent-soft: #eff6ff; --link: #0f4c81; --focus: #0f4c81; --on-accent: #ffffff;
}
body[data-site="floresti"] {
  --accent: #0d6548; --accent-strong: #084c35; --accent-soft: #ecfdf5; --link: #0d6548; --focus: #0d6548; --on-accent: #ffffff;
}
body[data-site="gilau"] {
  --accent: #1e4268; --accent-strong: #142e4a; --accent-soft: #f0f6fc; --link: #1e4268; --focus: #1e4268; --on-accent: #ffffff;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  padding-bottom: 76px;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px;
  font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
}

/* ---------- Bara previzualizare ---------- */
.preview-bar {
  background: var(--warn-bg); color: #0f172a; border-bottom: 1px solid #f59e0b;
  padding: 8px 16px; font-size: .85rem; text-align: center; line-height: 1.4;
}
.preview-bar a { color: #0f172a; font-weight: 700; text-decoration: underline; padding: 0 6px; }
.preview-bar a:hover { color: var(--accent-strong); }

/* ---------- Topbar ---------- */
.topbar { background: #0f172a; color: #f1f5f9; font-size: .82rem; padding: 7px 0; border-bottom: 1px solid #1e293b; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; }
.topbar a { color: #ffffff; font-weight: 600; text-decoration: none; }
.topbar a:hover { color: #ffffff; text-decoration: underline; }
.topbar-secondary { color: #e2e8f0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; padding: 8px 0; }
.brand { display: inline-flex; flex-direction: row; align-items: center; gap: 11px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand strong { font-size: 1.1rem; }
.brand-text span, .brand > span:not(.brand-mark) { font-size: .78rem; color: var(--muted); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 8px;
}
.nav-link:hover { background: var(--surface-2); color: var(--accent); }
.header-phone { display: none; }
/* Siguranta: nu exista comutator de tema (tema luminoasa unica), chiar daca un HTML vechi il mai contine. */
.theme-toggle, #themeToggle { display: none !important; }

/* ---------- Butoane ---------- */
.btn-primary, .btn-secondary, .btn-copy, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-copy { background: var(--surface-2); color: var(--text); border-color: var(--border); padding: 8px 14px; font-size: .9rem; }
.btn-copy:hover { border-color: var(--accent); }
.btn-copy.is-copied { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-primary[disabled], .btn-secondary[disabled], .btn-copy[disabled] { opacity: .6; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 52px 0 60px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--accent-soft) 0%, #ffffff 68%);
}
.hero-grid { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.16; color: #0f172a; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip-list li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; font-size: .88rem; color: var(--text);
}
.hero-panel {
  background: #ffffff; border: 1px solid var(--border-strong); border-top: 4px solid var(--accent);
  border-radius: 14px; padding: 24px; box-shadow: var(--shadow);
}
.hero-panel h2 { font-size: 1.15rem; }
.hero-panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.hero-panel dt, .hero-panel dd { padding: 8px 0; border-bottom: 1px solid var(--surface-2); }
.hero-panel dt { color: var(--muted); font-size: .9rem; }
.hero-panel dd { margin: 0; font-weight: 600; }
.hero-panel dt:last-of-type, .hero-panel dd:last-of-type { border-bottom: 0; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--ok-bg); color: var(--ok);
  font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}

/* ---------- Carduri generale ---------- */
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; flex: none;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.price-row, .card .price {
  font-size: 1.65rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; line-height: 1.15;
  padding: 10px 0; border-top: 1px solid var(--surface-2); border-bottom: 1px solid var(--surface-2); margin: 4px 0;
}
.card .price small { font-size: .82rem; font-weight: 600; color: var(--muted); display: inline-block; margin-left: 4px; letter-spacing: 0; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card .btn-primary, .card .btn-secondary { margin-top: auto; }
.card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.card-featured, .card.card-featured:hover { border: 1.5px solid var(--accent); position: relative; }
.price { font-weight: 800; }

.symptom-card {
  text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 44px;
  transition: border-color .15s, background .15s;
}
.symptom-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.symptom-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.symptom-card strong { font-size: 1.05rem; }
.symptom-card span { color: var(--muted); font-size: .95rem; }
.symptom-card .symptom-action, .symptom-action { color: var(--accent); font-weight: 700; font-size: .9rem; margin-top: 4px; }

.brand-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
.brand-grid li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-weight: 600; text-align: center;
}
.note { color: var(--muted); font-size: .92rem; }

/* ---------- Comparatie (reparam placa vs schimbam piese) ---------- */
.compare-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.compare-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px;
}
.compare-card h3 { margin-bottom: .4em; }
.compare-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.compare-bad { border-left: 5px solid #b91c1c; }
.compare-good { border-left: 5px solid #0f6938; background: var(--accent-soft); }

/* ---------- Pasi, incredere, banner rute ---------- */
.steps-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.step-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
}
.step-card h3 { margin-top: 10px; }
.step-card p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #ffffff; font-weight: 700; line-height: 1;
}

.trust-strip { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 22px; }
.trust-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
}
.trust-item strong { display: block; }
.trust-item span { color: var(--muted); font-size: .92rem; }

.route-banner {
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 14px; padding: 20px;
}
.route-banner p:last-child { margin-bottom: 0; }

/* ---------- Formular ---------- */
.form-layout { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
.form-aside { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.form-aside p, .form-aside li { color: var(--muted); }
.form-aside > :last-child { margin-bottom: 0; }
.form-card {
  background: #ffffff; border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 26px; box-shadow: var(--shadow); max-width: 760px;
}
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field-full { grid-column: 1 / -1; }
.input-field {
  width: 100%; min-height: 46px; padding: 10px 13px; font: inherit; color: var(--text);
  background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.input-field::placeholder { color: var(--muted); opacity: 1; }
.input-field:hover { border-color: #94a3b8; }
.input-field:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.input-field[aria-invalid="true"] { border-color: var(--err); }
textarea.input-field { min-height: 110px; resize: vertical; }
select.input-field { appearance: auto; }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check-row label { font-weight: 400; font-size: .92rem; color: var(--muted); }
.form-feedback { min-height: 1.6em; font-weight: 600; margin-top: 12px; }
.form-feedback.is-ok { color: var(--ok); }
.form-feedback.is-error { color: var(--err); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
.faq-list summary {
  cursor: pointer; font-weight: 700; padding: 14px 0; min-height: 44px;
  list-style-position: outside;
}
.faq-list details[open] { border-color: var(--accent); }
.faq-list details[open] summary { color: var(--accent); }
.faq-list details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* ---------- Localizare ---------- */
.location-grid { display: grid; gap: 20px; }
.location-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.location-card address { font-style: normal; margin-bottom: 14px; }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.coords-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 5px 10px; font-size: .86rem; font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin: 4px 0 14px;
}
.hero-map-links { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: .88rem; }
.map-embed-card {
  margin-top: 20px; background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.map-embed-placeholder {
  padding: 22px; background: linear-gradient(180deg, var(--accent-soft) 0%, #ffffff 100%);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.map-embed-placeholder p { margin: 0; color: var(--muted); font-size: .93rem; max-width: 720px; }
.map-embed-frame {
  width: 100%; height: 360px; border: 0; display: block; background: var(--surface-2);
}

/* ---------- Interviu v2: Alta optiune, Harta Pin, Sigle Vizuale & Manager Poze ---------- */
.other-opt-wrap {
  margin-top: 8px; padding: 10px 12px; background: #ffffff;
  border: 1px dashed var(--border-strong); border-radius: 8px;
  display: flex; flex-direction: column; gap: 5px;
}
.other-opt-wrap label { font-size: .84rem; font-weight: 600; color: var(--muted); }
.other-opt-wrap .input-field { min-height: 42px; font-size: .92rem; }

.map-picker-shell {
  background: #ffffff; border: 1.5px solid var(--border-strong); border-radius: 12px;
  padding: 14px; display: flex; flex-direction: column; gap: 12px;
}
.map-picker-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.map-picker-toolbar .is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.map-dual-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .map-dual-grid.is-split { grid-template-columns: 1.15fr 1fr; }
}
.map-pane-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.map-pane-caption { font-size: .84rem; font-weight: 700; color: var(--text); }
.map-picker-canvas {
  width: 100%; height: clamp(260px, 52vh, 360px); border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface-2); overflow: hidden; z-index: 1;
}
.map-pin-icon { background: transparent; border: 0; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .55)); }
.gmaps-twoclick-box {
  background: var(--accent-soft); border: 1.5px dashed var(--accent); border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}
.gmaps-twoclick-box p { margin: 0; font-size: .86rem; color: var(--text); }
.gmaps-twoclick-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gmaps-twoclick-row .input-field { flex: 1 1 250px; min-height: 44px; background: #ffffff; }
.map-coords-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
.url-extract-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.url-extract-row .input-field { flex: 1 1 260px; }

.logo-choice-grid {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 8px 0 14px;
}
.logo-choice-card {
  background: #ffffff; border: 2px solid var(--border); border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px; cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.logo-choice-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.logo-choice-card.is-selected {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent);
}
.logo-choice-thumb {
  width: 100%; height: 148px; background: #ffffff; border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden;
}
.logo-choice-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logo-choice-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.logo-choice-meta strong { font-size: .92rem; color: var(--text); }
.logo-card-badge { cursor: pointer; font-family: inherit; min-height: 30px; }
.logo-choice-sub { font-size: .82rem; color: var(--muted); }
.logo-choice-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.logo-choice-foot a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 6px; font-size: .85rem; font-weight: 700; }

.photo-uploader-box {
  background: #ffffff; border: 1.5px solid var(--border-strong); border-radius: 12px;
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
}
.photo-dropzone {
  border: 2px dashed var(--accent); background: var(--accent-soft); border-radius: 10px;
  padding: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.photo-dropzone.is-dragover { background: #dbeafe; border-color: var(--accent-strong); }
.uploaded-photos-grid {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.uploaded-photo-card {
  background: var(--bg-alt); border: 1px solid var(--border-strong); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
}
.uploaded-photo-preview {
  width: 100%; height: 185px; background: #ffffff; border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.uploaded-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uploaded-photo-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.uploaded-photo-name { font-size: .84rem; font-weight: 700; color: var(--text); word-break: break-word; }
.uploaded-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 6px 14px; border-radius: 8px; font: inherit; font-size: .88rem;
  font-weight: 700; cursor: pointer; background: var(--err-bg); color: var(--err); border: 1.5px solid var(--err);
}
.btn-danger:hover { background: var(--err); color: #ffffff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 36px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.site-footer h3 { font-size: 1rem; color: var(--text); }
.site-footer p, .site-footer li { color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

/* ---------- Sticky CTA mobil ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px;
  background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.mobile-cta a { min-height: 48px; }

/* ---------- Componente reutilizabile gate.html / kit.html ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; line-height: 1.4;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
}
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); border-color: var(--err); }

.alert-box {
  padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); margin: 12px 0;
}
.alert-box.is-ok, .alert-box.alert-ok, .alert-box.success { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.alert-box.is-warn, .alert-box.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.alert-box.is-error, .alert-box.alert-err, .alert-box.error { background: var(--err-bg); color: var(--err); border-color: var(--err); }

.gate-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg-alt); }
.gate-card {
  width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px; box-shadow: var(--shadow);
}
.gate-card h1 { font-size: 1.5rem; }
.gate-card p { color: var(--muted); }
.gate-card form { display: grid; gap: 14px; }
.gate-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.gate-brand strong { display: block; font-size: 1rem; }
.gate-brand span { font-size: .85rem; color: var(--muted); }
.gate-legal { font-size: .8rem; text-align: center; margin: 20px 0 0; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
}

.kit-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 0; }
.kit-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.kit-brand { display: flex; align-items: center; gap: 12px; }
.kit-brand strong { display: block; font-size: 1.05rem; }
.kit-brand span { font-size: .85rem; color: var(--muted); }
.kit-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kit-main { padding: 24px 0 48px; }
.kit-section { margin-bottom: 36px; }
.kit-section h1, .kit-section h2 { font-size: 1.3rem; margin-bottom: .7em; }
.kit-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.kit-section-head h2 { margin: 0; }
.kit-meta { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.kit-panels { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 18px; }
.kit-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.kit-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.kit-list { margin: 0; padding-left: 1.2rem; font-size: .9rem; line-height: 1.65; }
.kit-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.6; word-break: break-word; color: var(--text); }
.kit-domains { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.domain-card { background: var(--surface); border: 1px solid var(--ok); border-radius: 10px; padding: 14px 16px; }
.domain-card strong { display: block; }
.domain-card span { font-size: .85rem; color: var(--muted); }

.kit-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.kpi-card .kpi-label { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; }
.kpi-card .kpi-value { display: block; font-size: 1.9rem; font-weight: 800; color: var(--accent); line-height: 1.15; }
.kpi-card .kpi-note { color: var(--muted); font-size: .85rem; }

.kit-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.kit-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .93rem; }
.kit-table caption { text-align: left; padding: 12px 14px; font-weight: 700; }
.kit-table th, .kit-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.kit-table th { background: var(--surface-2); color: var(--text); font-weight: 700; white-space: nowrap; }
.kit-table td { color: var(--text); }
.kit-table tr:last-child td { border-bottom: 0; }
.kit-table tbody tr:hover td { background: var(--bg-alt); }
.kit-table .cell-empty { padding: 16px; color: var(--muted); }
.lead-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lead-actions .input-field { min-height: 44px; padding: 6px 10px; width: auto; }
.lead-actions .lead-revenue { width: 96px; }
.lead-domain { font-weight: 700; color: var(--accent); }

/* ---------- Galerie foto atelier & logo vectorial ---------- */
.brand-logo { width: 40px; height: 40px; border-radius: 9px; flex: none; display: block; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12); }
.brand-logo-rect {
  width: auto; max-width: 140px; height: 40px; object-fit: contain;
  background: #ffffff; padding: 2px 6px; border: 1px solid var(--border);
}

/* ---------- Interviu v3: Strategie Google Ads, Formulare per Domeniu & "Copiaza de la" ---------- */
.ads-budget-grid {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.domain-tabs-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px;
}
.domain-tab-btn.is-active {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}
.domain-settings-stack {
  display: flex; flex-direction: column; gap: 20px;
}
.domain-settings-panel {
  background: #ffffff; border: 1.5px solid var(--border-strong); border-left: 5px solid var(--accent);
  border-radius: 12px; padding: 18px; box-shadow: var(--shadow-sm);
}
.domain-settings-panel[data-domain-panel="floresti"] { border-left-color: #0d6548; }
.domain-settings-panel[data-domain-panel="gilau"] { border-left-color: #1e4268; }
.domain-panel-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.domain-panel-head h3 { margin: 0; font-size: 1.08rem; color: var(--text); }
.copy-from-bar {
  background: var(--accent-soft); border: 1.5px dashed var(--accent); border-radius: 10px;
  padding: 10px 14px; margin: 0 0 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.copy-from-bar label {
  font-weight: 700; font-size: .9rem; color: var(--accent-strong); white-space: nowrap;
}
.copy-from-bar select.input-field {
  width: auto; min-width: 230px; min-height: 44px; padding: 6px 10px; flex: 0 1 auto;
}
.copy-from-status {
  font-size: .85rem; font-weight: 700; color: var(--ok);
}
.domain-logo-inline-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.domain-logo-inline-row select.input-field {
  flex: 1 1 240px;
}
.domain-logo-inline-preview {
  width: 96px; height: 52px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: #ffffff; display: inline-flex; align-items: center; justify-content: center;
  padding: 4px; flex: none; overflow: hidden;
}
.domain-logo-inline-preview img {
  max-width: 100%; max-height: 100%; object-fit: contain; display: block;
}

/* ---------- Controale stergere / adaugare / deselectare optiuni ---------- */
.other-input-inline {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.other-input-inline .input-field {
  flex: 1 1 200px;
}
.select-opt-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px;
}
.btn-opt-del {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 40px; padding: 5px 11px; border-radius: 8px; font: inherit; font-size: .83rem;
  font-weight: 700; cursor: pointer; background: #ffffff; color: var(--err); border: 1.5px solid var(--err);
  transition: background .15s, color .15s;
}
.btn-opt-del:hover { background: var(--err); color: #ffffff; }
.btn-opt-del[disabled] { opacity: .45; cursor: not-allowed; background: var(--surface-2); color: var(--muted); border-color: var(--border-strong); }
.btn-opt-aux {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 40px; padding: 5px 11px; border-radius: 8px; font: inherit; font-size: .83rem;
  font-weight: 700; cursor: pointer; background: var(--surface-2); color: var(--text); border: 1.5px solid var(--border-strong);
}
.btn-opt-aux:hover { border-color: var(--accent); color: var(--accent); background: #ffffff; }
.opt-action-msg {
  font-size: .82rem; font-weight: 700; color: var(--ok);
}
.logo-restore-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 12px;
}
.hero-photo {
  margin: 0 0 16px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
  background: var(--surface-2); aspect-ratio: 960 / 536;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 24px; }
.photo-card {
  margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
}
.photo-card img { width: 100%; aspect-ratio: 960 / 536; object-fit: cover; display: block; background: var(--surface-2); }
.photo-card figcaption { padding: 14px 18px; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--surface-2); }
.photo-card figcaption strong { color: var(--text); display: block; margin-bottom: 2px; font-size: .98rem; }

/* ---------- Pagina Backend: Istoric Planuri de Actualizare & Decizii ---------- */
.plans-page-title { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 4px; }
.plans-page-sub { color: var(--muted); font-size: .93rem; margin: 0; max-width: 780px; }
.plans-stack { display: flex; flex-direction: column; gap: 20px; }
.plan-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.plan-toolbar h2 { margin: 0; font-size: 1.35rem; }
.plan-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-filter-btn.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.plan-search-wrap { flex: 1 1 240px; max-width: 340px; }
.plan-search-input { width: 100%; min-height: 40px; padding: 7px 12px; }
.plan-create-card {
  background: var(--surface); border: 1.5px solid var(--border-strong); border-top: 4px solid var(--accent);
  border-radius: 14px; padding: 22px; margin-top: 20px; box-shadow: var(--shadow);
}
.plan-create-title { font-size: 1.15rem; margin: 0 0 4px; color: var(--accent); }
.plan-create-sub { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }
.plan-textarea { min-height: 92px; }
.plan-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.plan-card {
  background: var(--surface); border: 1.5px solid var(--border-strong); border-left: 5px solid var(--accent);
  border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
}
.plan-card[data-status="in_asteptare"] { border-left-color: #b45309; }
.plan-card[data-status="aprobat"] { border-left-color: #0284c7; }
.plan-card[data-status="respins"] { border-left-color: #dc2626; }
.plan-card[data-status="aplicat"] { border-left-color: var(--ok); }
.plan-card[data-status="arhivat"] { border-left-color: #64748b; }
.plan-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan-card-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.plan-meta-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.plan-code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; font-weight: 700;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong);
  padding: 3px 9px; border-radius: 6px;
}
.plan-date-pill { font-size: .84rem; font-weight: 700; color: var(--muted); }
.plan-badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700;
}
.plan-badge-aplicat { background: var(--ok-bg); color: var(--ok); }
.plan-badge-aprobat { background: #e0f2fe; color: #0369a1; }
.plan-badge-respins { background: #fee2e2; color: #b91c1c; }
.plan-badge-in_asteptare { background: var(--warn-bg); color: var(--warn); }
.plan-badge-arhivat { background: var(--surface-2); color: var(--muted); }
.plan-title { font-size: 1.2rem; margin: 0 0 4px; color: var(--text); }
.plan-source { font-size: .88rem; color: var(--muted); margin: 0; }
.plan-block {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
}
.plan-block-title { font-size: .95rem; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.plan-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: .94rem; }
.plan-decisions-box {
  background: #fffbeb; border: 1.5px solid #f59e0b; border-left: 5px solid #b45309;
  border-radius: 10px; padding: 15px 18px;
}
.plan-decisions-title { font-size: .98rem; font-weight: 800; color: #7c4a03; margin: 0 0 8px; }
.plan-resolution-note {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed #d97706;
  font-size: .9rem; color: var(--text);
}
.plan-resolution-note strong { color: var(--ok); }
.plan-controls-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.plan-controls-bar select.input-field { width: auto; min-width: 190px; min-height: 40px; padding: 6px 10px; }
.plan-controls-bar input.input-field { flex: 1 1 240px; min-height: 40px; padding: 6px 10px; }
.plan-doc-details {
  border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg-alt); overflow: hidden;
}
.plan-doc-details > summary {
  cursor: pointer; padding: 11px 16px; font-weight: 700; font-size: .92rem; color: var(--accent);
  user-select: none; list-style-position: inside;
}
.plan-doc-details > summary:hover { background: var(--accent-soft); }
.plan-doc-pre {
  margin: 0; padding: 16px; border-top: 1px solid var(--border); background: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word; max-height: 480px; overflow-y: auto; color: var(--text);
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .map-coords-row { grid-template-columns: 1fr 1fr; }
  .kit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .kit-panels { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .header-actions .nav-link { display: none; }
}
@media (max-width: 599px) {
  .topbar-secondary { display: none; }
}
@media (min-width: 900px) {
  .form-layout { grid-template-columns: 1fr 1.35fr; gap: 32px; }
  .form-layout .form-card { max-width: none; }
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
  .header-phone { display: inline-flex; }
  .hero { padding: 68px 0 76px; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; }
  .section { padding: 72px 0; }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .brand-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1100px) {
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .kit-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .topbar, .site-header, .mobile-cta, .hero-cta, .preview-bar, .kit-actions { display: none; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .card, .compare-card, .step-card, .kpi-card { box-shadow: none; break-inside: avoid; }
  a { color: #000; }
}
