
:root{
    --secondary: #2d4538;
    --teal: #7f9c96;
    --green: #34cb00;
    --light-green: #dce8cc;
    --blue: #273a46;
    --light-blue: #ddedf8;
    --purple: #4F4A63;
    --light-purple:#dedce6;
    --tertiary-pale: #C5B79B;
    --danger: #a12b2b;

    --black: #000;
    --neutral-700: #0e0e0e;
    --neutral-600: #3f3f3f;
    --neutral-500: #7b7b7b;
    --neutral-400: #979797;
    --neutral-300: #c3c3c3;
    --neutral-200: #dddddd;

    --fs-h-xl: 40;
    --fs-h-lg: 36;
    --fs-h-md: 34;
    --fs-h-sm: 32;

    --fs-xxl: 26;
    --fs-md: 16;
    --fs-xs: 12;

    --space-xs: 0.5rem;     /* 8px  */
    --space-xl: 2rem;       /* 32px */
    --space-xxl: 3rem;      /* 48px */

}


html.lock{height: 100%; overflow: hidden; width: 100%;}

h2, .fs-h-xl{font-size: clamp(calc(var(--fs-xxl) / var(--toRem)), calc(var(--fs-h-xl) / var(--toVw)), calc(var(--fs-h-xl) / var(--toRem))) !important; letter-spacing: 0.00rem; line-height: 1.3;}
h3, .fs-h-lg{font-size: clamp(calc(var(--fs-xl) / var(--toRem)), calc(var(--fs-h-lg) / var(--toVw)), calc(var(--fs-h-lg) / var(--toRem))) !important; letter-spacing: 0.00rem; line-height: 1.2;}
h4, .fs-h-md{font-size: clamp(calc(var(--fs-h-xs) / var(--toRem)), calc(var(--fs-h-md) / var(--toVw)), calc(var(--fs-h-md) / var(--toRem))) !important; letter-spacing: 0.00rem; line-height: 1.2;}
h5, .fs-h-sm{font-size: clamp(calc(var(--fs-xl) / var(--toRem)), calc(var(--fs-h-xl) / var(--toVw)), calc(var(--fs-h-sm) / var(--toRem))) !important; letter-spacing: 0.00rem; line-height: 1.2;}
h6, .fs-h-xs{font-size: clamp(calc(var(--fs-lg) / var(--toRem)), calc(var(--fs-h-lg) / var(--toVw)), calc(var(--fs-h-xs) / var(--toRem))) !important; letter-spacing: 0.00rem; line-height: 1.2;}

.fs-xxl{font-size: clamp(calc(var(--fs-xl) / var(--toRem)), calc(var(--fs-xxl) / var(--toVw)), calc(var(--fs-xxl) / var(--toRem))) !important; letter-spacing: 0.00rem; line-height: 1.2;}

.fs-md{font-size: clamp(calc(var(--fs-sm) / var(--toRem)), calc(var(--fs-md) / var(--toVw)), calc(var(--fs-md) / var(--toRem))) !important; letter-spacing: 0.00rem; line-height: 1.2;}
.fs-xs{font-size: clamp(calc(var(--fs-xs) / var(--toRem)), calc(var(--fs-xs) / var(--toVw)), calc(var(--fs-xs) / var(--toRem))) !important; letter-spacing: 0.00rem; line-height: 1.2;}

h1 strong, h2 strong{color: var(--tertiary); font-weight: inherit;}

a{color: var(--tertiary);}
a[aria-current="page"].active {color: green; pointer-events: none;}


img, picture, video, canvas, svg{display: block; max-width: 100%; min-width: 1px;}



button, input, textarea, select{font-family:inherit; -moz-appearance: none; -webkit-appearance: none; appearance: none;}
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{outline:none;}
select{cursor: pointer !important; border:0; background: url("../icons/chevron-down.svg") center right 15px no-repeat !important; background-size: 19px !important; padding-right: 38px !important; line-height: 1.2;}

div{-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: transparent;}


/* header */
/* header#site-header{border-bottom: 1px solid var(--neutral-100);} */
header#site-header{background-color: #03272700;}
body.scrolled header#site-header{background-color: #032727ff;}
#site-header .container > nav{display: none;}

