
:root {
    --font-primary: "Open Sans", sans-serif;
    --font-heading: "Montserrat", sans-serif;

    --color-dark: #212529;
    --color-accent: rgb(160, 203, 29);
    --color-accent-hover: rgb(140, 180, 20);
    --color-accent-active: rgb(130, 170, 15);

    --navbar-height: 90px;
    --navbar-height-scrolled: 68px;

    --section-padding: 100px;

    --transition-fast: 200ms ease;
    --transition-navbar: 350ms ease;

    --section-padding: 100px;
    --section-padding-mobile: 48px;
}


/* Base
-------------------------------------------------- */

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height-scrolled);
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

.py-lg-6 {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}


/* Navbar
-------------------------------------------------- */

.site-header {
    z-index: 1030;
}

.navbar {
    min-height: var(--navbar-height);
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition:
        min-height var(--transition-navbar),
        padding var(--transition-navbar),
        background-color var(--transition-navbar),
        box-shadow var(--transition-navbar);
}

.navbar .nav-link--highlight {
    background-color: var(--color-accent);
    color: #111;
    transition: background-color var(--transition-fast);
}

.navbar .nav-link--highlight:hover,
.navbar .nav-link--highlight:focus {
    background-color: var(--color-accent-hover);
    color: #111;
    opacity: 1;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    transition: transform var(--transition-navbar);
}

.nav-link {
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.nav-link:hover {
    opacity: 0.65;
}

/* Transparent navbar
-------------------------------------------------- */

.site-header:not(.is-scrolled) .navbar {
    color: #fff;
    --bs-navbar-color: #fff;
    --bs-navbar-hover-color: rgba(255, 255, 255, 0.75);
    --bs-navbar-active-color: #fff;
}

.site-header:not(.is-scrolled) .navbar .navbar-toggler {
    filter: brightness(0) invert(1);
}

.site-header.is-scrolled .navbar {
    min-height: var(--navbar-height-scrolled);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.96);
    color: var(--color-dark);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.site-header.is-scrolled .site-logo {
    transform: scale(0.88);
}


/* Hero
-------------------------------------------------- */

.hero {
    min-height: 90vh;
    min-height: 90svh;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero__media,
.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__image,
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image {
    z-index: 0;
}

.hero__video {
    z-index: 1;
    opacity: 0;
    transition: opacity 500ms ease;
}

.hero__media.is-playing .hero__video {
    opacity: 1;
}

.hero__overlay {
    z-index: 2;
    background: transparent;
}

.hero > .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero__scroll {
    z-index: 4;
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero__scroll span {
    display: block;
    width: 4px;
    height: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    animation: scroll-hint 1.5s ease-in-out infinite;
}

@keyframes scroll-hint {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}


/* Parallax
-------------------------------------------------- */

.parallax-section {
    --parallax-height: 80vh;
    --parallax-min-height: 600px;

    height: var(--parallax-height);
    min-height: var(--parallax-min-height);
    isolation: isolate;
}

.parallax-section--compact {
    --parallax-height: 60vh;
    --parallax-min-height: 400px;
}

@supports (height: 100svh) {
    .parallax-section {
        --parallax-height: 80svh;
    }

    .parallax-section--compact {
        --parallax-height: 60svh;
    }
}

.parallax-section__media {
    position: absolute;
    inset: -25% 0;
    z-index: 0;
}

.parallax-section__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.parallax-section__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .4);
}

.parallax-section > .container {
    z-index: 2;
}

/* Parallax
-------------------------------------------------- */
/*
.parallax-section {
    height: 80vh;
    height: 80svh;
    min-height: 600px;
    isolation: isolate;
}

.parallax-section__media {
    position: absolute;
    inset: -25% 0;
    z-index: 0;
}

.parallax-section__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.parallax-section__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
}

.parallax-section > .container {
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.parallax-section .row {
    width: 100%;
}

*/
/* Scroll animations
-------------------------------------------------- */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 700ms ease,
        transform 700ms ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Content section
-------------------------------------------------- */

.content-section {
    padding-block: var(--section-padding-mobile);
}

@media (min-width: 992px) {
    .content-section {
        padding-block: var(--section-padding);
    }
}


/* Features
-------------------------------------------------- */

.feature__number {
    flex-shrink: 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--bs-emphasis-color);
    opacity: 0.15;
}


