@charset "utf-8";
/* wp-layout.css — Header & Footer matching WP nowa.bhpniedzielscy.com.pl */
/* Namespaced under .wp-header / .wp-footer to avoid conflicts with store CSS */

/* ===================== VARIABLES ===================== */
:root {
  --wp-primary: #7B222C;
  --wp-secondary: #A83735;
  --wp-text: #303030;
  --wp-nav-text: #16163f;
  --wp-gold: #d3b574;
  --wp-white: #ffffff;
  --wp-max-width: 1200px;
}

/* ===================== HEADER ===================== */
.wp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  font-family: 'Montserrat', 'Signika Negative', sans-serif;
  margin-bottom: 40px;
}

/* -- Top bar (phone + email) -- */
.wp-header__topbar {
  background-color: var(--wp-primary);
  padding: 12px 0;
}
.wp-header__topbar-inner {
  max-width: var(--wp-max-width);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.wp-header__topbar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}
.wp-header__topbar-list li {
  margin: 0;
  padding: 0;
}
.wp-header__topbar-list a,
.wp-header__topbar-list a:link,
.wp-header__topbar-list a:visited {
  color: var(--wp-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}
.wp-header__topbar-list a:hover,
.wp-header__topbar-list a:focus {
  color: var(--wp-gold);
  text-decoration: none;
}
.wp-header__topbar-list svg {
  width: 16px;
  height: 16px;
  fill: var(--wp-white);
  flex-shrink: 0;
}

/* -- Main bar (logo + nav + CTA) -- */
.wp-header__main {
  background-color: var(--wp-white);
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.wp-header__main-inner {
  max-width: var(--wp-max-width);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.wp-header__logo {
  flex-shrink: 0;
}
.wp-header__logo img {
  width: 110px;
  height: 48px;
  object-fit: contain;
}
.wp-header__nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 20px;
}

/* Override trunk.css bare "nav { display:none; position:absolute }" and
   main.css "li { margin-top:7px }" that leak into the WP header */
.wp-header nav {
  position: static !important;
  display: flex !important;
  width: auto;
  height: auto;
  opacity: 1;
  transform: none;
  background: none;
}
.wp-header li {
  margin: 0;
  padding: 0;
  float: none;
}

/* Desktop nav */
.wp-header__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.wp-header__nav li {
  margin: 0;
  padding: 0;
}
.wp-header__nav a,
.wp-header__nav a:link,
.wp-header__nav a:visited {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-transform: capitalize;
  color: var(--wp-nav-text);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.wp-header__nav a:hover,
.wp-header__nav a:focus,
.wp-header__nav a.active {
  color: var(--wp-gold);
  text-decoration: none;
}

/* CTA button */
.wp-header__cta,
.wp-header__cta:link,
.wp-header__cta:visited {
  display: inline-block;
  background-color: var(--wp-primary);
  color: var(--wp-white) !important;
  font-family: 'Signika', sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
  text-decoration: none;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  border-radius: 10px;
  border: none;
  line-height: 1.5;
  transition: background-color 0.3s;
  white-space: nowrap;
  max-width: 250px;
  text-align: center;
}
.wp-header__cta:hover,
.wp-header__cta:focus {
  background-color: var(--wp-secondary);
  color: var(--wp-white) !important;
  text-decoration: none;
}

/* Hamburger toggle — hidden on desktop */
.wp-header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.wp-header__toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--wp-nav-text);
}
.wp-header__toggle .icon-close {
  display: none;
}
.wp-header__toggle.is-open .icon-open {
  display: none;
}
.wp-header__toggle.is-open .icon-close {
  display: block;
}

/* Mobile dropdown nav */
.wp-header__dropdown {
  display: none;
  background: var(--wp-white);
  box-shadow: 0 15px 20px rgba(0,0,0,0.1);
}
.wp-header__dropdown.is-open {
  display: block;
}
.wp-header__dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wp-header__dropdown li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
}
.wp-header__dropdown a,
.wp-header__dropdown a:link,
.wp-header__dropdown a:visited {
  display: block;
  padding: 20px 24px;
  color: var(--wp-nav-text);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
}
.wp-header__dropdown a:hover,
.wp-header__dropdown a:focus {
  color: var(--wp-gold);
  background-color: rgba(0,0,0,0.02);
  text-decoration: none;
}

