/* ASV Skopje — stylesheet for the commerce/legal pages required by Halkbank
   (prices, policies, card-scheme indicators).

   Typography deliberately matches the existing asv.mk template: Crimson Text
   for body copy, Montserrat for headings and navigation. Self-contained on
   purpose — it does not depend on the template's Bootstrap/jQuery stack, so
   these pages cannot break when that theme is touched. */

:root {
  /* Palette taken from the Agency's own banner: the field behind the wordmark
     samples as #000070, and the light blue of "А.С.В — СКОПЈЕ" as #A9C9E3.
     Those two are the brand; everything here is derived from them. */
  --navy:        #000070;   /* brand navy, exact */
  --navy-deep:   #01062E;   /* deepest ground — hero, reconstruction */
  --navy-800:    #040C46;   /* dark sections */
  --navy-line:   #1b2a6b;   /* borders on dark */

  --ink: #16203a;
  --muted: #5c6780;
  --line: #dde3ee;
  --bg: #f4f7fc;
  --card: #ffffff;

  /* Kept the --dark / --accent names so every rule below and in asv-home.css
     picks the new colours up without being rewritten. */
  --dark: var(--navy-800);
  --dark-2: var(--navy-deep);
  --accent: #8fc9f0;        /* light blue — for use on navy */
  --accent-dark: #14509b;   /* deep blue — links on white, AA contrast */

  --warn-bg: #fff8e8;
  --warn-line: #e8a33d;
  --info-bg: #eef3fb;
  --info-line: var(--accent-dark);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Crimson Text', Georgia, 'Times New Roman', Times, serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

.asv-wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* --- top bar --- */

.asv-topbar {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.asv-topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.asv-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

/* The source artwork is dark blue on white paper. For dark surfaces the white
   is luma-keyed away and the remaining line work painted in the brand light
   blue (logo-emblem-light.png) — so no white rectangle shows through, and the
   emblem keeps its exact shape. The full logo with its wordmark is used on the
   light plate in the footer instead. */
.asv-brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
  transition: transform .25s ease, width .25s ease, height .25s ease;
}

.asv-brand:hover .asv-brand-logo { transform: scale(1.05); }

.asv-topbar.is-stuck .asv-brand-logo { width: 32px; height: 32px; }

.asv-brand-mark {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: #fff;
}

.asv-brand-text {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 200;
  font-size: 0.8rem;
  color: #b9c0cb;
  letter-spacing: .3px;
}

.asv-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; }

.asv-nav a {
  display: block;
  padding: 7px 12px;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 300;
  font-size: 0.76rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #c2c9d4;
  text-decoration: none;
  border-radius: 3px;
  white-space: nowrap;
  transition: .25s all ease;
}

.asv-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.asv-nav a.active { color: var(--accent); }

/* --- page head --- */

.asv-page-head {
  background: var(--dark-2);
  color: #fff;
  padding: 46px 0 40px;
}

.asv-page-head h1 {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: .4px;
}

/* --- content --- */

main { padding: 34px 20px 50px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 38px 40px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(1,6,46,.05);
}

h1 { font-family: Montserrat, Arial, sans-serif; font-weight: 400; font-size: 1.6rem; margin-bottom: 8px; line-height: 1.3; }

h2 {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--dark);
  margin: 30px 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
h2:first-child { margin-top: 0; }

h3 { font-family: Montserrat, Arial, sans-serif; font-weight: 500; font-size: 1rem; margin: 22px 0 8px; }

p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 24px; }
li { margin-bottom: 7px; }

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.updated { color: #9aa2ad; font-size: 0.85rem; font-family: Montserrat, Arial, sans-serif; margin-bottom: 22px; }

.lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 22px; }

.note {
  background: var(--info-bg);
  border-left: 3px solid var(--info-line);
  padding: 15px 18px;
  margin: 20px 0;
}

.warn {
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-line);
  padding: 15px 18px;
  margin: 20px 0;
}

/* Loud on purpose: a value still to be supplied from company records.
   None of these may survive to the Halkbank submission. */
.todo {
  background: #ffe0e0;
  color: #a01010;
  font-weight: 600;
  font-family: Montserrat, Arial, sans-serif;
  font-size: .82rem;
  padding: 1px 7px;
  border-radius: 3px;
}

table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .96rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th {
  background: #eaf0fa;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 500;
  font-size: .85rem;
  color: var(--dark);
}
.table-wrap { overflow-x: auto; }

/* --- card scheme indicators (form items 33, 34; contract art. 18) --- */

.schemes, .asv-schemes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px 0;
}

.schemes img, .asv-schemes img { height: 34px; width: auto; }

.asv-schemes {
  background: #fff;
  border-radius: 4px;
  margin: 6px 0 22px;
  padding: 16px;
}

/* --- footer --- */

