/* =========================
   RESET / GLOBAL
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  letter-spacing: 0.4px;
  font-weight: 400;
  font-style: normal;
  overflow-x: hidden;
}

/* Zmienne */
:root {
  --header-height: 60px;   /* desktop */
  --header-height-mobile: 52px; /* mobile */
  --header-bg: #f0bb1c;
}

/* Rezerwacja miejsca pod header (żeby nie skakało przy wstrzyknięciu headera) */
#site-header {
  min-height: var(--header-height);
}

/* =========================
   HEADER
   ========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: 0 24px;
  background: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: top 0.4s ease;
  z-index: 99999;
  isolation: isolate;
}

/* gdy chowasz header skryptem */
header.hidden {
  top: -120px;
}

/* Logo */
.logo-container a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logo-container img {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Desktop nav */
.center-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.center-links a {
  color: #000;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  padding: 0 5px;
  transition: color 0.3s, transform 0.3s;
}

.center-links a:hover {
  color: #fff;
  transform: scale(1.05);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 22px;
  cursor: pointer;
  position: relative;
  z-index: 100000;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: all 0.4s ease;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--header-bg);
  padding: 20px;
  text-align: center;
  transition: top 0.5s ease;
  z-index: 1050;
}

.mobile-menu.active {
  top: 0;
}

.mobile-menu a {
  font-size: 1.5rem;
  margin: 15px 0;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  padding: 1px 6px;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  header {
    height: var(--header-height-mobile);
    padding: 0 16px;
  }

  #site-header {
    min-height: var(--header-height-mobile);
  }

  .center-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .logo-container img {
    height: 32px;
  }
}

/* =========================
   FOOTER
   ========================= */
.footer {
  border-top: 1px solid #000;
  background: var(--header-bg);
  color: #000;
  text-align: center;
  padding: 50px 20px;
}

.footer-subscribe h3 {
  margin-top: 0;
  margin-bottom: 40px;
  font-size: 22px;
  font-weight: 700;
}

.footer-subscribe::after {
  content: "";
  display: block;
  width: 70%;
  height: 1px;
  background-color: #000;
  margin: 40px auto 0;
}

.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* ===== PRZYCISKI W STOPCE (YT) =====
   białe wypełnienie, czarny tekst, hover czarne + białe
*/
.footer .subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 26px;
  background: #fff;
  color: #000;

  font-weight: 700;
  text-decoration: none;

  border: 2px solid #000;
  border-radius: 30px;

  transition: all 0.25s ease;
}

.footer .subscribe-btn:hover {
  background: #000;
  color: #fff;
  transform: scale(1.05);
}

.footer .subscribe-btn img {
  width: 24px;
  height: 24px;
}

/* Footer nav */
.footer-nav {
  margin: 25px 0;
  padding-top: 20px;
}

.footer-nav a {
  margin: 0 25px;
  color: #000;
  font-variant: small-caps;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.footer-nav a:hover {
  color: #fff;
}

/* Social */
.footer-socials {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  height: 40px;
  margin-bottom: 4%;
}

.footer-socials a {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.footer-socials a img {
  height: 32px;
  width: auto;
  margin: 0 16px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-socials a:hover img {
  transform: scale(1.2);
  filter: brightness(0) saturate(100%);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid #000;
  margin-top: 20px;
  padding-top: 12px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-bottom a {
  color: #000;
  text-decoration: none;
  transition: 0.3s;
}

.footer-bottom a:hover {
  color: #000;
}

.author-break {
  display: inline;
}

/* Footer responsive */
@media (max-width: 760px) {
  .footer {
    padding: 30px 20px;
  }

  .footer-subscribe h3 {
    margin-bottom: 15px;
  }

  .footer-buttons {
    margin-bottom: 20px;
    gap: 16px;
  }

  .footer-nav {
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .footer-nav a {
    margin: 0 5px;
    font-size: clamp(12px, 4vw, 20px);
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .footer-socials {
    gap: 3px;
    margin-bottom: 0%;
  }

  .footer-socials a img {
    height: 24px;
    margin: 0 8px;
  }

  .author-break {
    display: block;
    margin-top: 5px;
  }
}