@charset "UTF-8";
/*!
Theme Name: Festiwal Pracowni Historycznych
Author: Magiauslug
Author URI: https://magiauslug.pl
*/
html {
  padding: 0;
  margin: 0;
  max-width: 100vw;
  overflow-x: clip;
  overscroll-behavior: none;
}

body {
  overscroll-behavior: none;
  background: var(--fph-white);
}

* {
  box-sizing: border-box;
  margin: 0;
  scroll-behavior: smooth;
  padding: 0;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  max-width: 1042px; /* 1010px treści (siatka 3×306 + 2×46) + gutter */
}

/* =============================================================
   Paleta FPH — źródło: Figma FESTIWAL-STRONA-GŁOWNA (1:731).
   Bloki kompilują się osobno, więc konsumują wyłącznie
   CSS custom properties zdefiniowane tutaj.
   ============================================================= */
:root {
  --fph-black: #000000;
  --fph-white: #ffffff;
  --fph-gray: #8c8c8c;
  /* pomarańcz z plakatów/ilustracji — używany tylko dekoracyjnie */
  --fph-orange: #e8862d;
  --fph-font-cond: 'HelveticaNeueCond', 'Helvetica Neue Condensed Bold', 'HelveticaNeue-CondensedBold', 'Arial Narrow', Arial, sans-serif;
  --fph-font-base: 'HelveticaNeueWeb', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Fonty z projektu Figma: Helvetica Neue (Condensed Bold + Regular).
   Pliki .woff2 leżą w src/assets/fonts/ (kopiowane do theme/fonts/). */
@font-face {
  font-family: "HelveticaNeueCond";
  src: url("fonts/HelveticaNeueBoldCondensed.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "HelveticaNeueWeb";
  src: url("fonts/HelveticaNeueCyr-Roman.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
body {
  font-family: var(--fph-font-base);
  font-size: 15px;
  line-height: 20px;
  color: var(--fph-black);
}

.heading-cond {
  font-family: var(--fph-font-cond);
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------
   Przycisk (components/button.php)
--------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border: 1px solid var(--fph-black);
  border-radius: 20px;
  background: var(--fph-white);
  font-family: var(--fph-font-cond);
  font-weight: 700;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fph-black);
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.button:hover, .button:focus-visible {
  background: var(--fph-black);
  color: var(--fph-white);
}
.button--transparent {
  background: transparent;
}

/* ---------------------------------------------------------------
   Header: topper + menu
--------------------------------------------------------------- */
.header {
  background: var(--fph-white);
}
.header__topper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px;
}
.header__title {
  font-family: var(--fph-font-cond);
  font-weight: 700;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  min-width: 0;
}
.header__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__socials a {
  display: block;
}
.header__socials img {
  width: 24px;
  height: 24px;
}

.hamburger {
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 24px;
}
.hamburger__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fph-black);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger {
  /* belki leżą co 5px (content 12px, space-between) — ±5px spina ramiona X w jednym punkcie */
}
.hamburger.is-open .hamburger__bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.hamburger.is-open .hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open .hamburger__bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav {
  display: none;
}
.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  padding: 28px 16px;
  margin: 0;
}
.nav a {
  font-family: var(--fph-font-cond);
  font-weight: 700;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav a:hover, .nav a:focus-visible {
  border-color: var(--fph-black);
}

.menuOverlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menuOverlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobileNav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--fph-white);
  padding: 120px 24px 40px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.mobileNav.is-open {
  transform: translateX(0);
}
.mobileNav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.mobileNav a {
  font-family: var(--fph-font-cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  text-decoration: none;
}

/* blokada scrolla przy otwartym menu — musi siedzieć na html:
   body { overflow: hidden } nie propaguje do viewportu, bo html ma overflow-x: clip */
html.menu-open,
html.menu-open body {
  overflow: hidden;
}

.header__topper {
  background: var(--fph-white);
}

/* X zamykający wewnątrz panelu — zawsze widoczny, niezależnie od pozycji scrolla */
.mobileNav__close {
  position: absolute;
  top: 16px;
  left: 12px;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  cursor: pointer;
}
.mobileNav__close::before, .mobileNav__close::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 24px;
  height: 2px;
  background: var(--fph-black);
  transition: transform 0.2s ease;
}
.mobileNav__close::before {
  transform: rotate(45deg);
}
.mobileNav__close::after {
  transform: rotate(-45deg);
}
.mobileNav__close:hover::before, .mobileNav__close:focus-visible::before {
  transform: rotate(45deg) scale(1.15);
}
.mobileNav__close:hover::after, .mobileNav__close:focus-visible::after {
  transform: rotate(-45deg) scale(1.15);
}

/* ---------------------------------------------------------------
   Stopka
--------------------------------------------------------------- */
.footer {
  background: var(--fph-black);
  color: var(--fph-gray);
  font-family: var(--fph-font-cond);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  padding: 56px 16px 34px;
}
.footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer a:hover, .footer a:focus-visible {
  color: var(--fph-white);
}
.footer__cols {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto 48px;
  max-width: 960px;
}
.footer__col {
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.footer__brand {
  line-height: 14px;
}
.footer__brand p + p {
  margin-top: 15px;
}
.footer__label {
  display: block;
  margin-bottom: 8px;
}
.footer__lines {
  line-height: 27px;
}
.footer__logo-ziemski img {
  width: 131px;
  height: 14px;
  margin-top: 6px;
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 27px;
}
.footer__social img {
  width: 24px;
  height: 24px;
  /* ikony to czarne SVG — na czarnym tle stopki przemapowane na szarość #8c8c8c */
  filter: invert(1) brightness(0.55);
  transition: filter 0.2s ease;
}
.footer__social:hover img, .footer__social:focus-visible img {
  filter: invert(1) brightness(1);
}
.footer__wawa img {
  width: 111px;
  height: 57px;
}
.footer__wawa-note {
  margin-top: 12px;
  max-width: 111px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  text-transform: uppercase;
  margin-bottom: 38px;
}
.footer__links span {
  opacity: 0.6;
}
.footer__funding {
  color: var(--fph-white);
  text-align: center;
  line-height: 18px;
}

@media (min-width: 1240px) {
  /* Desktop: hamburger otwiera boczny panel na ~1/5 szerokości,
     reszta strony przyciemniona przez .menuOverlay */
  .mobileNav {
    inset: 0 auto 0 0;
    width: 20vw;
    min-width: 300px;
    padding: 140px 48px 48px;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.25);
  }
  .mobileNav__close {
    top: 48px;
    left: 44px;
  }
  .mobileNav ul {
    align-items: flex-start;
  }
  .mobileNav a {
    font-size: 14px;
    letter-spacing: 2.8px;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
  }
  .mobileNav a:hover, .mobileNav a:focus-visible {
    border-color: var(--fph-black);
  }
  .header__topper {
    padding: 52px 187px 41px;
  }
  .header__title {
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 3.2px;
  }
  .nav {
    display: block;
  }
  .footer__cols {
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
  }
  .footer__col {
    padding: 0 25px;
    min-height: 152px;
  }
  .footer__col:first-child {
    padding-left: 0;
  }
  .footer__col:last-child {
    padding-right: 0;
  }
  .footer__col + .footer__col {
    border-left: 1px solid var(--fph-gray);
  }
}
/*# sourceMappingURL=style.css.map */
