/* ABC Translation Croatia
   Official-document vernacular: stamp-ink blue, paper white, Croatian seal red,
   and the red-white-blue cord (jamstvenik) that binds a certified translation. */

@font-face { font-family: "Spectral"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/spectral-400.woff") format("woff"); }
@font-face { font-family: "Spectral"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/spectral-600.woff") format("woff"); }
@font-face { font-family: "Public Sans"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../fonts/public-sans-var.woff") format("woff"); }

:root {
  --ink: #1E3765;
  --ink-deep: #142849;
  --ink-soft: #E7ECF5;
  --paper: #FFFFFF;
  --mist: #F3F5F9;
  --text: #1A2233;
  --muted: #535E72;
  --rule: #D6DCE6;
  --seal: #B3202D;
  --focus: #F2B705;
  --cord: repeating-linear-gradient(-60deg, #C8102E 0 5px, #FFFFFF 5px 10px, #1E3765 10px 15px);
  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans); font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--seal); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { color: var(--ink-deep); margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.18; }
h3 { font-family: var(--sans); font-size: 1.075rem; font-weight: 650; line-height: 1.35; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; color: #fff; }

/* buttons */
.btn {
  display: inline-block; background: var(--ink); color: #fff; border: 2px solid var(--ink);
  padding: .72em 1.3em; border-radius: var(--radius); font: 600 1rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.btn-small { padding: .5em .95em; font-size: .9rem; }
.btn-block { display: block; text-align: center; }
.btn-light { background: #fff; color: var(--ink-deep); border-color: #fff; }
.btn-light:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--ink-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 600 1.2rem/1.1 var(--serif); color: var(--ink-deep); }
.brand-sub { font-size: .8rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 10px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; border-radius: var(--radius); }
.site-nav ul a:hover { color: var(--ink); background: var(--mist); }
.site-nav ul a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--seal); border-radius: 0; }
.nav-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { font-weight: 600; font-size: .92rem; text-decoration: none; padding: 6px 2px; }
.nav-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 14px; font: 600 .95rem var(--sans); color: var(--ink); cursor: pointer; }

@media (max-width: 1020px) {
  .js .nav-btn { display: block; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 12px; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 12px var(--gutter) 20px; box-shadow: 0 12px 24px -16px rgba(20, 40, 73, .35); }
  .js .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 10px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--mist); }
  .header-inner { flex-wrap: wrap; position: relative; }
  html:not(.js) .header-inner { padding-bottom: 12px; }
  html:not(.js) .site-nav { width: 100%; }
  .nav-tools { justify-content: space-between; }
}

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

