/*  RESET

    1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}
/* 2. Remove default margin */
* {
    margin: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    /* 3. Add accessible line-height */
    line-height: 1.5;
    /* 4. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}
/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}
/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}
/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}
/* 8. Improve line wrapping */
p {
    text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}
/*
    9. Create a root stacking context
  */
#root,
#__next {
    isolation: isolate;
}

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

/* Styling */

body {
    font-family: "Poppins", serif;
    background-color: #f5e8d3;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Yeseva One", serif;
}

section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-wrapper {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1920px;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.center {
    justify-content: center;
    align-items: center;
}

.hero-section {
    background: #133a62;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.top-container {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    position: relative;
}

.top-nav-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.top-links-wrapper {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
}

.top-links-wrapper > a {
    font-size: 0.875rem;
    font-weight: 700;
}

.top-links-wrapper > a:hover {
    text-decoration: underline;
    color: #e4a13f;
}

.top-logo-wrapper {
    margin: 0 auto;
}

.h1-hero {
    font-size: 4rem;
    text-align: center;
    vertical-align: middle;
    line-height: 1.3;
}

.h1-deco {
    display: inline-block;
    width: 60px;
    height: 62px;
    background-image: url("../img/icon-drops.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.h2-section {
    font-size: 4rem;
    text-align: center;
    vertical-align: middle;
    line-height: 1.16;
}

.pre-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #e4a13f;
    text-align: center;
}

.section-title-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.button-zabka-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    font-size: 0.875rem;
}

/* Modifiers */

.gap-2_5 {
    gap: 2.5rem;
}

.dark {
    background-color: #133a62;
    color: #f5e8d3;
}

.light {
    background-color: #f5e8d3;
    color: #453021;
}

.hero-video-section {
    position: relative;
}

