/* responsive.css — Style responsywne, breakpointy: 480px / 768px / 1024px / 1440px */
/* Podejście mobile-first: baza dla najmniejszych ekranów, rozszerzana w górę */

/* ===================== BAZA MOBILE (domyślna) ===================== */

/* Nav: ukryj linki desktopowe, pokaż hamburger */
.nav__links,
.nav__cta {
  display: none;
}

.nav__hamburger {
  display: flex;
}

/* Hero mobile */
.hero {
  min-height: 100svh;
  padding-bottom: var(--space-16);
}

.hero__ctas {
  flex-direction: column;
  align-items: flex-start;
}

.hero__ctas .btn {
  width: 100%;
  justify-content: center;
  max-width: 360px;
}

/* Usługi: jedna kolumna na mobile */
.services__grid {
  grid-template-columns: 1fr;
}

/* Padding kart na mobile */
.service-card {
  padding: var(--space-8) var(--space-6);
}

/* O mnie: stos na mobile */
.about__grid {
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

/* Zdjęcie pierwsze na mobile */
.about__photo {
  order: -1;
}

.photo-placeholder {
  height: 260px;
}

.about__stats {
  gap: var(--space-6);
  flex-wrap: wrap;
}

.stat__number {
  font-size: var(--text-4xl);
}

/* Kontakt: przyciski w kolumnie na mobile */
.contact__buttons {
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.contact-btn {
  width: 100%;
  max-width: 300px;
  justify-content: center;
}

/* Sekcje: mniejszy padding na mobile */
.section {
  padding: var(--space-16) 0;
}

/* Section header: mniejszy odstęp */
.section__header {
  margin-bottom: var(--space-10);
}

.section__title {
  font-size: var(--text-3xl);
}

/* ===================== 480px — małe telefony w poziomie ===================== */
@media (min-width: 480px) {
  .hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__ctas .btn {
    width: auto;
    max-width: none;
  }

  .contact__buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-btn {
    width: auto;
    max-width: none;
  }

  .about__stats {
    gap: var(--space-8);
  }
}

/* ===================== 768px — tablety ===================== */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  /* Nav: pokaż wersję desktopową */
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__hamburger {
    display: none;
  }

  /* Całkowicie ukryj mobilne menu */
  .nav__mobile {
    display: none !important;
  }

  /* Hero: większe fonty */
  .hero__ctas {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .hero__ctas .btn {
    width: auto;
  }

  /* Usługi: dwie kolumny */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    padding: var(--space-10) var(--space-8);
  }

  /* O mnie */
  .about__photo {
    order: 0;
  }

  .photo-placeholder {
    height: 360px;
  }

  .stat__number {
    font-size: var(--text-5xl);
  }

  /* Kontakt: przyciski w rzędzie */
  .contact__buttons {
    flex-direction: row;
    width: auto;
  }

  .contact-btn {
    width: auto;
    max-width: none;
  }

  /* Sekcje: więcej przestrzeni */
  .section {
    padding: var(--space-20) 0;
  }

  .section__header {
    margin-bottom: var(--space-12);
  }

  .section__title {
    font-size: var(--text-4xl);
  }
}

/* ===================== 1024px — małe laptopy ===================== */
@media (min-width: 1024px) {
  :root {
    --section-padding: 6rem;
  }

  /* O mnie: dwie kolumny */
  .about__grid {
    grid-template-columns: 55fr 45fr;
    gap: var(--space-16);
    align-items: center;
  }

  .photo-placeholder {
    height: 400px;
  }

  .about__photo {
    order: 0;
  }

  /* Usługi: padding pełny */
  .services__grid {
    gap: var(--space-6);
  }

  /* Section title: pełny rozmiar */
  .section__title {
    font-size: var(--text-4xl);
  }

  .section__header {
    margin-bottom: var(--space-16);
  }
}

/* ===================== 1440px — duże ekrany ===================== */
@media (min-width: 1440px) {
  :root {
    --container-max: 1320px;
    --container-padding: 3rem;
  }

  .hero__headline {
    font-size: 80px;
  }

  .section__title {
    font-size: var(--text-5xl);
  }

  .services__grid {
    gap: var(--space-8);
  }

  .about__stats {
    gap: var(--space-12);
  }
}
