@import url(fonts.css);

/* Base */
html, body {
  overflow-x: hidden;
  width: 100%;
}

body{
    background-color: #FAFFF1;

    margin: 0;
    padding: 0;

    width: 100vw;
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100vw;
}

section, nav, footer{
    padding: 0 calc((100vw - 1142px) / 2);

    width: calc(100vw - calc(100vw - 1142px));
}

h1, h2, h3, h4, h5, h6{
    font-family: "Chakra Petch", sans-serif;
    color: #093628;

    margin: 0;
}

h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h1{
    font-weight: 600;
}

h2{
    font-size: 40px;
}

p, a{
    font-family: "Inter", sans-serif;
    color: #093628;
    text-decoration: none;
}

a{
    font-size: 15px;
    transition: all 0.3s ease-in-out;
}

a:hover{
    color: #CEF17B;
}

li{
    list-style-type: none;
}

button{
    cursor: pointer;
}

main{
    margin-top: 64px;
}

h1{
    color: #093628;
    text-align: center;
    font-size: 80px;
    font-style: normal;
    font-weight: 600;
    line-height: 98.95%;

    margin-top: 88px;
    margin-bottom: 40px;
}

h1 span{
    background-image: linear-gradient(#CEF17B, #CEF17B);
    background-size: 100% 65%;
    background-position: 0 80%;
    background-repeat: no-repeat;
}

.mobile{
    display: none;
}

.desktop{
    display: block;
}

#logo{
    background-image: url("../static/images/logo_default.svg");
    height: 25px;
    width: 127px;

    border: none;
    cursor: pointer;

     position: relative;
}

#logo::before,
#logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.3s ease-in-out;
}

#logo::before {
  background-image: url('../static/images/logo_default.svg');
  opacity: 1;
}

#logo::after {
  background-image: url('../static/images/logo_white.svg');
  opacity: 0;
}

#logo:hover::before {
  opacity: 0;
}

#logo:hover::after {
  opacity: 1;
}

/* Socials */


.action-btn{
    background: var(--the-main-gradient, linear-gradient(321deg, #001311 0%, #093628 53.85%, #146048 96.63%));

    border:none;
    border-radius: 10px;

    padding: 15px 0;
    margin-bottom: 16px;

    width: 422px;
    height: 56px;

    align-self: center;

    color: #CEF17B;
    text-align: center;
    font-family: "Chakra Petch", sans-serif;
    font-size: 25px;
    font-style: normal;
    font-weight: 700;
    line-height: 0;
}

.action-btn:hover{
    background: #146048;
}

.contact-btn{
    padding: 21px 90px 21px 91px;
    border: none;

    border-radius: 10px;
    background: #CEF17B;

    color: #093628;
    text-align: center;
    font-family: "Chakra Petch", sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 92%;

    height: fit-content;

    transition: all 0.1s ease-in-out;
}

.contact-btn:hover{
    background: #146048;
    color: #CEF17B;
}

.current{
    text-decoration: underline;
}

/* Questions */
.questions{
    display: flex;
    justify-content: space-between;

    margin-bottom: 192px;
}

.questions-title{
    display: flex;
}

.questions-title img{
    align-self: end;
}

.questions h2{
    color: #093628;
    font-size: 80px;
    font-style: normal;
    font-weight: 700;
    line-height: 92%;
}

.questions-contact{
    display: flex;
    align-items: end;

}

.questions-contact h3{
    background-image: linear-gradient(#CEF17B, #CEF17B);
    background-size: 100% 100%;
    background-position: 0 0;
    background-repeat: no-repeat;

    color: #093628;
    text-align: center;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 92%;

    margin-right: 30px;

    height: fit-content;
}

.questions-contact p{
    color: #093628;
    text-align: center;
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: 92%;

    margin: 10px 0 0 0;
    padding: 0;
}

.desktop-only{
    display: block;
}

.mobile-br{
    display: none;
}

/* navbar */


.integrations-nav{
    background: #FAFFF1;
    box-shadow: 0 3px 10px 0 rgba(9, 54, 40, 0.10);
}

.integrations-nav a{
    color: #093628;
    font-weight: 600;
}

.integrations-nav a:hover{
    color: #146048;
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    margin: auto auto;
    z-index: 9999;
    background: #FAFFF1;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    box-shadow: 0 -4px 24px rgba(9, 54, 40, 0.18);

    padding: 40px 32px;
    width: 446px;

}

#cookie-banner h2{
    color: #093628;
    font-family: "Chakra Petch", sans-serif;
    font-size: 25px;
    font-style: normal;
    font-weight: 700;
    line-height: 128%;
    margin-bottom: 24px;
}

#cookie-banner p {
    color: #146048;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 128%;

    margin: 0;
    padding: 0;
}

#cookie-banner p a {
    color: #146048;
    font-size: 16px;
    text-decoration: underline;
}

