/* ===================================================================
   QHEL Logistics: shared "chrome" (fonts, colours, buttons, header, footer)
   Used by every page of the website AND by the QHEL-i tools page (orodja/),
   so the header and footer look the same everywhere. Page content styles live in styles.css.
   =================================================================== */

/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: "Archivo Expanded";
  src: url("../fonts/archivo-expanded-latin.woff2") format("woff2");
  font-weight: 600 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Expanded";
  src: url("../fonts/archivo-expanded-latin-ext.woff2") format("woff2");
  font-weight: 600 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("../fonts/overpass-mono-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("../fonts/overpass-mono-latin-ext.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --ink:         #0A1E40;
  --harbour:     #0E2A5E;
  --harbour-2:   #143571;
  --signal:      #1E5AD6;
  --signal-deep: #1746A8;
  --carbon:      #E9F0FC;
  --sky:         #9CC0F2;
  --steel:       #5C6B86;
  --fog:         #F1F4F9;
  --paper:       #FFFFFF;
  --note:        #F7F9FD;
  --rule:        #BCCBE3;
  --line:        #E2E8F1;
  --line-strong: #CBD5E3;
  --text:        #233149;
  --text-soft:   #586781;
  --on-dark:     rgba(255, 255, 255, .78);
  --on-dark-line:rgba(255, 255, 255, .16);
  --green:       #1F9D55;   /* "Why QHEL" ticks */
  --orange:      #F26A10;   /* inquiry buttons */
  --orange-deep: #DB5A05;
  --error:       #B42318;
  --error-bg:    #FDEDEC;

  --f-display: "Archivo Expanded", "Arial Black", system-ui, sans-serif;
  --f-body:    "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono:    "Overpass Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 9vw, 124px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-paper: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 60px -20px rgba(4, 14, 36, .6), 0 10px 20px -10px rgba(4, 14, 36, .35);

  --check-blue:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.3 6.2 4.9 8.7 9.8 3.3' fill='none' stroke='%231746A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.3 6.2 4.9 8.7 9.8 3.3' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { left: 16px; }

/* defaults the header and footer rely on (QHEL-i has its own page styles) */
.site-header, .site-footer { font-family: var(--f-body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
.site-footer { font-size: 1.0625rem; color: var(--text); }
.site-footer address { font-style: normal; }
.site-footer .footer-h { line-height: 1.1; }
.site-header :focus-visible, .site-footer :focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px 15px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.1;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn .ico { flex: none; transition: transform .2s var(--ease); }
.btn:hover .ico-arrow-right { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-deep); }
.btn-line { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-mono { font-family: var(--f-mono); font-weight: 600; font-size: .98rem; letter-spacing: .02em; color: #fff; }
.btn-sm { padding: 11px 16px 10px; font-size: .84rem; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-deep); }
.header-cta { padding: 13px 20px 12px; font-size: .9rem; white-space: nowrap; }
.cta-short { display: none; }
.btn[disabled] { opacity: .72; cursor: progress; }

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 28px -16px rgba(10, 30, 64, .35); }
.header-inner { position: relative; display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { flex: none; }
.brand img { height: 50px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { position: relative; padding: 6px 0; font-weight: 700; font-size: .86rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover { color: var(--signal); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.nav-tools { text-transform: none; }               /* QHEL-i is a name: keep its small i */
.main-nav a[aria-current="page"] { color: var(--signal); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px 6px; font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .06em; color: var(--steel); }
.lang-switch .flag { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(10, 30, 64, .18); }
.lang-in-menu { display: none; }
.lang-switch a + a { border-left: 1px solid var(--line-strong); }
.lang-switch a:hover { color: var(--signal); background: var(--fog); }
.lang-switch a[aria-current] { background: var(--harbour); color: #fff; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { padding-top: 72px; border-top: 1px solid var(--line); background: var(--fog); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-logo { height: 66px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; font-size: .96rem; color: var(--text-soft); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--harbour);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.social a:hover { border-color: var(--signal); background: var(--signal); color: #fff; }
.footer-h { margin-bottom: 16px; font-family: var(--f-mono); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { width: fit-content; font-size: .96rem; color: var(--ink); }
.footer-col a:hover { color: var(--signal); }
.footer-contact address { display: flex; flex-direction: column; gap: 12px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-block: 22px; border-top: 1px solid var(--line-strong);
  font-size: .88rem; color: var(--steel);
}
.footer-langs { display: flex; gap: 18px; }
.footer-langs a:hover { color: var(--signal); }
.footer-langs a[aria-current] { font-weight: 700; color: var(--ink); }

/* ---------- header and footer on smaller screens ---------- */
@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0; margin: 0;
    padding: 6px var(--gutter) 14px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(10, 30, 64, .35);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .header-tools { margin-left: auto; }
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { height: 68px; gap: 12px; }
  .brand img { height: 40px; }
  .header-tools { gap: 8px; }
  .header-tools > .lang-switch { display: none; }
  .main-nav .lang-in-menu { display: flex; align-self: flex-start; margin-top: 14px; }
  .main-nav .lang-in-menu a { padding: 9px 12px 8px; border-bottom: 0; font-size: .8rem; letter-spacing: .06em; }
  .header-cta { padding: 11px 14px 10px; font-size: .78rem; letter-spacing: .05em; }
  .header-cta .cta-full { display: none; }
  .header-cta .cta-short { display: inline; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
