:root {
    --brand-primary: #6bbff9;
    --brand-light: #ebf6ff;
    --brand-dark: hsl(207, 100%, 12%);
    --brand-med-grey: #cbcbcb;
    --brand-light-grey: #f7f7f7;
    --brand-dark-grey: #505050;
    --main-font: "Kanit", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body,
button {
    font-family: var(--main-font);
    font-weight: 400;
    margin: 0;
    overflow-x: hidden;
}

h1 {
    margin: 0;
    font-weight: 700;
    line-height: 0.85em;
    color: var(--brand-dark);
}

p,
input {
    font-size: 1.75vw;
    line-height: 1em;
}

h1.hero-title {
    font-size: 6.5vw;
    text-transform: uppercase;
    position: relative;
}

h2 {
    margin: 0;
    font-size: 4.5vw;
    line-height: 1em;
    color: var(--brand-dark);
}

.highlighted {
    color: var(--brand-primary);
}

.centered-title {
    text-align: center;
    font-size: 4.5vw;
    margin-bottom: 0.5em;
}

.btn-primary {
    background: var(--brand-primary);
    border: solid 4px var(--brand-primary);
    color: #fff;
    padding: 0.25vw 1em;
    font-size: clamp(16px, 1em, 1em);
    white-space: nowrap;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    font-size: 1.5vw;
    font-weight: 700;
    transition: 0.5s all ease-in-out;
    filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.05));
}

.btn-primary:hover {
    background: #fff;
    color: var(--brand-primary);
    filter: unset;
    transform: scale(0.98);
    color: var(--brand-primary) !important;
}

.btn-secondary {
    background: var(--brand-dark);
    border: solid 4px var(--brand-dark);
    color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    border: solid 4px var(--brand-dark);
    color: var(--brand-dark) !important;
}

.badge {
    background: var(--brand-light-grey);
    padding: 0.25vw 1vw;
}

.badge.white {
    background: #fff;
}

.input-group {
    display: grid;
    margin: 2.5vw 0;
}

.button-input {
    display: flex;
}

.button-input input {
    width: auto;
}

small {
    font-size: 1.25vw;
    font-weight: 400;
    color: var(--brand-dark);
    margin-bottom: 0.5em;
}

.sm-heading-container small {
    background: var(--brand-light-grey);
    padding: 0.25vw 1vw;
}

.link {
    font-size: 2vw;
    color: var(--brand-primary);
    font-weight: 700;
    background: no-repeat;
    border: none;
    text-decoration: underline;
    cursor: pointer;
}

section#footer {
    background: var(--brand-light-grey);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 5vw 7.5vw;
    grid-gap: 2.5vw;
}

section#footer .menu ul,
section#navbar .menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

section#footer .menu ul a:not(.btn-primary),
section#navbar .menu ul a:not(.btn-primary),
section#mobile-nav .menu ul a:not(.btn-primary) {
    text-decoration: none;
    color: var(--brand-dark-grey);
    transition: 0.35s opacity ease-out;
}

section#footer .menu ul a:hover:not(.btn-primary),
section#navbar .menu ul a:hover:not(.btn-primary) {
    opacity: 0.75;
}

.investor-carousel .carousel-item a:hover {
    transform: scale(0.95);
}

.investor-carousel .carousel-item a {
    transition: 0.35s all ease-in-out;
}

#footer .contact-grid {
    display: grid;
    margin-top: 2.5vw;
    grid-gap: 2em;
}

#footer .phone-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#footer .contact-grid a {
    color: var(--brand-primary);
    font-weight: 700;
    width: fit-content;
}

#footer .contact-grid i {
    color: var(--brand-dark-grey);
    margin-right: 0.5em;
}

#footer .menu ul:nth-of-type(2) {
    color: var(--brand-primary);
    justify-content: end;
}

#footer .menu ul:nth-of-type(2) li {
    margin-left: 2em;
}

#footer .menu ul:nth-of-type(2) li i {
    font-size: 1.5em;
}

#footer .menu {
    display: grid;
    align-items: center;
}

#footer .copyright {
    text-align: right;
}

.brand-contact {
    border-right: solid 1px var(--brand-med-grey);
}

#navbar .nav-inner {
    margin: auto 7.5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

section#navbar,
section#mobile-nav {
    background: #fff;
    filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.05));
    padding: 0.5em 0;
    padding-bottom: 0;
    position: sticky;
    width: 100%;
    z-index: 10;
    top: 0;
}

section#navbar .menu li,
section#mobile-nav .menu li {
    margin-left: 2vw;
}

h3.centered {
    text-align: center;
    font-size: 2.5vw;
    color: var(--brand-dark);
}

