/* Komponenty: nawigacja, hero, karty, sekcje, stopka. */

/* Nawigacja */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 9, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}

@supports (backdrop-filter: blur(8px)) {
  .nav {
    background: rgba(9, 9, 9, 0.78);
    backdrop-filter: blur(10px);
  }
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  min-height: var(--nav-height);
}

.nav__brand {
  display: flex;
  align-items: center;
  padding-block: 0.5rem;
}

.nav__logo {
  width: auto;
  height: 52px;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: none;
  border: 2px solid var(--line);
  color: var(--text);
  cursor: pointer;
}

.js .nav__toggle {
  display: inline-flex;
}

.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 1.375rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav__toggle-bars {
  position: relative;
}

.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle-bars::before {
  top: -7px;
}

.nav__toggle-bars::after {
  top: 7px;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__menu {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  gap: 0.25rem;
  padding-bottom: 1.25rem;
}

.js .nav__menu {
  display: none;
}

.js .nav__menu.is-open {
  display: flex;
}

.nav__link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--yellow);
}

.nav__menu .btn {
  margin-top: 0.5rem;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 34rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: -8% 0;
  z-index: -3;
  will-change: transform;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(9, 9, 9, 0.94) 0%, rgba(9, 9, 9, 0.78) 55%, rgba(9, 9, 9, 0.55) 100%);
}

.hero__content {
  padding-block: 5rem 4rem;
}

.hero__title {
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: #d6d6d6;
  font-size: 1.1875rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__enter {
  animation: hero-enter 0.9s var(--ease) both;
}

.hero__enter:nth-child(2) {
  animation-delay: 0.12s;
}

.hero__enter:nth-child(3) {
  animation-delay: 0.24s;
}

.hero__enter:nth-child(4) {
  animation-delay: 0.36s;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Karty usług */

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.25s;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.service-card:hover {
  border-color: #4a4a4a;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card__icon {
  color: var(--yellow);
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.1;
  text-transform: uppercase;
}

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

.service-card__list {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.service-card__list li {
  position: relative;
  padding-left: 1.125rem;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--yellow);
}

/* Realizacje */

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.project-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f0f0f;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-card__media img {
  transform: scale(1.04);
}

.project-card__body {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.project-card__meta {
  color: var(--yellow);
  font-size: 0.9375rem;
  font-weight: 500;
}

.project-card__text {
  color: var(--muted);
  font-size: 1rem;
}

.project-card__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.project-card__gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.project-card__gallery a:hover img {
  border-color: var(--yellow);
}

/* Dlaczego my */

.why {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--yellow);
}

.why__item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.why__number {
  grid-row: span 2;
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}

.why__title {
  font-size: 1.25rem;
  font-weight: 600;
}

.why__text {
  grid-column: 2;
  color: var(--muted);
}

/* CTA */

.cta {
  background: var(--yellow);
  color: #090909;
}

.cta__inner {
  display: grid;
  gap: 2rem;
  padding-block: 3.5rem;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.cta__text {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: 1.1875rem;
  font-weight: 500;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta :focus-visible {
  outline-color: #090909;
}

/* Kontakt */

.contact-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  font-size: 1.1875rem;
  font-weight: 500;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--yellow);
}

.contact-list__label {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Stopka */

.footer {
  background: var(--bg-section);
  border-top: 3px solid var(--yellow);
  color: var(--muted);
  font-size: 1rem;
}

.footer__inner {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem 3rem;
}

.footer__logo {
  width: auto;
  height: 72px;
  margin-bottom: 1.25rem;
}

.footer__company {
  color: var(--text);
  font-weight: 500;
}

.footer__owner {
  margin-top: 0.375rem;
}

.footer__owner span {
  margin-right: 0.25rem;
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__heading {
  margin: 0 0 1rem;
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__list {
  display: grid;
  gap: 0.25rem;
}

.footer__list li {
  display: flex;
  align-items: center;
  min-height: 2rem;
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--text);
  text-decoration: none;
}

.footer__list a:hover {
  color: var(--yellow);
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 2px solid #3a3a3a;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.social__link:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.footer__bar {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
  font-size: 0.9375rem;
}

.credit {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.credit strong {
  color: var(--text);
  font-weight: 600;
}

.credit:hover,
.credit:hover strong {
  color: var(--yellow);
}

.credit__logo {
  width: auto;
  height: 56px;
}
