/* Olifant site. Brand: Vault/40-49 Work/41 Olifant/Logo i brend/Olifant logo 2026/Brand guide.md */

:root {
  --ink: #2B2B2B;
  --ink-soft: #55605E;
  --teal: #2F6B66;
  --teal-deep: #214C49;
  --teal-mid: #418984;
  --mist: #B1CFCC;
  --wash: #F1F6F5;
  --rule: #D9E4E2;
  --paper: #FFFEFA;
  --pencil: #2E4A8C;
  --white: #FFFFFF;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--teal-deep); }

:focus-visible { outline: 3px solid var(--teal-mid); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4rem); max-width: 14ch; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); max-width: 22ch; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 48rem; }

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

.draft { background: #FFE58A; color: var(--ink); padding: 0 0.25em; border-radius: 3px; font-weight: 500; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85em 1.4em;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--teal-deep); color: var(--white); }
.btn-small { font-size: 0.95rem; padding: 0.65em 1.1em; }
.btn-light { background: var(--white); color: var(--teal-deep); }
.btn-light:hover { background: var(--mist); color: var(--teal-deep); }
.link-quiet { font-weight: 500; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--white); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; }
.wordmark { font-weight: 600; letter-spacing: 0.35em; font-size: 1.05rem; margin-right: -0.35em; }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: 0.98rem; }
.main-nav a { color: var(--ink); text-decoration: none; }
.main-nav a:hover { color: var(--teal); text-decoration: underline; }
.main-nav .lang { color: var(--ink-soft); border-left: 1px solid var(--rule); padding-left: 1.6rem; }
.main-nav .lang:only-child { border-left: 0; padding-left: 0; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lead { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); color: var(--ink); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin: 2rem 0 1.25rem; }
.hero-note { color: var(--ink-soft); font-size: 0.98rem; max-width: 30rem; }

/* The transfer: paper on the left, program on the right */
.transfer {
  margin: 0;
  display: grid;
  grid-template-columns: 0.95fr auto 1.15fr;
  align-items: center;
  gap: 0.75rem;
}
.transfer figcaption { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.98rem; margin-top: 1rem; }

