/*
Theme Name: HMB Nasielsk
Author: DM Solution
Description: Lekki, dedykowany motyw HMB Nasielsk. Zamrożony tryb budowy dla gości oraz rozwijana docelowa strona HMB.
Version: 0.14.8-dev14-fix8
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: hmb-nasielsk
*/

:root {
  --hmb-orange: #f36a21;
  --hmb-orange-hover: #d95716;
  --hmb-ink: #101419;
  --hmb-ink-soft: #1b222a;
  --hmb-white: #ffffff;
  --hmb-muted: #c7cdd3;
  --hmb-line: rgba(255,255,255,.20);
  --hmb-max: 1440px;
  --hmb-pad: clamp(24px, 4vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0c1014;
  color: var(--hmb-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.hmb-page {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0d1217;
}

.hmb-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--hmb-hero-image);
  background-repeat: no-repeat;
  background-position: 76% center;
  background-size: cover;
  transform: scale(1.015);
}

.hmb-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg,
      rgba(8,12,16,.97) 0%,
      rgba(8,12,16,.93) 34%,
      rgba(8,12,16,.62) 52%,
      rgba(8,12,16,.08) 72%,
      rgba(8,12,16,.10) 100%);
}

.hmb-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.03) 0%, rgba(0,0,0,.10) 58%, rgba(3,7,11,.83) 100%);
}

.hmb-shell {
  width: min(100%, var(--hmb-max));
  min-height: 100svh;
  margin: 0 auto;
  padding: 34px var(--hmb-pad) 28px;
  display: flex;
  flex-direction: column;
}

.hmb-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.hmb-brand {
  display: inline-flex;
  width: clamp(150px, 14vw, 235px);
  line-height: 0;
}
.hmb-brand img { width: 100%; height: auto; display: block; }

.hmb-micro-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hmb-micro-nav span:not(:last-child)::after {
  content: "|";
  margin-left: 15px;
  color: rgba(255,255,255,.36);
}
.hmb-micro-nav::after {
  content: "";
  width: 52px;
  height: 2px;
  margin-left: 10px;
  background: var(--hmb-orange);
}

.hmb-content {
  width: min(690px, 58vw);
  margin-top: clamp(70px, 9vh, 122px);
}

.hmb-eyebrow {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 34px;
  color: rgba(255,255,255,.77);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.hmb-eyebrow::before {
  content: "";
  width: 76px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.30), var(--hmb-orange));
}

.hmb-title {
  max-width: 690px;
  margin: 0;
  font-size: clamp(48px, 5.2vw, 84px);
  line-height: .94;
  letter-spacing: -.048em;
  text-transform: uppercase;
  font-weight: 820;
}
.hmb-title span { display: block; }
.hmb-title .hmb-accent { color: var(--hmb-orange); margin-top: .12em; }

.hmb-copy { margin-top: 32px; max-width: 610px; }
.hmb-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.45;
  font-weight: 650;
}
.hmb-copy p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.55;
}

.hmb-contact-row {
  display: flex;
  align-items: stretch;
  gap: 28px;
  margin-top: 38px;
}

.hmb-cta {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 28px;
  border: 1px solid transparent;
  background: var(--hmb-orange);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.hmb-cta:hover { background: var(--hmb-orange-hover); transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,.24); }
.hmb-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hmb-cta svg { width: 19px; height: 19px; flex: 0 0 auto; }
.hmb-cta-arrow { font-size: 24px; font-weight: 300; line-height: 1; }

.hmb-contact-list {
  padding-left: 28px;
  border-left: 1px solid var(--hmb-line);
  display: grid;
  align-content: center;
  gap: 13px;
  min-width: 260px;
}
.hmb-contact-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.hmb-contact-item svg { width: 21px; height: 21px; }
.hmb-contact-item strong { display: block; font-size: 17px; line-height: 1.15; }
.hmb-contact-item small { display: block; margin-top: 3px; color: rgba(255,255,255,.63); font-size: 11px; }
.hmb-contact-item:hover strong { color: var(--hmb-orange); }

.hmb-spacer { flex: 1 1 auto; min-height: 55px; }

.hmb-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  width: min(820px, 72vw);
  padding: 22px 0 22px;
  border-top: 1px solid var(--hmb-line);
}
.hmb-trust-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-right: 1px solid var(--hmb-line);
}
.hmb-trust-item:first-child { padding-left: 0; }
.hmb-trust-item:last-child { border-right: 0; }
.hmb-trust-item svg { width: 30px; height: 30px; stroke: rgba(255,255,255,.92); }
.hmb-trust-item span {
  color: rgba(255,255,255,.86);
  font-size: 10px;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hmb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.72);
  font-size: 11px;
}
.hmb-footer-brand { display: flex; align-items: center; gap: 10px; }
.hmb-footer-brand b { color: #fff; font-weight: 650; }
.hmb-footer-dot { opacity: .45; }
.hmb-signature-mark {
  position: absolute;
  right: max(var(--hmb-pad), calc((100vw - var(--hmb-max)) / 2 + var(--hmb-pad)));
  bottom: 76px;
  z-index: 3;
  width: clamp(235px, 20vw, 315px);
  line-height: 0;
  pointer-events: none;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.22));
}
.hmb-signature-mark img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .hmb-page::before { background: linear-gradient(90deg, rgba(8,12,16,.96) 0%, rgba(8,12,16,.88) 60%, rgba(8,12,16,.42) 100%); }
  .hmb-content { width: min(680px, 74vw); }
  .hmb-micro-nav { display: none; }
  .hmb-trust { width: 100%; }
}

@media (max-width: 760px) {
  .hmb-shell { padding: 24px 22px 20px; }
  .hmb-media { background-position: 62% center; }
  .hmb-page::before { background: rgba(7,11,15,.78); }
  .hmb-page::after { background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(2,5,9,.84)); }
  .hmb-brand { width: 150px; }
  .hmb-content { width: 100%; margin-top: 74px; }
  .hmb-eyebrow { gap: 14px; margin-bottom: 26px; font-size: 11px; letter-spacing: .26em; }
  .hmb-eyebrow::before { width: 42px; }
  .hmb-title { font-size: clamp(42px, 13vw, 64px); }
  .hmb-copy { margin-top: 26px; }
  .hmb-contact-row { flex-direction: column; gap: 18px; margin-top: 30px; }
  .hmb-cta { width: 100%; }
  .hmb-contact-list { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--hmb-line); min-width: 0; }
  .hmb-spacer { min-height: 56px; }
  .hmb-trust { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 18px; padding: 20px 0; }
  .hmb-trust-item { padding: 0 12px; border-right: 0; }
  .hmb-trust-item:nth-child(odd) { border-right: 1px solid var(--hmb-line); }
  .hmb-trust-item:first-child { padding-left: 0; }
  .hmb-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hmb-signature-mark { display: none; }
}

@media (max-width: 420px) {
  .hmb-title { font-size: 42px; }
  .hmb-trust { grid-template-columns: 1fr; }
  .hmb-trust-item, .hmb-trust-item:nth-child(odd) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.10); padding: 10px 0 16px; }
  .hmb-trust-item:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Product page header safety baseline - exact shared header component with solid background. */
body.single-hmb_product .hmb-live-header--solid {
  background: #11171c;
  color: #fff;
}
