/* REM-DOM design system — main.css */

/* ============================================================
   1. CSS VARIABLES (design tokens)
   ============================================================ */
:root {
  --rd-graphite:    #22262A;
  --rd-iron:        #3A4148;
  --rd-concrete:    #6E7780;
  --rd-ash:         #AEB6BC;
  --rd-plaster:     #E9ECEE;
  --rd-paper:       #F7F6F3;
  --rd-lime:        #EFE9DC;
  --rd-navy:        #1D3A6B;
  --rd-navy-deep:   #142A50;
  --rd-gold:        #B8913A;
  --rd-gold-light:  #D4A84B;
  --rd-error:       #C0392B;
  --rd-success:     #2E7D52;

  --rd-grad-dark: linear-gradient(160deg, #22262A 0%, #3A4148 100%);
  --rd-grad-navy: linear-gradient(160deg, #1D3A6B 0%, #22262A 100%);
  --rd-grad-lime: linear-gradient(180deg, #F7F6F3 0%, #EFE9DC 100%);

  --font-head: 'Big Shoulders Display', sans-serif;
  --font-body: 'Albert Sans', sans-serif;
  --font-heritage: 'Lora', serif;

  --ease-standard: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:      cubic-bezier(0.0, 0.0, 0.2, 1);

  --container-max: 1280px;
  --container-pad: clamp(1rem, 5vw, 4rem);
  --section-pad:   clamp(3rem, 8vw, 6rem);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1vw + 0.5rem, 1.0625rem);
  line-height: 1.65;
  color: var(--rd-graphite);
  background: var(--rd-paper);
  overflow-x: hidden;
}

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

a { color: var(--rd-navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--rd-navy-deep); }

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-transform: uppercase;
}

p { max-width: 72ch; }

button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================================
   3. TYPOGRAPHY SCALE
   ============================================================ */
h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); font-weight: 700; }
h4 { font-size: clamp(1rem, 1.5vw, 1.375rem); font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rd-gold);
}

.heritage-phrase {
  font-family: var(--font-heritage);
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5;
}

.tabular-num {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-pad);
}

.section--dark {
  background: var(--rd-graphite);
  color: var(--rd-paper);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--navy {
  background: var(--rd-grad-navy);
  color: #fff;
}

.section--lime {
  background: var(--rd-grad-lime);
}

.section--plaster {
  background: var(--rd-plaster);
}

/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s var(--ease-standard);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

.site-logo a,
.site-logo .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.site-logo img,
.site-logo .custom-logo {
  height: 48px;
  width: auto;
  max-width: 200px;
  display: block;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__item { position: relative; }

.site-nav__link {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rd-graphite);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--rd-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-standard);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--rd-navy);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.current-menu-item > .site-nav__link::after,
.current-menu-parent > .site-nav__link::after {
  transform: scaleX(1);
}

/* Dropdown */
.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 4px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s, transform 0.2s var(--ease-out), visibility 0.2s;
  padding: 0.5rem 0;
}

.site-nav__item:hover .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.site-nav__dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--rd-graphite);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.15s, background 0.15s;
  position: relative;
  padding-left: 1.75rem;
}

.site-nav__dropdown a::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 4px;
  background: var(--rd-navy);
  transition: background 0.15s;
}

.site-nav__dropdown a:hover {
  color: var(--rd-navy);
  background: var(--rd-paper);
}

.site-nav__dropdown a:hover::before {
  background: var(--rd-gold);
}

/* CTA phone */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--rd-navy);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 3px;
  transition: background 0.2s;
  margin-left: 1rem;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--rd-navy-deep);
  color: #fff;
}

.header-cta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rd-graphite);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-standard), opacity 0.3s;
  transform-origin: center;
}

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

/* Mobile fullscreen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--rd-grad-dark);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-standard), visibility 0.35s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 2rem;
}

.mobile-menu__link {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  letter-spacing: -0.02em;
  padding: 0.4rem 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: color 0.2s, opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(6) { transition-delay: 0.30s; }

.mobile-menu__link:hover { color: var(--rd-gold); }

.mobile-menu__sub {
  font-size: clamp(0.875rem, 3vw, 1.125rem) !important;
  color: rgba(255,255,255,0.55) !important;
}

.mobile-menu__cta {
  margin-top: 2rem;
  padding: 0.875rem 2rem;
  background: var(--rd-navy);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s 0.35s var(--ease-out), transform 0.4s 0.35s var(--ease-out), background 0.2s;
}

.mobile-menu.is-open .mobile-menu__cta {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__cta:hover { background: var(--rd-navy-deep); }

/* ============================================================
   6. HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  margin-top: 72px;
}

.hero__slides {
  display: flex;
  height: 100%;
  transition: transform 0.7s var(--ease-standard);
}

.hero__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* Duotone background when no image */
.hero__slide-bg {
  position: absolute;
  inset: 0;
  background: var(--rd-grad-dark);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s linear;
}