.asv-footer {
  background: var(--dark);
  color: #aeb6c2;
  padding: 40px 20px 26px;
  font-size: .92rem;
}

.asv-footer-inner { max-width: 1000px; margin: 0 auto; }

.asv-footer-logo {
  display: block;
  width: 190px;
  max-width: 60%;
  background: #fff;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 26px;
}

.asv-footer-cols { display: flex; flex-wrap: wrap; gap: 36px; margin-bottom: 24px; }
.asv-footer-cols > div { flex: 1 1 250px; }

.asv-footer h4 {
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 500;
  font-size: .84rem;
  letter-spacing: .5px;
  margin-bottom: 12px;
}

.asv-footer a { color: var(--accent); text-decoration: none; }
.asv-footer a:hover { text-decoration: underline; }

.asv-footer ul { list-style: none; margin: 0; }
.asv-footer li { margin-bottom: 6px; }
.asv-footer p { margin-bottom: 6px; }

.asv-footer-legal {
  border-top: 1px solid var(--navy-line);
  padding-top: 18px;
  text-align: center;
  color: #8d95a2;
  font-size: .88rem;
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .card { padding: 24px 20px; }
  .asv-page-head { padding: 32px 0 28px; }
  .asv-page-head h1 { font-size: 1.5rem; }
  .asv-topbar-inner { flex-direction: column; align-items: flex-start; }
  .asv-nav ul { gap: 0; }
}


/* ==========================================================================
   Motion
   Hidden-before-reveal states are scoped to .asv-motion, a class that
   asv-motion.js adds to <html> only when it actually runs. Without JS — or
   with prefers-reduced-motion — none of these rules apply and every block is
   visible immediately. The policy text is a legal requirement; it must never
   be able to disappear because a script failed.
   ========================================================================== */

.asv-motion .asv-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}

.asv-motion .asv-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Children stagger inside a revealed block; delays are set inline by the script. */
.asv-motion .asv-reveal .asv-reveal-child {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .5s cubic-bezier(.22,.61,.36,1), transform .5s cubic-bezier(.22,.61,.36,1);
}

.asv-motion .asv-reveal.is-in .asv-reveal-child {
  opacity: 1;
  transform: none;
}

/* Once a block has arrived, drop the GPU hint so long pages don't hold layers. */
.asv-motion .asv-reveal.is-in { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .asv-motion .asv-reveal,
  .asv-motion .asv-reveal .asv-reveal-child {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- reading progress ----------------------------------------------------- */

.asv-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 60;
  pointer-events: none;
}

.asv-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* --- sticky top bar ------------------------------------------------------- */

.asv-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: padding .3s ease, box-shadow .3s ease, background .3s ease;
}

.asv-topbar.is-stuck {
  box-shadow: 0 6px 24px rgba(1,6,46,.45);
  background: rgba(0,0,112,.96);
  backdrop-filter: saturate(140%) blur(8px);
}

.asv-topbar.is-stuck .asv-topbar-inner { padding-top: 9px; padding-bottom: 9px; }
.asv-topbar.is-stuck .asv-brand-text { opacity: 0; max-width: 0; overflow: hidden; }
.asv-brand-text { transition: opacity .3s ease, max-width .3s ease; max-width: 40ch; }

/* --- editorial page head -------------------------------------------------- */

.asv-page-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Oversized outline wordmark drifting behind the title. Decorative only:
   aria-hidden in the markup, and it never carries information. */
.asv-ghost {
  position: absolute;
  right: -2vw;
  top: 50%;
  margin-top: -.62em;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(6rem, 17vw, 14rem);
  line-height: .9;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(143,201,240,.22);
  text-stroke: 1px rgba(143,201,240,.22);
  user-select: none;
  pointer-events: none;
  z-index: -1;
}

.asv-page-head .asv-wrap { position: relative; z-index: 1; }

.asv-page-head h1 {
  animation: asv-rise .7s cubic-bezier(.22,.61,.36,1) both;
}

.asv-page-head .asv-kicker {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 300;
  font-size: .74rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  animation: asv-rise .7s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: .06s;
}

.asv-page-head .asv-sub {
  color: #98a1ae;
  font-size: 1rem;
  margin-top: 10px;
  max-width: 60ch;
  animation: asv-rise .7s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: .14s;
}

@keyframes asv-rise {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .asv-page-head h1,
  .asv-page-head .asv-kicker,
  .asv-page-head .asv-sub { animation: none; }
  .asv-topbar { transition: none; }
}

/* --- link underline motion ------------------------------------------------ */

main a:not(.asv-brand) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .3s ease;
  text-decoration: none;
}

main a:not(.asv-brand):hover,
main a:not(.asv-brand):focus-visible { background-size: 100% 1px; }

/* Keyboard focus must stay obvious — never traded away for aesthetics. */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .asv-ghost { font-size: clamp(4rem, 26vw, 8rem); opacity: .7; }
}
