/* ABC Translation India — abc-office.in
   Visual language: the endorsed document. Registry ink, paper stock,
   ruled fields, one stamp-red accent used only for marks of authority. */

:root {
  --ink: #101b2e;
  --ink-2: #3a4763;
  --ink-3: #6d788f;
  --paper: #f9f9f6;
  --paper-2: #ffffff;
  --paper-3: #f1f1ec;
  --rule: #d9d9d0;
  --rule-2: #c3c3b7;
  --seal: #a6321e;
  --seal-tint: #f6ebe8;
  --endorse: #1b5e4a;
  --brass: #9a7b33;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif Devanagari", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans Devanagari", "Nirmala UI", Arial, sans-serif;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --stack: clamp(3rem, 7vw, 5.5rem);
}

html[lang="hi"] {
  --serif: "Noto Serif Devanagari", "Nirmala UI", "Mangal", "Iowan Old Style", Georgia, serif;
  --sans: "Noto Sans Devanagari", "Nirmala UI", "Mangal", ui-sans-serif, system-ui, Arial, sans-serif;
  --measure: 60ch;
}

*, *::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 { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
}
html[lang="hi"] body { line-height: 1.8; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); margin-top: 0; }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 650; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { line-height: 1.35; letter-spacing: 0; }

a { color: var(--ink); text-decoration-color: var(--rule-2); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--seal); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 1px;
}

img, svg { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--stack) 0; }

.wrap { max-width: 78rem; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--paper-2); padding: .6rem 1rem; border: 1px solid var(--ink); }

/* ---------------------------------------------------------------- header -- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.masthead-in { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.brand { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; text-decoration: none; display: flex; align-items: baseline; gap: .55rem; white-space: nowrap; }
.brand-mark { display: inline-block; width: 1.45rem; height: 1.45rem; border: 1.5px solid var(--seal); border-radius: 50%; color: var(--seal); font-family: var(--serif); font-size: .82rem; line-height: 1.32rem; text-align: center; transform: rotate(-9deg); flex: none; }
.brand-sub { font-family: var(--sans); font-size: .74rem; font-weight: 500; color: var(--ink-3); letter-spacing: .04em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.35rem; font-size: .93rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--seal); }
.nav-cta { border: 1px solid var(--ink); padding: .42rem .9rem; color: var(--ink) !important; }
.nav-cta:hover { background: var(--ink); color: var(--paper-2) !important; }
.langswitch { font-size: .88rem; border-left: 1px solid var(--rule); padding-left: 1.35rem; }
.navtoggle { display: none; background: none; border: 1px solid var(--rule-2); font: inherit; font-size: .9rem; padding: .35rem .7rem; cursor: pointer; margin-left: auto; }

@media (max-width: 62rem) {
  .navtoggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper-2); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem var(--gutter) 1rem; z-index: 20; }
  .nav.open { display: flex; }
  .nav a { padding: .6rem 0; width: 100%; border-bottom: 1px solid var(--paper-3); }
  .langswitch { border-left: 0; padding-left: 0; }
  .masthead-in { position: relative; }
}

/* ------------------------------------------------------------------ hero -- */
.hero { border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 6vw, 4.75rem); align-items: start; }
.hero p.lede { font-size: 1.14rem; color: var(--ink-2); }
.hero-h1 { text-wrap: balance; }
@media (max-width: 58rem) { .hero-in { grid-template-columns: 1fr; } }

