/* VFD Cargo — vfdcargo.com
   Paleta vine din logo: negru pur (fundalul logoului), roșu VFD, argintiu crom.
   Tipografie: Barlow Condensed italic (titluri) + Barlow (text) — familie desenată
   pornind de la indicatoarele rutiere. */

:root {
  --black: #000000;
  --red: #D00000;
  --red-deep: #980000;
  --chrome: #C9CDD3;
  --white: #FFFFFF;
  --ink: #161616;
  --muted: #555A62;
  --road: #EEF0F2;
  --line: #D9DCE0;
  --eu-blue: #003399;
  --eu-yellow: #FFCC00;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.dark :focus-visible { outline-color: #fff; }

h1, h2, h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  line-height: 1.02;
  margin: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.55rem, 2.4vw, 2rem); font-weight: 700; }

/* ---------- Header ---------- */
.site-head { background: var(--black); color: #fff; }
.head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: block; line-height: 0; }
.brand img { width: clamp(132px, 15vw, 188px); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav > ul a { color: var(--chrome); text-decoration: none; font-weight: 500; }
.nav > ul a:hover { color: #fff; }
/* Meniul de limbi: 24 de limbi UE, numele scrise în limba lor */
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 9px;
  color: #fff; font-weight: 600; font-size: .95rem;
  border: 1px solid #4A4A4A; padding: 6px 12px; border-radius: 2px;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.langs[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.langs summary:hover, .langs[open] summary { border-color: #fff; }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  width: 300px; max-width: calc(100vw - 32px); max-height: min(72vh, 560px); overflow-y: auto;
  list-style: none; margin: 0; padding: 8px;
  background: var(--black); border: 1px solid #3A3A3A; box-shadow: 0 18px 40px rgba(0,0,0,.6);
}
.langs a {
  display: block; padding: 8px 10px; border-radius: 2px;
  color: var(--chrome); text-decoration: none; font-size: .97rem;
}
.langs a:hover { background: #1E1E1E; color: #fff; }
.langs a[aria-current="page"] { color: #fff; box-shadow: inset 3px 0 0 var(--red); }

/* ---------- Butoane: tăiate oblic, ca benzile de contact ale brandului ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.25rem;
  text-decoration: none; border: 0; cursor: pointer;
  transform: skewX(-12deg);
  transition: background-color .15s, box-shadow .15s;
}
.btn > span { display: inline-block; transform: skewX(12deg); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px var(--chrome); }
.btn-line:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-red:focus-visible { outline-color: var(--ink); }
.dark .btn-red:focus-visible { outline-color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: #fff; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.hero-copy { padding: clamp(28px, 5vw, 64px) 0 clamp(44px, 6vw, 84px); align-self: center; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 5.3rem); max-width: 15ch; }
.hero-lead { color: var(--chrome); font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 33em; margin: 26px 0 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px 22px; padding-left: 6px; }
.facts {
  list-style: none; margin: 42px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 30px; font-weight: 600;
}
.facts li { display: flex; align-items: center; gap: 11px; }
.facts li::before {
  content: ""; flex: none; width: 16px; height: 6px; background: var(--red); transform: skewX(-24deg);
}

.hero-photo { position: relative; margin-right: calc(-1 * var(--gutter)); min-height: 540px; }
.hero-photo picture { position: absolute; inset: 0; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 4% 100%);
}
/* banda roșie paralelă cu tăietura pozei — singurul moment animat al paginii */
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; background: var(--red);
  clip-path: polygon(12.5% 0, 15.5% 0, 1.5% 100%, 0 100%);
  transform-origin: top; animation: stripe .8s cubic-bezier(.2,.7,.2,1) .15s both;
}
@keyframes stripe { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Secțiuni ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 660px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 16px 0 0; }
.dark { background: var(--black); color: #fff; }
.dark .section-head p, .dark p { color: var(--chrome); }

/* Servicii: rânduri, nu carduri */
.services { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.service {
  display: grid; grid-template-columns: minmax(220px, 1fr) 1.45fr 1fr; gap: 10px 44px;
  padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.service p { margin: 0; }
.service .fit { color: var(--muted); font-size: .98rem; }

/* Pașii: chiar sunt o secvență, deci au numere */
.steps-sec { background: var(--road); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step;
}
.step { counter-increment: step; position: relative; padding-top: 66px; }
.step::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: 3.6rem; line-height: 1;
  color: var(--red);
}
.step h3 { font-size: 1.55rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* Acoperire: plăcuțe UE */
.cov-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cov-grid .section-head { margin-bottom: 0; }
.plates {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px;
}
.plate {
  display: flex; min-height: 42px; background: #fff; color: var(--ink);
  border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1.5px #1d1d1d;
}
.plate .band {
  flex: none; width: 30px; background: var(--eu-blue); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-weight: 600; font-size: .6rem; line-height: 1; letter-spacing: .02em;
}
.plate .band svg { width: 15px; height: 15px; }
.plate .name {
  display: flex; align-items: center; padding: 0 10px; min-width: 0;
  font-family: var(--display); font-weight: 700; font-size: 1.12rem;
  line-height: 1.05; padding-top: 3px; padding-bottom: 3px; overflow-wrap: anywhere;
}
.extra { margin-top: 44px; }
.extra h3 { font-size: 1.45rem; margin-bottom: 16px; color: #fff; }
.ovals { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.ovals li { display: flex; align-items: center; gap: 12px; color: var(--chrome); }
.oval {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 58px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 0 0 0 2px #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
}

/* Flota */
.fleet-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.fleet-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fleet-copy p { font-size: 1.1rem; }
.capacity {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 28px; padding-top: 20px; border-top: 3px solid var(--ink);
}
.capacity strong {
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--red);
}

/* Cerere de ofertă */
.quote { background: var(--road); }
.quote-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote-side .section-head { margin-bottom: 24px; }
.need-h { font-weight: 600; margin: 0 0 8px; }
.need { margin: 0 0 28px; padding-left: 1.2em; }
.need li { margin: 4px 0; }
.alt-contact a { font-weight: 600; }
.form { background: #fff; padding: clamp(20px, 3vw, 36px); border-top: 5px solid var(--red); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .req { color: var(--red); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  padding: 11px 12px; min-height: 48px; border: 1.5px solid #AEB3BA; border-radius: 3px;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--red); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field textarea { min-height: 96px; resize: vertical; }
.warn {
  display: none; background: #FFF4E5; border-left: 4px solid #B35F00;
  padding: 10px 12px; font-size: .95rem; margin-top: 6px;
}
.warn.show { display: block; }
.req-note { font-size: .9rem; color: var(--muted); margin: 16px 0 0; }
.form-error { color: var(--red-deep); font-weight: 600; min-height: 1.5em; margin: 10px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 12px; padding-left: 6px; }
.form-note { font-size: .9rem; color: var(--muted); margin: 16px 0 0; }

/* ---------- Footer ---------- */
.site-foot { background: var(--black); color: var(--chrome); padding: 60px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr .9fr; gap: 32px; }
.foot-grid img { width: 170px; }
.site-foot h2 { font-size: 1.35rem; color: #fff; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 5px 0; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot address { font-style: normal; }
.foot-bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid #2A2A2A;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .92rem;
}
.slogan { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.4rem; color: #fff; margin: 18px 0 0; }

/* ---------- Bara de acțiuni pe mobil ---------- */
.mbar { display: none; }

/* ---------- Pagini de text (confidențialitate) ---------- */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 24px; }
.doc h2 { font-size: 1.7rem; margin: 36px 0 10px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.doc .updated { color: var(--muted); }

.lang-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; }
.lang-list a { font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav > ul { display: none; }
  .hero-grid, .cov-grid, .fleet-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3.4; margin-left: calc(-1 * var(--gutter)); }
  .hero-photo img { clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); object-position: 58% 38%; }
  .hero-photo::before { clip-path: polygon(5% 0, 7.5% 0, 0 62%, 0 40%); }
  .service { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--black); border-top: 1px solid #2A2A2A;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  }
  .mbar .btn { min-height: 46px; font-size: 1.1rem; line-height: 1.08; text-align: center; padding: 3px 12px; }
  body { padding-bottom: 72px; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo::before { animation: none; }
  .btn { transition: none; }
}
