/* ZMIENNE CSS - KOLORY */
:root {
  --kolor-ciemny: #000000;
  --kolor-jasny: #ffffff;
  --kolor-akcent: #777777;
  --tlo-nav: rgba(0, 0, 0, 0.35);
  --tlo-input: rgba(255, 255, 255, 0.12);
  --border-input: rgba(255, 255, 255, 0.28);
}

/* SELEKTORY GLOBALNE */
* {
  box-sizing: border-box;
  transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--kolor-ciemny);
  background: var(--kolor-ciemny);
  background-image: url("../img/tlo2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

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

/* Dostępność */
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* NAWIGACJA - FLEXBOX */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: var(--tlo-nav);
  backdrop-filter: blur(6px);
  padding: 12px 0;
}

.nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  gap: 1vw;
  padding: 0 40px;
  flex-wrap: wrap;
}

.nav__link{
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 8px 1.5vw;
  display: block;
  font-weight: 500;
  border-radius: 20px;
}

.nav__link:hover{
  background: var(--kolor-jasny);
  color: var(--kolor-ciemny);
}

.nav__link.is-active{
  color: var(--kolor-jasny);
  font-weight: 600;
}

/* HERO - FLEXBOX SECTION */
.hero{
  position: relative;
  min-height: 75vh;
  scroll-margin-top: 56px;

  /* FLEX CONTAINER */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 110px 20px 120px;
}

