/* TransRoute – site de prezentare. Culorile sunt cele din aplicație (apps/mobile/src/theme.ts). */
:root {
  --ink: #131921;
  --ink-2: #232f3e;
  --ink-3: #37475a;
  --orange: #ff9900;
  --orange-d: #e47911;
  --orange-text: #b35a00;
  --orange-soft: #ffe9cc;
  --blue: #2f5bea;
  --green: #1a7f37;
  --red: #cf222e;
  --bg: #f2f4f7;
  --surface: #fff;
  --text: #131921;
  --muted: #4a5568;
  --border: #d7dde5;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(19, 25, 33, .06), 0 8px 24px rgba(19, 25, 33, .07);
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; }
a { color: var(--orange-text); text-underline-offset: 3px; }
a:hover { color: var(--orange-d); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.ph { background: #fff3c4; color: #5c4400; border-bottom: 2px dashed #d4a300; padding: 0 3px; border-radius: 3px; cursor: help; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.3em; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #ffad33; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a40e26; color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .92rem; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(19, 25, 33, .96); backdrop-filter: blur(8px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.2rem; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand img { height: 28px; width: auto; }
.brand b { color: var(--orange); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { color: #d6dde6; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .97rem; }
.main-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .07); }
.main-nav a[aria-current="page"] { color: var(--orange); }
.main-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; font-size: 1.4rem; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink); padding: 12px 20px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px; }
  .main-nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(19, 25, 33, .97) 30%, rgba(19, 25, 33, .7) 65%, rgba(19, 25, 33, .45)), url(/img/road.jpg) center / cover no-repeat; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 span { color: var(--orange); }
.hero .lead { font-size: 1.2rem; color: #d6dde6; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #b7c0cc; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .ico { color: var(--orange); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.eyebrow-pill { background: rgba(255, 153, 0, .14); border: 1px solid rgba(255, 153, 0, .35); padding: 5px 12px; border-radius: 999px; }
.hero-small .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
.hero-small .lead { max-width: 46em; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; } .hero .phone { margin: 0 auto; } }

