@font-face {
    font-family: 'Industry Inc Base';
    src: url('../fonts/IndustryInc-Base.woff') format('woff2'), url('../fonts/IndustryInc-Base.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Eurostile Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Eurostile Regular'), url('../fonts/EurostileRegular.woff') format('woff');
}
:root {
    --primary-font: 'Industry Inc Base';
    --secondary-font: 'Eurostile Regular';
    --primary-color: #f9b300;
    --secondary-color: #fff;
    --background-color: #000;
    --text-dark: #000;
    --text-color: #fff;
    --link-hover-color: #fff;
    --max-width: 1200px;
    --md: 420px;
    --sm: 320px;
}

::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Industry Inc Base';
    font-size: 18px;
    text-align: center;
}

p,
h1,
h2,
h3,
button,
input {
    font-family: 'Industry Inc Base';
}

body {
    line-height: 1.6;
    min-height: 100dvh;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
}

h1 {
    font-weight: normal;
    font-size: clamp(3rem, 4vw, 4rem);
    line-height: clamp(3.5rem, 4.5vw, 4.5rem);
    @media (max-width: 768px) {
        font-size: clamp(2rem, 2.5vw, 2.5rem);
        line-height: clamp(2.5rem, 3vw, 3rem);
    }
}
h2 {
    font-weight: normal;
    font-size: clamp(3rem, 3.5vw, 3.5rem);
    line-height: clamp(3.5rem, 4.5vw, 3.5rem);
    @media (max-width: 768px) {
        font-size: clamp(2rem, 2.5vw, 2.5rem);
        line-height: clamp(2.5rem, 3vw, 3rem);
    }
}
h3{
    font-weight: normal;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: clamp(2rem, 2.5vw, 2.5rem);
    @media (max-width: 768px) {
        font-size: clamp(1.25rem, 1.5vw, 1.5rem);
        line-height: clamp(1.75rem, 2vw, 2rem);
    }
}

p{
    text-wrap: balance;
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    line-height: clamp(1.5rem, 1.875vw, 1.875rem);
    @media (max-width: 768px) {
        font-size: clamp(1rem, 1.25vw, 1.25rem);
        line-height: clamp(1.5rem, 1.875vw, 1.875rem);
    }
}
a{
    color: var(--primary-color);
}
strong{
    color: var(--primary-color);
}

section{
    padding: 2rem;
    background-color: #191919;
}

header{
    padding: 2rem;
    width: 100%;
    background-image: url('../images/header.webp');
    background-size: auto 100%;
    background-position: center;
    aspect-ratio: 2/1;
    @media (max-width: 1768px) {
        aspect-ratio: 1.8/1;
    }
    @media (max-width: 1440px) {
        aspect-ratio: 1.6/1;
    }
    @media (max-width: 1280px) {
        aspect-ratio: 1.4/1;
    }
    @media (max-width: 1024px) {
        aspect-ratio: 1.2/1;
    }
    @media (max-width: 900px) {
        aspect-ratio: 1/1.5;
    }
    @media (max-width: 800px) {
        aspect-ratio: 1/1.2;
    }
    @media (max-width: 520px) {
        aspect-ratio: 1/2.5;
        background-size: 200% auto;
        background-repeat: no-repeat;
        background-position: bottom;
    }
    @media (max-width: 400px) {
        aspect-ratio: 1/3;
        background-size: 300% auto;
        background-repeat: no-repeat;
        background-position: bottom;
    }

    h1{
        font-size: clamp(6rem, 6.5vw, 6.5rem);
        line-height: clamp(7rem, 8vw, 8rem);
        margin-bottom: 1rem;

        @media (max-width: 768px) {
            font-size: clamp(4rem, 4.5vw, 4.5rem);
            line-height: clamp(5rem, 6vw, 6rem);
        }
        @media (max-width: 520px) {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            line-height: clamp(3rem, 4vw, 4rem);
        }
    }

    .logo{
        max-height: 100px;
    }

    .flex{
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        max-width: auto;
        width: auto;
        @media (max-width: 768px) {
            flex-direction: column;
            gap: 1rem;
        }
    }

    .col-1{
        width: 200px;
        small{
            display: block;
            max-width: 120px;
            margin: 0 auto;
            font-size: clamp(0.5625rem, 0.75vw, 0.75rem);
            line-height: clamp(0.70rem, 0.9vw, 0.9rem);
            @media (max-width: 520px) {
                font-size: clamp(0.8rem, 1.5vw, 1.25rem);
                line-height: clamp(1.1rem, 1.5vw, 1.5rem);
            }
        }
        strong{
            display: block;
            font-size: clamp(2.5rem, 3vw, 3rem);
            line-height: clamp(3rem, 3.5vw, 3.5rem);
            margin: 0;
            padding: 0;
        }
    }
    .col-2{
        .shm-logo{
            display: block;
            max-height: 150px;
            margin: 0 auto;

            @media (max-width: 520px) {
                width: 90%;
            }
        }
    }
    .col-3{
        width: 200px;
        small{
            display: block;
            max-width: 120px;
            margin: 0 auto;
            font-size: clamp(0.5625rem, 0.75vw, 0.75rem);
            line-height: clamp(0.70rem, 0.9vw, 0.9rem);
            @media (max-width: 520px) {
                font-size: clamp(0.8rem, 1.5vw, 1.25rem);
                line-height: clamp(1.1rem, 1.5vw, 1.5rem);
            }
        }
        strong{
            display: block;
            font-size: clamp(1rem, 1.5vw, 1.5rem);
            line-height: clamp(1.5rem, 2vw, 2rem);
            margin: 0;
            padding: 0;
        }
    }
}

