/* ABC Translation Benin — site styles
   Palette: indigo ink (the colour of official stamp ink and Beninese indigo cloth),
   paper, and brass for seals. */

@font-face { font-family: "Literata"; src: url("../fonts/Literata-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/PublicSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/PublicSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #16204f;
  --ink-2: #2b3a86;
  --ink-soft: #e8ebf6;
  --paper: #f5f6f8;
  --white: #ffffff;
  --brass: #c8963e;
  --brass-text: #85590f;
  --line: #d8dce6;
  --text: #1b1e2b;
  --muted: #535a70;
  --danger: #a3261b;
  --ok: #1f6b3a;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 72rem;
  --radius: 6px;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.2; letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); margin: 0 0 1rem; max-width: 22ch; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 46rem; margin-left: auto; margin-right: auto; padding: 0 1.25rem; }
.section { padding: 1rem 1.25rem 2.5rem; }
.section > h2:first-child { margin-top: 2rem; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }

/* ------------------------------------------------ buttons */
.btn { display: inline-block; font: 600 1rem/1.2 var(--sans); padding: .85rem 1.3rem; border-radius: var(--radius); text-decoration: none; border: 2px solid transparent; cursor: pointer; margin: 0 .4rem .5rem 0; }
.btn-primary { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn-primary:hover { background: #d9a853; color: var(--ink); text-decoration: none; }
.btn-ghost { border-color: var(--ink-2); color: var(--ink-2); background: transparent; }
.btn-ghost:hover { background: var(--ink-soft); text-decoration: none; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); text-decoration: none; }
.btn-sm { padding: .55rem .9rem; font-size: .95rem; margin: 0; white-space: nowrap; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ------------------------------------------------ header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo-ring { fill: none; stroke: var(--brass); stroke-width: 2.5; }
.logo-ring.thin { stroke-width: 1; }
.logo-abc { font: 600 12px var(--serif); fill: var(--ink); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: var(--serif); font-size: 1.1rem; }
.logo-text span { font-size: .85rem; color: var(--muted); }
.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 { white-space: nowrap; text-decoration: none; color: var(--text); font-size: .97rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { border-bottom-color: var(--brass); color: var(--ink); }
.lang-switch { font-size: .92rem; color: var(--ink-2); }
.nav-toggle { display: none; font: 600 .95rem var(--sans); background: none; border: 1.5px solid var(--ink); color: var(--ink); border-radius: var(--radius); padding: .45rem .8rem; }

@media (max-width: 68rem) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.25rem; flex-direction: column; align-items: flex-start; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: .2rem; width: 100%; }
  .site-nav ul a { display: block; padding: .55rem 0; font-size: 1.05rem; }
}

/* ------------------------------------------------ hero (home) */
.hero { background: var(--ink); color: #dfe3f3; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.5rem); }
.hero .lede { color: #cfd5ec; font-size: 1.15rem; max-width: 40rem; }
.hero-art { width: 100%; height: auto; display: block; }
.doc-sheet { fill: #fbfbfd; }
.doc-head { fill: var(--ink-2); opacity: .8; }
.doc-line { fill: #c9cee0; }
.doc-sign { fill: none; stroke: var(--ink-2); stroke-width: 2.5; stroke-linecap: round; }
.stamp-ring { fill: rgba(43, 58, 134, .06); stroke: #3b4db0; stroke-width: 4; }
.stamp-ring.thin { fill: none; stroke-width: 1.5; }
.stamp-text { font: 600 10.5px var(--sans); letter-spacing: .08em; fill: #3b4db0; }
.stamp-num { font: 600 34px var(--serif); fill: #3b4db0; }
.stamp.brass .stamp-ring { stroke: #9a6a14; fill: rgba(200,150,62,.10); }
.stamp.brass .stamp-ring.thin { fill: none; }
.stamp.brass .stamp-text, .stamp.brass .stamp-num { fill: #9a6a14; }
@media (prefers-reduced-motion: no-preference) {
  .stamp { opacity: 0; animation: press .45s cubic-bezier(.2,.9,.3,1.3) forwards; transform-box: fill-box; transform-origin: center; }
  .stamp.s1 { animation-delay: .25s; } .stamp.s2 { animation-delay: .6s; }
  .stamp.s3 { animation-delay: .95s; } .stamp.s4 { animation-delay: 1.3s; }
  @keyframes press { from { opacity: 0; scale: 1.25; } to { opacity: 1; scale: 1; } }
}
@media (max-width: 52rem) { .hero-grid { grid-template-columns: 1fr; padding-top: 2.5rem; } .hero-visual { max-width: 26rem; } }

/* ------------------------------------------------ page head */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 1.5rem 0 2rem; }
.page-head .lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.lede-sm { color: var(--muted); max-width: 46rem; }
.head-cta { margin-top: 1.5rem; margin-bottom: 0; }
.crumbs ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 .4rem 0 .15rem; color: #9aa0b4; }
.crumbs a { color: var(--muted); }

/* ------------------------------------------------ services list */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
.svc { display: flex; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.svc-ico { flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 1.5px solid var(--brass); border-radius: 50%; color: var(--brass-text); }
.svc h2, .svc h3 { font-size: 1.2rem; margin: .1rem 0 .3rem; }
.svc h2 a, .svc h3 a { color: var(--ink); text-decoration: none; }
.svc h2 a:hover, .svc h3 a:hover { text-decoration: underline; }
.svc p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 46rem) { .svc-list { grid-template-columns: 1fr; } }

/* ------------------------------------------------ bands */
.band { background: var(--ink-soft); padding: 1rem 0 2.5rem; margin: 1rem 0; }
.chain { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.prose-col { grid-template-columns: 1.6fr 1fr; padding-top: 2rem; }
@media (max-width: 52rem) { .two-col, .prose-col { grid-template-columns: 1fr; gap: 0; } }
.prose p { max-width: 42rem; }
.note { border-left: 3px solid var(--brass); padding: .2rem 0 .2rem 1rem; color: var(--muted); }
.why { list-style: none; padding: 0; margin: 2rem 0 0; }
.why li { padding: 1rem 0; border-top: 1px solid var(--line); }
.why p { margin: 0; color: var(--muted); }
.aside { padding-top: 2rem; }
.aside h2 { font-size: 1.25rem; margin: 1.25rem 0 .75rem; }
.aside h2:first-child { margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px dashed var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .95rem; width: .55rem; height: .55rem; border: 1.5px solid var(--brass); border-radius: 50%; }

/* numbered steps: real sequences only */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: s; position: relative; padding-top: 3.2rem; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--ink-2); color: var(--ink-2); font: 600 1.1rem/2.2rem var(--serif); text-align: center; }
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
.steps-tight { grid-template-columns: 1fr; gap: 1rem; }
.steps-tight li { padding: 0 0 0 3.4rem; }

/* chips */
.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips a { display: inline-block; padding: .3rem .75rem; border: 1px solid var(--line); background: var(--white); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .93rem; }
.chips a:hover { border-color: var(--ink-2); background: var(--ink-soft); }

/* regions */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.region h3 { border-bottom: 2px solid var(--brass); padding-bottom: .35rem; }
.region ul { list-style: none; padding: 0; margin: 0; }
.region li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.dept-link { font-weight: 600; display: block; color: var(--ink); }
.region span { font-size: .93rem; color: var(--muted); }
@media (max-width: 52rem) { .regions { grid-template-columns: 1fr; } }

.dept-grid, .dest-list, .lang-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); column-gap: 2.5rem; }
.dept-grid li, .dest-list li, .lang-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.dept-grid h2, .dest-list h2 { font-size: 1.2rem; margin: 0 0 .35rem; }
.dept-grid a, .dest-list h2 a, .lang-list h3 a { color: var(--ink); }
.dept-grid .meta { font-size: .88rem; color: var(--muted); margin-bottom: .35rem; }
.dest-list p, .lang-list p, .dept-grid p { margin: 0; font-size: .96rem; color: var(--muted); }

/* FAQ */
.faq { padding-top: 1rem; padding-bottom: 2rem; }
.faq details, .faq h2 { max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font: 400 1.5rem var(--sans); color: var(--brass-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 2rem; }

/* ------------------------------------------------ quote form */
.quote { margin: 2.5rem 0 3.5rem; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius); padding: 2rem; }
.quote-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; }
.quote h2 { margin-top: 0; }
.quote-price { color: var(--muted); font-size: .97rem; }
.direct { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.direct p { font-weight: 600; margin-bottom: .5rem; }
.direct-link { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; text-decoration: none; color: var(--ink); word-break: break-all; }
.direct-link .ico { color: var(--brass-text); flex: none; }
@media (max-width: 52rem) { .quote { padding: 1.5rem 1.1rem; } .quote-grid { grid-template-columns: 1fr; gap: 1rem; } }

.qform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 36rem) { .qform .row2 { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field input:not([type]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .65rem .75rem; border: 1.5px solid #b9bfd0; border-radius: var(--radius); background: var(--white); color: var(--text);
}
.field input[list] { width: 100%; font: inherit; padding: .65rem .75rem; border: 1.5px solid #b9bfd0; border-radius: var(--radius); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-2); outline: 2px solid var(--ink-soft); }
.field input[type=file] { font-size: .95rem; max-width: 100%; }
.field [aria-invalid=true] { border-color: var(--danger); }
.field.check { display: flex; gap: .6rem; align-items: flex-start; }
.field.check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; flex: none; accent-color: var(--ink-2); }
.field.check label { font-weight: 400; font-size: .93rem; color: var(--muted); }
.hint { font-size: .88rem; color: var(--muted); margin: .3rem 0 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-weight: 600; }
.form-status.err { color: var(--danger); }
.form-status.ok { color: var(--ok); }

/* ------------------------------------------------ legal */
.legal { display: grid; grid-template-columns: 14rem 1fr; gap: .5rem 1rem; margin: 2rem 0; }
.legal dt { font-weight: 600; color: var(--ink); }
.legal dd { margin: 0; }
@media (max-width: 36rem) { .legal { grid-template-columns: 1fr; } .legal dd { margin-bottom: .6rem; } }

.thanks { padding: 4rem 0; }
.chooser main { padding: 4rem 1.25rem; }

/* ------------------------------------------------ footer */
.site-foot { background: var(--ink); color: #c5cbe3; margin-top: 2rem; font-size: .95rem; }
.site-foot a { color: #e4e8f7; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: .2rem 0; }
.foot-logo { font: 600 1.25rem var(--serif); color: var(--white); }
.foot-h { font-weight: 600; color: var(--brass); margin-bottom: .6rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.2rem; padding-bottom: 1.5rem; }
.foot-base p { margin: 0; }
.foot-base ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; padding: 0; }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .foot-grid { grid-template-columns: 1fr; } }

@media print { .site-head, .site-foot, .quote, .head-cta { display: none; } body { background: #fff; } }