/* Phone mockup */
.phone { width: 300px; max-width: 100%; aspect-ratio: 300 / 600; border-radius: 42px; background: #0b0f14; padding: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 2px #2b3442; justify-self: center; }
.phone-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #1b2531; font-size: 12px; color: #fff; }
.phone-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-top { position: absolute; top: 14px; left: 12px; right: 12px; display: flex; gap: 10px; align-items: center; background: #ff9900; color: var(--ink); border-radius: 14px; padding: 10px 12px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.ph-top b { display: block; font-size: 14px; line-height: 1.2; }
.ph-top span { font-size: 11px; opacity: .8; }
.ph-turn { background: var(--ink); color: var(--orange); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; transform: rotate(0deg); }
.ph-limit { position: absolute; top: 88px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); border: 4px solid #d42a2a; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.ph-bottom { position: absolute; left: 10px; right: 10px; bottom: 12px; background: #232f3e; border: 1px solid #37475a; border-radius: 16px; padding: 12px; box-shadow: 0 -4px 20px rgba(0, 0, 0, .3); }
.ph-dest { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 10px; }
.ph-dest b { display: block; font-size: 13px; }
.ph-dest span { color: #b7c0cc; font-size: 11px; }
.ph-stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.ph-stats b { display: block; font-size: 14px; color: #ff9900; }
.ph-stats span { color: #b7c0cc; font-size: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.dot-warehouse { background: #ff9900; } .dot-partner { background: #5b8cff; } .dot-parking { background: #3fb950; } .dot-fuel { background: #4cc9f0; } .dot-truckstop { background: #a371f7; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .muted, .section-dark p { color: #b7c0cc; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #b7c0cc; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 60px 0; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.section-alt .card { background: var(--bg); box-shadow: none; }
.section-dark .card { background: var(--ink-2); border-color: var(--ink-3); box-shadow: none; }
.card h3 { margin-top: 14px; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--orange); transform: translateY(-2px); color: inherit; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.section-dark .card p { color: #b7c0cc; }
.feat-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-text); font-size: 1.3rem; }
.section-dark .feat-ico { background: rgba(255, 153, 0, .14); color: var(--orange); }
.feat-ico.blue { background: #e1e9ff; color: var(--blue); } .feat-ico.green { background: #dff5e5; color: var(--green); } .feat-ico.purple { background: #efe5ff; color: #8250df; } .feat-ico.red { background: #fde2e3; color: var(--red); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { display: flex; gap: 10px; margin-bottom: 10px; }
.checks .ico { color: var(--green); margin-top: 3px; }
.section-dark .checks .ico { color: var(--orange); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .95rem; margin-top: 18px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.steps { counter-reset: s; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stats b { display: block; font-size: 2.2rem; color: var(--orange); line-height: 1.1; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--bg); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-size: .9rem; }
.section-dark .chip { background: var(--ink-2); border-color: var(--ink-3); color: #d6dde6; }
.callout { border-left: 4px solid var(--orange); background: var(--orange-soft); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 1.4em 0; }
.callout.warn { border-color: #b88300; background: #fff4d6; }
.callout.danger { border-color: var(--red); background: #fde2e3; }
.callout.info { border-color: var(--blue); background: #e8eeff; }
.callout p:last-child { margin: 0; }

/* Download */
.download { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: linear-gradient(120deg, var(--ink) 40%, var(--ink-2)); color: #fff; border-radius: 24px; padding: 48px; position: relative; overflow: hidden; }
.download p { color: #b7c0cc; }
.download img.duck { position: absolute; right: -30px; bottom: -20px; width: 260px; opacity: .1; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #555; border-radius: 12px; padding: 10px 18px; text-decoration: none; min-width: 190px; }
.store:hover { color: #fff; border-color: #fff; }
.store small { display: block; font-size: .72rem; color: #b7c0cc; line-height: 1.1; }
.store b { font-size: 1.1rem; line-height: 1.2; }
.store .ico { font-size: 1.6rem; }
.store[aria-disabled="true"] { opacity: .75; }
@media (max-width: 760px) { .download { grid-template-columns: 1fr; padding: 32px 24px; } }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--orange-text); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 16px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }
.faq-cat { margin: 34px 0 12px; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.faq-cat .ico { color: var(--orange-text); }
.search { position: relative; max-width: 620px; }
.search input { width: 100%; padding: 16px 18px 16px 50px; font-size: 1.05rem; border-radius: 999px; border: 2px solid transparent; background: #fff; color: var(--text); font-family: inherit; }
.search input:focus { outline: none; border-color: var(--orange); }
.search .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.2rem; }
.no-results { display: none; }
.no-results.show { display: block; }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: 6px; }
input[type="text"], input[type="email"], select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #8a94a3; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange-d); box-shadow: 0 0 0 3px rgba(255, 153, 0, .25); }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .93rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--orange-d); flex: none; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-msg { display: none; padding: 14px 18px; border-radius: 10px; }
.form-msg.ok { display: block; background: #dff5e5; color: #0f4a22; }
.form-msg.err { display: block; background: #fde2e3; color: #7d1219; }
.field-err { color: var(--red); font-size: .85rem; margin-top: 4px; }

/* Legal documents */
.doc { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.doc-toc { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; font-size: .9rem; max-height: calc(100vh - 110px); overflow: auto; }
.doc-toc b { display: block; margin-bottom: 8px; }
.doc-toc ol { margin: 0; padding-left: 18px; }
.doc-toc li { margin-bottom: 6px; }
.doc-toc a { color: var(--muted); text-decoration: none; }
.doc-toc a:hover { color: var(--orange-text); }
.doc-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 44px 52px; max-width: 820px; }
.doc-body h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.doc-body h2 { font-size: 1.35rem; margin-top: 2em; padding-top: .4em; scroll-margin-top: 90px; }
.doc-body h2:first-of-type { margin-top: 0; }
.doc-body h3 { margin-top: 1.4em; }
.doc-body li { margin-bottom: .4em; }
.doc-meta { color: var(--muted); font-size: .9rem; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 28px; }
@media (max-width: 960px) { .doc { grid-template-columns: 1fr; } .doc-toc { position: static; max-height: none; } .doc-body { padding: 28px 22px; } }
table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg); font-weight: 700; }
.table-wrap { overflow-x: auto; }
dl.idcard { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
dl.idcard dt { font-weight: 700; }
dl.idcard dd { margin: 0; }
@media (max-width: 560px) { dl.idcard { grid-template-columns: 1fr; } dl.idcard dd { margin-bottom: 8px; } }

/* Footer */
.site-footer { background: var(--ink); color: #b7c0cc; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #d6dde6; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-grid h2 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.footer-grid .linklike { color: #d6dde6; text-decoration: none; }
.footer-grid .linklike:hover { color: var(--orange); }
.footer-brand p { margin-top: 14px; }
.brand-light img { height: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.anpc { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 40px 0 0; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.anpc p { margin: 0; flex: 1 1 260px; }
.anpc-badge { display: inline-flex; align-items: stretch; width: 250px; height: 50px; border-radius: 8px; overflow: hidden; background: #fff; color: #0c2c63 !important; border: 1px solid #fff; }
.anpc-badge:hover { box-shadow: 0 0 0 3px var(--orange); }
.anpc-k { background: #0c2c63; color: #ffcc00; display: grid; place-items: center; font-weight: 800; padding: 0 12px; font-size: .95rem; letter-spacing: .04em; }
.anpc-t { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; font-size: .74rem; line-height: 1.25; }
.anpc-t b { font-size: .9rem; }
.footer-legal { margin-top: 22px; color: #8a96a8; }
.footer-legal p { margin: 0 0 6px; }
.footer-legal a { color: #b7c0cc; text-decoration: underline; }

/* Cookie notice */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; display: flex; justify-content: center; }
.cookie[hidden] { display: none; }
.cookie-inner { max-width: 760px; background: #fff; color: var(--text); border-radius: 16px; padding: 18px 22px; display: flex; gap: 18px; align-items: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); border: 1px solid var(--border); }
.cookie-inner p { margin: 0; font-size: .92rem; }
.cookie-actions .btn { white-space: nowrap; }
@media (max-width: 600px) { .cookie-inner { flex-direction: column; align-items: stretch; } }

/* 404 */
.notfound { text-align: center; padding: 100px 0; }
.notfound img { width: 220px; margin-bottom: 20px; }
