@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@100;300;400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');


/* ============================================================ */
/* ROOT VARIABLES                                               */
/* ============================================================ */

:root {
  --basic-blue:        #5b8db2;
  --basic-dark-blue:   #1f3447;
  --basic-white:       #e9eae9;
  --basic-black:       #171717;
  --basic-light-green: #e1c65e;
  --basic-medium-green:#bfa631;
}


/* ============================================================ */
/* RESET & BASE                                                 */
/* ============================================================ */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scrollbar-color: transparent transparent;
  scrollbar-width: 0px;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar        { width: 0; }
*::-webkit-scrollbar-track  { background: transparent; }
*::-webkit-scrollbar-thumb  { background: transparent; border: none; }

html,
body {
  background-color: var(--basic-blue);
  overscroll-behavior: none;
  overflow-x: hidden;
}


/* ============================================================ */
/* TYPOGRAPHY                                                   */
/* ============================================================ */

/* Nagłówki sekcji */
h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 70px;
  padding: 10px 0px;
}

/* Tekst uzupełniający do sekcji */
h3 {
  font-family: 'Noto Serif', sans-serif;
  font-weight: 300;
  font-size: 18px;
}

/* Call to action & buttons */
h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
}

a {
  font-family: 'Noto Serif', sans-serif;
  font-weight: 300;
  font-size: 8px;
  text-decoration: none;
  color: #fff;
}

.bold        { font-weight: 700; }
.display-none{ display: none; }
.padding40   { padding: 40px; }


/* ============================================================ */
/* NIEBO – HOMESCREEN                                          */
/* ============================================================ */

.niebo-container {
  height: 100vh;
}

.spacer {
  height: 10vh;
  position: relative;
}


/* ============================================================ */
/* HTML MAP                                                     */
/* ============================================================ */

.map-container {
  position: absolute;
  height: 100vh;
  width: 100vw;
  z-index: 800;
  opacity: 0;
}

.fullscreen-map {
  width: 100%;
  height: 100%;
}


/* ============================================================ */
/* SLIDING TITLES                                               */
/* ============================================================ */

#targetElementId {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 40vh;
  z-index: 100;
  transition: 0.5s ease;
}

#logo {
  height: 110px;
  transition: 0.5s cubic-bezier(0.06, 0.25, 0.4, 1);
}

.titleContainer {
  position: absolute;
  z-index: 400;
  height: 40vh;
  width: 100%;
  right: -100%;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: right 0.4s cubic-bezier(0, 0.99, 0.29, 1);
}

.titleText {
  align-items: center;
  justify-content: center;
  color: var(--basic-white);
}


/* ============================================================ */
/* 3D PARALLAX                                                  */
/* ============================================================ */

.wrapper {
  height: 100vh;
  width: 100vw;
  background-color: var(--basic-blue);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  perspective: 400px;
}

.parallax__group {
  position: relative;
  transform-style: preserve-3d;
}

.parallax__layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s ease;
  cursor: pointer;
}


/* ============================================================ */
/* PARALLAX LAYER ITEMS                                        */
/* ============================================================ */

.bg-ground {
  background: url('img/bg-ground.png') no-repeat center;
  background-size: cover;
  transform: translateZ(-600px) translateY(2px) scale(5);
  z-index: 1;
}

.wydarzenia {
  background: url('img/wydarzenia.png') no-repeat center;
  background-size: cover;
  transform: translateZ(-600px) scale(2.6);
  z-index: 1;
}

.domek {
  background: url('img/domek.png') no-repeat center;
  background-size: cover;
  transform: translateZ(-525px) scale(2.4);
  z-index: 2;
}

.browar {
  background: url('img/browar.png') no-repeat center;
  background-size: cover;
  transform: translateZ(-300px) scale(2);
  z-index: 3;
}

.onas {
  background: url('img/o_nas.png') no-repeat center;
  background-size: cover;
  transform: translateZ(-125px) scale(1.4167);
  z-index: 5;
}