.hero__slide.is-active .hero__slide-bg { transform: scale(1); }

.hero__slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(34,38,42,0.92) 0%,
    rgba(34,38,42,0.45) 50%,
    rgba(29,58,107,0.25) 100%
  );
}

/* Category color variants */
.hero__slide[data-cat="kubaturowe"] .hero__slide-bg {
  background: linear-gradient(135deg, #22262A 0%, #1D3A6B 60%, #3A4148 100%);
}
.hero__slide[data-cat="termo"] .hero__slide-bg {
  background: linear-gradient(135deg, #3A4148 0%, #22262A 50%, #1D3A6B 100%);
}
.hero__slide[data-cat="zabytki"] .hero__slide-bg {
  background: linear-gradient(135deg, #22262A 0%, #3A3020 50%, #5C4A1E 100%);
}
.hero__slide[data-cat="przemyslowe"] .hero__slide-bg {
  background: linear-gradient(135deg, #1D3A6B 0%, #22262A 60%, #3A4148 100%);
}

/* Slide content */
.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 6vw, 5rem);
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rd-gold);
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s 0.2s, transform 0.5s 0.2s var(--ease-out);
}

.hero__slide.is-active .hero__eyebrow {
  opacity: 1;
  transform: none;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 6.5vw, 4.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #fff;
  max-width: 14ch;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s 0.3s, transform 0.55s 0.3s var(--ease-out);
}

.hero__slide.is-active .hero__title {
  opacity: 1;
  transform: none;
}

.hero__desc {
  font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s 0.4s, transform 0.5s 0.4s var(--ease-out);
}

.hero__slide.is-active .hero__desc {
  opacity: 1;
  transform: none;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  background: var(--rd-navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s 0.5s, transform 0.5s 0.5s var(--ease-out), background 0.2s;
}

.hero__slide.is-active .hero__cta {
  opacity: 1;
  transform: none;
}

.hero__cta:hover { background: var(--rd-navy-deep); transform: translateY(-2px); color: #fff; }
.hero__cta svg { width: 16px; height: 16px; }

/* Slide controls */
.hero__controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero__bullet.is-active {
  background: var(--rd-gold);
  transform: scale(1.3);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(34,38,42,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  cursor: pointer;
}

.hero__arrow:hover { background: var(--rd-navy); }
.hero__arrow--prev { left: clamp(1rem, 3vw, 2rem); }
.hero__arrow--next { right: clamp(1rem, 3vw, 2rem); }
.hero__arrow svg { width: 20px; height: 20px; }

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--rd-navy);
  color: #fff;
}
.btn--primary:hover {
  background: var(--rd-navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(29,58,107,0.35);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--rd-navy);
  color: var(--rd-navy);
}
.btn--outline:hover {
  background: var(--rd-navy);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* ============================================================
   8. BENTO OFERTY (strona glowna)
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5px;
  background: var(--rd-plaster);
}

.bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  min-height: 320px;
  background: var(--rd-paper);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s var(--ease-standard);
}

.bento__card--wide {
  grid-column: span 2;
  min-height: 260px;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
}

.bento__card--zabytki {
  background: var(--rd-grad-lime);
}

.bento__card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  transition: opacity 0.4s, transform 0.4s var(--ease-standard);
}

/* Border animation on hover */
.bento__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 0;
  transition: border-color 0.3s;
  z-index: 3;
  pointer-events: none;
}

.bento__card:hover::before {
  border-color: var(--rd-navy);
  border-image: repeating-linear-gradient(
    90deg,
    var(--rd-navy) 0px, var(--rd-navy) 12px,
    transparent 12px, transparent 18px
  ) 2;
}

.bento__card:hover .bento__card-bg {
  opacity: 0.2;
  transform: scale(1.03);
}

.bento__num {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--rd-plaster);
  line-height: 1;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  letter-spacing: -0.04em;
  transition: color 0.3s;
  user-select: none;
}

.bento__card:hover .bento__num { color: var(--rd-navy); opacity: 0.15; }
.bento__card--zabytki .bento__num { color: var(--rd-lime); }
.bento__card--zabytki:hover .bento__num { color: var(--rd-gold); }

