/* ==========================================================================
   Pagina publica a firmei (destinyab.com)

   Ideea: deschiderea e un indicator de autostrada suedez -- albastrul si
   galbenul din emblema, chenarul alb al indicatoarelor, scutul verde al
   drumului european E4, care trece prin Nyköping. Litera e Overpass, urmasa
   literei de pe indicatoarele rutiere, gazduita pe server (pagina nu incarca
   nimic din afara). Restul paginii e linistit: text aliniat la stanga, linii
   subtiri in loc de carduri, galbenul folosit doar pentru ce se apasa.
   ========================================================================== */

@font-face { font-family: "Overpass"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/overpass-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/overpass-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/static/fonts/overpass-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/static/fonts/overpass-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/static/fonts/overpass-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/static/fonts/overpass-latin-ext-800-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --vagbla: #05325f;      /* albastrul emblemei = albastrul indicatorului */
  --vagbla-inchis: #03244a;
  --gul: #ecb910;         /* galbenul emblemei, doar pentru ce se apasa */
  --gul-inchis: #c99c06;
  --asfalt: #262b31;
  --e-gron: #1d7a46;      /* scutul drumurilor europene */
  --cerneala: #0f2238;
  --text: #34414f;
  --text-slab: #5b6877;
  --hartie: #ffffff;
  --hartie-2: #eef2f6;
  --linie: #d5dde6;
  --rad: 10px;
  --lat: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Overpass", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--hartie);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--vagbla); }
h1, h2, h3, h4 { color: var(--cerneala); line-height: 1.15; margin: 0; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: var(--lat); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--gul); outline-offset: 2px; }

/* ---------- bara de sus ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--linie);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cerneala); font-weight: 800; font-size: 20px; flex: none; }
.brand img { width: 40px; height: 40px; }
.antet-dreapta { display: flex; align-items: center; gap: 28px; min-width: 0; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--cerneala); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--gul); }

/* steagurile de limba */
.steaguri-antet { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.steaguri-antet .steag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 24px; padding: 0; margin: 0;
  border: 1.5px solid transparent; border-radius: 5px;
  background: none; cursor: pointer; overflow: hidden;
  opacity: .45; filter: saturate(.3);
  transition: opacity .14s ease, filter .14s ease, border-color .14s ease;
}
.steaguri-antet .steag svg { width: 24px; height: 16px; border-radius: 2px; display: block; }
.steaguri-antet .steag:hover { opacity: .9; filter: none; }
.steaguri-antet .steag-ales { opacity: 1; filter: none; border-color: var(--vagbla); }

/* ---------- deschiderea: noaptea, pe E4 ---------- */
/* Sectiunea e inalta cat doua ecrane: scena ramane lipita sus, iar derularea
   te duce pe sub indicator si apoi in sus, deasupra drumului. */