/* Sponsors
-------------------------------------------------- */

.sponsor__logo {
    width: 100%;
    max-width: 180px;
    height: 80px;
    object-fit: contain;
}


/* Pricing
-------------------------------------------------- */

.pricing__accent {
    width: 40px;
    height: 4px;
    background-color: var(--color-accent);
}


/* Birthday
-------------------------------------------------- */

.birthday__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.birthday__item::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    background-color: var(--color-accent);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* Buttons
-------------------------------------------------- */

.birthday__button,
.back-to-top {
    --bs-btn-color: #111;
    --bs-btn-bg: var(--color-accent);
    --bs-btn-hover-color: #111;
    --bs-btn-hover-bg: var(--color-accent-hover);
}

.birthday__button {
    --bs-btn-active-color: #111;
    --bs-btn-active-bg: var(--color-accent-active);
}


/* Back to top
-------------------------------------------------- */

.back-to-top {
    --bs-btn-active-bg: var(--color-accent-hover);

    width: 48px;
    height: 48px;
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}


/* Mobile
-------------------------------------------------- */

@media (max-width: 991.98px) {

    .offcanvas {
        width: 100%;
        background-color: var(--color-dark);
        color: #fff;
    }

    .offcanvas .site-logo {
        color: #fff;
    }

    .offcanvas .btn-close {
        filter: invert(1);
    }

    .offcanvas .navbar-nav {
        min-height: 100%;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .offcanvas .nav-link {
        color: #fff;
        font-family: var(--font-heading);
        font-size: 2rem;
        font-weight: 600;
    }

    .hero__overlay {
        background: rgba(0, 0, 0, 0.45);
    }

    .parallax-section {
        min-height: 55svh;
    }
}

@media (max-width: 767.98px) {

    .parallax-section {
        height: 70svh;
    }
}


/* Reduced motion
-------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero__scroll span {
        animation: none;
    }

    .hero__video {
        display: none;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }

    .back-to-top {
        transition: none;
    }
}

/* Footer
-------------------------------------------------- */

.footer__accent {
    color: var(--color-accent);
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--color-accent);
}

.footer__social {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, .08);
    transition: background-color var(--transition-fast),
                color var(--transition-fast);
}

.site-footer .footer__social:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

/* Schedule
-------------------------------------------------- */

#schedule {
    --schedule-cell-bg: #343a40;
    --schedule-header-bg: var(--color-dark);
}

/* Desktop */

.schedule__grid {
    grid-template-columns: 80px repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(80px, auto);
}

.schedule__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem .5rem;
    background-color: var(--schedule-cell-bg);
    text-align: center;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.schedule__header,
.schedule__time,
.schedule__day-title {
    background-color: var(--schedule-header-bg);
    font-weight: 700;
}

.schedule__time {
    color: var(--color-accent);
}

.schedule__cell:empty {
    background-color: var(--bs-tertiary-bg);
}

/* Mobile */

.schedule__day-title {
    margin: 0;
    padding: 1rem;
    text-align: center;
    text-transform: uppercase;
    font-size: 1rem;
}

.schedule__lesson {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    min-height: 60px;
    background-color: var(--schedule-cell-bg);
}

.schedule__lesson + .schedule__lesson {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.schedule__lesson-time,
.schedule__lesson-name {
    display: flex;
    align-items: center;
    padding: .75rem;
    font-size: .875rem;
    font-weight: 600;
}

.schedule__lesson-time {
    justify-content: center;
    background-color: var(--color-accent);
    color: #111;
    font-weight: 700;
}
