/* ABC Translation UK — passport ink, security paper, violet stamp */
:root {
  --ink: #0e2744;
  --ink-2: #29436a;
  --paper: #fbfcfb;
  --tint: #e8f0ee;
  --tint-2: #d6e3df;
  --green: #17695c;
  --green-dark: #0f4f45;
  --stamp: #5e3a9a;
  --text: #1a2330;
  --muted: #55606d;
  --rule: #c8d6d1;
  --focus: #e0a526;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --r-sm: 4px;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 1.0625rem/1.6 var(--sans); color: var(--text); background: var(--paper); }
img, svg { max-width: 100%; }
a { color: var(--green-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); letter-spacing: -.01em; max-width: 22ch; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.narrow { max-width: 820px; }
.sr { position: absolute; 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: 10; }
.skip:focus { left: 1rem; }
.icon { width: 1.05em; height: 1.05em; vertical-align: -.16em; margin-right: .4em; flex: none; }

/* Top bar & header */
.topbar { background: var(--ink); color: #dfe7f1; font-size: .875rem; }
.topbar .wrap { display: flex; gap: 1.5rem; align-items: center; min-height: 2.4rem; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.lang-switch { margin-left: auto; }
.lang-switch ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.lang-switch a { display: block; padding: .15rem .5rem; border-radius: var(--r-sm); font-weight: 600; letter-spacing: .04em; }
.lang-switch a[aria-current] { background: #fff; color: var(--ink); }

.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.05; }
.brand small { display: block; font-family: var(--sans); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .02em; margin-top: .15rem; }
.logo-mark { width: 2.5rem; height: 2.5rem; color: var(--stamp); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.main-nav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current] { border-bottom-color: var(--green); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; font: 600 .95rem var(--sans); background: none; border: 1px solid var(--rule); border-radius: var(--r-sm); padding: .5rem .9rem; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .1rem; font: 600 1rem var(--sans); padding: .8rem 1.3rem; border-radius: var(--r-sm); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .5rem .9rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero — security-paper guilloché behind a rubber stamp */
.hero, .page-hero {
  background-color: var(--tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='40' viewBox='0 0 160 40'%3E%3Cg fill='none' stroke='%2317695c' stroke-opacity='.09' stroke-width='.8'%3E%3Cpath d='M0 20 Q20 0 40 20 T80 20 T120 20 T160 20'/%3E%3Cpath d='M0 20 Q20 40 40 20 T80 20 T120 20 T160 20'/%3E%3Cpath d='M0 10 Q20 -10 40 10 T80 10 T120 10 T160 10'/%3E%3Cpath d='M0 30 Q20 50 40 30 T80 30 T120 30 T160 30'/%3E%3C/g%3E%3C/svg%3E");
  border-bottom: 1px solid var(--tint-2);
}
.hero { padding: clamp(3rem, 7vw, 6rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center; }
.hero .lead, .page-hero .lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 60ch; }
.hero-stamp { color: var(--stamp); display: flex; justify-content: center; }
.stamp { width: min(100%, 360px); transform: rotate(-11deg); mix-blend-mode: multiply; }
@media (prefers-reduced-motion: no-preference) {
  .hero-stamp .stamp { animation: stamp-in .55s cubic-bezier(.2, .9, .3, 1.15) .35s both; }
  @keyframes stamp-in {
    from { opacity: 0; transform: rotate(-4deg) scale(1.35); }
    to { opacity: 1; transform: rotate(-11deg) scale(1); }
  }
}
.page-hero { padding: clamp(2rem, 5vw, 3.75rem) 0 clamp(2.25rem, 5vw, 3.5rem); }
.page-hero h1 { max-width: 26ch; }
.thanks { text-align: center; }
.thanks h1, .thanks .lead { margin-left: auto; margin-right: auto; }
.thanks .cta-row { justify-content: center; }
.thanks-stamp { color: var(--stamp); width: 180px; margin: 0 auto 1.5rem; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1.25rem; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--rule); }
.crumbs a { color: var(--muted); }

/* Sections */
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-tint { background: var(--tint); }
.section-lead { color: var(--muted); max-width: 62ch; margin-bottom: 2rem; font-size: 1.08rem; }
.more { margin-top: 1.5rem; font-weight: 600; }
.more a { margin-right: 1rem; }

/* Services — an index of the chain, not a card kit */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.svc { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.svc p { margin: 0; color: var(--muted); }
.svc-link { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); font-size: 1.28rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.svc-link:hover .svc-name { text-decoration: underline; text-decoration-color: var(--green); }
.svc-icon { width: 1.6rem; height: 1.6rem; color: var(--green); flex: none; }
.svc-cards { display: grid; gap: 0; }
.svc-card { padding: 2rem 0; border-bottom: 1px solid var(--rule); max-width: 820px; }
.svc-card h2 a { color: var(--ink); text-decoration: none; display: inline-flex; gap: .6rem; align-items: center; }
.svc-card h2 a:hover { text-decoration: underline; }

/* Steps — a real sequence */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 0; padding: 0; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--tint-2); border-radius: var(--r); padding: 1.5rem 1.25rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--stamp); color: var(--stamp); font: 700 1.05rem var(--serif); margin-bottom: .9rem; }
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }

.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
.why > div { border-left: 3px solid var(--green); padding-left: 1.1rem; }
.why p { color: var(--muted); margin: 0; }
.why-2 { gap: 1.5rem 2rem; margin-top: 1rem; }

/* Chips & link columns */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.chips a { display: block; padding: .45rem .95rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--paper); font-weight: 500; }
.chips a:hover { border-color: var(--green); color: var(--green-dark); }
.link-cols { list-style: none; padding: 0; margin: 0; columns: 4 180px; column-gap: 2rem; }
.link-cols li { break-inside: avoid; padding: .3rem 0; }
.link-cols.up { margin-top: 1.5rem; columns: 2 260px; font-weight: 600; }
.nation-list { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem 2rem; padding: 0; margin: 0 0 1.5rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.nation-block { margin-bottom: 2.75rem; }
.nation-block h2 a { color: var(--ink); }
.area-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.area-list li { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.lang-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.lang-grid a { display: block; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--r-sm); text-decoration: none; background: var(--paper); }
.lang-grid a:hover { border-color: var(--green); }
.lg-name { display: block; font: 700 1.12rem var(--serif); color: var(--ink); }
.lg-where { display: block; font-size: .88rem; color: var(--muted); margin-top: .2rem; }

/* Two-column content */
.two-col { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.72; }
.prose p { max-width: 68ch; }
.prose h2 { margin-top: 1.75rem; }
.prose .why { font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
.note { border-left: 3px solid var(--stamp); padding: .25rem 0 .25rem 1rem; color: var(--ink-2); }
.panel { background: var(--tint); border-radius: var(--r); padding: 1.5rem; margin-bottom: 1.25rem; }
.panel h2 { font-size: 1.25rem; }
.panel p:last-child { margin-bottom: 0; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .35rem 0 .35rem 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .8rem; width: .75rem; height: .4rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; color: var(--ink); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font: 400 1.6rem/1 var(--sans); color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.25rem; color: var(--muted); max-width: 70ch; }

/* Quote form */
.quote { background: var(--ink); color: #e3eaf3; }
.quote h2 { color: #fff; }
.quote a { color: #bfe3da; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem; align-items: start; }
.quote-intro p { color: #c9d4e2; }
.direct { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); }
.direct-title { font-weight: 600; color: #fff !important; }
.direct a { color: #fff; font-size: 1.05rem; text-decoration: none; }
.direct a:hover { text-decoration: underline; }
.panel .direct { border-top-color: var(--rule); }
.panel .direct-title { color: var(--ink) !important; }
.panel .direct a { color: var(--green-dark); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; background: var(--paper); color: var(--text); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.form a { color: var(--green-dark); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .94rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid #a9bbb5; border-radius: var(--r-sm); background: #fff; color: var(--text); width: 100%; }
.field input[type=file] { padding: .55rem; background: var(--tint); }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid=true] { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.field.check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; }
.field.check label { font-weight: 400; font-size: .92rem; color: var(--muted); }
.hint { font-size: .85rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: .75rem 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--green-dark); }
.form-status.err { color: #b3261e; }

/* Footer */
.site-footer { background: #0a1d33; color: #b8c5d6; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer .wrap:first-child { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #dfe7f1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand small { color: #93a3b8; }
.site-footer .logo-mark { color: #b9a3e0; }
.foot-h { color: #fff; font-weight: 700; margin-bottom: .6rem; }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.foot-legal p { margin: 0; }
.foot-legal a { margin-left: 1rem; }

/* Responsive */
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem; gap: 1rem; }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a:not(.btn) { display: block; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
  .site-header .wrap { position: relative; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap:first-child { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-grid, .two-col, .quote-grid { grid-template-columns: 1fr; }
  .hero-stamp { order: -1; justify-content: flex-start; }
  .stamp { width: 150px; }
  .svc { grid-template-columns: 1fr; gap: .4rem; }
  .why { grid-template-columns: 1fr; }
  .area-list li { grid-template-columns: 1fr; gap: .2rem; }
  .topbar .wrap { gap: .9rem; font-size: .82rem; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-footer .wrap:first-child { grid-template-columns: 1fr; }
  .topbar .wrap > a:first-child { display: none; }
  .btn { width: 100%; }
  .main-nav .btn { width: auto; }
}
@media print {
  .topbar, .site-header, .quote, .site-footer { display: none; }
}