.paper {
  position: relative;
  background: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 1.9rem, #E6EEF0 1.9rem calc(1.9rem + 1px));
  border: 1px solid #E4E2D8;
  padding: 1.1rem 1.1rem 1.6rem;
  font-size: 0.9rem;
  box-shadow: 0 1px 0 #E4E2D8, 0 18px 30px -18px rgba(33, 76, 73, 0.35);
  transform: rotate(-1.6deg);
}
.paper-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 0.35rem; margin-bottom: 0.6rem; }
.paper-title { font-weight: 600; }
.paper-buyer { margin: 0 0 0.5rem; }
.paper-items { width: 100%; border-collapse: collapse; }
.paper-items th { text-align: left; font-weight: 500; color: var(--ink-soft); font-size: 0.8rem; border-bottom: 1px solid #CFCBBE; padding: 0.2rem 0; }
.paper-items th:last-child, .paper-items td:last-child { text-align: right; }
.paper-items td { padding: 0.3rem 0; }
.hand { font-family: var(--hand); color: var(--pencil); font-size: 1.35rem; line-height: 1; }
.stamp {
  position: absolute; right: 0.8rem; bottom: -0.6rem;
  font-weight: 700; font-size: 0.8rem; color: #8E3B46;
  border: 2px solid #8E3B46; border-radius: 4px; padding: 0.1rem 0.45rem;
  transform: rotate(-8deg); opacity: 0.75; background: rgba(255,254,250,0.6);
}

.arrow { color: var(--teal-mid); }

.screen {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.85rem;
  box-shadow: 0 18px 30px -20px rgba(33, 76, 73, 0.4);
}
.screen-bar { background: var(--teal-deep); color: var(--white); padding: 0.45rem 0.75rem; font-size: 0.8rem; font-weight: 500; }
.screen-rows { width: 100%; border-collapse: collapse; }
.screen-rows th { text-align: left; font-weight: 500; color: var(--ink-soft); background: var(--wash); padding: 0.35rem 0.6rem; font-size: 0.78rem; }
.screen-rows td { white-space: nowrap; padding: 0.45rem 0.6rem; border-top: 1px solid var(--rule); }
.screen-rows th:last-child, .screen-rows td:last-child { text-align: right; }
.screen-check { display: flex; align-items: center; gap: 0.45rem; margin: 0; padding: 0.55rem 0.6rem; border-top: 1px solid var(--rule); color: var(--teal-deep); font-weight: 500; }
.tick { width: 1rem; height: 1rem; border-radius: 50%; background: var(--teal); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 0.33rem; top: 0.18rem; width: 0.25rem; height: 0.5rem; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* The one orchestrated moment: fields get picked up, rows fill in */
@media (prefers-reduced-motion: no-preference) {
  .f { animation: pick 0.9s ease both; }
  .f1 { animation-delay: 0.5s; } .f2 { animation-delay: 1.1s; } .f3 { animation-delay: 1.7s; } .f4 { animation-delay: 2.3s; }
  .r { animation: fill 0.5s ease both; }
  .r1 { animation-delay: 1.5s; } .r2 { animation-delay: 2.1s; } .r3 { animation-delay: 2.7s; } .r4 { animation-delay: 3.3s; }
}
@keyframes pick {
  0% { background: transparent; }
  40% { background: var(--mist); }
  100% { background: rgba(177, 207, 204, 0.35); }
}
@keyframes fill {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.section { padding: var(--space) 0; }
.section-tint { background: var(--wash); }
.section-head { margin-bottom: 2.5rem; max-width: 44rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* The ledger: a month of manual work */
.ledger { overflow-x: auto; border-top: 2px solid var(--ink); }
.ledger table { width: 100%; border-collapse: collapse; min-width: 46rem; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); }
.ledger thead th { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); padding-top: 0.75rem; padding-bottom: 0.75rem; }
.ledger tbody th { font-weight: 600; width: 13%; }
.ledger td { color: var(--ink); width: 30%; }
.ledger .num { text-align: right; white-space: nowrap; width: 7%; font-variant-numeric: tabular-nums; padding-right: 0; padding-left: 1rem; }
.ledger tbody td.num:nth-last-child(2) { color: var(--ink-soft); }
.ledger tbody td.num s { text-decoration: line-through; text-decoration-color: rgba(142, 59, 70, 0.55); text-decoration-thickness: 2px; }
.ledger tbody td.num:last-child { color: var(--teal-deep); font-weight: 600; }
.ledger tfoot th, .ledger tfoot td { border-bottom: 2px solid var(--ink); font-weight: 600; font-size: 1.1rem; }
.ledger tfoot .total { color: var(--teal-deep); }
.ledger .basis { display: block; font-size: 0.8rem; font-weight: 400; color: var(--ink-soft); margin-top: 0.2rem; }

.saving { display: grid; grid-template-columns: auto 1fr; gap: 1rem 2.5rem; align-items: center; margin-top: 2.5rem; }
.saving-figure { font-size: 1.15rem; margin: 0; max-width: 22rem; line-height: 1.3; }
.saving-figure span { display: block; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem); font-weight: 600; color: var(--teal-deep); line-height: 1; margin-bottom: 0.2rem; }
.saving p:last-child { margin: 0; max-width: 34rem; }
.fineprint { color: var(--ink-soft); font-size: 0.9rem; margin-top: 2rem; max-width: 46rem; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--teal); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-size: 2.2rem; font-weight: 600; color: var(--teal); line-height: 1; margin-bottom: 0.75rem; }
.steps p { margin: 0; color: var(--ink); }

/* Offers */
.offers { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.25rem; align-items: stretch; }
.offer { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.offer p { font-size: 1rem; }
.offer .price { font-size: 1.2rem; font-weight: 600; color: var(--teal-deep); margin-bottom: 0.8rem; }
.offer-main { border: 2px solid var(--teal); background: var(--wash); }
.offer-main .btn { margin-top: auto; align-self: flex-start; }

/* Reassurance */
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); }
.two-col > div p { color: var(--ink-soft); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.plain-list li:first-child { padding-top: 0; }
.plain-list strong { display: block; font-weight: 600; }

/* FAQ */
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); margin-top: 1.5rem; }
summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.45rem; width: 0.6rem; height: 0.6rem; border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
details p { padding-bottom: 1.1rem; margin: 0; max-width: 42rem; }