.bento__content { position: relative; z-index: 2; }

.bento__eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rd-navy);
  margin-bottom: 0.5rem;
}

.bento__card--zabytki .bento__eyebrow { color: var(--rd-gold); }

.bento__title {
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rd-graphite);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.bento__desc {
  font-size: 0.875rem;
  color: var(--rd-concrete);
  line-height: 1.55;
  max-width: 40ch;
  margin-bottom: 1rem;
}

.bento__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rd-navy);
  text-decoration: none;
  transition: gap 0.2s;
}

.bento__card--zabytki .bento__link { color: var(--rd-gold); }
.bento__link:hover { gap: 0.7rem; }
.bento__link svg { width: 14px; height: 14px; }

/* ============================================================
   9. SEKCJA LICZB
   ============================================================ */
.numbers {
  background: var(--rd-grad-dark);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.numbers__item {
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  text-align: left;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.numbers__item:last-child { border-right: none; }

.numbers__value {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
}

.numbers__value span.highlight { color: var(--rd-gold); }

.numbers__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* ============================================================
   10. REALIZACJE PREVIEW
   ============================================================ */
.realizacje-preview {
  background: var(--rd-paper);
}

.realizacje-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--rd-plaster);
}

.realizacja-card {
  background: var(--rd-paper);
  text-decoration: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-standard), box-shadow 0.3s;
  position: relative;
}

.realizacja-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(34,38,42,0.15);
  z-index: 1;
}

.realizacja-card__img {
  width: 100%;
  height: 220px;
  background: var(--rd-grad-dark);
  overflow: hidden;
  position: relative;
}

.realizacja-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-standard);
}

.realizacja-card:hover .realizacja-card__img img {
  transform: scale(1.04) translateY(-4px);
}

.realizacja-card__corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 40px;
  background: var(--rd-navy);
}

.realizacja-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.realizacja-card__cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rd-gold);
  margin-bottom: 0.5rem;
}

.realizacja-card__title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rd-graphite);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.realizacja-card__client {
  font-size: 0.8125rem;
  color: var(--rd-concrete);
  margin-top: auto;
}

/* Empty portfolio state */
.portfolio-empty {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--container-pad);
  background: var(--rd-paper);
}

.portfolio-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--rd-ash);
}

.portfolio-empty h3 {
  color: var(--rd-graphite);
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
}

.portfolio-empty p {
  color: var(--rd-concrete);
  margin: 0 auto 2rem;
  max-width: 48ch;
}

/* ============================================================
   11. CONTACT BAR
   ============================================================ */
.contact-bar {
  background: var(--rd-navy);
  padding-block: clamp(2rem, 4vw, 3rem);
  color: #fff;
}

.contact-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-bar__text {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.contact-bar__phone {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--rd-gold);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.contact-bar__phone:hover { color: var(--rd-gold-light); }

/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer {
  background: var(--rd-graphite);
  color: rgba(255,255,255,0.7);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  max-width: 32ch;
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rd-gold);
  margin-bottom: 1rem;
}

.footer__links { display: flex; flex-direction: column; gap: 0.4rem; }

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover { color: #fff; }

.footer__contact-item {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.footer__contact-item a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__contact-item a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.footer__bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__bottom a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   13. PAGE HEADER (subpages banner)
   ============================================================ */
.page-header {
  background: var(--rd-grad-dark);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
  margin-top: 72px;
  position: relative;
  overflow: hidden;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.page-header__content { position: relative; z-index: 2; }

.page-header__eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rd-gold);
  margin-bottom: 0.75rem;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.page-header__desc {
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
  max-width: 56ch;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb__current { color: rgba(255,255,255,0.7); }

/* ============================================================
   14. OFERTA SUBPAGE CONTENT
   ============================================================ */
.oferta-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.oferta-content--reversed { direction: rtl; }
.oferta-content--reversed > * { direction: ltr; }

.oferta-text p {
  color: var(--rd-concrete);
  margin-bottom: 1.25rem;
}

.oferta-text h2 {
  color: var(--rd-graphite);
  margin-bottom: 1.25rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 1.5rem 0;
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.9375rem;
  color: var(--rd-graphite);
}

.feature-list__bullet {
  flex-shrink: 0;
  width: 16px;
  height: 8px;
  background: var(--rd-navy);
  margin-top: 0.4em;
  border-radius: 1px;
}

.feature-list--heritage .feature-list__bullet { background: var(--rd-gold); }

.oferta-image {
  position: sticky;
  top: calc(72px + 2rem);
  border-radius: 2px;
  overflow: hidden;
  min-height: 320px;
  background: var(--rd-grad-dark);
}

.oferta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

/* ============================================================
   15. CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  background: var(--rd-navy);
  color: #fff;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg { width: 18px; height: 18px; }

.contact-info__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rd-gold);
  margin-bottom: 0.25rem;
}

.contact-info__value {
  font-size: 0.9375rem;
  color: var(--rd-graphite);
  line-height: 1.5;
}

.contact-info__value a {
  color: var(--rd-graphite);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-info__value a:hover { color: var(--rd-navy); }

/* Map */
.map-embed {
  border-radius: 4px;
  overflow: hidden;
  height: 280px;
  background: var(--rd-plaster);
  margin-top: 2rem;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* CF7 form styles */
.wpcf7-form .form-row {
  margin-bottom: 1.25rem;
}

.wpcf7-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rd-graphite);
  margin-bottom: 0.4rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--rd-ash);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--rd-graphite);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--rd-navy);
  box-shadow: 0 0 0 3px rgba(29,58,107,0.12);
}

