/* ABC Translation Nigeria
   Palette: stamp-ink violet on cool paper, with Nigerian green as the seal colour. */
:root {
  --ink: #1C2140;
  --ink-2: #3A3F5C;
  --muted: #555B6E;
  --paper: #F4F5F0;
  --white: #FFFFFF;
  --rule: #D5D7CD;
  --stamp: #5B3D9E;
  --stamp-dark: #472E80;
  --stamp-tint: #ECE7F6;
  --seal: #0B6B4B;
  --error: #B42318;
  --radius-s: 4px;
  --radius-m: 8px;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}

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

h1, h2, h3, .h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem); letter-spacing: -.015em; max-width: 20ch; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem); letter-spacing: -.01em; }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.wrap.narrow > * { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; color: var(--stamp); transform: rotate(-8deg); }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-weight: 600; font-size: .78rem; color: var(--seal); margin-top: .2rem; letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav ul { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav ul a:hover { color: var(--stamp); text-decoration: underline; }
.lang-switch { font-size: .9rem; font-weight: 600; color: var(--seal); }
.nav-toggle { display: none; font: 600 .95rem var(--sans); background: none; border: 1.5px solid var(--ink); color: var(--ink); border-radius: var(--radius-s); padding: .45rem .8rem; cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: flex-start; padding: 1rem clamp(1rem, 4vw, 2rem) 1.4rem; gap: 1rem; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: .8rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 600 1rem/1.2 var(--sans);
  padding: .85rem 1.3rem; border-radius: var(--radius-m); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--stamp); color: #fff; }
.btn-primary:hover { background: var(--stamp-dark); color: #fff; text-decoration: none; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn-small { padding: .55rem .95rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

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

/* Hero: the legalisation chain is the signature element */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 19ch; font-size: clamp(2.1rem, 1.2rem + 2.8vw, 3.3rem); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.chain { margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 1.6rem 1.6rem 1.2rem;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(28, 33, 64, .45); }
.chain figcaption { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin-bottom: 1.1rem; }
.chain ol { list-style: none; margin: 0; padding: 0; counter-reset: c; position: relative; }
.chain ol::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; border-left: 2px dashed var(--rule); }
.chain li { counter-increment: c; position: relative; display: flex; align-items: center; gap: .9rem; padding: .45rem 0; }
.chain li::before { content: counter(c); flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  font: 700 1.05rem var(--serif); color: var(--stamp); background: var(--white);
  border: 2.5px solid var(--stamp); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 4.5px var(--stamp); position: relative; z-index: 1; }
.chain li span { border: 2px solid var(--stamp); color: var(--stamp); padding: .35rem .7rem; border-radius: 3px; font-weight: 700; font-size: .95rem;
  background: var(--stamp-tint); transform: rotate(var(--r, -1.2deg)); }
.chain li:nth-child(even) span { --r: 1.4deg; }
.chain li:last-child::before { border-color: var(--seal); color: var(--seal); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 4.5px var(--seal); }
.chain li:last-child span { border-color: var(--seal); color: var(--seal); background: #E3F1EA; }
.chain-note { margin: 1rem 0 0; font-size: .92rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .chain li span { animation: press .5s cubic-bezier(.2, .9, .3, 1.3) both; }
  .chain li:nth-child(1) span { animation-delay: .25s; } .chain li:nth-child(2) span { animation-delay: .47s; }
  .chain li:nth-child(3) span { animation-delay: .69s; } .chain li:nth-child(4) span { animation-delay: .91s; }
  .chain li:nth-child(5) span { animation-delay: 1.13s; }
  @keyframes press { from { opacity: 0; transform: scale(1.35) rotate(-6deg); } to { opacity: 1; transform: scale(1) rotate(var(--r, -1.2deg)); } }
}

/* Sections */
.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band-tint { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.page-head { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.facts span { font-size: .88rem; font-weight: 600; color: var(--seal); border: 1.5px solid currentColor; border-radius: 999px; padding: .2rem .7rem; }

/* Service ledger: rows, not cards */
.svc-ledger { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.svc-ledger li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.svc-ledger p { margin: 0; color: var(--ink-2); max-width: 64ch; }
.svc-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.svc-name:hover { color: var(--stamp); text-decoration: underline; }
@media (max-width: 700px) { .svc-ledger li { grid-template-columns: 1fr; gap: .3rem; } }

/* Steps: true sequences, so numbered */
.steps { list-style: none; counter-reset: s; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.steps li { counter-increment: s; border-top: 2px solid var(--stamp); padding-top: 1rem; }
.steps li::before { content: counter(s); display: block; font: 700 2.2rem/1 var(--serif); color: var(--stamp); margin-bottom: .5rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--ink-2); }
.mini-steps { margin: 0; padding-left: 1.2rem; }
.mini-steps li { margin-bottom: .3rem; }

/* Zones / states */
.zones { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 1.5rem; }
.zones-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .zones, .zones-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .zones-wide { grid-template-columns: 1fr; } }
.zone h3, .zone .h3 { font-size: 1.05rem; padding-bottom: .4rem; border-bottom: 1px solid var(--rule); color: var(--seal); }
.zone ul { list-style: none; padding: 0; margin: 0; }
.zone li { padding: .18rem 0; }
.state-list li { padding: .45rem 0; border-bottom: 1px dashed var(--rule); }
.state-list .st { font-weight: 700; display: block; }
.state-list .cities { font-size: .9rem; color: var(--muted); }
.state-list .cities a { color: var(--muted); }

.inline-list { list-style: none; padding: 0; margin: .6rem 0 1.2rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.inline-list li a, .inline-list li { font-size: .95rem; }
.inline-list li a { display: inline-block; padding: .3rem .75rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--white);
  color: var(--ink); text-decoration: none; }
.inline-list li a:hover { border-color: var(--stamp); color: var(--stamp); }

.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4rem); }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 860px) { .two-col, .three-col { grid-template-columns: 1fr; } }
.prose p { max-width: 68ch; }
.aside { border-left: 3px solid var(--seal); padding-left: 1.4rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: .3rem 0 .3rem 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .75em; width: .8rem; height: .45rem; border-left: 2px solid var(--seal); border-bottom: 2px solid var(--seal); transform: rotate(-45deg); }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem 2.5rem; margin-top: 1rem; }
.why h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.why p { color: var(--ink-2); margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .8rem; font: 400 1.6rem/1 var(--serif); color: var(--stamp); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--ink-2); max-width: 68ch; }
.faq + .faq { padding-top: 0; }

