/* ferita.ro — coșuri de fum din inox, confecții metalice, proiectare 3D */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --panel: #ffffff;
  --fg: #12151a;
  --muted: #5a6270;
  --line: #e3e6ec;
  --line-strong: #ccd2db;
  --accent: #1a6b58;
  --accent-hi: #23856f;
  --accent-fg: #ffffff;
  --accent-soft: #e8f2ef;
  --ink: #0c0f14;
  --shadow-sm: 0 1px 2px rgba(12, 15, 20, .06);
  --shadow: 0 2px 4px rgba(12, 15, 20, .04), 0 12px 32px rgba(12, 15, 20, .08);
  --shadow-lg: 0 4px 8px rgba(12, 15, 20, .05), 0 24px 60px rgba(12, 15, 20, .12);
  --radius: 12px;
  --radius-lg: 18px;
  --wrap: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f13;
    --bg-alt: #12151b;
    --panel: #161a21;
    --fg: #e9ecf1;
    --muted: #949cab;
    --line: #222731;
    --line-strong: #323945;
    --accent: #5dbfa3;
    --accent-hi: #74d3b8;
    --accent-fg: #08130f;
    --accent-soft: #14302a;
    --ink: #05070a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-fg); padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .75rem;
  font-weight: 700; color: var(--accent); margin-bottom: .75rem;
}

/* ── butoane ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-fg);
  border: 1px solid transparent; border-radius: 999px;
  padding: .72rem 1.35rem; font-size: .9375rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .06s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .48rem .95rem; font-size: .875rem; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent); font-weight: 600; font-size: .9375rem; text-decoration: none;
  margin-top: .35rem;
}
.link-arrow span { transition: transform .15s ease; }
.link-arrow:hover span { transform: translateX(3px); }

/* ── header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.025em; text-decoration: none; }
.brand-mark { width: 27px; height: 27px; color: var(--accent); flex: none; }
.brand-tld { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { text-decoration: none; font-size: .9375rem; color: var(--muted); transition: color .15s ease; }
.site-nav a:hover { color: var(--fg); }
.site-nav a.btn, .site-nav a.btn:hover { color: var(--accent-fg); }
@media (max-width: 940px) { .site-nav a:not(.btn) { display: none; } }

/* ── hero ─────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; padding: 0 0 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(8,11,16,.94) 0%, rgba(8,11,16,.82) 45%, rgba(8,11,16,.42) 100%),
    linear-gradient(to bottom, rgba(8,11,16,.5), rgba(8,11,16,.75));
}
.hero-inner { padding: 6.5rem 1.5rem 5rem; max-width: 62rem; color: #fff; }
.hero .eyebrow { color: #7fd8bd; }
.hero h1 { font-size: clamp(2.15rem, 5.6vw, 3.9rem); margin-bottom: 1.35rem; letter-spacing: -0.035em; }
.hero .lede { font-size: clamp(1rem, 1.6vw, 1.1875rem); color: rgba(255,255,255,.86); max-width: 46rem; }
.hero .lede strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.15rem; }

.hero-stats {
  position: relative; z-index: 1;
  list-style: none; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: transparent;
}
.hero-stats li {
  background: var(--panel); border: 1px solid var(--line);
  padding: 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .25rem;
  box-shadow: var(--shadow);
}
.hero-stats li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.hero-stats li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.hero-stats li + li { border-left: 0; }
.stat-n { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.03em; }
.stat-u { font-size: .875rem; font-weight: 600; color: var(--muted); margin-left: .12em; }
.stat-l { font-size: .8125rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 820px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .hero-stats li { border-radius: 0 !important; }
  .hero-stats li:nth-child(n+3) { border-top: 0; }
  .hero-stats li:nth-child(even) { border-left: 0; }
}

/* ── secțiuni ─────────────────────────────────────────────────── */
section { padding: 5.5rem 0; }
.hero { padding: 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-h { font-size: clamp(1.65rem, 3.4vw, 2.4rem); margin-bottom: .7rem; }
.section-sub { color: var(--muted); max-width: 46rem; margin-bottom: 3rem; font-size: 1.03rem; }

/* ── grilă servicii ───────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .svc-grid { grid-template-columns: 1fr; } }

.svc {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.svc-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.svc:hover .svc-media img { transform: scale(1.04); }

.svc-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.svc-body h3 { font-size: 1.1rem; }
.svc-body p { color: var(--muted); font-size: .9375rem; }

.svc-tag {
  align-self: flex-start;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: .28rem .7rem;
}

.svc-wide { grid-column: span 3; flex-direction: row; }
.svc-wide .svc-media { aspect-ratio: auto; flex: 1 1 46%; min-height: 340px; }
.svc-wide .svc-body { flex: 1 1 54%; padding: 2.4rem 2.6rem; justify-content: center; gap: .8rem; }
.svc-wide h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.svc-wide p { font-size: 1rem; }
@media (max-width: 980px) { .svc-wide { grid-column: span 2; } }
@media (max-width: 860px) {
  .svc-wide { flex-direction: column; }
  .svc-wide .svc-media { min-height: 240px; }
  .svc-wide .svc-body { padding: 1.6rem 1.5rem 1.9rem; }
}
@media (max-width: 660px) { .svc-wide { grid-column: span 1; } }

.svc-list { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.svc-list li { position: relative; padding-left: 1.4rem; font-size: .9375rem; color: var(--muted); }
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.svc-extra { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.svc-extra-h { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .45rem 1rem; font-size: .875rem; color: var(--fg); background: var(--panel);
}

/* ── configurator ─────────────────────────────────────────────── */
.cfg { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 1020px) { .cfg { grid-template-columns: 1fr; } }

.cfg-viewport {
  position: relative; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
#viewer { display: block; width: 100%; height: 560px; touch-action: none; }
.viewer-hint {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .55rem .95rem; font-size: .75rem; color: var(--muted);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border-top: 1px solid var(--line);
}
.viewer-fallback { padding: 2rem; color: var(--muted); }

.cfg-panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1.6rem;
}
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
legend { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 0; }

.field { display: flex; flex-direction: column; gap: .45rem; }
.field-l { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .875rem; font-weight: 600; }
.field-l output { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.field-help { font-size: .8125rem; color: var(--muted); }

input[type="range"] { width: 100%; accent-color: var(--accent); }

input[type="text"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: .9375rem;
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 9px;
  padding: .65rem .75rem;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, .dropzone:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.segmented { display: flex; gap: .45rem; flex-wrap: wrap; }
.segmented-col { flex-direction: column; }
.segmented label {
  flex: 1 1 auto; display: flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line-strong); border-radius: 9px;
  padding: .55rem .75rem; font-size: .875rem; cursor: pointer;
  background: var(--bg); justify-content: center;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.segmented-col label { justify-content: flex-start; }
.segmented input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tag {
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 0 .45rem; font-weight: 600;
}

/* ── casete de preț ───────────────────────────────────────────── */
.quote, .estimate {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-alt); padding: 1.2rem;
}
.estimate { background: var(--bg); }
.quote-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.quote-h { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.currency { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--bg); }
.currency label { cursor: pointer; }
.currency input { position: absolute; opacity: 0; width: 0; height: 0; }
.currency span {
  display: block; padding: .25rem .7rem; font-size: .75rem; font-weight: 700;
  letter-spacing: .03em; color: var(--muted); transition: background .12s ease, color .12s ease;
}
.currency label:has(input:checked) span { background: var(--accent); color: var(--accent-fg); }

.quote-lines { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.quote-lines li { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; }
.quote-lines .q-label { color: var(--muted); }
.quote-lines .q-val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.quote-total {
  display: flex; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line-strong); padding-top: .75rem;
  font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums;
}
.quote-alt { text-align: right; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: .2rem; }
.quote-note { font-size: .75rem; color: var(--muted); margin-top: .6rem; }

/* ── module formular ──────────────────────────────────────────── */
.module-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem; align-items: start; }
@media (max-width: 1020px) { .module-split { grid-template-columns: 1fr; } }
.module-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); position: sticky; top: 92px; }
.module-photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
@media (max-width: 1020px) { .module-photo { position: static; } .module-photo img { min-height: 240px; } }