/* ===================== FOOTER ===================== */
.wp-footer {
  font-family: 'Signika', 'Signika Negative', sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--wp-white);
  background: linear-gradient(180deg, var(--wp-primary) 0%, var(--wp-secondary) 100%);
  padding: 50px 0 0 0;
}
.wp-footer a,
.wp-footer a:link,
.wp-footer a:visited {
  color: var(--wp-white);
  text-decoration: none;
  transition: color 0.3s;
}
.wp-footer a:hover,
.wp-footer a:focus {
  color: var(--wp-gold);
  text-decoration: none;
}
.wp-footer p {
  margin: 0 0 10px 0;
  font-size: inherit;
  color: inherit;
}
.wp-footer li {
  margin: 0;
  padding: 0;
}

/* -- Main 3-column area -- */
.wp-footer__inner {
  max-width: var(--wp-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
}
.wp-footer__col {
  flex: 1;
}
.wp-footer__col--menu {
  flex: 0 0 25%;
}
.wp-footer__col--products {
  flex: 0 0 50%;
}
.wp-footer__col--contact {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.wp-footer__col-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
}
.wp-footer__logo {
  width: 90px;
  height: auto;
  margin-bottom: 15px;
}
.wp-footer__contact-info {
  text-align: end;
}

/* -- Bottom bar -- */
.wp-footer__bottom {
  max-width: var(--wp-max-width);
  margin: 30px auto 0;
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.wp-footer__bottom-links {
  display: flex;
  gap: 20px;
}

/* ===================== STICKY-FOOTER OVERRIDE ===================== */
/* main.css uses a negative-margin sticky footer (.wrapper margin-bottom + .push height + #footer height).
   Since we replaced #footer with .wp-footer, neutralise the old pattern so the footer sits at the bottom. */
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
.wp-header {
  flex-shrink: 0;
}
.wrapper {
  flex: 1 0 auto;
  margin-bottom: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}
.push {
  display: none !important;
}
.wp-footer {
  flex-shrink: 0;
}

/* ===================== RESPONSIVE ===================== */

/* Tablet: <= 1024px */
@media (max-width: 1024px) {
  .wp-header__topbar-inner {
    padding: 0 15px;
  }
  .wp-header__topbar-list a {
    font-size: 12px;
  }
  .wp-header__main-inner {
    padding: 0 15px;
  }
  .wp-header nav {
    display: none !important;
  }
  .wp-header__toggle {
    display: block;
  }
  .wp-header__cta {
    font-size: 14px;
    padding: 8px 16px;
  }
  .wp-header__logo img {
    width: 133px;
  }
}

/* Mobile: <= 767px */
@media (max-width: 767px) {
  .wp-header {
    margin-bottom: 20px;
  }
  .wp-header__topbar {
    padding: 15px 0;
  }
  .wp-header__topbar-inner {
    justify-content: center;
  }
  .wp-header__topbar-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }
  .wp-header__main-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .wp-header__logo {
    order: 1;
  }
  .wp-header__logo img {
    width: 100%;
    max-width: 130px;
    height: 48px;
  }
  .wp-header__nav-wrap {
    order: 2;
    flex: 0 0 auto;
    gap: 10px;
  }
  .wp-header__cta {
    order: 3;
    max-width: 250px;
    align-self: flex-end;
  }
  .wp-header__dropdown a {
    padding: 24px;
  }

  /* Footer mobile */
  .wp-footer__inner {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .wp-footer__col--menu,
  .wp-footer__col--products,
  .wp-footer__col--contact {
    flex: 1 1 100%;
    align-items: center;
  }
  .wp-footer__contact-info {
    text-align: center;
  }
  .wp-footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .wp-footer__bottom-links {
    justify-content: center;
  }
}