.hero-image-wrapper {
    min-height: 770px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.hero-top-pattern,
.hero-bottom-pattern,
.sticker-hero,
.watch-full-video-btn {
    position: relative;
    z-index: 1;
}

.hero-top-pattern {
    height: 64px;
    background-image: url("../img/separator-dark.svg");
    background-position-x: 0%;
    animation: hero-top-pattern-anim 90s linear infinite;
}
@keyframes hero-top-pattern-anim {
    0% {
        background-position-x: 0%;
    }
    100% {
        background-position-x: 100%;
    }
}

.hero-bottom-pattern {
    margin-top: auto;
    margin-bottom: 0;
    height: 64px;
    background-image: url("../img/separator-light.svg");
    animation: hero-bottom-pattern-anim 90s linear infinite;
}

@keyframes hero-bottom-pattern-anim {
    0% {
        background-position-x: 0%;
    }
    100% {
        background-position-x: -100%;
    }
}

.sticker-hero {
    position: absolute;
    right: 3rem;
    top: -3rem;
    transition: transform 0.3s ease-in-out;
}
.sticker-hero:hover {
    transform: scale(1.1) rotate(5deg);
}

.sticker-zabka {
    position: absolute;
    left: 3rem;
    bottom: 3rem;
}

.button-zabka {
    position: absolute;
    right: 0;
    top: -0.75rem;
}

.img-packshot {
    margin: 2rem auto;
    width: 100%;
    max-width: 960px;
    transition: transform 0.3s ease-in-out;
    display: none;
}

.img-packshot:hover {
    transform: scale(1.05);
}

.h3-section {
    font-size: 2.25rem;
    text-align: center;
    margin-top: -2rem;
}

.p-title-description {
    font-size: 1.25rem;
    text-align: center;
    max-width: 700px;
    align-self: center;
}

.section-grid-item {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem;
}

.section-grid-item > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-height: 330px;
    max-width: 330px;
    border-radius: 0.75rem;
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

.section-grid-item > img:hover {
    transform: scale(1.1);
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

.sticker-follow {
    position: absolute;
    left: 1rem;
    top: -4rem;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}
.sticker-follow:hover {
    transform: scale(1.1) rotate(5deg);
}

.col-2 {
    display: flex;
    flex-direction: row;
    gap: 0rem;
    align-items: stretch;
}

.final-section {
    min-height: 1095px;
    background-color: #f5e8d3;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.final-section-title-wrapper {
    margin-top: -8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.packshot-brand-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url("../img/image.jpg");
    background-size: cover;
}

.vertical-pattern {
    background-image: url("../img/separator-light-90.svg");
    height: 100%;
    width: 64px;
    position: absolute;
    left: 0;
    animation: vertical-pattern-anim 90s linear infinite;
}

@keyframes vertical-pattern-anim {
    0% {
        background-position-y: 0%;
    }
    100% {
        background-position-y: 100%;
    }
}

.pre-footer-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f5e8d3;
}

.wheel-anim {
    position: absolute;
    width: 3000px;
    height: 3000px;
    max-width: 1440px;
    top: -1100px;
    animation: wheel-anim 90s linear infinite;
    z-index: 1;
}

@keyframes wheel-anim {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.footer-logo {
    width: 100%;
    max-width: 400px;
    z-index: 2;
    position: absolute;
    top: -150px;
}

.footer-section {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
}

.footer-top-pattern {
    background-image: url("../img/separator-light.svg");
    height: 4rem;
    width: 100%;
}

.footer-links {
    margin-top: -1px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    background-color: #f5e8d3;
    padding-top: 2rem;
    padding-bottom: 4rem;
    border-bottom: 4px solid #f5e8d3;
    align-items: center;
    justify-content: center;
}

.footer-links > a {
    font-size: 0.875rem;
    opacity: 0.5;
}

.footer-links-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.footer-links > a:hover {
    opacity: 1;
}

/* Media queries */

/* @media (max-width: 1380px) {
    .wheel-anim {
        width: 100%;
        top: -100vw;
    }
} */

.show-desktop {
    display: block;
}

.footer-copyright {
    text-align: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0.5rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.how-to-brew-link {
    padding: 1rem;
    border-radius: 3.5rem;
    background-color: transparent;
    border: 1px solid #e4a13f;
    color: #e4a13f;
    font-weight: 700;
    cursor: pointer;
}

.kup-teraz-link {
    padding: 1rem;
    border-radius: 3.5rem;
    background-color: #e4a13f;
    color: #133a62;
    font-weight: 700;
    cursor: pointer;
}
.kup-teraz-link {
    width: auto;
    margin: 0 auto;
}

.kup-teraz-link:hover {
    background-color: #fff;
    color: #e4a13f;
}

.watch-full-video-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #e4a13f;
    color: #133a62;
    border: none;
    border-radius: 3.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.watch-full-video-btn:hover {
    background: #f5e8d3;
    transform: translate(-50%, -50%) scale(1.05);
}

.instrukcja-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.instrukcja-step {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
    background-color: #eedec3;
    border-radius: 2rem;
    align-items: center;
}
.instrukcja-step-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: "Poppins", sans-serif;
}
.instrukcja-step-text > h4 {
    font-size: 1.5rem;
    font-family: "Poppins", sans-serif;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}
.instrukcja-step-text > p {
    font-size: 1.25rem;
    color: #453021;
}

.instrukcja-step-bullet {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: "Yeseva One", serif;
    background-color: #133a62;
    border-radius: 100%;
    text-align: center;
    color: #f5e8d3;
    width: 2rem;
    height: 2rem;
    display: inline-block;
    vertical-align: middle;
}

.width-auto {
    width: auto;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .col-2 {
        flex-direction: column;
        padding-top: 4rem;
    }
    .col-2 > div {
        width: 100%;
    }
    .pre-footer-section {
        display: none;
    }
    .section-grid,
    .instrukcja-wrapper {
        max-width: 600px;
    }
}

@media (max-width: 960px) {
    html {
        font-size: 12px;
    }
    .top-logo-wrapper {
        max-width: 300px;
        margin-top: 4rem;
    }
    .h1-hero {
        font-size: 3rem;
    }
    .h1-deco {
        width: 2rem;
        height: 2rem;
    }
    .sticker-hero {
        right: 1rem;
    }
    .section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-grid-item {
        width: 100%;
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .show-mobile {
        display: block;
    }
    .show-desktop {
        display: none !important;
    }
    .top-links-wrapper > a > svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    .background-video {
        height: 100%;
        width: 100%;
    }

    .watch-full-video-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

.jak-zaparzyc-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.jak-zaparzyc-header > h3 {
    font-size: 1.5rem;
}

.nav-link-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}