/* the endorsement card — modelled on the layout of an apostille certificate */
.record { border: 1px solid var(--ink); background: var(--paper-2); box-shadow: 0 0 0 1px var(--paper-2) inset, 0 0 0 4px var(--paper-2), 0 0 0 5px var(--rule); position: relative; }
.record-head { border-bottom: 1px solid var(--ink); padding: .85rem 1.15rem; font-family: var(--serif); }
.record-head b { display: block; font-size: 1.02rem; font-weight: 600; }
.record-head span { font-family: var(--sans); font-size: .76rem; color: var(--ink-3); font-style: normal; }
.record dl { margin: 0; }
.record dt { font-family: var(--serif); font-size: .82rem; font-style: italic; color: var(--ink-3); padding: .7rem 1.15rem 0; }
.record dd { margin: 0; padding: 0 1.15rem .7rem; font-size: .97rem; border-bottom: 1px dotted var(--rule-2); }
.record dd:last-of-type { border-bottom: 0; }
.record-foot { border-top: 1px solid var(--ink); padding: .8rem 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--ink-3); }
.seal {
  width: 4.1rem; height: 4.1rem; flex: none; border: 1.5px solid var(--seal); border-radius: 50%;
  color: var(--seal); display: grid; place-content: center; text-align: center; line-height: 1.15;
  font-family: var(--serif); font-size: .6rem; transform: rotate(-11deg); opacity: .92;
}
.seal b { display: block; font-size: .78rem; letter-spacing: .02em; }
@media (prefers-reduced-motion: no-preference) {
  .seal { animation: stamp .5s cubic-bezier(.2, .9, .3, 1.4) both; }
  @keyframes stamp { from { transform: rotate(-11deg) scale(1.5); opacity: 0; } to { transform: rotate(-11deg) scale(1); opacity: .92; } }
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.btn { display: inline-block; font: inherit; font-size: .97rem; font-weight: 550; padding: .68rem 1.35rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper-2); text-decoration: none; cursor: pointer; }
.btn:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper-2); }

/* --------------------------------------------------------------- sections-- */
.section { padding-block: var(--stack); border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: 0; }
.section-head { max-width: var(--measure); margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-2); margin-bottom: 0; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.5rem; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: .45rem; }

.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid > * { background: var(--paper-2); padding: 1.5rem 1.4rem; }
.grid h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.grid h3 a { text-decoration: none; }
.grid h3 a:hover { text-decoration: underline; text-decoration-color: var(--seal); }
.grid p { font-size: .95rem; color: var(--ink-2); margin-bottom: 0; }

/* ruled two-column feature list */
.ruled { list-style: none; padding: 0; margin: 0; max-width: 44rem; }
.ruled li { padding: .85rem 0 .85rem 1.9rem; border-bottom: 1px solid var(--rule); position: relative; }
.ruled li::before { content: "✓"; position: absolute; left: 0; top: .85rem; color: var(--endorse); font-size: .95rem; }
.ruled li:last-child { border-bottom: 0; }

/* process — genuinely sequential, so numbered */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: s; background: var(--paper-2); padding: 1.5rem 1.4rem; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: .9rem; color: var(--seal); border: 1px solid var(--seal); width: 1.7rem; height: 1.7rem; display: grid; place-content: center; border-radius: 50%; margin-bottom: .8rem; }
.steps h3 { font-size: 1.04rem; font-family: var(--sans); font-weight: 650; }
.steps p { font-size: .94rem; color: var(--ink-2); margin: 0; }

/* link clusters for locations / languages */
.cols { columns: 4 12rem; column-gap: 2rem; }
.cols ul { list-style: none; margin: 0; padding: 0; }
.cols li { break-inside: avoid; padding: .26rem 0; font-size: .95rem; }
.linkgroup { break-inside: avoid; margin-bottom: 1.6rem; }
.linkgroup h3 { font-size: .98rem; font-family: var(--sans); font-weight: 650; margin-bottom: .3rem; padding-bottom: .3rem; border-bottom: 1px solid var(--rule); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.2rem 0 0; list-style: none; }
.tags li a { display: inline-block; border: 1px solid var(--rule-2); padding: .3rem .7rem; font-size: .89rem; text-decoration: none; background: var(--paper-2); }
.tags li a:hover { border-color: var(--ink); }

/* breadcrumbs */
.crumbs { font-size: .84rem; color: var(--ink-3); padding-block: .85rem; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .45rem; color: var(--rule-2); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-3); }