/* nav */
.nav-link {
    color: var(--white);
    display: block;
    position: relative;
}
.current-page:before,
.current-page:after {
    background: var(--tertiary);
    content: '';
    display: block;
    width: 1rem;
    height: .5rem;
    position: absolute;
    bottom: calc(100% + .25rem);
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    transition: bottom 200ms ease;
}
.current-page:after {
    opacity: 0;
    top: calc(100%);
    bottom: unset;
    transition: opacity 200ms ease;
}
.scrolled .current-page:before {
    bottom: calc(100%) !important;
}
.scrolled .current-page:after {
    opacity: 1;
}

/* titles */
.titles{margin-bottom: var(--space-xxxl);}

/* hero */
/* .gradient{background:radial-gradient(circle at 100% 50%, hsl(180 86% 8% / 1), hsl(180 86% 8% / 1), hsl(180 86% 8% / 1), hsl(180 86% 5% / 1)); position: relative;} */

/* .hero.full::before{content: ""; position: absolute; inset: 0;background-image: url("https://www.transparenttextures.com/patterns/cubes.png"); z-index: 0; mix-blend-mode: multiply; opacity: 1;} */

/* .hero h1{background: linear-gradient(45deg, #bdab8f 20%, #d1c4b0 30%, #bdab8f 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;} */

/*.icon-backdrop-2 { left: 35%; transform: translate(0%, 10%) rotate(0deg); width: 80dvw; opacity: 0; animation-delay: 2s; }*/

/* cta section */
.cta-section .image img{height: 40dvw; min-height: 220px; max-height: 480px;}

/* cards */
.hotel-card .image img{height: 40dvw; max-height: 300px; min-height: 200px;}
.hotel-card > .grid{grid-template-rows: auto auto auto 1fr; align-items: end;}
.sponsor-card > .border-1{border-left: none; border-radius: 0 10px 10px 0;}
.sponsor-card > .bg-primary{border-radius: 10px 0 0 10px; flex:0.5;}
.sponsor-card hr{opacity: 0.2;}

.image-pill{top:15px; left:15px;}

/* award */
.award-card .award{height: 160px; aspect-ratio: 1/1; margin: 0 auto;}
.award-card p{max-width: 400px; margin: auto;}

.access-block{margin: 0 auto; max-width: 450px;}

#tiles-top, #tiles-bottom{z-index: 1; opacity: 0.3; mix-blend-mode: exclusion; width: 80dvw; pointer-events:none; }
#tiles-top{top:-25%; right:-20dvw;}
#tiles-bottom{bottom:-20%; left:-20dvw;}

/* clock */
.clock{max-width: 500px; margin: 0 auto;}
.clock .clock__outer .clock__number{padding: 25px 16px;}
.clock .simply-section{text-align: center;}
.clock .simply-amount{padding: 25px 16px; display: block; color: var(--neutral-100); border-radius: 10px; background-color: var(--primary); font-family: var(--ff-heading); font-weight: 700; font-size: clamp(calc(var(--fs-xxl) / var(--toRem)), calc(var(--fs-h-xl) / var(--toVw)), calc(var(--fs-h-xl) / var(--toRem))) !important; letter-spacing: 0.00rem; line-height: 1.3;}
.clock .simply-word{display: block; text-transform: capitalize; margin-top: var(--space-xs); color:var(--primary); font-weight: 500;}

/* map */
#map{height: 40dvw; min-height: 340px; max-height: 560px;}
#map iframe{width: 100%; height: 100%;}

/* footer */
footer#site-footer{grid-template-columns: 1fr auto 1fr;}
footer#site-footer .footer__outro{max-width: 360px;}
.footer__legals{padding: 40px 0; margin-top: 80px; border-top: 1px solid var(--neutral-600)}
.quick-link:hover, .quick-link:focus-visible {text-decoration: underline;}

/* lists */
.list-marker:before {
    background: var(--tertiary);
    content: '';
    display: block;
    width: 1rem;
    height: .5rem;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    margin-top: .5rem;
}

/* form */
.notice.is-error { 
    display:inline-block;
    background: var(--danger);
    color: var(--white); 
    display: inline-block;
    padding: .5rem .75rem;
    border-radius: 3px;
    margin-bottom: 10px;
}
.field-error {
    background: var(--danger);
    border-radius: 3px;
    display: inline-block;
    font-size: 14px;
    color: var(--white);
    padding: .5rem .75rem;
    margin-top: .5rem;
    width: max-content;
    position: relative;

    &::before {
        content: '';
        display: block;
        width: 1.4rem;
        height: calc(.5rem + 2px);
        clip-path: polygon(50% 0, 100% 100%, 0 100%);
        background: var(--danger);
        position: absolute;
        top: calc(-.5rem + 1px);
        left: calc(.75rem - 2px);
    }
}
.js-submit-btn {
    position: relative;
}