.winnica {
  background: url('img/winnica.png') no-repeat center;
  background-size: cover;
  transform: translateZ(0) scale(1);
  margin-right: -1%;
  z-index: 6;
}

.niebo {
  background-size: cover;
  transform: translateZ(0) scale(1);
  z-index: 7;
}


/* ============================================================ */
/* ALL SCREENS – SHARED LAYOUT                                 */
/* ============================================================ */

.screen {
  height: 600px;
  transform: translateZ(0) scale(1);
  z-index: 8;
  display: flex;
  justify-content: center;
}

.flex-container {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
}

.main-text-container {
  padding: 60px 80px;
  height: 100%;
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: left;
}

.text-container {
  padding: 60px 80px;
  height: 100%;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
}

.text-container h1,
.text-container h3 {
  text-align: left;
  color: var(--basic-black);
}

.text-container h3 {
  max-width: 400px;
}


/* ============================================================ */
/* WELCOME SCREEN                                              */
/* ============================================================ */

.welcome-screen {
  background: var(--basic-white);
  color: #000;
  height: 700px;
}

.welcome-screen .bottomBG {
  position: absolute;
  width: 110%;
  max-width: 1400px;
  bottom: 0;
  transform: translateY(1px);
}

.welcome-screen .flex-container {
  display: flex;
  align-items: center;
}

.welcome-screen .text-container {
  display: flex;
  justify-content: start;
}


/* ============================================================ */
/* WINNICA SCREEN                                              */
/* ============================================================ */

.winnica-screen {
  background-color: var(--basic-dark-blue);
}

.winnica-screen .flex-container {
  display: flex;
  flex-wrap: wrap;
}

.winnica-screen .right-side {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.winnica-screen .text-container h1,
.winnica-screen .text-container h3 {
  text-align: left;
  color: var(--basic-white);
}

.winnica-screen h1 {
  color: var(--basic-white);
}

.grape-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

#grape {
  width: 320px;
  height: 320px;
  padding: 10px 20px 20px;
}

.winnica-screen .learnmore-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-right: 40px;
  width: 100%;
}

#learn-more-winnica {
  color: var(--basic-white);
}

#learn-more-winnica:hover {
  cursor: pointer;
}

#learn-more-winnica:hover + #arrow-winnica {
  transform: translateX(10px);
}

#arrow-winnica {
  width: 28px;
  height: 26px;
  z-index: 2;
  transition: 0.4s ease;
  transform: translateX(4px);
}

#arrow-winnica:hover {
  cursor: pointer;
  transform: translateX(10px);
}


/* ============================================================ */
/* BROWAR SCREEN                                               */
/* ============================================================ */

.browar-screen {
  background-color: var(--basic-medium-green);
}

.browar-screen .flex-container {
  display: flex;
  flex-wrap: wrap;
}

.browar-screen .right-side {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.browar-screen .text-container h1,
.browar-screen .text-container h3 {
  text-align: left;
  color: var(--basic-white);
}

.browar-screen h1 {
  color: var(--basic-white);
}

#beer {
  width: 220px;
  height: 220px;
  padding: 10px 0 10px 0;
}

.browar-screen .learnmore-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-right: 40px;
  width: 100%;
}

#learn-more-browar {
  color: var(--basic-white);
}

#learn-more-browar:hover {
  cursor: pointer;
}

#learn-more-browar:hover + #arrow-browar {
  transform: translateX(10px);
}

#arrow-browar {
  width: 28px;
  height: 26px;
  z-index: 2;
  transition: 0.4s ease;
  transform: translateX(4px);
}

#arrow-browar:hover {
  cursor: pointer;
  transform: translateX(10px);
}


/* ============================================================ */
/* WYDARZENIA SCREEN                                           */
/* ============================================================ */

.wydarzenia-screen {
  background-color: var(--basic-white);
}

.wydarzenia-screen .text-container {
  width: 100%;
  height: 100%;
}

.wydarzenia-screen .learnmore-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 150px;
}

#learn-more-wydarzenia,
#learn-more-fest {
  color: var(--basic-black);
}