.wpcf7-form textarea { min-height: 140px; resize: vertical; }

.wpcf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background: var(--rd-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  font-family: var(--font-body);
}

.wpcf7-form .wpcf7-submit:hover { background: var(--rd-navy-deep); }

.wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: var(--rd-error);
  margin-top: 0.25rem;
}

.wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 3px;
  font-size: 0.875rem;
}

.wpcf7-form.sent .wpcf7-response-output {
  background: #EBF5EE;
  border: 1px solid #2E7D52;
  color: #1B5235;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
  background: #FDECEA;
  border: 1px solid var(--rd-error);
  color: #7B2020;
}

/* RODO consent */
.wpcf7-acceptance .wpcf7-list-item {
  font-size: 0.8125rem;
  color: var(--rd-concrete);
  margin: 0;
}

.wpcf7-acceptance input[type="checkbox"] {
  margin-right: 0.5rem;
  accent-color: var(--rd-navy);
}

/* ============================================================
   16. ARCHIVE REALIZACJE
   ============================================================ */
.archive-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.archive-filter-btn {
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--rd-ash);
  background: transparent;
  color: var(--rd-concrete);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.archive-filter-btn.is-active,
.archive-filter-btn:hover {
  border-color: var(--rd-navy);
  color: var(--rd-navy);
  background: rgba(29,58,107,0.06);
}

/* ============================================================
   17. SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__eyebrow,
  .hero__title,
  .hero__desc,
  .hero__cta {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__slides { transition: none; }
  .hero__slide-bg { transform: scale(1); transition: none; }
}

/* ============================================================
   18. MOBILE STICKY CTA
   ============================================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--rd-navy);
  padding: 0.875rem var(--container-pad);
  text-align: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.sticky-cta svg { width: 18px; height: 18px; }

/* ============================================================
   19. 404 PAGE
   ============================================================ */
.page-404 {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--container-pad);
  margin-top: 72px;
}

.page-404__code {
  font-family: var(--font-head);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 800;
  color: var(--rd-plaster);
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-404 h1 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--rd-graphite);
  margin-bottom: 1rem;
  text-transform: none;
  font-weight: 600;
}

.page-404 p {
  color: var(--rd-concrete);
  max-width: 44ch;
  margin: 0 auto 2rem;
}

/* ============================================================
   20. WORDPRESS CORE OVERRIDES
   ============================================================ */
.wp-block-image { margin: 2rem 0; }

.wp-caption { max-width: 100%; }

.aligncenter { margin-inline: auto; text-align: center; }
.alignleft { float: left; margin: 0 2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 2rem; }

/* Admin bar compensation */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ============================================================
   21. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid > *:last-child {
    grid-column: span 2;
  }

  .oferta-content {
    grid-template-columns: 1fr;
  }

  .oferta-content--reversed { direction: ltr; }

  .oferta-image {
    position: static;
    min-height: 260px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .menu-toggle { display: flex; }
  .sticky-cta { display: block; }

  body { padding-bottom: 60px; }

  .hero { height: 70vh; min-height: 480px; }
  .hero__arrow { display: none; }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento__card--wide {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    min-height: 260px;
  }

  .numbers__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .numbers__item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .numbers__item:last-child { border-bottom: none; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__grid > *:last-child { grid-column: span 1; }

  .contact-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .realizacje-grid {
    grid-template-columns: 1fr;
  }

  .archive-filters { gap: 0.375rem; }
}

@media (max-width: 480px) {
  .hero { height: 60vh; min-height: 420px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
