/**
 * ROZS.pl — css/header-footer.css
 * Style nagłówka, nawigacji, paska ogłoszeń i stopki.
 * Ładowane globalnie (wszystkie strony).
 */

/* ══════════════════════════════════════════════
   PASEK OGŁOSZEŃ
══════════════════════════════════════════════ */
.rozs-ann-bar {
  background: var(--rozs-green);
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.rozs-ann-text {
  font-family: var(--rozs-font-sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}

.rozs-ann-link {
  font-family: var(--rozs-font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--rozs-amber2);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.rozs-ann-link:hover { opacity: 0.82; }

.rozs-ann-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}

.rozs-ann-close:hover { color: rgba(255,255,255,0.8); }

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.rozs-header {
  background: var(--rozs-white);
  border-bottom: 1px solid var(--rozs-border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 var(--rozs-border);
}

/* Gdy pasek ogłoszeń jest widoczny — header normalny sticky */
.rozs-header__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 0;
}

/* ── LOGO ── */
.rozs-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--rozs-font-sans);
  font-weight: 800;
  font-size: 20px;
  color: var(--rozs-green);
  text-decoration: none;
  margin-right: 28px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.rozs-logo:hover { opacity: 0.85; color: var(--rozs-green); }

.rozs-logo__mark {
  width: 30px;
  height: 30px;
  background: var(--rozs-green);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rozs-logo__mark svg { width: 16px; height: 16px; }

.rozs-logo__dot { color: var(--rozs-amber2); }

/* ── NAWIGACJA ── */
.rozs-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0;
  min-width: 0;
}

.rozs-nav__pillars,
.rozs-nav__utility {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rozs-nav__pillars { margin-right: auto; }

.rozs-nav__sep {
  width: 1px;
  height: 18px;
  background: var(--rozs-border2);
  margin: 0 10px;
  flex-shrink: 0;
}

/* Pillar nav pills */
.rozs-nav__pill {
  font-family: var(--rozs-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rozs-green2);
  padding: 6px 10px;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.rozs-nav__pill:hover,
.rozs-nav__pill.is-active {
  border-color: var(--rozs-border2);
  background: var(--rozs-green-pale);
  color: var(--rozs-green);
}

/* Utility nav links */
.rozs-nav__link {
  font-family: var(--rozs-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--rozs-text3);
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}

.rozs-nav__link:hover,
.rozs-nav__link.is-active {
  color: var(--rozs-green);
  background: var(--rozs-green-pale);
}

.rozs-nav__link--highlight {
  font-weight: 600;
  color: var(--rozs-green2);
}

/* ── AKCJE ── */
.rozs-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  flex-shrink: 0;
}

.rozs-header__login {
  font-family: var(--rozs-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rozs-green);
  padding: 8px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--rozs-border2);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.rozs-header__login:hover {
  background: var(--rozs-green-pale);
  color: var(--rozs-green);
}

.rozs-header__cta {
  font-size: 12.5px;
  padding: 9px 18px;
  border-radius: 9px;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   HAMBURGER (mobile)
══════════════════════════════════════════════ */
.rozs-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--rozs-border2);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  margin-left: 4px;
}

.rozs-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--rozs-green);
  border-radius: 99px;
  transition: all 0.25s;
  transform-origin: center;
}

.rozs-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rozs-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rozs-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════
   MOBILE MENU
══════════════════════════════════════════════ */
.rozs-mobile-menu {
  background: var(--rozs-white);
  border-top: 1px solid var(--rozs-border);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 199;
  box-shadow: 0 8px 32px rgba(28,76,52,0.12);
}

.rozs-mobile-menu[hidden] { display: none; }
.rozs-mobile-menu.is-open { display: block; }

.rozs-mobile-menu__inner {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rozs-mobile-menu__section-title {
  font-family: var(--rozs-font-sans);
  font-size: 10px;
  font-weight: 700;
  color: var(--rozs-text4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px 4px;
}

.rozs-mobile-menu__link {
  font-family: var(--rozs-font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--rozs-text2);
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.rozs-mobile-menu__link:hover {
  background: var(--rozs-cream);
  color: var(--rozs-green);
}

.rozs-mobile-menu__link--highlight {
  color: var(--rozs-green2);
  font-weight: 600;
}

.rozs-mobile-menu__sep {
  height: 1px;
  background: var(--rozs-border);
  margin: 8px 0;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.rozs-footer {
  background: #0D2B1A;
  padding: 56px 0 0;
}

.rozs-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
}

/* Kolumna brand */
.rozs-footer__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--rozs-font-sans);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 14px;
}

.rozs-footer__logo:hover { color: #fff; opacity: 0.85; }

.rozs-footer__logo-mark {
  width: 24px;
  height: 24px;
  background: var(--rozs-green2);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rozs-footer__logo-mark svg { width: 14px; height: 14px; }

.rozs-footer__logo-dot { color: var(--rozs-amber2); }

.rozs-footer__desc {
  font-family: var(--rozs-font-serif);
  font-size: 12.5px;
  color: rgba(255,255,255,0.3);
  line-height: 1.65;
  margin-bottom: 12px;
}

.rozs-footer__legal {
  font-family: var(--rozs-font-sans);
  font-size: 10px;
  color: rgba(255,255,255,0.18);
  line-height: 1.6;
}

/* Kolumny nawigacyjne */
.rozs-footer__col-title {
  font-family: var(--rozs-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 14px;
}

.rozs-footer__col nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rozs-footer__link {
  font-family: var(--rozs-font-sans);
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.15s;
  line-height: 1.4;
}

.rozs-footer__link:hover {
  color: rgba(255,255,255,0.8);
}

.rozs-footer__link--highlight {
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* Mini CTA w kolumnie kontakt */
.rozs-footer__app-cta {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--rozs-font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--rozs-amber2);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(244,168,0,0.3);
  border-radius: 8px;
  transition: background 0.15s;
}

.rozs-footer__app-cta:hover {
  background: rgba(244,168,0,0.1);
  color: var(--rozs-amber2);
}

/* Dolna belka */
.rozs-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rozs-footer__copy {
  font-family: var(--rozs-font-sans);
  font-size: 11px;
  color: rgba(255,255,255,0.18);
}

.rozs-footer__legal-links {
  display: flex;
  gap: 16px;
}

.rozs-footer__legal-links a {
  font-family: var(--rozs-font-sans);
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  text-decoration: none;
  transition: color 0.15s;
}

.rozs-footer__legal-links a:hover {
  color: rgba(255,255,255,0.55);
}

/* ══════════════════════════════════════════════
   RESPONSIVE — HEADER
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .rozs-nav__pillars .rozs-nav__pill { font-size: 12px; padding: 5px 8px; }
  .rozs-nav__utility .rozs-nav__link { font-size: 12px; padding: 5px 8px; }
  .rozs-header__cta { display: none; } /* CTA schowane na tablet, zostaje hamburger */
}

@media (max-width: 900px) {
  .rozs-nav { display: none; }  /* Cała nav ukryta, działa hamburger */
  .rozs-hamburger { display: flex; }
  .rozs-header__login { display: none; }
  .rozs-header__cta { display: none; }
}

@media (max-width: 640px) {
  .rozs-ann-bar { padding: 10px 16px; gap: 8px; }
  .rozs-ann-text { font-size: 11px; }
  .rozs-ann-close { right: 8px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — FOOTER
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .rozs-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
  }
  .rozs-footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .rozs-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .rozs-footer__col--brand {
    grid-column: 1 / -1;
  }
  .rozs-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .rozs-footer__legal-links {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .rozs-footer__grid {
    grid-template-columns: 1fr;
  }
}