.hero { position: relative; height: 900vh; background: #021a33; }
.hero-scena { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #030d1f; }
.hero-canvas { position: absolute; inset: 0; display: block; }
.hero-continut {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding-top: clamp(92px, 15vh, 150px);
}
.skylt {
  width: min(760px, 100%);
  background: var(--vagbla);
  color: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
/* chenarul alb din interiorul indicatorului */
.skylt-sus, .skylt-corp { border: 3px solid #fff; }
.skylt-sus {
  display: flex; align-items: center; gap: 16px;
  border-bottom: 0; border-radius: 8px 8px 0 0;
  padding: 18px 26px 0;
}
.skylt-corp {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  border-top: 0; border-radius: 0 0 8px 8px;
  padding: 10px 26px 26px;
}
.e-skold {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; height: 42px; padding: 4px 10px 0;
  background: var(--e-gron); color: #fff;
  border: 2.5px solid #fff; border-radius: 6px;
  font-weight: 800; font-size: 26px; letter-spacing: .01em;
}
.skylt-ort { font-weight: 600; font-size: 26px; }
.skylt h1 {
  color: #fff;
  font-size: clamp(44px, 7.4vw, 88px);
  letter-spacing: -.01em;
  line-height: 1;
  margin-top: 14px;
  text-wrap: balance;
}
.hero-tagline { margin-top: 12px; font-size: clamp(17px, 2.2vw, 21px); color: rgba(255, 255, 255, .88); max-width: 30em; }
.skylt-symbol { flex: none; background: #fff; border-radius: 8px; padding: 8px; }
.skylt-symbol img { width: 104px; height: 104px; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; will-change: transform, opacity; }

/* semnul ca pagina se deruleaza: o linie subtire prin care coboara un punct */
.hero-indiciu { position: absolute; left: 50%; bottom: 28px; width: 2px; height: 44px; margin-left: -1px; background: rgba(255, 255, 255, .18); border-radius: 2px; overflow: hidden; }
.hero-indiciu span { position: absolute; left: 0; top: -12px; width: 2px; height: 12px; background: #fff; border-radius: 2px; animation: indiciu 1.8s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes indiciu { to { transform: translateY(56px); } }

.hero-static { height: auto; }
.hero-static .hero-scena { position: relative; min-height: 100svh; }
.hero-static .hero-indiciu { display: none; }

/* ---------- harta cu rutele, in aceeasi scena ---------- */
.rute-canvas { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; }
.rute-texte { position: absolute; inset: 0; pointer-events: none; }
.rute-pas {
  position: absolute; left: 24px; top: 50%; margin: 0; max-width: 9em;
  translate: 0 -50%;
  color: #fff; font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(34px, 4.1vw, 58px);
  opacity: 0; visibility: hidden; will-change: opacity, transform, filter;
  text-shadow: 0 2px 30px rgba(1, 18, 42, .85);
  text-wrap: balance;
}
.hero-static .rute-canvas { opacity: 1; visibility: visible; }
.hero-static .hero-canvas, .hero-static .rute-texte { display: none; }

/* ---------- butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px 10px;
  border-radius: var(--rad); border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--gul); color: var(--cerneala); }
.btn-primary:hover { background: var(--gul-inchis); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- sectiunile ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--hartie-2); }
.section h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 28px; }
.lead { font-size: 19px; max-width: 38em; color: var(--text); }

.despre { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.facts { margin: 6px 0 0; border-top: 3px solid var(--vagbla); }
.fact { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
dt { color: var(--text-slab); font-size: 15px; }
dd { margin: 0; color: var(--cerneala); font-weight: 600; }
.cifre { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.servicii { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.serviciu {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px;
  padding: 24px 0; border-bottom: 1px solid var(--linie);
}
.serviciu h3 { font-size: 21px; }
.serviciu p { max-width: 36em; }

.jobs { display: grid; gap: 20px; margin-top: 24px; }
.job { background: #fff; border: 1px solid var(--linie); border-left: 5px solid var(--vagbla); border-radius: var(--rad); padding: 26px 28px; }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; }
.job-head h3 { font-size: 23px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 14px; font-weight: 600; color: var(--vagbla); background: var(--hartie-2); border-radius: 999px; padding: 4px 12px 2px; }
.tag-salary { background: #fff4cf; color: #5c4700; }
.job-summary { margin-top: 12px; font-size: 18px; max-width: 40em; }
.job-block { margin-top: 18px; max-width: 44em; }
.job-block h4 { font-size: 16px; margin-bottom: 4px; }
.job-block p { white-space: pre-line; }
.job .btn-apply { margin-top: 22px; }
.jobs-gol .btn-apply { margin-top: 24px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
address { font-style: normal; display: grid; gap: 6px; font-size: 18px; }
address strong { color: var(--cerneala); font-size: 21px; }
.contact-legal { margin: 0; display: grid; gap: 10px; }
.contact-legal div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; }

/* ---------- subsolul ---------- */
.site-footer { background: var(--asfalt); color: rgba(255, 255, 255, .78); padding: 28px 0; font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #fff; font-weight: 600; }
.footer-dreapta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-meteo { font-size: 13px; opacity: .7; }
.footer-meteo a { font-weight: 500; }

/* ---------- formularul de candidatura ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 34, 56, .6);
  align-items: center; justify-content: center; padding: 16px;
}
.modal {
  width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 8px; }
.modal-header h2 { font-size: 23px; }
.modal-close { width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--text-slab); cursor: pointer; border-radius: 8px; }
.modal-close:hover { background: var(--hartie-2); }
.modal-body { padding: 8px 24px; }
.modal-footer { display: flex; justify-content: flex-end; padding: 12px 24px 24px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--cerneala); font-size: 15px; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--cerneala);
  border: 1.5px solid var(--linie); border-radius: 8px; padding: 10px 12px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--vagbla); box-shadow: 0 0 0 3px rgba(5, 50, 95, .15); }
.field textarea { min-height: 110px; resize: vertical; }
.hint { font-size: 14px; color: var(--text-slab); }
.form-error { color: #b42318; font-weight: 600; min-height: 1.2em; }
.apply-success { text-align: center; padding: 24px 8px 32px; }
.apply-success svg { width: 52px; height: 52px; color: var(--e-gron); margin: 0 auto 12px; }
.apply-success h3 { font-size: 22px; margin-bottom: 8px; }

/* ---------- ecrane mici ---------- */
@media (max-width: 860px) {
  .despre, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .serviciu { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .header-inner { flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; }
  .brand { font-size: 18px; }
  .brand img { width: 34px; height: 34px; }
  .antet-dreapta { display: contents; }
  .steaguri-antet { margin-left: auto; }
  .site-nav { order: 3; width: 100%; gap: 20px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
  html { scroll-padding-top: 110px; }
  .hero-continut { padding-top: 96px; }
  .skylt-sus { padding: 14px 16px 0; gap: 12px; }
  .skylt-corp { padding: 8px 16px 20px; }
  .e-skold { min-width: 52px; height: 34px; font-size: 21px; }
  .skylt-ort { font-size: 21px; }
  .skylt-symbol { display: none; }   /* emblema e deja in bara de sus */
  .section { padding: 60px 0; }
  .rute-pas { top: auto; bottom: 9svh; translate: none; left: 16px; right: 16px; max-width: none; font-size: clamp(30px, 8.6vw, 40px); }
  .fact, .contact-legal div { grid-template-columns: 1fr; gap: 0; }
  .job { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-indiciu span { animation: none; }
  * { transition: none !important; }
}