footer{
    padding: 2rem;

    .flex{
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        max-width: 1240px;
        margin: 0 auto;

        @media (max-width: 768px) {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 1rem;
        }
    }

    .logo{
        max-height: 2rem;
    }

    .social-links{
        display: inline-flex;
        gap: 0.5rem;

        a{
            text-decoration: none;
            background-color: var(--secondary-color);
            color: var(--background-color);
            display: inline-flex;
            border-radius: 50%;
            padding: 0.5rem;
        }
    }

    .kampaania-tingimused{
        text-decoration: none;
        color: var(--secondary-color);
    }
}

form{
    margin:2rem auto;
    max-width: 720px;

    @media (max-width: 768px) {
        max-width: 90%;
    }

    .inputs{
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin: 1rem 0;
    }
    input[type="text"], input[type="email"]{
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
        padding: 1.15rem 1rem;
        text-align: center;
        font-size: 2rem;
        border: none;
        border-radius: 0;

        &:focus {
            outline: none;
            box-shadow: none;
        }

        &::placeholder {
            color: #D9D9D9;
            opacity: 1;
        }
    }


    label{
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;

        &.error{
            input[type="text"], input[type="email"]{
                background-color: #f1756c;
                &::placeholder {
                    color: #cf4036;
                    opacity: 1;
                }
            }
            color: #cf4036;
        }

        /* Custom checkbox styling */
        span:first-child {
            position: relative;
            display: inline-block;
            min-width: 24px;
            width: 24px;
            height: 24px;
            background-color: var(--primary-color);
            border: none;
            flex-shrink: 0;
            margin-top: 2px;

            &.error {
                background-color: #f1756c;
            }
        }

        span:first-child input[type="checkbox"] {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            width: 100%;
            height: 100%;
            margin: 0;
            z-index: 1;
        }

        /* Black checkmark when checked */
        span:first-child::after {
            content: "";
            position: absolute;
            display: none;
            left: 7px;
            top: 3px;
            width: 6px;
            height: 12px;
            border: solid var(--text-dark);
            border-width: 0 3px 3px 0;
            transform: rotate(45deg);
        }

        /* Show checkmark when checkbox inside span is checked */
        span:first-child:has(input[type="checkbox"]:checked)::after {
            display: block;
        }
    }
    .response-message{
        color: #cf4036 !important;
    }
    button{
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
        padding: 1rem;
        text-align: center;
        font-size: 2.5rem;
        background-color: var(--primary-color);
        color: var(--background-color);
        border: none;
        cursor: pointer;
        transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
        transform: scale(1);

        @media (max-width: 768px) {
            span{
                display: none;
            }
        }

        &:hover {
            transform: scale(1.05);
        }
    }
}



.submitted{
    display: none;
    padding: 10dvh 2rem;
}

/* helpers */
.mb-1{
    margin-bottom: 1rem;
}
.mb-2{
    margin-bottom: 2rem;
}

.mt-1{
    margin-top: 1rem;
}
.mt-2{
    margin-top: 2rem;
}

.font-text{
    font-family: var(--secondary-font);
}

.uppercase{
    text-transform: uppercase;
}