/* Quote form */
.quote { background: var(--ink); color: #E9EAF2; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.quote h2 { color: #fff; }
.quote .lead { color: #C9CBDA; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote a { color: #CDBEF2; }
.direct { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #3A3F5C; }
.direct p { margin: 0 0 .5rem; }
.direct-h { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: #fff; }
.direct .k { display: block; font-size: .85rem; color: #A9ACC0; }
.direct .hours { font-size: .9rem; color: #A9ACC0; margin-top: .9rem; }

.qform { background: var(--white); color: var(--ink); border-radius: var(--radius-m); padding: clamp(1.2rem, 3vw, 2rem); }
.qform a { color: var(--stamp); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label, .field .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--muted); }
.qform input[type=text], .qform input[type=email], .qform input[type=tel], .qform input:not([type]), .qform select, .qform textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid #B9BCB0; border-radius: var(--radius-s); padding: .7rem .8rem; }
.qform textarea { resize: vertical; min-height: 7rem; }
.qform input:focus, .qform select:focus, .qform textarea:focus { outline: none; border-color: var(--stamp); box-shadow: 0 0 0 3px var(--stamp-tint); background: #fff; }
.qform .invalid { border-color: var(--error) !important; }
.hint { font-size: .86rem; color: var(--muted); margin: .35rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.files .file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filepick { display: inline-block !important; font-weight: 600; border: 2px dashed var(--stamp); color: var(--stamp); border-radius: var(--radius-s);
  padding: .65rem 1rem; cursor: pointer; background: var(--stamp-tint); }
.files .file-input:focus-visible + .filepick, .filepick:hover { border-style: solid; }
.file-list { list-style: none; margin: .6rem 0 0; padding: 0; font-size: .92rem; }
.file-list li { padding: .2rem 0; }
.file-list .none { color: var(--muted); }
.file-list .bad { color: var(--error); }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--stamp); flex: 0 0 auto; }
.check label { font-weight: 400; font-size: .92rem; }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--seal); }
.form-status.err { color: var(--error); }

.thanks { text-align: left; }
.stamp-ok { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--seal); color: var(--seal); display: grid; place-items: center;
  font: 700 2.4rem/1 var(--serif); transform: rotate(-10deg); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 6px var(--seal); margin-bottom: 1.2rem; }

/* Footer */
.site-footer { background: #151933; color: #C9CBDA; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #E9EAF2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
.footer-brand { font-family: var(--serif); font-size: 1.25rem; color: #fff; font-weight: 700; }
.footer-h { font-weight: 700; color: #fff; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .2rem 0; }
.footer-base { border-top: 1px solid #2C3150; margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; }
