@import url("./theme.5d900e25c35b.css");

@font-face {
    font-family: "montserrat";
    src: url("../fonts/Montserrat-Regular.203d753a8055.ttf");
}

@font-face {
    font-family: "montserrat";
    src: url("../fonts/Montserrat-Italic.ba6062606d5a.ttf");
    font-style: italic;
}

@font-face {
    font-family: "montserrat";
    src: url("../fonts/Montserrat-Bold.c300fff4e4ae.ttf");
    font-weight: bold;
}

@font-face {
    font-family: "montserrat";
    src: url("../fonts/Montserrat-BoldItalic.4a2d6e65e13b.ttf");
    font-style: italic;
    font-weight: bold;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.2;
}

html,
body {
    scroll-padding-top: calc(var(--header-height) + 2rem);
    scroll-behavior: smooth;
}

body {
    padding-bottom: 2rem;

    background: var(--background-color);
    color: var(--foreground-color);
    font-family: "montserrat", sans-serif;
    font-size: 14pt;
}

/* Super-global styles */

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

p,
main li {
    line-height: 1.6;
}

input,
textarea,
button {
    font-size: inherit;
}

ul,
ol {
    padding-left: 2rem;
}

h2 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;

    font-size: 200%;
    text-transform: uppercase;
}

h3 {
    text-transform: uppercase;
    font-size: 180%;
    letter-spacing: 0.32rem;
}

/* Main header */

body > header {
    position: sticky;
    top: 0;
    margin: 1rem auto;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--header-height);
    padding: 2.5rem 0;

    background: var(--background-color);
    box-shadow: 0px 0px 10px 10px var(--background-color);
}

body > header > div {
    display: flex;
    flex-direction: row;
    width: var(--content-width);
    max-width: 100%;
    gap: 2rem;
}

body > header[data-with-logo] div::before {
    content: "";
    width: var(--logo-width);
    height: var(--header-height);

    background-image: var(--logo-url);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

body > header h1,
body > header h2 {
    display: none;
}

body > header nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 2rem;
}

body > header nav ul {
    display: flex;
    flex-direction: row;
    gap: 3rem;

    list-style-type: none;
}

body > header nav a {
    text-transform: uppercase;
    font-weight: bold;
}

body > header nav a:hover {
    text-decoration-thickness: 3px;
}

/* Main content */

main,
section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

main {
    align-items: center;
}

main > section,
main > h2 {
    width: var(--content-width);
    max-width: 100%;
    padding-inline: 1.5rem;
}

main > section + section {
    margin-top: 10rem;
}

main > section > *:first-child {
    margin-bottom: 1rem;
}

/* Forms */

form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

label > span {
    font-weight: bold;
}

input,
textarea {
    padding: 1rem;

    background: var(--surface-color);
    color: var(--on-surface-color);
    border: 0;
    border-radius: var(--box-border-radius);
}

/* Buttons/actions */

button,
a.cta {
    padding: 1.25rem 2.25rem;

    background: var(--primary-color);
    color: var(--on-primary-color);
    border: 0;
    font-weight: bold;
    cursor: pointer;
    border-radius: var(--box-border-radius);
    text-align: center;
}

a.cta {
    display: inline-block;
    margin: 1rem auto;
    align-self: center;
}

/* Intro section with huge background image */

main > .intro {
    width: 100%;
    height: 25vw;
    min-height: 40vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;

    font-weight: bold;
    letter-spacing: 0.05rem;
}

main > .intro::before {
    content: "";
    z-index: 1;
    position: absolute;
    inset: 0;

    background-image: var(--image-url);
    background-size: cover;
    background-position: center center;
}

main > .intro::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.8)
    );
}

.intro .brand {
    z-index: 3;

    color: var(--primary-color);
    font-size: 4vw;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 0 15px #000;
    transform: translateY(20px) scale(0.95);
    animation: fadeUp 1.2s ease-out 0.2s forwards;
    word-spacing: 100vw;
    letter-spacing: 0.5rem;
}

