/**
 * AndrewDesign — Glass / Floating Header (v1.1)
 * Nie zmienia zawartości menu ani jego działania, tylko warstwę prezentacji.
 * Wczytywany globalnie na stronach motywu andrewdesign.
 */
:root {
  --ad-header-gap-x: clamp(0.75rem, 2.2vw, 1.5rem);
  --ad-header-gap-top: clamp(0.625rem, 1.25vw, 0.875rem);
  --ad-header-surface: rgba(5, 19, 30, 0.81);
  --ad-header-border: rgba(224, 183, 104, 0.25);
  --ad-header-text: #f6f5f1;
}

/* Pusta powierzchnia wokół „pigułki” ma pozostać przezroczysta. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  padding: var(--ad-header-gap-top) 0 0.5rem;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.site-header .site-header__inner {
  position: relative;
  width: min(calc(100% - 2 * var(--ad-header-gap-x)), 77.5rem);
  max-width: 77.5rem;
  min-height: var(--header-height, 4.25rem);
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.3vw, 1.75rem);
  border: 1px solid var(--ad-header-border);
  border-radius: 999px;
  background: var(--ad-header-surface);
  color: var(--ad-header-text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.085);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.site-header .site-brand,
.site-header .primary-nav .menu a {
  color: var(--ad-header-text);
}



/* Header logo: czysty symbol z usuniętymi pustymi marginesami PNG. */
.site-header .site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.site-header .site-brand img {
  width: clamp(2.9rem, 2.4vw + 1.6rem, 3.375rem);
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 47.999rem) {
  .site-header .site-brand img {
    width: 2.75rem;
  }
}

.site-header .menu-toggle {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid rgba(224, 183, 104, 0.35);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ad-header-text);
}

.site-header .menu-toggle__lines i {
  background: currentColor;
}

/* Rozwinięte menu pod kapsułą, a nie pasek rozciągnięty przez cały ekran. */
@media (max-width: 74.999rem) {
  .site-header .site-header__inner {
    border-radius: 1.375rem;
  }

  .site-header .primary-nav,
  .site-header .primary-nav.is-open {
    position: absolute;
    inset: calc(100% + 0.625rem) 0 auto;
    width: 100%;
    max-height: calc(100dvh - var(--header-height, 4rem) - 2.5rem);
    overflow-y: auto;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--ad-header-border);
    border-radius: 1.25rem;
    background: #061826;
    color: var(--ad-header-text);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header .primary-nav .menu a {
    color: var(--ad-header-text);
    border-bottom-color: rgba(224, 183, 104, 0.14);
  }

  .site-header .primary-nav .header-cta {
    width: 100%;
  }
}

@media (max-width: 47.999rem) {
  :root {
    --ad-header-gap-x: 0.75rem;
    --ad-header-gap-top: 0.5rem;
  }

  .site-header .site-header__inner {
    min-height: var(--header-height, 3.875rem);
    padding-inline: 0.875rem;
    border-radius: 1.125rem;
  }

  .site-header .site-brand img {
    max-width: 2.75rem;
    max-height: 2.75rem;
  }

  .site-header .primary-nav,
  .site-header .primary-nav.is-open {
    border-radius: 1rem;
  }
}

/* Nie ograniczaj desktopowej nawigacji przez reguły mobilne. */
@media (min-width: 75rem) {
  .site-header .primary-nav,
  .site-header .primary-nav.is-open {
    position: static;
    inset: auto;
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}





/* Strona główna: header startuje na Hero, bez osobnego pasa nad sekcją.
   Po scrollu dostaje klasę .ad-is-stuck i przykleja się do górnej krawędzi. */
.home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 220;
}

.home .site-header.ad-is-stuck {
  position: fixed;
  top: 0;
}

.home .hero,
.home .site-main .hero,
.home main .hero {
  padding-top: calc(var(--header-height, 4.25rem) + var(--ad-header-gap-top) + 4rem);
}

@media (max-width: 47.999rem) {
  .home .hero,
  .home .site-main .hero,
  .home main .hero {
    padding-top: calc(var(--header-height, 3.875rem) + var(--ad-header-gap-top) + 2.25rem);
  }
}

/* Admin-bar: odstęp działa na desktopie; na bardzo małych ekranach pasek WP nie jest przyklejony. */
@media (min-width: 601px) {
  .admin-bar .site-header {
    top: var(--wp-admin--admin-bar--height, 32px);
  }

  .home.admin-bar .site-header.ad-is-stuck {
    top: var(--wp-admin--admin-bar--height, 32px);
  }
}