/* home hero */
.home-hero { overflow-x: clip; padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { max-width: 19ch; font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.lede { font-size: clamp(1.1rem, 1.02rem + .35vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 1.4em; }
.hero-alt { color: var(--muted); font-size: .95rem; }

/* the document card */
.paper {
  position: relative; background: #fff; border: 1px solid var(--rule);
  padding: 32px 30px 36px 52px; border-radius: 2px;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(20, 40, 73, .45);
  transform: rotate(1.2deg);
}
.paper::before { /* punched holes for the binding cord */
  content: ""; position: absolute; left: 18px; top: 28px; bottom: 28px; width: 10px;
  background: radial-gradient(circle, var(--mist) 3.5px, var(--rule) 4px, transparent 4.5px) center top / 10px 56px repeat-y;
}
.paper-cord { position: absolute; left: 20px; top: 18px; bottom: 18px; width: 6px; border-radius: 3px; background: var(--cord); background-size: 100% 15px; }
.paper-title { font: 600 1.35rem/1.2 var(--serif); color: var(--ink-deep); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.paper-fields { list-style: none; counter-reset: f; margin: 0; padding: 0; }
.paper-fields li { counter-increment: f; display: grid; grid-template-columns: 1.6em 1fr; column-gap: 8px; padding: 9px 0; border-bottom: 1px dotted var(--rule); }
.paper-fields li::before { content: counter(f) "."; grid-row: span 2; font: 600 1rem/1.5 var(--serif); color: var(--ink); }
.pf-k { font-weight: 650; color: var(--ink-deep); }
.pf-v { color: var(--muted); font-size: .92rem; }
.stamp { position: absolute; right: -22px; bottom: -34px; width: 150px; height: 150px; color: var(--seal); transform: rotate(-14deg); opacity: .92; mix-blend-mode: multiply; }

/* sections */
.home-section { padding: clamp(48px, 7vw, 88px) 0; }
.tint { background: var(--mist); }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* service list: ruled two-column index */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 2px solid var(--ink); }
.service-list li { padding: 18px 0 16px; border-bottom: 1px solid var(--rule); }
.service-list a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.service-list .ico { width: 28px; height: 28px; flex-shrink: 0; color: var(--seal); }
.sl-name { font: 600 1.28rem/1.25 var(--serif); color: var(--ink-deep); }
.service-list a:hover .sl-name { color: var(--seal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.service-list p { margin: 6px 0 0 40px; color: var(--muted); font-size: .97rem; }
.page-main .service-list { grid-template-columns: 1fr; }

/* steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 52px 22px 0 0; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); color: var(--ink); font: 600 1.05rem/32px var(--serif); text-align: center; background: var(--paper); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 17px; left: 36px; right: 0; height: 2px; background: var(--rule); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted); font-size: .97rem; }
.page-main .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
.page-main .steps li:nth-child(2)::after { display: none; }

.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.workers { border-left: 4px solid var(--seal); padding: 4px 0 4px 24px; }

.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 24px; }
.link-grid li { border-bottom: 1px solid var(--rule); }
.link-grid a { display: block; padding: 10px 0; text-decoration: none; font-weight: 500; }
.link-grid a:hover { text-decoration: underline; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); text-decoration: none; color: var(--ink-deep); font-size: .95rem; font-weight: 500; }
.chips a:hover { border-color: var(--ink); color: var(--ink); background: var(--ink-soft); }
.chips-small a { font-size: .875rem; padding: 4px 11px; }

.county-dir { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 40px; }
.county-dir li { break-inside: avoid; padding: 0 0 18px; }
.county-name { font: 600 1.08rem/1.3 var(--serif); color: var(--ink-deep); text-decoration: none; }
.county-name:hover { color: var(--seal); text-decoration: underline; }
.county-dir p { margin: 4px 0 0; font-size: .93rem; color: var(--muted); }
.county-dir p a { color: var(--muted); }
.county-dir p a:hover { color: var(--ink); }

/* faq */
.faq { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative; font-weight: 650; color: var(--ink-deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-a { padding: 0 0 12px; color: var(--muted); max-width: 70ch; }

/* inner pages */
.page-hero { padding: clamp(24px, 4vw, 44px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--rule); position: relative; }
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .hero-actions { margin-top: 1.2em; margin-bottom: 0; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px); align-items: start; }
.page-grid-full { grid-template-columns: minmax(0, 1fr); }
.page-main { min-width: 0; }
.block { margin-bottom: clamp(36px, 5vw, 56px); }
.block:last-child { margin-bottom: 0; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--seal); }
.more { margin-top: 14px; font-weight: 600; }
.doc-row { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.doc-row:first-child { border-top: 2px solid var(--ink); }
.doc-row h2 { font-size: 1.35rem; margin-bottom: .3em; }
.doc-row h2 a { text-decoration: none; color: var(--ink-deep); }
.doc-row h2 a:hover { color: var(--seal); text-decoration: underline; }
.doc-row p { color: var(--muted); margin: 0; }

.page-aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.quote-card { border: 1px solid var(--rule); border-top: 4px solid var(--ink); padding: 22px; background: var(--paper); }
.quote-card p { font-size: .97rem; }
.quote-card .qc-title { font: 600 1.2rem/1.25 var(--serif); color: var(--ink-deep); }
.qc-contact { margin: 16px 0 0; font-size: .95rem; }
.qc-label { font-size: .85rem; color: var(--muted); }
.quote-card-plain { border-top-color: var(--rule); background: var(--mist); }
.mini-steps { margin: 0; padding-left: 1.2em; font-size: .93rem; color: var(--muted); }
.mini-steps li { margin-bottom: .6em; }
.mini-steps strong { color: var(--text); }

.simple-body { padding-top: 32px; padding-bottom: 72px; }

/* CTA band */
.cta-band { background: var(--ink); color: #DDE4F0; padding: clamp(40px, 6vw, 64px) 0; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-band a:not(.btn) { color: #fff; }
.cta-actions { display: grid; gap: 14px; justify-items: start; }

/* footer */
.site-footer { background: var(--ink-deep); color: #B9C4D8; font-size: .93rem; }
.cord { height: 6px; background: var(--cord); background-size: 15px 100%; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.site-footer a { color: #E4E9F2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.footer-name { font: 600 1.3rem var(--serif); color: #fff; }
.footer-h { color: #fff; font-weight: 650; margin-bottom: .6em; }
.footer-h-2 { margin-top: 1.4em; }
.footer-contact { font-size: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; padding-bottom: 26px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { margin-left: 14px; }
.footer-bottom a:first-child { margin-left: 0; }

/* form */
.quote-form { max-width: 760px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink-deep); }
.req, .opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1px solid #AEB8C8; border-radius: var(--radius); padding: 10px 12px; width: 100%;
}
.field input[type=text], .field input[type=email], .field input[type=tel], .field select { min-height: 48px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid rgba(30, 55, 101, .2); outline-offset: 0; }
.field input[type=file] { font-size: .95rem; padding: 10px; border: 1px dashed #AEB8C8; border-radius: var(--radius); background: var(--mist); }
.field-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field-check input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--ink); }
.field-check label { font-weight: 400; color: var(--text); }
.field .invalid, .field-check .invalid { border-color: var(--seal) !important; outline: 2px solid rgba(179, 32, 45, .25); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-left: 4px solid var(--seal); background: #FBEDEE; color: #6E1219; padding: 14px 16px; margin-bottom: 22px; }
.form-alert:focus { outline: none; }
.quote-form button[disabled] { opacity: .7; cursor: progress; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .cta-inner { grid-template-columns: 1fr; }
  .paper { max-width: 520px; margin-right: 26px; }
  .page-grid { grid-template-columns: 1fr; }
  .page-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .service-list { grid-template-columns: 1fr; }
  .steps, .page-main .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 0 52px; min-height: 40px; }
  .steps li::after { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .paper { padding: 26px 20px 30px 46px; transform: none; margin-right: 0; }
  .stamp { width: 112px; height: 112px; right: 4px; bottom: -40px; }
  .home-hero { padding-bottom: 64px; }
  .footer-bottom a { margin-left: 0; margin-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .page-aside, .hero-actions { display: none; }
}