.intro[data-with-hero-logo] .brand {
    position: relative;
    height: var(--logo-height);
    max-height: 60%;

    color: transparent;
    text-shadow: none;
}

.intro[data-with-hero-logo] .brand::after,
.intro[data-with-hero-logo] .brand::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: var(--logo-url);
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}

.intro[data-with-hero-logo] .brand::after {
    z-index: 5;
}

.intro[data-with-hero-logo] .brand::before {
    z-index: 4;

    filter: blur(5px) brightness(0%);
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Team member list */

ul.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;

    list-style-type: none;
}

ul.team-members li {
    width: 15rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

ul.team-members li[data-with-photo]::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 15rem;
    margin-bottom: 1rem;

    background-color: black;
    background-image: var(--photo-url);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: var(--photo-border-radius);
}

ul.team-members .name {
    font-weight: bold;
    text-align: center;
}

/* Class list */

ul.classes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

ul.classes,
ul.classes ul {
    list-style-type: none;
    padding: 0;
}

ul.classes > li {
    --image-size: 10rem;

    padding: var(--box-padding);
    display: flex;
    flex-direction: column;
    gap: var(--box-padding);

    background: var(--surface-color);
    border-radius: var(--box-border-radius);
}

ul.classes > li::before {
    content: "";
    display: block;
    height: var(--image-size);
    order: 1;

    border-radius: var(--box-border-radius);
    background-image: var(--image-url, url(https://picsum.photos/200/300));
    background-size: cover;
    background-position: center center;
}

ul.classes .name {
    order: 0;

    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    font-size: 125%;
    color: var(--on-accent-color);
    border-top-left-radius: var(--box-border-radius);
    border-top-right-radius: var(--box-border-radius);
}

ul.classes ul {
    order: 2;
    display: flex;
    justify-content: space-evenly;

    font-size: 80%;
    font-weight: bold;
    text-transform: uppercase;
}

/* Week calendar */

ul.week-calendar {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0;
    flex-wrap: wrap;

    font-size: 75%;
}

ul.week-calendar > li {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

ul.week-calendar,
ul.week-calendar ul {
    list-style-type: none;
    padding: 0;
}

ul.week-calendar .day {
    padding: 0.75rem 0.5rem;

    background: var(--accent-color);
    color: var(--on-accent-color);
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    border-top-left-radius: var(--box-border-radius);
    border-top-right-radius: var(--box-border-radius);
}

ul.week-calendar ul {
    display: flex;
    flex-direction: column;

    background: var(--surface-color);
    border-bottom-left-radius: var(--box-border-radius);
    border-bottom-right-radius: var(--box-border-radius);
}

ul.week-calendar ul > li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    gap: 0.5rem;
}

/* Map */

iframe.map {
    width: 100%;
    height: 30vh;
}

/* Home page */

.home--home-page h2 {
    display: none;
}

/* Image gallery show thumbs */

ul.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1rem;
    padding-left: 0;

    list-style-type: none;
}

ul.image-gallery li {
    flex: 1;
    min-width: 15rem;
    height: 15rem;

    border-radius: var(--photo-border-radius);
    overflow: hidden;
}

ul.image-gallery img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Courses */

article.course {
    display: grid;
    grid-template-columns: minmax(10%, 15rem) 1fr;
    column-gap: calc(1.5 * var(--box-padding));
    padding: var(--box-padding);

    background: var(--surface-color);
    border-radius: var(--box-border-radius);
}

article.course > * {
    grid-column: 2;
}

article.course > * + * {
    margin-top: 1rem;
}

article.course::before {
    content: "";

    grid-column: 1;
    grid-row: 1 / span 100;
    display: inline-block;
    width: 100%;
    height: 15rem;

    background-image: var(--photo-url);
    background-size: cover;
    background-position: center center;
    border-radius: var(--photo-border-radius);
}

article.course h4 {
    color: var(--on-accent-color);
    text-transform: uppercase;
}

article.course a:last-child {
    padding-top: 1rem;

    font-weight: bold;
    text-transform: uppercase;
    text-align: right;
}