/* Gdy widoczny jest pasek administratora WordPress, header startuje niżej.
   Hero musi wtedy dostać dodatkowy zapas, aby kapsuła nie zasłaniała H1. */
@media (min-width: 601px) {
  .home.admin-bar .hero,
  .home.admin-bar .site-main .hero,
  .home.admin-bar main .hero {
    padding-top: calc(var(--header-height, 4.25rem) + var(--ad-header-gap-top) + var(--wp-admin--admin-bar--height, 32px) + 4rem);
  }
}

html {
  scroll-padding-top: calc(var(--header-height, 4.25rem) + var(--ad-header-gap-top) + 1.25rem);
}

.home-funnel [id],
main [id] {
  scroll-margin-top: calc(var(--header-height, 4.25rem) + var(--ad-header-gap-top) + 1.25rem);
}



/* v1.5.3: efekt nasunięcia dotyczy tylko usług, NIE kontenera .home-funnel.
   .home-funnel obejmuje także Hero; ujemny margin na nim przesuwał H1 pod header. */
.home .services {
  position: relative;
  z-index: 18;
  width: calc(100% - 2 * clamp(0.75rem, 3vw, 3.5rem));
  margin: -2.5rem auto 0;
  padding-top: clamp(3.5rem, 5vw, 4.75rem);
  border-radius: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) 0 0;
  background: var(--color-surface, #fff);
  box-shadow: 0 -12px 30px rgba(5, 19, 30, 0.06);
}

@media (max-width: 63.999rem) {
  .home .services {
    width: calc(100% - 2 * 1rem);
    margin-top: -1.875rem;
    padding-top: 3rem;
    border-radius: 1.75rem 1.75rem 0 0;
  }
}

@media (max-width: 47.999rem) {
  .home .services {
    width: calc(100% - 2 * 0.5rem);
    margin-top: -1.25rem;
    padding-top: 2.75rem;
    border-radius: 1.375rem 1.375rem 0 0;
  }
}






/* Hero: sygnały w jednej linii i centralna strzałka prowadząca do oferty. */
.home .hero {
  position: relative;
}

.home .hero__grid {
  position: relative;
}

.home .hero__content {
  position: static;
}

.home .hero__signals {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.875rem clamp(1.5rem, 2vw, 2.5rem);
  padding-right: 0;
}

.home .hero__signals li {
  flex: 0 0 auto;
}

.home .hero__signals li:first-child {
  white-space: nowrap;
}

.home .hero__signals li:last-child {
  position: static;
}

.home .hero__next {
  position: absolute;
  left: calc(50% + clamp(5.5rem, 8vw, 8.5rem));
  right: auto;
  bottom: clamp(-0.25rem, 0.7vw, 0.75rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(4.3rem, 5vw, 5rem);
  height: clamp(4.3rem, 5vw, 5rem);
  margin: 0;
  border: 1px solid rgba(224, 183, 104, 0.44);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 28%, rgba(230, 183, 93, 0.16), rgba(6, 19, 31, 0.96) 74%);
  box-shadow: 0 18px 38px rgba(4, 11, 19, 0.28), 0 0 0 5px rgba(230, 183, 93, 0.08);
  color: #e6b75d;
  text-decoration: none;
  transform: translateX(-50%);
  z-index: 8;
  animation: adHeroArrowBob 2s ease-in-out infinite;
  transition: box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.home .hero__next:hover,
.home .hero__next:focus-visible {
  transform: translateX(-50%) translateY(2px) scale(1.035);
  box-shadow: 0 20px 42px rgba(4, 11, 19, 0.34), 0 0 0 6px rgba(230, 183, 93, 0.1);
  border-color: rgba(230, 183, 93, 0.6);
  outline: none;
  animation-play-state: paused;
}

.home .hero__next svg {
  width: clamp(1.6rem, 2vw, 1.95rem);
  height: clamp(2rem, 2.5vw, 2.5rem);
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 10px rgba(230, 183, 93, 0.24));
}

@keyframes adHeroArrowBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  45% { transform: translateX(-50%) translateY(10px); }
  60% { transform: translateX(-50%) translateY(6px); }
}

/* Napisy na ekranie laptopa i telefonu w Hero. */
.home .hero__visual {
  position: relative;
}