#learn-more-wydarzenia:hover,
#learn-more-fest:hover {
  cursor: pointer;
}

#learn-more-wydarzenia:hover + #arrow-wydarzenia,
#learn-more-fest:hover + #arrow-fest {
  transform: translateX(10px);
}

#arrow-wydarzenia,
#arrow-fest {
  width: 28px;
  height: 26px;
  z-index: 2;
  transition: 0.4s ease;
  transform: translateX(4px);
}

#arrow-wydarzenia:hover,
#arrow-fest:hover {
  cursor: pointer;
  transform: translateX(10px);
}


/* ============================================================ */
/* DOMEK SCREEN                                                */
/* ============================================================ */

.domek-screen {
  background-color: var(--basic-medium-green);
}

.domek-screen .flex-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  max-width: 100%;
  height: 100%;
  position: relative;
}

.domek-screen .right-side {
  transform: translateX(-10%);
  padding: 10%;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.domek-screen .text-container h1,
.domek-screen .text-container h2,
.domek-screen .text-container h3,
.d-container h1,
.d-container h2,
.d-container h3 {
  padding: 20px 0px 20px;
  text-align: left;
  color: var(--basic-white);
}

.domek-screen h1,
.domek-screen h3 {
  color: var(--basic-white);
}

.domek-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

#domek-homepage {
  display: none;
}

.domek-screen .learnmore-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: left;
  padding-right: 40px;
  padding-top: 10px;
  width: 100%;
}

#learn-more-domek {
  color: var(--basic-white);
}

#learn-more-domek:hover {
  cursor: pointer;
}

#learn-more-domek:hover + #arrow-domek {
  transform: translateX(10px);
}

#arrow-domek {
  width: 28px;
  height: 26px;
  z-index: 2;
  transition: 0.4s ease;
  transform: translateX(4px);
}

#arrow-domek:hover {
  cursor: pointer;
  transform: translateX(10px);
}


/* ============================================================ */
/* ADDITIONAL / SUBPAGES                                       */
/* ============================================================ */
/* Wszystkie style .new-page-container żyją w style-subpages.css */

.new-page-container h1 {
  color: var(--basic-black);
}

.menu-content,
.learn-more-content {
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  height: 100%;
  padding: 20px;
}

.exitBTN {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 0;
  right: 0;
  padding: 20px;
  cursor: pointer;
  transition: 0.4s ease;
}

.exitBTN:hover {
  transform: scale(108%);
}

.zarezerwuj-btn {
  width: 200px;
  height: 100px;
}

.domek-opis {
  max-width: 800px;
  padding: 40px;
}

/* Domek – additional site */
.domekAdditionalSite h1 {
  padding: 40px;
}

.domekAdditionalSite h1 {
  padding: 0px 40px;
}


/* ============================================================ */
/* CHEVRON / SCROLL INDICATOR                                  */
/* ============================================================ */

.chevron-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

.chevron {
  position: absolute;
  top: 70%;
  width: 2.1rem;
  height: 0.48rem;
  opacity: 0;
  transform: scale(0.3);
  animation: move-chevron 3s ease-out infinite;
  -webkit-animation: move-chevron 3s ease-out infinite;
}

.chevron:first-child {
  animation: move-chevron 3s ease-out 1s infinite;
  -webkit-animation: move-chevron 3s ease-out 1s infinite;
}

.chevron:nth-child(2) {
  animation: move-chevron 3s ease-out 2s infinite;
  -webkit-animation: move-chevron 3s ease-out 2s infinite;
}

.chevron:before,
.chevron:after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background: var(--basic-white);
}

.chevron:before {
  left: 0;
  transform: skewY(30deg);
}

.chevron:after {
  right: 0;
  width: 50%;
  transform: skewY(-30deg);
}

.chevron-text {
  position: absolute;
  color: var(--basic-white);
  transition: ease 1s;
  transform: translateY(0px);
  opacity: 0;
  z-index: 100;
}

