:root {
    --clr-neutral-0: #FFFFFF;
    --clr-neutral-1000: #000000;

    --clr-blue-050: #85a8c7;
    --clr-blue-100: #DEDEDE99;
    --clr-blue-400: #2775bd;
    --clr-blue-500: #004e9c;

    --clr-red-500: #E21E2D;

    --header-height-mobile: 68px;
    --header-height-desktop: 92px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body,
p,
ul,
h1,
h2,
h3 {
    margin: 0;
    padding: 0;
}

body {
    font-family: "National2", sans-serif;
    font-weight: 400;
    color: var(--clr-neutral-1000);
    background-color: #CFCBD1;
    position: relative;
}

/* Header */

header {
    height: var(--header-height-mobile);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
@media (min-width: 768px) {
    header {
        height: var(--header-height-desktop);
    }
}
header .container {
    height: 100%;
}

.header-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo {
    width: 88px;
    height: auto;
}

section {
    padding: 32px 0;
}
@media (min-width: 768px) {
    section {
        padding: 40px 20px;
    }
}

section.full-width {
    width: 100%;
    height: auto;
    min-height: 100svh;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-height-mobile) * 1.1) 0 16px;
}
@media (min-width: 768px) {
    section.full-width {
        padding: calc(var(--header-height-desktop) * 1.5) 40px 40px;
    }
}

/* Sectiunea creste peste 100svh cand continutul nu incape; lantul de flex
   pastreaza disclaimerul ancorat in josul sectiunii. */
section.full-width > picture {
    flex: 0 0 auto;
}
section.full-width > .container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.bg-image {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 768px) {
    .teasing-bg-image {
        object-position: left;
    }
}
/* Pe ecranele in format peisaj, fundalul se decupeaza pe latime: impingem
   decupajul spre dreapta ca "14"-ul incercuit sa iasa de sub countdown.
   Deplasarea e mica (~50px la 1024x768) si nu taie "Din 14 septembrie". */
@media (min-width: 768px) and (min-aspect-ratio: 5/4) {
    .teasing-bg-image {
        object-position: 10% center;
    }
}

.bucket-desktop-img {
    display: none;
    visibility: hidden;
}
@media (min-width: 768px) {
    .bucket-desktop-img {
        width: 26svw;
        height: auto;
        display: block;
        visibility: unset;
        position: absolute;
        bottom: 0;
        left: auto;
        right: 0;
        z-index: -1;
    }
}

section > .container {
    height: 100%;
}

.full-width .section-inner {
    width: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}

.section-headline {
    max-width: 320px;
    margin: 0 auto 20px;
    font-family: "National2Condensed", sans-serif;
    font-size: 32px;
    line-height: 1.2;
}

.section-headline,
.section-description,
.disclaimer {
    text-align: center;
}

.full-width .section-description {
    max-width: 640px;
    margin: 40px auto;
}

.section-description p {
    margin: 20px 0;
}

@media (min-width: 768px) {
    .section-headline {
        max-width: 560px;
        font-size: 44px;
    }
}

/* Countdown */

#countdown {
    --digit-width: clamp(18px, 9vw, 48px);
    --digit-height: clamp(30px, 15vw, 80px);
    --digit-font: var(--digit-height);
    --digit-gap: 2px;
    --group-gap: clamp(24px, 5vw, 48px);

    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: var(--group-gap);
    font-weight: 700;
    color: var(--clr-red-500);
    margin-bottom: 40svh;
}
#countdown.hidden {
    display: none;
}
@media (min-width: 768px) {
    #countdown {
        margin-bottom: 0;
    }
}

.countdown-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.countdown-digits {
    display: flex;
    flex-direction: row;
    gap: var(--digit-gap);
}

.countdown-label {
    font-size: clamp(10px, 3vw, 18px);
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    color: var(--clr-red-500);
}

#countdown .digit {
    width: var(--digit-width);
    height: var(--digit-height);
    border-radius: 6px;
    font-size: var(--digit-font);
    line-height: 1;
    font-weight: 700;
    color: var(--clr-red-500);
    display: grid;
    place-items: center;
    padding-top: 0.1em;
}

.disclaimer {
    max-width: 768px;
    margin: 20px auto;
    font-size: 14px;
}
@media (max-width: 768px) {
    .disclaimer {
        font-size: 16px;
    }
}

.product-image {
    margin: 32px 0;
}
@media (min-width: 768px) {
    .product-image {
        margin: 48px 0;
    }
}

.product-image img {
    width: 100%;
    max-width: 828px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* App Section */

.app {
    background-color: var(--clr-red-500);
    color: var(--clr-neutral-0);
}

.app .section-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.app .section-description {
    color: var(--clr-neutral-0);
    max-width: 640px;
}

@media (min-width: 768px) {
    .app .section-inner {
        flex-direction: row;
        justify-content: space-between;
        gap: 80px;
    }

    .app .section-description {
        text-align: left;
    }
}

.btn {
    width: fit-content;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 99px;
    display: flex;
    flex-direction: row;
    gap: 16px;
    text-transform: uppercase;
}

.btn .icon {
    width: 20px;
    height: 20px;
}

.primary-btn {
    background-color: var(--clr-red-500);
    color: var(--clr-neutral-0);
    border: 2px solid var(--clr-red-500);
}
.primary-btn:hover {
    background-color: var(--clr-neutral-1000);
    color: var(--clr-neutral-0);
    border: 2px solid var(--clr-neutral-1000);
}

.secondary-btn {
    background-color: var(--clr-neutral-1000);
    color: var(--clr-neutral-0);
    border: 2px solid var(--clr-neutral-1000);
}
.secondary-btn:hover {
    border: 2px solid var(--clr-neutral-0);
}

/* Footer */

footer {
    background-color: #000000;
    padding-top: 56px;
    position: relative;
    z-index: 2;
}
@media (min-width: 768px) {
    footer {
        padding-top: 80px;
    }
}
footer .footer-inner {
    color: #FFFFFF;
    display: grid;
    grid-template-areas: "logo social" "logo copyright";
    gap: 28px;
    justify-content: space-between;
    align-items: flex-start;
}
@media (min-width: 768px) {
    footer .footer-inner {
        grid-template-areas: "logo copyright social";
    }
}
footer .footer-inner .footer-logo-wrapper {
    width: fit-content;
    position: relative;
    padding-bottom: 40px;
    grid-area: logo;
}
footer .footer-inner .footer-logo-wrapper .footer-logo {
    width: 70px;
    height: auto;
}
footer .footer-inner .footer-logo-wrapper .footer-stripes {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-inline: auto;
    width: auto;
    height: 20px;
}
footer .footer-inner .footer-copyright {
    text-align: center;
    margin-bottom: 8px;
    grid-area: copyright;
}
footer .footer-inner .footer-copyright a {
    text-decoration: underline;
    color: #FFFFFF;
}
footer .footer-inner .footer-social-section {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    grid-area: social;
    gap: 20px;
}
@media (min-width: 380px) {
    footer .footer-inner .footer-social-section {
        gap: 40px;
    }
}
@media (min-width: 768px) {
    footer .footer-inner .footer-social-section {
        gap: 64px;
    }
}
footer .footer-inner .footer-social-section a img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
@media (min-width: 768px) {
    footer .footer-inner .footer-copyright,
    footer .footer-inner .footer-social-section {
        margin-top: 24px;
    }
}
