/* ============================================================
   PLASTIKA3D — HEADER & FOOTER STYLES
   Add these to the bottom of your style.css
   OR save as /css/header-footer.css and enqueue separately
   ============================================================ */

/* ============================================================
   HEADER
   ============================================================ */

.plastika-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

/* Scrolled state — tighter, border appears */
.plastika-header.scrolled {
  background: rgba(10, 10, 10, 0.98);
  border-bottom-color: var(--color-border);
}

.plastika-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Push content down so it's not hidden behind fixed header */
.site-content-wrap {
  padding-top: 72px;
}

/* ============================================================
   LOGO — Kadence rendered, styled by us
   ============================================================ */

.plastika-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Target Kadence's logo anchor and our fallback */
.plastika-logo a,
.plastika-logo .custom-logo-link,
.plastika-logo__text-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.plastika-logo a:hover,
.plastika-logo .custom-logo-link:hover,
.plastika-logo__text-link:hover {
  opacity: 0.75;
}

/* The actual logo image — Kadence controls height via customizer */
.plastika-logo img,
.plastika-logo .custom-logo {
  display: block;
  width: auto;
  max-height: 60px; /* safety cap — customizer slider overrides this */
  filter: brightness(0) invert(1); /* white on dark header */
  transition: opacity 0.2s ease;
}

/* Text fallback logo */
.plastika-logo__text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
}

.plastika-logo__text span {
  color: var(--color-accent);
}

/* Footer logo — slightly smaller */
.footer-logo {
  max-height: 36px !important;
  opacity: 0.85;
}

/* ============================================================
   DESKTOP NAVIGATION
   ============================================================ */

.plastika-nav {
  display: flex;
  align-items: center;
}

/* The <ul> wp_nav_menu generates */
.plastika-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.plastika-nav__list li {
  position: relative;
  margin: 0;
  padding: 0;
}

.plastika-nav__list > li > a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  display: block;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

/* Animated underline */
.plastika-nav__list > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.1rem;
  right: 1.1rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.plastika-nav__list > li > a:hover,
.plastika-nav__list > li.current-menu-item > a,
.plastika-nav__list > li.current_page_item > a {
  color: var(--color-white);
}

.plastika-nav__list > li > a:hover::after,
.plastika-nav__list > li.current-menu-item > a::after,
.plastika-nav__list > li.current_page_item > a::after {
  transform: scaleX(1);
}

/* ============================================================
   DROPDOWN SUBMENUS (if needed later)
   ============================================================ */

.plastika-nav__list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-dark-2);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  z-index: 100;
}

.plastika-nav__list li:hover > .sub-menu {
  display: block;
}

.plastika-nav__list .sub-menu li a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  padding: 0.65rem 1.25rem;
  display: block;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.plastika-nav__list .sub-menu li a:hover {
  color: var(--color-white);
  background: var(--color-dark-3);
}

/* ============================================================
   HAMBURGER BUTTON (mobile only)
   ============================================================ */

.plastika-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  cursor: pointer;
  padding: 8px;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.plastika-hamburger:hover {
  border-color: var(--color-accent);
}

.plastika-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s ease;
  transform-origin: center;
}

.plastika-hamburger:hover span {
  background: var(--color-accent);
}

/* Hamburger → X animation */
.plastika-hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.plastika-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.plastika-hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */

.plastika-mobile-menu {
  display: none; /* shown only on mobile */
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--color-dark);
  border-top: 1px solid var(--color-border);
}

.plastika-mobile-menu.is-open {
  max-height: 500px;
}

.plastika-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 1rem 0 1.5rem;
}

.plastika-mobile-menu__list li {
  margin: 0;
  border-bottom: 1px solid var(--color-border);
}

.plastika-mobile-menu__list li:last-child {
  border-bottom: none;
}

.plastika-mobile-menu__list li a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease, background 0.2s ease;
}

.plastika-mobile-menu__list li a::after {
  content: '→';
  font-size: 0.75rem;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.plastika-mobile-menu__list li a:hover {
  color: var(--color-white);
  background: var(--color-dark-2);
}

.plastika-mobile-menu__list li a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.plastika-mobile-menu__list li.current-menu-item > a,
.plastika-mobile-menu__list li.current_page_item > a {
  color: var(--color-accent);
}

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

@media (max-width: 900px) {
  .plastika-nav {
    display: none; /* hide desktop nav */
  }

  .plastika-hamburger {
    display: flex; /* show hamburger */
  }

  .plastika-mobile-menu {
    display: block; /* enable drawer */
  }

  .plastika-header__inner {
    height: 64px;
  }

  .site-content-wrap {
    padding-top: 64px;
  }
}

@media (max-width: 480px) {
  .plastika-header__inner {
    padding: 0 1.25rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.plastika-footer {
  background: var(--color-dark);
  border-top: 1px solid var(--color-border);
}

.plastika-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

/* Brand column */
.footer-col--brand .plastika-logo {
  margin-bottom: 1.25rem;
  display: inline-flex;
}

.footer-logo {
  height: 36px !important;
  opacity: 0.85;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 0 1rem;
}

.footer-location {
  margin: 0;
}

/* Nav columns */
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 1.25rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col ul li a:hover {
  color: var(--color-white);
}

/* Bottom bar */
.plastika-footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.plastika-footer__bottom p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--color-muted-2);
  margin: 0;
  max-width: none;
}

.plastika-footer__bottom a {
  color: var(--color-muted-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.plastika-footer__bottom a:hover {
  color: var(--color-accent);
}

/* Footer responsive */
@media (max-width: 960px) {
  .plastika-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-col--brand {
    grid-column: span 2;
  }
}

@media (max-width: 540px) {
  .plastika-footer__inner {
    grid-template-columns: 1fr;
    padding: 3rem 1.25rem 2rem;
  }
  .footer-col--brand {
    grid-column: span 1;
  }
  .plastika-footer__bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
}

/* ============================================================
   LOGO — permanent overrides (do not remove)
   ============================================================ */
.custom-logo,
.plastika-logo img {
  filter: none !important;
  width: 260px !important;
  height: auto !important;
  max-width: none !important;
}

img.custom-logo[width] {
  width: 260px !important;
  height: auto !important;
  filter: none !important;
}
