/* ============================================================
   common.css - system wspolny (Warehouse.Online)
   tokeny, fonty, reset, typografia, kontener, sekcje, przyciski,
   naglowek (sticky + pasek ALPHA), menu, dropdown, mobile menu,
   stopka, final-cta, focus, reduced-motion
   Laduje sie NA KAŻDEJ stronie jako PIERWSZY.
   Nadpisania per-strona: index.css / kariera.css / onas.css /
   blog.css / faq.css / regulamin.css / w-budowie.css
============================================================ */

@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts//lexend-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts//lexend-latin-ext.woff2") format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts//lexend-latin.woff2") format('woff2');
  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;
}

:root {
  --white: #ffffff;
  --grey-light: #f1f3f6;
  --black: #2b2b2b;
  --blue: #12345c;
  --blue-deep: #0d2745;
  --blue-muted: #e8eaee;
  --orange: #e48329;
  --orange-hover: #cd6e1c;
  --orange-muted: #eca869;
  --orange-soft: #fef1e2;
  --orange-text: #b05e17;
  --grey-100: #dddddd;
  --grey-200: #b8b8b8;
  --grey-300: #676767;
  --grey-400: #525252;
  --grey-500: #333333;

  --container: 1280px;
  --container-read: 720px;
  --pad-x: 24px;
  --section-y: 96px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 0 rgba(18,52,92,0.04), 0 8px 24px rgba(18,52,92,0.06);
  --shadow-md:   0 16px 36px rgba(18,52,92,0.10);
  --shadow-nav:  0 2px 12px rgba(18,52,92,0.06);

  --font: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 176px; }

@media (max-width: 640px) {
  html { scroll-padding-top: 144px; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><circle cx='2' cy='2' r='1.2' fill='%2312345C' opacity='0.08'/></svg>");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

button { font: inherit; cursor: pointer; }

a { color: var(--blue); text-decoration: none; transition: color 150ms var(--ease-out); }

a:hover { color: var(--orange-hover); }

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

.footer :focus-visible, .final-cta :focus-visible { outline-color: var(--orange); }

::selection { background: var(--orange); color: var(--white); }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 4.4vw, 4rem); }

h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }

h3 { font-size: clamp(1.35rem, 2vw, 1.875rem); }

h4 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; }

h5 { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }

.section { padding-block: 56px; position: relative; }

@media (min-width: 640px) {
  .section { padding-block: 72px; }
}

@media (min-width: 1024px) {
  .section { padding-block: var(--section-y); }
}

.section--alt  { background: var(--grey-light); }

.section--navy { background: var(--blue); color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 500; font-size: 1rem; line-height: 1;
  padding: 16px 32px; border-radius: var(--radius-pill); border: 2px solid transparent;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out), transform 150ms var(--ease-out);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--orange); color: var(--white); border-color: var(--orange); }

.btn--primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--white); }

.btn--secondary { background: transparent; color: var(--blue); border-color: var(--blue); }

.btn--secondary:hover { background: var(--blue-muted); color: var(--blue); }

.btn--on-dark { background: transparent; color: var(--white); border-color: var(--white); }

.btn--on-dark:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.btn--sm { padding: 10px 20px; font-size: 0.9375rem; }

.icon { width: 24px; height: 24px; flex: 0 0 auto; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(18,52,92,0.08);
  transition: box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.header.is-scrolled { box-shadow: var(--shadow-nav); border-bottom-color: rgba(18,52,92,0.12); }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }

.header__logo img { height: 86px; width: auto; }

@media (max-width: 640px) {
  .header__logo img { height: 64px; }
}

.header__nav { display: none; gap: 28px; align-items: center; flex: 1; justify-content: center; }

@media (min-width: 1024px) {
  .header__nav { display: flex; }
}

.nav-item { position: relative; }

.nav-trigger, .nav-link {
  display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0;
  padding: 8px 0; color: var(--grey-500); font-weight: 500; font-size: 0.9375rem;
  transition: color 150ms var(--ease-out);
}

