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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  color: #111;
  background-color: #fff;
  line-height: 1.6;
}

/* =========================
   VARIABLES (opcjonalnie)
========================= */
:root {
  --black: #111;
  --gray: #777;
  --max-width: 1200px;
}

/* =========================
   GLOBAL
========================= */
.section {
  padding: 80px 20px;
}

.section__title {
  text-align: center;
  font-size: 3rem;
  letter-spacing: 2px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 26px;
  border: 1px solid var(--black);
  color: var(--black);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  background-color: white;
}

.btn:hover {
  background-color: var(--black);
  color: #fff;
}

/* =========================
   HERO
========================= */
.hero {
  text-align: center;
}

.hero__title {
  font-size: 2.8rem;
  letter-spacing: 4px;
  font-weight: 200;
}

.hero__subtitle {
  margin-top: -15px;
  font-size: 0.9rem;
  letter-spacing: 4px;
  margin-bottom: 5px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: sticky;
  top: 0;
  background-color: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  z-index: 100;
}

.navbar__list {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  padding: 20px;
}

.navbar__list a {
  text-decoration: none;
  color: var(--black);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.navbar__toggle {
  display: none;
}

/* =========================
   O MNIE
========================= */
.section--about {
  overflow: hidden;
}

.about__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.about__image-wrapper {
  text-align: center;
}

.about__image {
  width: 100%;
  max-width: 300px;
}

.about__content {
  padding: 40px;
  margin-bottom: 270px;
}

.about__content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

/* =========================
   OFERTA
========================= */
.section--offer {
  overflow: hidden;
}

.offer__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 60px;
}

.offer__item {
  margin-bottom: 50px;
}

.offer__item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.offer__item p {
  font-size: 1.2rem;
  color: var(--gray);
}

.offer__price {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 1.2rem;
}

.offer__image {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
}

/* =========================
   KONTAKT
========================= */
.section--contact {
  background-color: var(--beige);
}

.contact__grid {
  max-width: var(--max-width);
  margin: 60px auto 0;
  display: grid;
  gap: 40px;
}

.contact__phone {
  font-size: 3rem;
  margin-bottom: 20px;
}

.contact__socials {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.contact__socials img {
  width: 150px;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid;
  font-family: inherit;
}

.contact__form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact__phone a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.contact__phone a:visited,
.contact__phone a:active,
.contact__phone a:hover {
  color: inherit;
  text-decoration: none;
}
.form__message {
  margin-top: 15px;
  font-size: 14px;
}

.form__message.success {
  color: #2e7d32;
}

.form__message.error {
  color: #c62828;
}
.contact__form button[type="submit"] {
  cursor: pointer;
}

/* =========================
   FOOTER
========================= */
.footer {
  padding: 20px;
  text-align: center;
  font-size: 0.75rem;
  border-top: 1px solid #eee;
}
.footer a {
  color: inherit;
  text-decoration: none;
}
/* =========================
   MOBILE NAVBAR
========================= */
@media (max-width: 1023px) {

  .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .navbar__toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    cursor: pointer;
  }

  .chevron {
    width: 18px;
  }

  .chevron--up {
    display: none;
  }

  .navbar__toggle.is-open .chevron--down {
    display: none;
  }

  .navbar__toggle.is-open .chevron--up {
    display: block;
  }

  /* ⭐ KLUCZOWE */
  
  .navbar__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

    overflow: hidden;
    height: 0;

    opacity: 0;
    transform: translateY(-6px);

    transition:
      height 0.35s ease,
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .navbar__list.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .about__content {
  padding: 40px;
  margin-bottom: 0;
}
 .section--offer .section__title {
    margin-bottom: 24px;
  }
  
  .about__content,
  .offer__item,
  .contact__info,
  .contact__form {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }

  .is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .contact__info {
    text-align: center;
  }

  .contact__socials {
    justify-content: center;
  }
  section {
  scroll-margin-top: 210px;
}
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1024px) {

  .hero__title {
    font-size: 4rem;
  }

  .about__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about__image {
    max-width: 420px;
    transform: translateX(-80px);
  }

  .offer__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .offer__image {
    max-width: 300px;
    transform: translateX(80px);
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
    .navbar__list {
    height: auto !important;
    overflow: visible;
    opacity: 1;
    transform: none;
    transition: none;

    padding: 20px;              /* desktopowy padding */
    border: none;               /* ❗ usuwa „kreski” */
  }

  .navbar__toggle {
    display: none;
  }
  
/* mobile + desktop */
.about__content,
.offer__item,
.contact__info,
.contact__form {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* stan widoczny */
.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ❗ zdjęcia zawsze widoczne */
.about__image,
.offer__image {
  opacity: 1 !important;
  transform: none !important;
}
}