/* Contact */
.contact { background: var(--teal-deep); color: var(--white); padding: var(--space) 0; }
.contact a { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-copy p { color: #DCEBE9; max-width: 30rem; }
.contact-details { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; margin: 2rem 0 0; }
.contact-details dt { color: var(--mist); }
.contact-details dd { margin: 0; }

.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 500; margin-bottom: 0.35rem; }
.field input[type="text"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid transparent; border-radius: var(--radius); padding: 0.7rem 0.8rem;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--mist); outline-offset: 1px; }
.optional { font-weight: 400; color: var(--mist); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--mist); }
.check label { font-weight: 400; margin: 0; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Secondary service and footer */
.aside-band { border-bottom: 1px solid var(--rule); padding: 2rem 0; }
.aside-band p { margin: 0; }
.site-footer { padding: 2.5rem 0 3rem; font-size: 0.95rem; color: var(--ink-soft); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.footer-row p { margin: 0; }
.footer-row nav { display: flex; gap: 1.5rem; margin-left: auto; }
.brand-footer img { width: 32px; }
.brand-footer .wordmark { font-size: 0.95rem; color: var(--ink); }

.form-status { margin: 0; padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--white); color: var(--teal-deep); }
.form-status a { color: var(--teal-deep); }
.form-status-greska { background: #FBEDEE; color: #6E2832; }
.form-status-greska a { color: #6E2832; }
.field [aria-invalid="true"] { border-color: #E9A3AC; }

/* Text pages: privacy, legal information, thank you, 404 */
.page { padding: clamp(3rem, 7vw, 5rem) 0 var(--space); }
.page h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem); max-width: 20ch; }
.page h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem); margin-top: 2.5rem; }
.page .lead { color: var(--ink-soft); margin-bottom: 2rem; }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: 0.35rem; }
.facts { width: 100%; border-collapse: collapse; margin: 1.5rem 0; border-top: 2px solid var(--ink); }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
.facts th { font-weight: 500; color: var(--ink-soft); width: 40%; }
.updated { color: var(--ink-soft); font-size: 0.95rem; margin-top: 3rem; }

[hidden] { display: none !important; }

.hero-grid > *, .transfer > *, .contact-grid > *, .two-col > * { min-width: 0; }

/* Smaller screens */
@media (max-width: 64rem) {
  .main-nav a:not(.lang) { display: none; }
  .main-nav .lang { border-left: 0; padding-left: 0; }
  .header-row { gap: 1rem; justify-content: space-between; }
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .offers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 40rem) {
  .header-row .btn-small { display: none; }
  .transfer { grid-template-columns: 1fr; }
  .arrow { justify-self: center; transform: rotate(90deg); }
  .paper { transform: rotate(-1deg); }
  .steps, .offers, .two-col, .contact-grid, .saving { grid-template-columns: 1fr; }
  .footer-row nav { margin-left: 0; flex-wrap: wrap; }
  .facts th, .facts td { display: block; width: auto; padding: 0; border: 0; }
  .facts tr { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
  .screen-rows td { white-space: normal; }

  /* Ledger becomes one block per job */
  .ledger { overflow: visible; }
  .ledger table { min-width: 0; }
  .ledger thead { display: none; }
  .ledger tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
  .ledger tbody th, .ledger tbody td { display: block; width: auto; padding: 0; border: 0; }
  .ledger tbody th { grid-column: 1 / -1; font-size: 1.1rem; }
  .ledger tbody td:not(.num) { grid-column: 1 / -1; }
  .ledger tbody td::before { content: attr(data-label); display: block; font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; }
  .ledger .num { text-align: left; padding: 0.3rem 0 0; }
  .ledger tfoot tr { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; padding: 1rem 0; border-bottom: 2px solid var(--ink); }
  .ledger tfoot th, .ledger tfoot td { border: 0; padding: 0; }
}