.nav-trigger:hover, .nav-link:hover { color: var(--orange-text); }

.nav-link.is-active { color: var(--blue); font-weight: 600; }

.nav-link.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--orange); border-radius: 2px;
}

.nav-trigger .chev { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }

.nav-item.is-open .chev { transform: rotate(180deg); }

.nav-item.is-open .nav-trigger { color: var(--orange-text); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: -8px;
  background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 8px; min-width: 240px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); z-index: 60;
}

.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }

.nav-item.is-open .dropdown, .nav-item:hover .dropdown, .nav-item:focus-within .dropdown {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}

.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--grey-500); font-size: 0.9375rem; font-weight: 400; }

.dropdown a:hover { background: var(--blue-muted); color: var(--blue); }

.dropdown a.is-active { color: var(--blue); font-weight: 600; background: var(--blue-muted); }

.header__cta { display: none; }

.nav-home {
  display: none; align-items: center; justify-content: center;
  padding: 8px; border-radius: 10px; color: var(--grey-500);
  transition: color 150ms var(--ease-out), background 150ms var(--ease-out);
}

.nav-home .icon { width: 22px; height: 22px; }

.nav-home:hover { color: var(--orange); background: var(--blue-muted); }

.nav-home.is-active { color: var(--orange); }

@media (min-width: 1024px) {
  .nav-home { display: inline-flex; }
  .header__cta { display: inline-flex; }
}

.burger { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--grey-100); background: var(--white); }

@media (min-width: 1024px) {
  .burger { display: none; }
}

.mobile-menu {
  position: fixed; inset: 92px 0 0 0; background: var(--white); z-index: 49; padding: 24px;
  overflow-y: auto; transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.mobile-menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--grey-100); font-size: 1.125rem; color: var(--grey-500); font-weight: 500; }

.mobile-menu .btn { margin-top: 16px; width: 100%; }

.info-bar { background: var(--blue-deep); }

.info-bar .container { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 12px; padding-inline: 32px; position: relative; }

.info-bar__badge { display: inline-flex; align-items: center; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); background: var(--orange); padding: 3px 9px; border-radius: var(--radius-pill); flex: 0 0 auto; }

.info-bar__txt { font-size: .875rem; font-weight: 500; color: var(--white); opacity: .96; text-align: center; }

.info-bar__txt b { font-weight: 600; }



@media (max-width: 640px) {
  .info-bar .container { gap: 8px; padding-block: 10px; }
  .info-bar__txt { font-size: .8125rem; }
}

.featured:hover .read-link .icon, .post-card:hover .read-link .icon { transform: translateX(3px); }

.final-cta { background: var(--blue); color: var(--white); text-align: center; padding-block: 80px; position: relative; overflow: hidden; }

.final-cta h2 { color: var(--white); margin-bottom: 16px; }

.final-cta p { color: rgba(255,255,255,0.85); font-size: 1.125rem; max-width: 560px; margin: 0 auto 32px; }

.final-cta__ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.footer { background: var(--blue-deep); color: rgba(255,255,255,0.85); padding-block: 64px 32px; }

.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

.footer__brand img { height: 80px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }

.footer__tagline { color: var(--orange); font-weight: 500; margin-bottom: 10px; }

.footer__desc { color: rgba(255,255,255,0.7); font-size: 0.9375rem; line-height: 1.55; max-width: 360px; }

.footer h5 { color: var(--white); margin-bottom: 16px; }

.footer ul { display: flex; flex-direction: column; gap: 10px; }

.footer a { color: rgba(255,255,255,0.75); font-size: 0.9375rem; }

.footer a:hover { color: var(--orange-hover); }

.footer__contact-row { display: flex; align-items: center; gap: 10px; }

.footer__contact-row .icon { color: var(--orange-hover); width: 16px; height: 16px; }

.footer__bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

[hidden]{display:none!important}
