/* =========================================================
   PAWEŁ POWAŁA REKLAMY — style.css
   Prosty, czysty CSS bez frameworków i bibliotek ikon.
   Wszystkie kolory zebrane w :root poniżej.
   ========================================================= */

:root {
  --graphite: #171717;
  --graphite-dark: #252525;
  --white: #ffffff;
  --bg-light: #f5f5f3;
  --accent: #f5c400;
  --accent-dark: #d9ac00;
  --accent-soft: rgba(245, 196, 0, 0.14);
  --gray: #777777;
  --success: #1a7a3d;

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 16px 40px rgba(23, 23, 23, 0.09);
  --shadow-sm: 0 6px 18px rgba(23, 23, 23, 0.06);
  --container-width: 1160px;
  --navbar-height: 76px;
}

/* ---------- RESET / PODSTAWY ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, Arial, sans-serif;
  color: var(--graphite);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Mała etykieta nad nagłówkiem sekcji */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background-color: var(--accent-dark);
  border-radius: 2px;
}

/* ---------- IKONY (własny, spójny zestaw SVG) ---------- */
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--accent-soft);
  color: var(--graphite);
  margin-bottom: 18px;
}

.icon-badge .icon {
  width: 26px;
  height: 26px;
}

.icon-badge--sm {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  margin-bottom: 0;
}

.icon-badge--sm .icon {
  width: 20px;
  height: 20px;
}

.icon-badge--lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.icon-badge--lg .icon {
  width: 30px;
  height: 30px;
}

/* ---------- PRZYCISKI ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--accent {
  background-color: var(--accent);
  color: var(--graphite);
  box-shadow: var(--shadow-sm);
}

.btn--accent:hover {
  background-color: var(--accent-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.btn--dark {
  background-color: var(--graphite);
  color: var(--white);
}

.btn--dark:hover {
  background-color: var(--graphite-dark);
}

.btn--lg {
  padding: 17px 32px;
  font-size: 1.05rem;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(23, 23, 23, 0.92);
  backdrop-filter: blur(8px);
  height: var(--navbar-height);
}

.navbar__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.navbar__logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: var(--accent);
  color: var(--graphite);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.navbar__logo-text {
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
}

.navbar__logo-text strong {
  color: var(--accent);
  font-weight: 700;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navbar__link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.navbar__link:hover {
  color: var(--accent);
}

.navbar__cta {
  padding: 11px 22px;
  font-size: 0.9rem;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
}

.navbar__toggle-bar {
  width: 22px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(23, 23, 23, 0.96) 8%,
    rgba(23, 23, 23, 0.78) 50%,
    rgba(23, 23, 23, 0.4) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  padding: 110px 24px 90px;
  margin: 0 auto;
  width: 100%;
}

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
}

.hero__subtitle {
  font-size: clamp(1.02rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ---------- SEKCJE OGÓLNE ---------- */
.section {
  padding: 90px 0;
}

.section--alt {
  background-color: var(--bg-light);
}

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
}

.section__lead {
  max-width: 640px;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 44px;
}

/* ---------- KARTY USŁUG ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background-color: var(--white);
  border: 1px solid rgba(23, 23, 23, 0.07);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card__title {
  font-size: 1.18rem;
  font-weight: 700;
}

.card__text {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- SEKCJA "DLACZEGO MY?" ---------- */
.why-us {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: start;
}

.why-us__intro .section__lead {
  margin-bottom: 0;
}

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

.advantages__item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.advantages__item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

/* ---------- GALERIA — UKŁAD BENTO ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 18px;
}

.gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery__item--big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
}

.gallery__button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__button:hover img {
  transform: scale(1.07);
}

/* Podpis jako nakładka na dole zdjęcia (nowocześniejszy wygląd niż podpis pod zdjęciem) */
.gallery__button figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(23, 23, 23, 0.85), rgba(23, 23, 23, 0));
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(23, 23, 23, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

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

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

/* ---------- KROKI ("JAK DZIAŁAMY?") ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.steps__item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 18px 0 6px;
}

.steps__item p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0;
}

.steps__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background-color: var(--graphite);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- CTA ---------- */
.cta {
  background-color: var(--graphite);
  padding: 76px 0;
}

.cta__inner {
  text-align: center;
  max-width: 620px;
}

.cta__title {
  color: var(--white);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
}

.cta__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

/* ---------- KONTAKT ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.contact__info,
.contact__card {
  background-color: var(--bg-light);
  border-radius: var(--radius);
  padding: 34px;
}

.contact__info h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.contact__phone {
  color: var(--graphite);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

.contact__area {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 23, 23, 0.1);
}

/* Karta z przyciskiem kopiowania e-maila */
.contact__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: var(--white);
  border: 1px solid rgba(23, 23, 23, 0.07);
}

.contact__card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.contact__card-text {
  color: var(--gray);
  font-size: 0.95rem;
}

.contact__email-hint {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Przycisk kopiowania e-maila + stan sukcesu po kliknięciu */
.copy-btn {
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.copy-btn--success {
  background-color: var(--success) !important;
  color: var(--white) !important;
}

/* ---------- STOPKA ---------- */
.footer {
  background-color: var(--graphite-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 26px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-bottom: 34px;
}

.footer__brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.footer__tagline {
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--accent);
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}

/* ---------- ANIMACJA WEJŚCIA PRZY PRZEWIJANIU ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* =========================================================
   MEDIA QUERIES - RESPONSYWNOŚĆ
   ========================================================= */

@media (max-width: 960px) {
  .why-us {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 210px;
  }
}

@media (max-width: 860px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background-color: var(--graphite);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .navbar__menu.is-open {
    max-height: 420px;
  }

  .navbar__link {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar__cta {
    margin-top: 14px;
    text-align: center;
  }

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

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

@media (max-width: 560px) {
  .hero__content {
    padding: 90px 18px 70px;
  }

  .section {
    padding: 64px 0;
  }

  .navbar__logo-text {
    font-size: 0.85rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery__item--big,
  .gallery__item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}
