/* ABC Translation Luxembourg — stylesheet
   Ink navy + seal red + Luxembourg sky. No web fonts (fast, GDPR-friendly). */
:root {
  --ink: #14213a;
  --ink-soft: #46546b;
  --muted: #6a778b;
  --rule: #d5dce4;
  --mist: #eef2f5;
  --paper: #fbfbfa;
  --seal: #b4202e;
  --seal-dark: #8f1824;
  --sky: #0070a6;
  --sky-flag: #00a1de;
  --sheet-shadow: #e2e7ec;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --serif-svg: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1.0625rem/1.62 var(--sans);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--sky); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky-flag); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.05rem, 1.3rem + 3vw, 3.35rem); letter-spacing: -.012em; max-width: 22ch; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.95rem); letter-spacing: -.006em; }
h3 { font-size: 1.22rem; }
h2 a, h3 a { color: inherit; text-decoration: none; }
h2 a:hover, h3 a:hover { color: var(--sky); text-decoration: underline; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.narrow > * { max-width: 46rem; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.55rem; }
.prose h2:first-child { margin-top: 0; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 44rem; }
.section-intro { color: var(--ink-soft); max-width: 44rem; margin-bottom: 1.8rem; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: .95rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1.2 var(--sans); padding: .85rem 1.3rem; border-radius: var(--radius);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--seal); color: #fff; }
.btn-primary:hover { background: var(--seal-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: #dfe6ee; font-size: .9rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 2.5rem; gap: 1rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-contact { margin: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.langsw { position: relative; }
.langsw summary { cursor: pointer; list-style: none; padding: .35rem .2rem; color: #fff; }
.langsw summary::-webkit-details-marker { display: none; }
.langsw summary::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .5em; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-.2em) rotate(45deg); }
.langsw ul { position: absolute; right: 0; top: 100%; z-index: 20; margin: .3rem 0 0; padding: .4rem 0; list-style: none; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); min-width: 12rem; box-shadow: 0 8px 24px rgba(20, 33, 58, .14); }
.langsw li a { display: block; padding: .45rem 1rem; color: var(--ink); }
.langsw li a:hover { background: var(--mist); text-decoration: none; }
.langsw a[aria-current] { font-weight: 700; }

.site-header { background: #fff; border-bottom: 1px solid var(--rule); }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; margin: 0; }
.brand .mark { color: var(--seal); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.28rem; }
.brand-sub { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.15rem; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { border-bottom-color: var(--sky-flag); }
.nav-toggle { display: none; margin-left: auto; font: 600 .95rem var(--sans); background: none; border: 1.5px solid var(--ink); color: var(--ink); border-radius: var(--radius); padding: .5rem .9rem; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: .5rem clamp(1rem, 4vw, 2rem) 1.2rem; gap: .6rem; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
  .site-header { position: relative; }
}
@media (max-width: 560px) {
  .topbar-contact a[href^="mailto"] { display: none; }
}

/* ---------- Breadcrumbs & page head ---------- */
.crumbs ol { list-style: none; margin: 0; padding: 1.1rem 0 0; display: flex; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 .55rem; color: var(--rule); }
.crumbs a { color: var(--ink-soft); }
.page-head { padding-top: clamp(1.8rem, 4vw, 3rem); padding-bottom: clamp(1rem, 2vw, 1.5rem); }
.page-head h1 { max-width: 26ch; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(#fff, var(--paper)); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-text .lead { margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-art { display: block; width: 100%; max-width: 440px; margin-inline: auto; }
.stamp { transform-box: fill-box; transform-origin: center; transform: rotate(-11deg); mix-blend-mode: multiply; opacity: .92; animation: press .75s cubic-bezier(.2, .85, .25, 1) .35s both; }
@keyframes press {
  0%   { transform: scale(1.5) rotate(-26deg); opacity: 0; }
  55%  { transform: scale(.95) rotate(-9deg); opacity: .95; }
  75%  { transform: scale(1.02) rotate(-11.5deg); }
  100% { transform: scale(1) rotate(-11deg); opacity: .92; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 220px; margin-inline: auto; }
}

/* ---------- Service register (rows, not cards) ---------- */
.register { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.register li { position: relative; display: grid; grid-template-columns: minmax(12rem, 1fr) 2fr; gap: .4rem 2.5rem; padding: 1.35rem .5rem; border-bottom: 1px solid var(--rule); transition: background-color .15s; }
.register li:hover { background: #fff; }
.register .reg-name { font-size: 1.4rem; margin: 0; }
.register .reg-name a { color: var(--ink); text-decoration: none; }
.register .reg-name a::after { content: ""; position: absolute; inset: 0; }
.register li:hover .reg-name a { color: var(--seal); }
.register p { margin: 0; color: var(--ink-soft); }
@media (max-width: 700px) { .register li { grid-template-columns: 1fr; } }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin: 1.5rem 0 0; }
.facts div { border-left: 3px solid var(--sky-flag); padding-left: 1.2rem; }
.facts dt { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: .3rem; }
.facts dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Steps (a real sequence) ---------- */
.band { background: var(--mist); border-block: 1px solid var(--rule); padding-block: clamp(2.5rem, 5vw, 3.8rem); }
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font: 700 2.4rem/1 var(--serif); color: var(--seal); margin-bottom: .6rem; }
.steps h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Lists of links ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.inline-list, .lang-list, .doc-list, .stack-list, .gz-list, .foot-list { list-style: none; margin: 0; padding: 0; }
.inline-list, .lang-list { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.lang-list a, .inline-list a { white-space: nowrap; }
.lang-list.big { font-size: 1.3rem; gap: 1rem 2rem; margin-top: 1.5rem; }
.doc-list li, .stack-list li { border-bottom: 1px solid var(--rule); }
.doc-list a, .stack-list a { display: block; padding: .55rem 0; text-decoration: none; }
.doc-list a:hover, .stack-list a:hover { text-decoration: underline; }

.gazetteer { columns: 3 16rem; column-gap: 2.5rem; }
.gz-group { break-inside: avoid; margin-bottom: 1.6rem; }
.gz-group h3 { font-size: 1.05rem; border-bottom: 1px solid var(--ink); padding-bottom: .3rem; margin-bottom: .5rem; }
.gz-list { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .98rem; }

/* ---------- Two columns with aside ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.aside { border-left: 1px solid var(--rule); padding-left: clamp(1rem, 3vw, 2rem); }
.aside h2 { font-size: 1.15rem; margin-top: 1.8rem; }
.aside h2:first-child { margin-top: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.5rem; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li { position: relative; padding: .45rem 0 .45rem 1.7rem; border-bottom: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: .95rem; width: .55rem; height: .3rem; border-left: 2px solid var(--seal); border-bottom: 2px solid var(--seal); transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .75rem; font: 400 1.5rem/1 var(--serif); color: var(--seal); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.1rem; color: var(--ink-soft); max-width: 44rem; }
.faq + .more { margin-top: .6rem; }
.faq { margin-bottom: 2rem; }

/* ---------- Quote form ---------- */
.quote { background: #fff; border-top: 4px solid var(--seal); padding-block: clamp(2.5rem, 5vw, 4rem); }
.quote-flat { border-top: 1px solid var(--rule); }
.quote-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }
.direct { border-left: 3px solid var(--sky-flag); padding-left: 1rem; }
.contact-dl dt { font-weight: 600; margin-top: 1rem; }
.contact-dl dd { margin: 0; font-size: 1.15rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.field { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--seal); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #b9c3cf; border-radius: var(--radius); padding: .7rem .8rem; width: 100%;
}
textarea { resize: vertical; min-height: 8rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky-flag); outline-offset: 0; border-color: var(--sky); }
input[type=file] { font-size: .95rem; padding: .5rem 0; }
.hint { font-size: .88rem; color: var(--muted); }
.field.check { flex-direction: row; align-items: flex-start; gap: .7rem; }
.field.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--seal); }
.field.check label { font-weight: 400; font-size: .95rem; }
.is-invalid input, .is-invalid textarea, .is-invalid select, input.is-invalid, textarea.is-invalid { border-color: var(--seal); background: #fff7f7; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: .5rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.is-error { color: var(--seal); }
.form-status.is-ok { color: #1c6b3a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d3de; padding-top: 3rem; font-size: .96rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { color: #fff; font-size: 1.05rem; font-family: var(--sans); font-weight: 600; margin-bottom: .8rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.foot-logo { color: #fff; margin-bottom: .8rem; }
.foot-logo .mark { color: #fff; }
.foot-list li { margin-bottom: .45rem; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.5rem; padding-block: 1.2rem; color: #9fb0c2; font-size: .88rem; }
.foot-base p { margin: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.thanks .mark { color: var(--seal); margin-bottom: 1rem; }
.nf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.nf h2 { font-size: 1.3rem; }
.nf a { margin-right: 1rem; }
@media (max-width: 700px) { .nf-grid { grid-template-columns: 1fr; } }
.root-choose .mark { color: var(--seal); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp { animation: none; }
  * { transition: none !important; }
}
@media print {
  .topbar, .site-header, .quote, .site-footer, .crumbs { display: none; }
}

/* ---------- Hero illustration (classes, CSP-safe) ---------- */
.hero-art .h-shadow { fill: var(--sheet-shadow); }
.hero-art .h-sheet { fill: #fff; stroke: var(--rule); }
.hero-art .h-title { font: 17px var(--serif-svg); fill: var(--ink); }
.hero-art .h-accent { fill: var(--seal); }
.hero-art .h-line { fill: var(--rule); }
.hero-art .h-sign { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.hero-art .s-ring { fill: none; stroke: var(--seal); }
.hero-art .s-text { fill: var(--seal); font-family: var(--serif-svg); font-weight: 700; }
.hero-art .s-around { font-size: 11.2px; letter-spacing: 1.1px; }
.hero-art .s-big { font-size: 30px; }
.hero-art .s-small { font-size: 10px; font-weight: 400; letter-spacing: 1px; }
