/* Smart Trend - foaie de stil comuna (site principal + pagina solar) */

:root {
  --ink: #14181d;
  --ink-2: #1d232a;
  --ink-3: #2a323b;
  --paper: #ffffff;
  --bg: #f4f5f7;
  --line: #e1e4e8;
  --text: #2a3037;
  --muted: #5b6570;
  --on-dark: #e9ecef;
  --on-dark-muted: #a3acb6;
  --accent: #f26a1b;
  --accent-dark: #c9500c;
  --radius: 10px;
  --wrap: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent-dark); }
a:hover { color: var(--ink); }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Antet ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 24, 29, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 66px; width: auto; margin: -6px 0 -6px -8px; }
.brand .tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: var(--accent); padding: 3px 8px; border-radius: 4px;
}

.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 13px; border-radius: 6px;
  color: var(--on-dark); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.header-phone {
  color: #fff; text-decoration: none; font-weight: 650; white-space: nowrap;
  display: flex; align-items: center; gap: 8px; font-size: .98rem;
}
.header-phone:hover { color: var(--accent); }
.header-phone svg { width: 18px; height: 18px; color: var(--accent); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; border-radius: 6px; padding: 9px 11px; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Butoane ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #ff8a45; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- Sectiunea principala ---------- */

.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: #fff; max-width: 17em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.2rem; max-width: 36em; color: var(--on-dark-muted); margin-bottom: 2em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.2em;
}
.hero-art {
  position: absolute; z-index: 1; right: -180px; top: 50%; transform: translateY(-50%);
  width: 760px; height: 760px; opacity: .9; pointer-events: none;
}

/* ---------- Banda de repere ---------- */

.facts { background: var(--ink-2); color: var(--on-dark); border-top: 1px solid rgba(255, 255, 255, .07); }
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.facts li { padding: 26px 24px 26px 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .09); }
.facts strong { display: block; color: #fff; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.facts span { color: var(--on-dark-muted); font-size: .92rem; }

/* ---------- Sectiuni ---------- */

.section { padding: 88px 0; }
.section.alt { background: var(--bg); }
.section.dark { background: var(--ink); color: var(--on-dark); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section.dark .section-head p { color: var(--on-dark-muted); }

/* ---------- Carduri de servicii ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
  border-top: 3px solid var(--accent);
}
.card .icon {
  width: 52px; height: 52px; border-radius: 10px; background: var(--ink); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 22px;
}
.card .icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; }
.ticks li { position: relative; padding: 7px 0 7px 26px; border-top: 1px solid var(--line); font-size: .97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.card .more { margin-top: auto; font-weight: 650; text-decoration: none; }
.card .more::after { content: " \2192"; }

/* ---------- Etape ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--ink); }
.steps li::before {
  content: "0" counter(step); display: block; font-size: .85rem; font-weight: 700;
  color: var(--accent-dark); letter-spacing: .1em; margin-bottom: 10px;
}
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.section.dark .steps li { border-top-color: rgba(255, 255, 255, .3); }
.section.dark .steps li::before { color: var(--accent); }
.section.dark .steps p { color: var(--on-dark-muted); }

/* ---------- Doua coloane ---------- */

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.split .lead { font-size: 1.12rem; }

.badges { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.badges li {
  display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
}
.badges .code {
  font-weight: 800; font-size: .95rem; letter-spacing: .04em; color: var(--ink);
  background: var(--bg); border-radius: 6px; padding: 10px 6px; text-align: center;
}
.badges p { margin: 0; font-size: .95rem; color: var(--muted); }
.badges strong { color: var(--ink); display: block; }

.iso { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; list-style: none; padding: 0; }
.iso li {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 7px 16px; font-weight: 650; font-size: .92rem; color: var(--ink);
}
.section.dark .iso li { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }

/* ---------- Proiecte ---------- */

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.project { padding: 24px 0; border-top: 1px solid var(--line); }
.project .kind { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.project h3 { margin: 6px 0 8px; }
.project p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Caseta evidentiata ---------- */

.callout {
  border-left: 4px solid var(--accent); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 30px;
}
.callout h3 { margin-bottom: .35em; }
.callout p:last-child { margin: 0; }
.section.dark .callout { background: var(--ink-2); }
.section.dark .callout p { color: var(--on-dark-muted); }

/* ---------- Contact si formular ---------- */

.contact-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--accent); }
.contact-list small { display: block; color: var(--on-dark-muted); font-size: .88rem; }

.form { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: 32px; }
.form h3 { margin-bottom: 1em; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #c3c9d0; border-radius: 7px; padding: 11px 13px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.form-status { margin: 16px 0 0; font-size: .95rem; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1c7a3e; }
.form-status.err { color: #b3261e; }

/* ---------- Subsol ---------- */

.footer { background: #0e1115; color: var(--on-dark-muted); font-size: .9rem; padding: 40px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: flex-start; }
.footer p { margin: 0 0 .3em; }
.footer strong { color: #fff; }
.footer a { color: var(--on-dark); }
.footer a:hover { color: var(--accent); }

/* ---------- Ecrane mici ---------- */

@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li, .facts li + li { padding: 20px 16px 20px 0; border-left: 0; }
  .hero-art { opacity: .35; right: -320px; }
  .header-phone span { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; margin-left: 0; }
  .header-phone { margin-left: auto; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 8px 16px 16px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 13px 10px; font-size: 1.02rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 60px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .projects { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .brand img { height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Completari: 4 domenii, logo desenat, text contact ---------- */

.logo-svg { display: none; height: 40px; width: auto; color: #fff; }
.contact-lead { color: var(--on-dark-muted); }

.cards-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-4 .card { padding: 28px 22px; }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-4 { grid-template-columns: 1fr; } }

/* ---------- Justify doar pe paragrafele lungi (clasa .just), pe ecrane late ---------- */

@media (min-width: 641px) {
  .just { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
}