.js-submit-btn.is-loading {
    pointer-events: none;
    position: relative;
    overflow: hidden;
}

.js-submit-btn.is-loading::before,
.js-submit-btn.is-loading::after {
    content: '';
}

.js-submit-btn.is-loading::before {
    display: block;
    width: 100%;
    height: 100%;
    background: #ffffffcc;
    position: absolute;
}

.js-submit-btn.is-loading::after {
    position: absolute;
    left: calc(50% - .75rem);
    top: calc(50% - .25rem);
    width: 1.5rem;
    height: 1.5rem;
    margin-top: -0.5rem;
    border: 3px dotted currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-spin 1s linear infinite;
}

.judge .image {
    width: 160px;
}

.external-judges {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
    
.external-judges > .judge {
    display: grid;
    gap: var(--space-xl);
}


.sort-button:before {
    content: '\0025B4';
    margin-right: 6px;
    transform: rotate(180deg);
    transform-origin: 50% 56%;
}
.sort-button-reversed:before {
    transform: rotate(0deg);
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

@media(max-width:1080px){
    #contact-form, #venue-details{flex-direction: column;}
    #venue-details .image{max-height: 340px;}
    .sponsor-card > .bg-white{padding: 16px;}
    .sponsor-card > .bg-white > .grid{gap: 16px;}
    .external-judges {grid-template-columns: 1fr;}
    .external-judges > .judge {display: flex;gap: var(--space-xxl);}
}

@media(max-width:768px){
    :root{
        --header-height: 70px;
        --space-xxxl:1.6rem;
        --space-xxl:1.6rem;
        --space-xl:1.4rem;
        --space-lg:1.1rem;
        --space-md:0.7rem;
        --space-sm:0.5rem;
        --space-xs:0.25rem;
    }
    .hero.full{height: auto;}
    .hero .container{flex-direction: column; align-items: start;}
    .hero .in-association{width: 240px;}
    .hero span{font-size: 12px !important;}
    .headline-sponsor{height: 100px; background-color: #e9e9e9;}
    .button, .button.wide{padding: 15px 18px !important;}
    .cta-section .container{flex-direction: column; align-items: start;}
    .cta-section .container .flex-1{width: 100%;}
    .hero .headline-sponsor{height: auto; padding: 40px;}
    .award-card .award{height: 120px;}
    .judges > .judge{display: grid;}
    .external-judges > .judge {display: grid;}
    #venue-details .image{max-height: 280px;}
    .sponsor-card{flex-direction: column;}
    .sponsor-card > .bg-primary{border-radius: 10px 10px 0 0;}
    .sponsor-card > .bg-white{padding: var(--space-lg); border-left: 1px solid; border-radius: 0 0 10px 10px;}
    .sponsor-card > .bg-white > .grid{gap: var(--space-lg);}
    footer#site-footer{grid-template-columns: 1fr 1fr;}
    footer#site-footer .text-end{text-align: start;}
    footer#site-footer .jie{justify-items: start;}
    footer#site-footer > .grid.gap-md.jis:nth-child(2){order:4}
    footer#site-footer ul.gap-xs.grid:not(.text-end){display: flex; gap: var(--space-lg);}
    .footer__legals {margin-top: 50px;}
    .animate-in-view { transition-delay: 0ms !important; }
}

@media(max-width:580px){
    footer#site-footer{grid-template-columns: 1fr;}
    .hero span{display: none;}
    .sponsor-card > .bg-white > .grid{grid-template-columns: 1fr;}
}

@media(max-width:420px){
    #menu.active:after{background-color: transparent;}
    #menu.animate nav{box-shadow:3px 0 10px 0 rgb(0 0 0 / 8%);}
    .procurement-standards-awards > .flex.gap-lg.aic{flex-direction: column;}
    footer#site-footer ul.gap-xs.grid:not(.text-end){flex-direction:column;}
}

@media(min-width:900px){
    header #menu-trigger{display: none;}
    #site-header .container > nav{display: block;}
    .procurement-standards-awards { padding-right:20px; }
}

@media(prefers-reduced-motion: no-preference) {
    header#site-header{transition: background-color 200ms ease, height 0.3s ease;}
    .animate-in-view { opacity: 0 !important; transition: opacity 500ms ease; transition-delay: var(--delay, 0ms); }
    .animate-in-view--triggered { opacity:  var(--opacity, 1) !important; }
}