h1.hero-title:before {
    content: "";
    width: 5vw;
    height: 5vw;
    position: absolute;
    top: -2.5vw;
    left: -5vw;
    background-image: url(/svg/heading-loop.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

.nav-brand img {
    width: 100%;
    max-height: 5vw;
}

#menu-btn {
    display: none;
    cursor: pointer;
}
section#mobile-nav {
    position: fixed;
    top: 0;
    width: calc(100vw - 7.5vw * 2);
    height: 100vh;
    right: calc(7.5vw * 2 - 4px);
    padding: 0;
    z-index: 10;
    transform: translateX(100vw);
    transition: 0.5s all ease-in-out;
    border-right: solid 4px var(--brand-light);
    overflow-y: scroll;
    display: none;
}

#close-btn {
    position: fixed;
    right: 100vw;
    top: 0;
    width: calc(7.5vw * 2);
    height: calc(7.5vw * 2);
    font-size: 5.5vw;
    border-radius: 0;
    border: none;
    background: #fff;
    color: var(--brand-dark);
    border-bottom: solid 4px var(--brand-light);
    cursor: pointer;
    z-index: 9;
    padding: 0;
}

#mobile-nav .nav-inner {
    display: grid;
    padding: 7.5vw;
}

#mobile-nav .nav-brand {
    justify-self: left;
}

#mobile-nav .menu ul {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-gap: 5.5vw;
    margin-top: 7.5vw;
    font-size: 5.5vw;
}

#mobile-nav .nav-brand img {
    height: 10vw;
    max-height: unset;
    width: auto;
}

div#nav-overlay {
    position: fixed;
    width: calc(100vw + 4px);
    height: 100%;
    background-color: var(--brand-dark);
    top: 0;
    left: 0;
    z-index: 8;
    opacity: 0.75;
    transform: translateX(calc(100vw + 4px));
    cursor: pointer;
}

main {
    overflow-x: hidden;
}

section#mobile-nav .menu ul a:not(.btn-primary) i {
    margin-right: 2.5vw;
    color: var(--brand-dark-grey);
}

#mobile-nav .menu ul:last-of-type {
    display: flex;
    justify-content: space-evenly;
    background: var(--brand-light);
    padding: 2.5vw 0;
    margin-top: 2.5vw;
}

.brand-contact img {
    max-width: 10vw;
    width: auto;
}

section#notice {
    padding: 12.5vw 7.5vw;
}

@media screen and (max-width: 767px) {
    h1.hero-title {
        font-size: 12.5vw;
        text-transform: uppercase;
        position: relative;
    }
    section#footer .menu ul,
    section#navbar .menu ul:last-of-type {
        justify-content: right;
        margin: 0 0 5.5vw 0;
    }
    p,
    input {
        font-size: clamp(20px, 5.5vw, 1em);
        line-height: 1em;
    }
    .btn-primary {
        font-size: 4.5vw;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .brand-contact {
        border-right: none;
    }
    section#footer .menu ul,
    section#navbar .menu ul {
        flex-direction: column;
        align-items: flex-start;
    }
    #footer .menu ul:nth-of-type(2) {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin: 2em 0;
    }

    #footer .menu ul:nth-of-type(2) li {
        margin: 0 7.5vw;
    }

    #footer .copyright {
        text-align: center;
    }

    #footer .phone-info {
        grid-template-columns: 1fr;
        grid-gap: 5.5vw;
    }

    #footer .menu > ul:first-of-type,
    #addl-footer-links a {
        font-size: 5.5vw;
        grid-gap: 2.5vw;
    }

    #footer .contact-grid a {
        font-size: 5.5vw;
    }
    button#menu-btn {
        background: #fff;
        border: solid var(--brand-primary);
        filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.15));
        padding: 1vw 2.5vw;
        font-size: 16px;
        color: var(--brand-primary);
        font-weight: 700;
    }

    button#menu-btn i {
        margin-right: 2.5vw;
    }

    #navbar .nav-inner .menu {
        display: none;
    }

    #menu-btn {
        display: block;
    }
    .centered-title {
        font-size: 6.5vw;
        margin-bottom: 1em;
        margin-top: 1em;
    }
    small {
        font-size: 3.5vw;
    }
    h2 {
        font-size: 8.5vw;
    }
    .nav-brand img {
        max-height: unset;
        height: 10vw;
    }
    #mobile-nav .nav-inner .menu small.badge {
        margin-top: 7.5vw;
        display: inline-block;
    }
    section#footer .menu ul:last-of-type {
        margin-bottom: 5.5vw;
    }
    main {
        padding-top: 12.5vw;
    }
    section#mobile-nav {
        display: block;
    }
    #footer .brand-contact img {
        max-width: 20vw;
        width: auto;
    }
    lottie-player {
        width: 15.5vw !important;
    }
}
