@font-face {
    font-family: "Poppins";
    src: url("./fonts/Poppins-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Poppins";
    src: url("./fonts/Poppins-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "Poppins";
    src: url("./fonts/Poppins-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "Poppins";
    src: url("./fonts/Poppins-ExtraBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 800;
}

@font-face {
    font-family: "Bebas Neue";
    src: url("./fonts/BebasNeue-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
}

body {
    min-height: 100vh;
    margin: 0;
    background-color: #f3eadbff;
    background-image:
        url("./images/leaf-background-top.webp"),
        url("./images/leaf-background-bottom.webp");
    background-position: top center, bottom center;
    background-repeat: repeat-x, repeat-x;
    background-size: 50% auto, 50% auto;
    font-family: "Poppins", sans-serif;
    position: relative;
}

img{
    max-width: 100%;
    height: auto;
}

.brand-banner {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: clamp(210px, 21vw, 240px);
    height: clamp(62px, 6vw, 60px);
    padding: 2px 18px;
    background-color: #ad805a;
    border-bottom-left-radius: 30px;
}

.brand-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}

.page-main {
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(5.5rem, 10vh, 8rem) 1.5rem 5rem;
    position: relative;
    background-image:
        linear-gradient(to bottom, transparent 72%, #f3eadb 100%),
        url("./images/sign2secure.webp");
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, cover;
}

.campaign-hero {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 4vh, 3rem);
    width: min(100%, 100rem);
    min-height: calc(100vh - clamp(8rem, 12vh, 12rem) - 5rem);
}

.terms-note {
    position: absolute;
    right: clamp(1.5rem, 4vw, 4rem);
    bottom: 1.5rem;
    margin: 0;
    color: #171411;
    font: italic 500 clamp(0.85rem, 1.3vw, 1.5rem)/1.4 "Poppins", sans-serif;
    text-align: right;
}

.campaign-logo,
.campaign-facade {
    display: block;
    width: 100%;
}

.campaign-branding {
    align-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    bottom: 3rem;
}

@media screen and (max-width: 767px){
    .campaign-branding {
        bottom: 0;
        flex-direction: column;
    }
}

.campaign-logo {    
    width: min(75%, 28rem);
}

@media screen and (min-width:768px){
    .campaign-logo{
        position: relative;
        top: 1.5rem;
    }
}

@media screen and (min-width:2500px){
    .campaign-logo{
        width: min(75%, 33rem);
    }
}

@media screen and (max-width:1300px){
    .campaign-logo{
        width: min(100%, 25rem);
    }   
}

@media screen and (max-width: 767px){   
    .campaign-logo {
        width: min(100%, 32rem);
    }
}

.campaign-voucher {
    display: block;
    width: min(60%, 16rem);
    transform: rotate(-3deg);
}

@media screen and (min-width:2500px){
    .campaign-voucher{
        width: min(60%, 20rem);
    }
}


@media screen and (max-width:1300px){
    .campaign-voucher{
        width: min(100%, 13rem);
    }   
}

@media screen and (max-width:767px){
    .campaign-voucher {
        width: min(60%, 18rem);
        position: initial;
        margin: 0 auto;
    }
}

.campaign-facade {
    max-width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%);
}

.campaign-steps {
    --step-gap: clamp(2.5rem, 4vw, 4rem);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: var(--step-gap);
    align-self: end;
}

.purchase-card {
    position: relative;
    margin: 4.5rem 0 0 1.25rem;
    padding: 1.5rem 1rem;
    border: 4px solid #ef603b;
    border-radius: 14px;
    background-color: rgb(243 234 219 / 94%);
    text-align: center;
}

.campaign-steps .purchase-card {
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    margin: 3rem 0 0;
    padding: 1rem 0.4rem 0.65rem;
    border-width: 2px;
    min-height: 10.5rem;
}

.campaign-steps .purchase-card:not(:last-child)::after {
    position: absolute;
    top: 50%;
    left: 100%;
    width: var(--step-gap);
    height: var(--step-gap);
    background-color: #e85d39;
    -webkit-mask: url("./images/arrows.png") center / 70% auto no-repeat;
    mask: url("./images/arrows.png") center / 70% auto no-repeat;
    content: "";
    transform: translateY(-50%);
}

.campaign-steps .purchase-card__number {
    display: none;
}

.campaign-steps .purchase-card__icon {
    width: 6rem;
    height: 5rem;
    padding: 0.4rem 0.6rem;
}

@media screen and (max-width:767px){
    .purchase-card{
        margin-left:auto;
        margin-right:auto;
    }

    .campaign-steps {
        grid-template-columns: 1fr;
    }

    .campaign-steps .purchase-card {
        margin: 3rem 0 0;
        padding: 1.25rem 0.75rem;
        border-width: 3px;
        min-height: 11rem;
    }

    .campaign-steps .purchase-card::after {
        display: none;
    }

    .campaign-steps .purchase-card__number {
        display: grid;
    }

    .campaign-steps .purchase-card__icon {
        width: 6.5rem;
        height: 4.1rem;
        padding: 0.3rem 0.8rem;
    }

    .campaign-steps .purchase-card__title {
        font-size: clamp(1.6rem, 2.5vw, 2.5rem);
    }

    .campaign-steps .purchase-card__description {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
    }
}

.purchase-card__number {
    position: absolute;
    top: 50%;
    left: 0;
    display: grid;
    place-items: center;
    width: 3.75rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #08a69b;
    color: #fff;
    font: 700 2rem/1 "Poppins", sans-serif;
    transform: translate(-50%, -50%);
}

@media screen and (max-width:1300px){
    .purchase-card__number{
        width:3rem;
        font-size:1.5rem;
    }
}

@media screen and (max-width:767px){
    .purchase-card__number{
        width:2.5rem !important;
        font-size:1.5rem !important;
    }
}

.purchase-card__icon {
    position: absolute;
    top: 0;
    left: 50%;
    box-sizing: border-box;
    width: 7.5rem;
    height: 4.75rem;
    padding: 0.4rem 1rem;
    border: 3px solid #ef603b;
    border-radius: 12px;
    background-color: rgb(243 234 219 / 94%);
    object-fit: contain;
    transform: translate(-50%, -75%);
}

.purchase-card__title {
    margin: 0 0 0.35rem;
    color: #145a59;
    font: 400 clamp(1.8rem, 3vw, 2.8rem)/1.1 "Bebas Neue", sans-serif;
    text-transform: uppercase;
}

.purchase-card__description {
    margin: 0;
    color: #171411;
    font: 700 clamp(1.3rem, 2vw, 1.5rem)/1.3 "Poppins", sans-serif;
}

.projects-section {
    padding: clamp(5rem, 9vw, 8rem) 1.5rem clamp(3.5rem, 8vw, 7rem);
}

.projects-section__inner {
    width: min(100%, 92rem);
    margin-inline: auto;
}

.projects-section__title {
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
    color: #145a59;
    font: 400 clamp(2.2rem, 4vw, 3.5rem)/1.1 "Bebas Neue", sans-serif;
    text-align: center;
    text-transform: uppercase;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
}

.project-card {
    display: block;
    min-width: 0;
    padding: clamp(0.85rem, 1.5vw, 1.25rem);
    border: 1px solid rgb(20 90 89 / 18%);
    border-radius: 1.25rem;
    background-color: rgb(255 255 255 / 82%);
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
    border-color: #08a69b;
    box-shadow: 0 0.6rem 1.5rem rgb(20 90 89 / 12%);
    transform: translateY(-3px);
}

.project-card:focus-visible {
    outline: 3px solid #145a59;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .terms-button {
        transition: none;
    }
}

.project-card__visual {
    position: relative;
    height: 12rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 0.9rem;
    background-color: rgb(243 234 219 / 60%);
}

.project-card__visual img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-card__visual img.project-card__logo {
    width: min(82%, 16rem);
    height: auto;
    max-height: 8rem;
}

.project-card__visual--placeholder {
    background: radial-gradient(circle, rgb(8 166 155 / 16%), rgb(243 234 219 / 60%) 70%);
    color: #145a59;
    font: 400 2.5rem/1 "Bebas Neue", sans-serif;
}

.project-card__name {
    margin: 0 0 0.65rem;
    color: #145a59;
    font: 700 clamp(1.1rem, 1.5vw, 1.4rem)/1.3 "Poppins", sans-serif;
}

.project-card__allocation {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
    color: #171411;
    font: 400 clamp(0.9rem, 1.2vw, 1.05rem)/1.4 "Poppins", sans-serif;
}

.project-card__allocation strong {
    color: #e85d39;
    font-size: 1.35em;
    font-weight: 700;
}

.projects-section__terms {
    display: flex;
    justify-content: center;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.terms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.85rem 2rem;
    border: 2px solid #e85d39;
    border-radius: 999px;
    background-color: #e85d39;
    box-shadow: 0 0.45rem 0.9rem rgb(232 93 57 / 24%);
    color: #fff;
    font: 700 clamp(0.95rem, 1.4vw, 1.1rem)/1.2 "Poppins", sans-serif;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.terms-button:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: #d94f2f;
    background-color: #d94f2f;
    box-shadow: 0 0.7rem 1.25rem rgb(232 93 57 / 32%);
}

.terms-button:focus-visible {
    outline: 3px solid #145a59;
    outline-offset: 4px;
}

.site-footer {
    padding: 1rem clamp(1.5rem, 4vw, 4rem);
    background-color: #ad805a;
    color: #fff;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, 100rem);
    margin-inline: auto;
}

.site-footer__logo {
    display: block;
    width: clamp(7rem, 15vw, 11rem);
    max-height: 3.75rem;
    object-fit: contain;
}

.site-footer__copyright {
    margin: 0;
    font: 500 clamp(0.7rem, 1.1vw, 0.9rem)/1.4 "Poppins", sans-serif;
    text-align: right;
}

@media (max-width: 32rem) {
    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__copyright {
        text-align: left;
    }
}

@media (max-width: 56rem) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 38rem) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}