.home .ad-device-copy {
  position: absolute;
  color: #f4efe8;
  background: linear-gradient(180deg, rgba(7, 17, 29, 0.88), rgba(4, 10, 18, 0.92));
  border: 1px solid rgba(224, 183, 104, 0.24);
  border-radius: 0.95rem;
  box-shadow: 0 18px 38px rgba(4, 11, 19, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  overflow: hidden;
}

.home .ad-device-copy::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(230, 183, 93, 0.65), rgba(230, 183, 93, 0));
}

.home .ad-device-copy--laptop {
  top: 25%;
  left: 33%;
  width: 39%;
  padding: 0.9rem 1rem 0.85rem;
  transform: rotate(-7deg);
}

.home .ad-device-copy--phone {
  top: 40%;
  left: 10.2%;
  width: 16%;
  min-width: 6.8rem;
  padding: 0.5rem 0.55rem 0.55rem;
  border-radius: 0.85rem;
  transform: rotate(-2deg);
}

.home .ad-device-copy__eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(230, 183, 93, 0.9);
}

.home .ad-device-copy__title {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home .ad-device-copy__title span {
  display: block;
}

.home .ad-device-copy__title .is-accent {
  color: #e6b75d;
}

.home .ad-device-copy__meta {
  margin: 0.5rem 0 0;
  font-size: 0.64rem;
  line-height: 1.35;
  color: rgba(243, 247, 250, 0.78);
}

.home .ad-device-copy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.home .ad-device-copy__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 183, 93, 0.3);
  background: rgba(230, 183, 93, 0.12);
  color: #f5efe3;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.home .ad-device-copy--phone .ad-device-copy__eyebrow {
  margin-bottom: 0.35rem;
  font-size: 0.46rem;
}

.home .ad-device-copy--phone .ad-device-copy__title {
  font-size: 0.5rem;
  line-height: 1.15;
}

.home .ad-device-copy--phone .ad-device-copy__meta {
  margin-top: 0.32rem;
  font-size: 0.36rem;
  line-height: 1.25;
}

.home .ad-device-copy--phone .ad-device-copy__chip {
  min-height: 1rem;
  padding: 0.14rem 0.34rem;
  font-size: 0.38rem;
}

@media (max-width: 74rem) {
  .home .hero__signals {
    gap: 0.75rem 1.25rem;
  }

  .home .ad-device-copy--laptop {
    top: 24%;
    left: 31.5%;
    width: 41%;
  }
}

@media (max-width: 63.999rem) {
  .home .hero__signals {
    gap: 0.75rem 1rem;
  }

  .home .hero__signals li:first-child {
    white-space: normal;
  }

  .home .hero__next {
    left: calc(50% + 4.25rem);
    right: auto;
    width: 4rem;
    height: 4rem;
    bottom: 0.35rem;
  }

  .home .ad-device-copy--laptop {
    top: 25%;
    left: 30%;
    width: 42%;
    padding: 0.75rem 0.85rem;
  }

  .home .ad-device-copy__title {
    font-size: 0.82rem;
  }
}

@media (max-width: 47.999rem) {
  .home .hero__signals {
    display: grid;
    gap: 0.75rem;
  }

  .home .hero__signals li {
    flex: initial;
  }

  .home .hero__signals li:first-child {
    white-space: normal;
  }

  .home .hero__signals li:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .home .hero__next {
    position: static;
    width: 3.25rem;
    height: 3.25rem;
    margin-left: auto;
    transform: translateX(-50%);
    animation-duration: 2.2s;
  }

  .home .hero__next:hover,
  .home .hero__next:focus-visible {
    transform: translateY(2px) scale(1.03);
  }

  .home .ad-device-copy--laptop {
    top: 26%;
    left: 28%;
    width: 45%;
    padding: 0.62rem 0.7rem;
  }

  .home .ad-device-copy--phone {
    top: 40%;
    left: 9%;
    width: 17%;
    min-width: 5.6rem;
  }

  .home .ad-device-copy__title {
    font-size: 0.68rem;
  }

  .home .ad-device-copy__meta,
  .home .ad-device-copy__actions {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .hero__next {
    animation: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header .site-header__inner { background: #071b2b; }
  .site-header .primary-nav { background: #071b2b; }
}


/* v1.5.9 — usuń tylko okrągłą strzałkę Hero → Usługi;
   teksty sygnałów oraz pozostałe CTA zachowują swoje pozycje. */
.home .hero__next {
  display: none !important;
}
