@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {
    --container-width: 1024px;
    --container-wide-width: 1200px;

    /* Colours */
    --primary: #0094bf;
    --secondary: #ef3151;
    --white: #fff;
    --black: #000;
    --dark-grey: #333;
    --grey: #aaa;
    --light-grey: #eee;

    /* Fonts */
    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --font-small: 14px;
    --font-normal: 18px;
    --font-large: 28px;
    --font-x-large: 40px;
    --font-xx-large: 48px;

    /* Banners */
    --hero-banner: url('../assets/images/TT-homepagebanner-LandingPage-A.png');
    --cta-banner: var(--hero-banner);

    /* Buttons */
    --button-bg: var(--secondary);
    --button-bg-hover: var(--grey);
    --button-text-color: var(--white);
    --button-font-family: var(--font-secondary);
    --button-font-size: var(--font-normal);
}

* {
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-normal);
    margin: 0px;
    padding: 0px;
    overflow-x: clip;
}

/* Text */

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-family: var(--font-secondary);
    margin-block: 1rem;
    text-align: center;
}

h1 {
    font-size: var(--font-xx-large);
    max-width: 20ch;
}

h2 {
    font-size: var(--font-x-large);
    font-weight: 700;
}

h3 {
    font-size: var(--font-large);
    font-weight: 500;
}

h4, h5, h6 {
    font-size: var(--font-normal);
    font-weight: 500;
}

.text-small {
    font-size: var(--font-small);
}

.text-medium {
    font-size: var(--font-medium);
}

.text-large {
    font-size: var(--font-large);
}

.text-x-large {
    font-size: var(--font-x-large);
}

.text-xx-large {
    font-size: var(--font-xx-large);
}

.text-center {
    text-align: center;
}

/* Containers */

.container {
    margin: 0px auto;
    padding: 0px;
    max-width: var(--container-width);
    width: 100%;
}

section {
    padding: clamp(30px, 4vw, 50px) 30px;
}

/* Buttons */

.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-block: 30px;
    width: 100%;
}

.button {
    background-color: var(--button-bg);
    border-radius: 10px;
    color: var(--button-text-color);
    cursor: pointer;
    display: block;
    font-family: var(--button-font-family);
    font-size: var(--button-font-size);
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    padding: 20px 32px;
    flex-basis: 100%;
    max-width: 900px;
    transition: background-color 0.25s linear;
}

.button:hover {
    background-color: var(--button-bg-hover);
    transition: background-color 0.25s linear;
}

/* Header */

header {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 25px;
}

header .logo img {
    display: block;
    width: auto;
    max-width: 150px;
    height: auto;
}

/* Hero Banner */

#hero {
    /*--button-bg: var(--white);
    --button-text-color: var(--black);
    background-color: var(--dark-grey);*/
    background-image: var(--hero-banner);
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-block: 0px;
    position: relative;
    /*text-shadow: 3px 3px 6px rgba(0,0,0,0.3);*/
    min-height: 580px;
    z-index: 0;
}

#hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

#hero p {
    text-align: center;
    max-width: 80ch;
}

/* Main Content */

main iframe {
    margin: 25px auto;
    max-height: 450px;
}

/* Sign-up Form */

#sign-up {
    background-color: var(--primary);
    color: var(--white);
}

#sign-up h2 {
    color: var(--white);
}

/* Call to Action */

#cta {
    /*--button-bg: var(--white);
    --button-text-color: var(--black);
    background-color: var(--dark-grey);*/
    background-image: var(--cta-banner);
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /*text-shadow: 3px 3px 6px rgba(0,0,0,0.3);*/
    min-height: 480px;
    z-index: 0;
}

#cta .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    max-width: var(--container-wide-width);
    z-index: 2;
}

#cta p {
    text-align: center;
    max-width: 80ch;
}

.overlay {
    background-color: rgba(255,255,255,0.65);
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Benefits */

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-block: 30px;
    width: 100%;
}

.benefit {
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.benefit .icon {
    border: solid 3px #0094bf;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    width: 60px;
    height: 60px;
}

.benefit img {
    width: 80%;
    height: 80%;
}

/* Footer */

footer {
    padding-block: 50px;
}

footer .copyright {
    font-size: var(--font-small);
    text-align: center;
}

@media all and (max-width: 768px) {
    :root {
        --hero-banner: url('../assets/images/TT-homepagebanner-LanindingPage-500x660-A.png');
    }

    .benefits {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 50px;
    }

}

@media all and (max-width: 480px) {

    .benefits {
        grid-template-columns: 1fr;
    }

}