/*
Theme Name: BHP Wydra Clean
Theme URI: https://bhpwydra.pl/
Author: DoSieci
Description: Clean, lightweight theme for Znyk & Wydra.
Version: 1.0.0
Text Domain: bhpwydra-clean
*/

:root {
  --ink: #172127;
  --muted: #58656b;
  --paper: #ffffff;
  --soft: #f2f5f3;
  --line: #d9dfdc;
  --safety: #f2b705;
  --red: #bb292d;
  --green: #1f6b59;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.utility-bar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.utility-bar .site-shell {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.utility-bar a {
  color: #fff;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  min-width: 230px;
}

.brand img {
  width: 68px;
  max-height: 58px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 18px;
}

.brand-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--red);
}

.hero {
  position: relative;
  min-height: min(570px, calc(100vh - 150px));
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(18, 29, 34, 0.9) 0%, rgba(18, 29, 34, 0.6) 52%, rgba(18, 29, 34, 0.16) 100%),
    url("https://www.bhpwydra.pl/wp-content/uploads/2016/08/bhp-header.jpg") center / cover no-repeat;
  color: #fff;
}

.hero-content {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 90px 0 96px;
}

.hero-kicker {
  display: inline-block;
  padding: 7px 10px;
  border-left: 4px solid var(--safety);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 790px;
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 700px;
  margin: 0 0 30px;
  color: #eef2ef;
  font-size: 19px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 2px solid var(--safety);
  border-radius: 3px;
  background: var(--safety);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}

.section {
  padding: 76px 0;
}

.section.soft {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading small {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--safety);
  border-radius: 4px;
  background: #fff;
}

.service-card:nth-child(2) {
  border-top-color: var(--red);
}

.service-card:nth-child(3) {
  border-top-color: var(--green);
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 23px;
}

.service-card p {
  color: var(--muted);
}

.service-card a {
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.proof-band {
  background: var(--ink);
  color: #fff;
}

.proof-grid {
  min-height: 142px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.proof-item {
  padding: 22px 36px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.proof-item:first-child {
  border-left: 0;
}

.proof-item strong {
  display: block;
  color: var(--safety);
  font-size: 20px;
}

.cta-band {
  background: var(--red);
  color: #fff;
}

.cta-inner {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-inner h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.1;
}

.cta-inner p {
  margin: 0;
  color: #fff;
}

.content-area {
  padding: 62px 0 84px;
}

.page-header {
  padding: 54px 0;
  background: var(--ink);
  color: #fff;
}

.page-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.entry-content {
  width: min(100%, 920px);
}

.entry-content h2,
.entry-content h3 {
  line-height: 1.2;
}

.entry-content h2 {
  margin-top: 42px;
  font-size: 32px;
}

.entry-content h3 {
  margin-top: 30px;
  font-size: 24px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.legacy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 26px 0;
}

.legacy-column {
  flex: 1 1 280px;
  min-width: 0;
}

.legacy-title {
  margin: 28px 0 14px;
}

.legacy-separator {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 45px 0 24px;
  background: #11191d;
  color: #cbd3d0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer a {
  color: #fff;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .primary-nav a {
    display: block;
    padding: 10px 0;
  }

  .service-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  .proof-item,
  .proof-item:first-child {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .proof-item:first-child {
    border-top: 0;
  }
}

@media (max-width: 640px) {
  .site-shell,
  .hero-content {
    width: min(calc(100% - 28px), var(--max));
  }

  .utility-bar .site-shell {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 7px 0;
  }

  .brand-copy span {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .hero {
    min-height: min(570px, calc(100vh - 140px));
    background-position: 61% center;
  }

  .hero-content {
    padding: 80px 0 72px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    padding: 58px 0;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