#cookie-banner .cookie-banner-subtext{
    margin-bottom: 27px;
}

#preferences-title{
    display: none;
}

#preferences{
    display: none;

    padding: 32px;
    background: #F0F6E6;
    width: calc(100% - 64px);

    flex-direction: column;
    gap: 24px;

    margin: 24px 0;
    border-radius: 10px;
}

#cookie-banner details summary p{
    color: #146048;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 128%;
}

#cookie-banner details summary{
    display: flex;
}

#cookie-banner .summary-content{
    display: flex;
    justify-content: space-between;
    width: 100%;

    align-items: center;
}

#cookie-banner .summary-content p{
    margin-left: 16px;
    margin-top: 0;
}

#cookie-banner details p{
    color: #146048;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 128%;

    margin-left: 48px;
    margin-top: 16px;
}

summary::before {
    content: url('../static/images/summary_arrow.svg');
    transition: transform 0.2s;
    align-self: center;
}

details[open] > summary::before {
    transform: rotate(180deg);
}

#btn-group-detailed{
    display: none;
    width: 100%;
}

#btn-group-detailed button{
    height: 40px;
    width: calc(50% - 5px);

    border-radius: 10px;
    border: 3px solid #146048;

    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 128%;
}

#accept-all-btn{
    margin-right: 10px;

    background: #146048;
    box-shadow: 0 0 17px 0 rgba(206, 241, 123, 0.50), 0 4px 4px 0 rgba(0, 19, 17, 0.10);

    color: #CEF17B;
}

#accept-selected-btn{
    box-shadow: 0 4px 4px 0 rgba(0, 19, 17, 0.10);
    background: #FAFFF1;

    color: #146048;
}

.cookie-accept-btn {
    border-radius: 10px;
    border: 3px solid #146048;
    background: #146048;
    box-shadow: 0 0 17px 0 rgba(206, 241, 123, 0.50), 0 4px 4px 0 rgba(0, 19, 17, 0.10);

    color: #CEF17B;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 128%;

    width: 152px;
    height: 40px;

    margin-right: 10px;
}

.cookie-reject-btn{
    border-radius: 10px;
    border: 3px solid #146048;
    box-shadow: 0 4px 4px 0 rgba(0, 19, 17, 0.10);
    background: #FAFFF1;

    color: #146048;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 128%;

    width: 152px;
    height: 40px;
}

.cookie-pref-btn{
    padding: 12px 16px;
    background: #FAFFF1;
    border: none;

    color: #146048;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 128%;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

/* hide native checkbox */
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* the track */
.slider {
    position: absolute;
    inset: 0;
    border: 2px solid #146048;

    background: #FAFFF1;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.2s;

    height: 20px;
    width: 42px;
}

/* the thumb */
.slider::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    left: 4px;
    top: 4px;
    background: #146048;
    border-radius: 3px;
    transition: transform 0.2s;
}

/* checked state — green track */
.toggle input:checked + .slider {
    background: #CEF17B;
}

/* checked state — slide thumb right */
.toggle input:checked + .slider::before {
    transform: translateX(22px);
}

/* accessibility focus ring */
.toggle input:focus-visible + .slider {
    outline: 2px solid #CEF17B;
    outline-offset: 2px;
}

.toggle input:disabled + .slider {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Mobile versions */
@media (max-width: 1280px) {
    section, nav, footer{
        padding: 0 25px;
        width: calc(100vw - 50px);
    }

    #cookie-banner {
        padding: 20px 25px;
    }
}

@media (max-width: 960px) {
    .mobile{
    display: block;
    }

    .desktop{
        display: none;
    }

    img{
        max-width: calc(100vw - 50px);
    }

    .action-btn{
        max-width: calc(100vw - 50px);

        font-size: 20px;
    }

    .desktop-br{
        display: none;
    }

    .mobile-br{
        display: block;
    }

    h1{
        font-size: 40px;
        margin-bottom: 24px;
        margin-top: 64px;
    }
    h2{
        font-size: 40px;
    }

    .questions{
        flex-direction: column-reverse;

        margin-bottom: 115px;
    }

    .questions-title img{
        rotate: -45deg;
    }

    .questions-contact{
        justify-content: end;
        margin-bottom: 40px;
    }

    .questions-contact button{
        font-size: 20px;
        padding: 10px 30px;
    }

    .questions h2{
        font-size: 40px;
    }
}

@media (max-width: 680px) {
     #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;

        width: calc(100% - 50px);
    }
    .cookie-accept-btn {
        width: 100%;
    }

    #btn-group{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    #accept-btn, #reject-btn, #preferences-btn{
         flex: 0 0 calc(50% - 10px);
    }
}