.hero__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__content{
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  color: var(--kolor-jasny);

  /* FLEX CONTAINER */
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hero__title{
  margin: 0;
  font-size: clamp(50px, 6.5vw, 90px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero__subtitle{
  margin: 0;
  font-size: 16px;
  opacity: 0.85;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

/* WRAPPER DLA BIAŁEGO PROSTOKĄTA */
.paper-wrapper{
  position: relative;

  /* FLEX CONTAINER */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px 60px;
}

/* BIAŁY PROSTOKĄT - FLEX SECTION */
.paper{
  background: var(--kolor-jasny);
  max-width: 980px;
  width: calc(100% - 40px);
  margin: -80px auto 0;
  padding: clamp(40px, 5vw, 80px) clamp(30px, 4vw, 60px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;

  /* FLEX CONTAINER */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}

/* SEKCJE KAWY - FLEX ITEMS */
.coffee{
  scroll-margin-top: 84px;
  padding: clamp(40px, 5vw, 60px) 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.coffee:first-child{
  padding-top: 0;
}

.coffee:last-child{
  padding-bottom: 0;
  border-bottom: none;
}

.coffee__title{
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: 0.02em;

  font-family: "Space Grotesk", sans-serif;
}

/* FLEXBOX: OBRAZ + TEKST */
.coffee__row{
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0;
}

/* NAPRZEMIENNOŚĆ - LEFT/RIGHT */
.coffee--left .coffee__row{
  flex-direction: row;
}

.coffee--right .coffee__row{
  flex-direction: row-reverse;
}

/* OBRAZEK - FLEX ITEM */
.coffee__figure{
  margin: 0;
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.coffee__img{
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.coffee__img:hover{
  transform: scale(1.25);
}

.coffee__img[src*="zdjecie4"]{
  max-width: 350px;
}

/* TEKST - FLEX ITEM */
.coffee__copy{
  flex: 1 1 320px;
  max-width: 480px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.65;
  color: #1a1a1a;
}

.coffee--left .coffee__copy{
  text-align: right;
}

.coffee--right .coffee__copy{
  text-align: left;
}

.coffee__copy p{
  margin: 0 0 14px;
  font-weight: 300;
}

.coffee__kicker{
  margin: 0 0 18px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* PASEK ODDZIELAJĄCY */
.coffee__rule{
  margin-top: 26px;
  width: 100%;
  max-width: 280px;
  height: 2px;
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.3s ease;
}

.coffee__rule:hover{
  background: rgba(0, 0, 0, 0.3);
}

.coffee--left .coffee__rule{
  margin-left: auto;
  margin-right: 0;
}

.coffee--right .coffee__rule{
  margin-left: 0;
  margin-right: auto;
}

/* OUTRO - FLEXBOX SECTION */
.outro{
  position: relative;
  min-height: 60vh;
  color: var(--kolor-jasny);

  /* FLEX CONTAINER */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 70px 20px 60px;
}

.outro::before{
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.outro__inner{
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;

  /* FLEX CONTAINER */
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.outro__title{
  margin: 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.95;
  font-weight: 600;
}

.outro__text{
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(13px, 1.5vw, 16px);
  opacity: 0.9;
  line-height: 1.5;
}

/* STOPKA - CZARNE TŁO - FLEXBOX SECTION */
.stopka{
  background-color: var(--kolor-ciemny);
  color: var(--kolor-jasny);
  min-height: 40vh;

  /* FLEX CONTAINER */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px 20px;
  scroll-margin-top: 56px;
}

.stopka .zawartosc{
  max-width: 1200px;
  width: 100%;
  padding: 20px;

  /* FLEX CONTAINER */
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.stopka article{
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stopka article h4{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stopka article p{
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.85;
}

.stopka article p a{
  color: var(--kolor-jasny);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.stopka article p a:hover{
  border-bottom-color: var(--kolor-jasny);
}

/* NEWSLETTER W STOPCE */
.stopka__newsletter form{
  margin-top: 8px;
}

.newsletter__form{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.newsletter__form input{
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-input);
  background: var(--tlo-input);
  color: var(--kolor-jasny);
  outline: none;
  width: 280px;
  transition: all 0.3s ease;
}

.newsletter__form input:focus{
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

.newsletter__form input::placeholder{
  color: rgba(255, 255, 255, 0.7);
}

.newsletter__form button{
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--border-input);
  background: rgba(255, 255, 255, 0.18);
  color: var(--kolor-jasny);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.newsletter__form button:hover{
  background: var(--kolor-akcent);
  border-color: var(--kolor-akcent);
  transform: translateY(-2px);
}

/* COPYRIGHT */
.copyright{
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 1200px;
  text-align: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  opacity: 0.6;
  line-height: 1.5;
}

.copyright p{
  margin: 0;
}

/* RWD - RESPONSYWNOŚĆ */
@media (max-width: 768px){
  /* Hero */
  .hero{
    min-height: 60vh;
    padding: 100px 20px 80px;
  }

  /* Biały prostokąt */
  .paper{
    margin: -60px auto 0;
    width: calc(100% - 20px);
    padding: 30px 20px;
  }

  /* Nawigacja */
  .nav{
    justify-content: center;
    gap: 5px;
    padding: 0 15px;
  }

  .nav__link{
    font-size: 11px;
    padding: 5px 8px;
  }

  /* Sekcje kawy - wymuszenie kolumnowego układu */
  .coffee__row,
  .coffee--right .coffee__row,
  .coffee--left .coffee__row{
    flex-direction: column;
    align-items: center;
  }

  .coffee__figure{
    flex: 1 1 auto;
    max-width: 100%;
  }

  .coffee__copy{
    max-width: 100%;
    text-align: left;
  }

  /* Paski wyrównane do lewej na mobile */
  .coffee--right .coffee__rule,
  .coffee--left .coffee__rule{
    margin-left: 0;
    margin-right: auto;
  }

  /* Coffee rule - zmniejszenie na mobile */
  .coffee__rule{
    max-width: 200px;
  }

  /* Newsletter w stopce */
  .newsletter__form{
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter__form input{
    width: 100%;
  }

  .newsletter__form button{
    width: auto;
  }

  /* Stopka */
  .stopka .zawartosc{
    flex-direction: column;
    gap: 30px;
  }

  .stopka article{
    flex: 1 1 auto;
  }
}

@media (max-width: 480px){
  /* Nawigacja - jeszcze mniejsza */
  .nav{
    padding: 0 10px;
    gap: 3px;
  }

  .nav__link{
    font-size: 9px;
    padding: 4px 6px;
  }

  .hero__title{
    font-size: 36px;
  }

  .outro__title{
    font-size: 38px;
  }

  .coffee__title{
    font-size: 20px;
    margin-bottom: 30px;
  }

  /* Coffee rule - jeszcze mniejsze */
  .coffee__rule{
    max-width: 150px;
  }
}