/* page header block */
.pagehead { padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 2.5rem); border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.pagehead p.lede { font-size: 1.1rem; color: var(--ink-2); max-width: var(--measure); margin-bottom: 0; }
.kicker { font-family: var(--serif); font-style: italic; color: var(--seal); font-size: .95rem; margin-bottom: .5rem; }

/* FAQ */
.faq { max-width: var(--measure); border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; font-family: var(--serif); font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--seal); font-size: 1.15rem; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: .5rem; font-size: .98rem; color: var(--ink-2); }

/* callout */
.note { border-left: 3px solid var(--brass); background: var(--paper-2); padding: 1.1rem 1.25rem; max-width: var(--measure); }
.note p:last-child { margin-bottom: 0; }
.note strong { font-weight: 650; }

/* ------------------------------------------------------------------ form -- */
.quote { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 58rem) { .quote { grid-template-columns: 1fr; } }
.form { background: var(--paper-2); border: 1px solid var(--ink); padding: clamp(1.4rem, 3vw, 2.1rem); }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .89rem; font-weight: 600; margin-bottom: .32rem; }
.field .hint { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; padding: .62rem .7rem;
  border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink); border-radius: 0;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--paper-2); border-color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
@media (max-width: 34rem) { .row { grid-template-columns: 1fr; } }
.drop { border: 1.5px dashed var(--rule-2); background: var(--paper); padding: 1.1rem; text-align: center; font-size: .92rem; color: var(--ink-2); }
.drop.over { border-color: var(--seal); background: var(--seal-tint); }
.drop input[type="file"] { display: block; margin: .6rem auto 0; font-size: .86rem; max-width: 100%; }
.filelist { list-style: none; margin: .7rem 0 0; padding: 0; font-size: .88rem; text-align: left; }
.filelist li { padding: .25rem 0; border-bottom: 1px dotted var(--rule); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.consent input { width: auto; margin-top: .25rem; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formnote { font-size: .84rem; color: var(--ink-3); margin-top: .9rem; }
.formstatus { margin-top: 1rem; padding: .8rem 1rem; font-size: .93rem; display: none; }
.formstatus.ok { display: block; border-left: 3px solid var(--endorse); background: #eef5f2; }
.formstatus.err { display: block; border-left: 3px solid var(--seal); background: var(--seal-tint); }
.field-error { border-color: var(--seal) !important; }

.contactcard { border: 1px solid var(--rule); background: var(--paper-2); padding: 1.5rem 1.4rem; }
.contactcard dt { font-size: .82rem; color: var(--ink-3); margin-top: .9rem; }
.contactcard dt:first-child { margin-top: 0; }
.contactcard dd { margin: .1rem 0 0; font-size: 1.02rem; }

/* ---------------------------------------------------------------- footer -- */
.footer { background: var(--ink); color: #c8cddb; padding-block: 3.25rem 2rem; font-size: .92rem; }
.footer a { color: #e7eaf1; text-decoration-color: #4a5773; }
.footer a:hover { text-decoration-color: #fff; }
.footer h3 { color: #fff; font-family: var(--sans); font-size: .88rem; font-weight: 650; margin-bottom: .7rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: .2rem 0; }
.footer-base { border-top: 1px solid #263248; margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .86rem; color: #8e99ae; }

/* sticky mobile call bar */
.callbar { position: fixed; inset: auto 0 0 0; display: none; background: var(--paper-2); border-top: 1px solid var(--rule); padding: .55rem var(--gutter); gap: .6rem; z-index: 30; }
.callbar a { flex: 1; text-align: center; font-size: .93rem; padding: .6rem; text-decoration: none; border: 1px solid var(--ink); }
.callbar a.primary { background: var(--ink); color: var(--paper-2); }
@media (max-width: 46rem) { .callbar { display: flex; } body { padding-bottom: 3.6rem; } }

.subhead { margin-top: 2rem; font-family: var(--sans); font-size: .98rem; font-weight: 650; }
.mt { margin-top: 1.5rem; }
.meta { font-size: .95rem; color: var(--ink-3); }
.footer-note { max-width: 44rem; margin-top: 2.5rem; color: #8e99ae; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