@keyframes move-chevron {
  25%    { opacity: 1; }
  33.3%  { opacity: 1; transform: translateY(2.28rem); }
  66.6%  { opacity: 1; transform: translateY(3.12rem); }
  100%   { opacity: 0; transform: translateY(4.8rem) scale(0.5); }
}

@-webkit-keyframes move-chevron {
  25%    { opacity: 1; }
  33.3%  { opacity: 1; transform: translateY(2.28rem); }
  66.6%  { opacity: 1; transform: translateY(3.12rem); }
  100%   { opacity: 0; transform: translateY(4.8rem) scale(0.5); }
}


/* ============================================================ */
/* HAMBURGER MENU                                              */
/* ============================================================ */

.hamburger {
  position: absolute;
  top: 8px;
  right: 8px;
  cursor: pointer;
  display: flex;
  z-index: 500;
}

svg {
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.active svg {
  transform: rotate(90deg);
}

path {
  transition:
    transform        500ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dasharray 500ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

path:nth-child(1) { transform-origin: 36% 40%; }
path:nth-child(2) { stroke-dasharray: 29 299; }
path:nth-child(3) { transform-origin: 35% 63%; }
path:nth-child(4) { stroke-dasharray: 29 299; }
path:nth-child(5) { transform-origin: 61% 52%; }
path:nth-child(6) { transform-origin: 62% 52%; }

.active path:nth-child(1) { transform: translateX(9px) translateY(1px) rotate(45deg); }
.active path:nth-child(2) { stroke-dasharray: 225 299; stroke-dashoffset: -72px; }
.active path:nth-child(3) { transform: translateX(9px) translateY(1px) rotate(-45deg); }
.active path:nth-child(4) { stroke-dasharray: 225 299; stroke-dashoffset: -72px; }
.active path:nth-child(5) { transform: translateX(9px) translateY(1px) rotate(-45deg); }
.active path:nth-child(6) { transform: translateX(9px) translateY(1px) rotate(45deg); }


/* ============================================================ */
/* MEDIA QUERIES                                               */
/* ============================================================ */

@media (max-width: 600px) {
  .spacer    { position: relative; }
  .hamburger { display: visible; }

  .screen          { height: auto; min-height: 500px; }
  .text-container  { width: 100%; height: auto; }

  /* Global mobile font sizes */
  h1 { font-size: 44px; padding: 6px 0; }
  h3 { font-size: 15px; line-height: 1.6; }

  /* Welcome screen — scroll safe */
  .welcome-screen {
    height: auto;
    min-height: 500px;
  }

  .welcome-screen .flex-container {
    padding: 30px 24px 80px;
    flex-direction: column;
    justify-content: flex-start;
  }

  .welcome-screen .text-container {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .welcome-screen h1 { font-size: 52px; }
  .welcome-screen h3 { font-size: 15px; }

  .main-text-container {
    padding: 30px 24px;
    width: 100%;
    height: auto;
  }

  .winnica-screen .right-side {
    width: 100%;
    height: 50%;
  }

  #grape {
    width: 150px;
    height: 150px;
    padding: 0px 0px 180px 0px;
  }

  .winnica-screen .learnmore-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  /* Browar — mobile centering */
  .browar-screen .right-side {
    width: 100%;
    height: 50%;
    align-items: center;
  }

  #beer {
    width: 150px;
    height: 150px;
    padding: 0;
  }

  .browar-screen .learnmore-container {
    justify-content: center;
    padding-right: 0;
  }
}

@media (min-width: 600px) {
  .spacer    { position: absolute; }
  .hamburger { display: none; }
}

@media (max-width: 600px) and (min-aspect-ratio: 2/3) and (max-aspect-ratio: 5/4) {
  /* Ekran bliski kwadratu */
  .map-container   { height: 60vh; }
  .niebo-container { height: 60vh; border: 3px solid red; }
  .spacer          { height: 30vh; }
}

@media (max-width: 600px) and (max-aspect-ratio: 2/3) {
  /* Ekran pionowy */
  .map-container   { height: 40vh; }
  .niebo-container { height: 40vh; }
  .spacer          { height: 40vh; }
}