.module {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.9rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1.6rem;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.checks { flex-direction: row; flex-wrap: wrap; gap: .55rem; align-items: center; }
.checks legend { width: 100%; }
.check {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .42rem .9rem; font-size: .875rem; cursor: pointer;
}
.check input { accent-color: var(--accent); }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.radios { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.radios legend { grid-column: 1 / -1; }
@media (max-width: 760px) { .radios { grid-template-columns: 1fr; } }
.radio-card {
  display: flex; gap: .65rem; align-items: flex-start;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .95rem 1.1rem; cursor: pointer; background: var(--bg);
  transition: border-color .12s ease, background .12s ease;
}
.radio-card input { margin-top: .28rem; accent-color: var(--accent); }
.rc-body { display: flex; flex-direction: column; gap: .18rem; font-size: .9375rem; }
.rc-body small { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
  padding: 2.6rem 1.5rem; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  color: var(--muted); background: var(--bg);
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dz-icon { width: 36px; height: 36px; color: var(--line-strong); margin-bottom: .35rem; }
.dropzone:hover .dz-icon, .dropzone.is-over .dz-icon { color: var(--accent); }
.dz-title { font-weight: 600; color: var(--fg); }
.dz-sub { font-size: .8125rem; }

.filelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.filelist li {
  display: flex; align-items: center; gap: .65rem; font-size: .875rem;
  border: 1px solid var(--line); border-radius: 9px; padding: .5rem .75rem; background: var(--bg);
}
.filelist .f-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist .f-size { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8125rem; }
.filelist .f-del { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.15rem; line-height: 1; padding: 0 .25rem; }
.filelist .f-del:hover { color: var(--fg); }
.filelist .f-bad { color: #c0392b; font-size: .8125rem; }

.module-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { font-size: .875rem; color: var(--muted); }
.form-status.ok { color: var(--accent); font-weight: 600; }
.form-status.err { color: #c0392b; font-weight: 600; }

/* ── bandă foto ───────────────────────────────────────────────── */
.strip { position: relative; padding: 0; isolation: isolate; }
.strip img { width: 100%; height: clamp(220px, 34vw, 380px); object-fit: cover; }
.strip-scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(8,11,16,.85), rgba(8,11,16,.35)); }
.strip-text {
  position: absolute; inset: 0; display: flex; align-items: center;
  max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem;
  color: #fff; font-size: clamp(1.1rem, 2.6vw, 1.9rem); font-weight: 700;
  letter-spacing: -0.025em; max-inline-size: 34ch;
}

/* ── footer ───────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 2.75rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: flex-start; justify-content: space-between; }
.footer-note { color: var(--muted); font-size: .875rem; margin-top: .35rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.footer-nav a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
