/*
CSS Reset
https://piccalil.li/blog/a-more-modern-css-reset/
 */
/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
    margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
    line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}

/* Variables */
:root {
    --brand-blue: #003e7e;
    --brand-blue-light: #00b3ef;
    --brand-yellow: #fbb03b;
    --white: #fff;
    --black: #000;
    --gray-1: #eaeaea;

    --body-font: "museo-sans", Arial, Helvetica, sans-serif;
    --body-font-weight: 300;
    --heading-font: "museo-sans", Arial, Helvetica, sans-serif;
    --heading-font-weight: 700;
}

/* Foundations */
strong {
    color: var(--brand-blue);
    font-weight: var(--heading-font-weight);
}

body {
    margin: 0;
    padding: 0;
}

html {
    background: var(--brand-blue);
    color: var(--black);
    font-size: 16px;
    line-height: 1.2;
    font-family: var(--body-font);
    font-weight: var(--body-font-weight);
}

.site-wrapper {
    background: var(--white);
    margin: 0 auto;
    max-width: 1920px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    background: var(--brand-blue-light);
    border: 0;
    border-radius: 10px;
    color: var(--brand-blue);
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    padding-block: 10px;
    padding-inline: 24px;
    text-transform: uppercase;
    transition: background .3s ease-in-out, color .3s ease-in-out;

    &:hover,
    &:focus {
        background: var(--white);
    }

    &.btn--transparent {
        background: transparent;
        color: var(--white);

        &:hover,
        &:focus {
            text-decoration: underline;
        }
    }
}

/* Header */
.main-header {
    position: relative;
    z-index: 1;
}

.main-header__image {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    &::after {
        background: linear-gradient(to bottom, rgba(1, 59, 119, 0) 50%, rgba(18, 52, 98, 1) 100%);
        content: '';
        height: 100%;
        left: 0;
        mix-blend-mode: multiply;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 1;
    }

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

.main-header__text {
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 150px;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 100px 0;
    position: relative;
    text-align: center;
    z-index: 2;
}

.main-header__title {
    align-items: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: var(--heading-font-weight);
    justify-content: center;
    margin-block-start: 50px;
    margin-inline: auto;

    @media (min-width: 800px) {
        margin-block-start: 120px;
    }
}

.main-header__title-light,
.main-header__title-heavy {
    background: var(--brand-blue-light);
    display: inline-block;
    font-style: italic;
    position: relative;

    &::before,
    &::after {
        background: var(--brand-blue-light);
        content: '';
        display: inline-block;
        height: 100%;
        width: 20px;
        transform: skewX(-10deg) translateX(-10px);
        position: absolute;
        z-index: -1;
    }
}

.main-header__title-light {
    font-weight: 300;

    @media (min-width: 800px) {
        transform: translateX(-50px);
    }
}

.main-header__title-heavy {
    @media (min-width: 800px) {
        transform: translateX(50px);
    }
}

.main-header__logo {
    margin-inline: 40px;
    max-width: 370px;
}

.main-content__wrapper {
    display: flex;
    flex-direction: column;

    @media (min-width: 800px) {
        flex-direction: row;
    }
}

.main-content__sidebar {
    color: var(--white);
    flex: 7;
    padding-inline-end: 20vw;

    @media (min-width: 800px) {
        padding-inline-end: 5vw;
    }
}

.main-content__content {
    flex: 12;
    font-size: clamp(1rem, 2vw, 2rem);
    padding-block: 20px;
    padding-inline: 5vw;

    @media (min-width: 800px) {
        padding-block: 80px;
    }
}

.main-content__sidebar-title {
    background: var(--brand-blue);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    margin-block: 10px;
    overflow: hidden;
    padding: 48px;
    text-align: right;

    h2 {
        font-style: italic;
        font-weight: 300;
        margin: 0;
    }
}

.main-content__sidebar-list {
    background: var(--brand-blue-light);
    font-size: clamp(1rem, 1vw, 1.5rem);
    margin-block: 10px;
    padding: 48px;
    text-align: right;

    ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    li {
        font-weight: 700;

        + li {
            margin-block-start: 0.75rem;
        }
    }
}

.main-content__sidebar-cta {
    /*background-color: var(--brand-yellow);*/
    color: var(--black);
    font-size: clamp(1.5rem, 2.7vw, 3rem);
    line-height: 1.1;
    margin-block: 10px;
    position: relative;
    text-align: right;
    z-index: 1;
    
    &::before {
        background-image: url('../img/chevron.svg');
        background-position: center right;
        background-repeat: no-repeat;
        background-size: auto 100%;
        content: '';
        display: block;
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        transform: translateX(100px);
        width: 100%;
        z-index: 0;
    }

    &::after {
        background: var(--brand-yellow);
        content: '';
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 50%;
        z-index: 0;
    }

    span {
        font-style: italic;
        font-weight: 300;
    }

    a {
        color: var(--black);
        font-weight: 700;
        text-decoration: none;

        &:hover,
        &:focus {
            text-decoration: underline;
        }
    }
}

.main-content__sidebar-cta-inner {
    padding: 32px;
    position: relative;
    z-index: 1;
}

.main-content__widget {
    padding-block: 120px;
}

.main-content__widget-inner {
    background: #eee;
    border-radius: 20px;
    color: #000000;
    padding: 20px;
    width: 100%;
}

.main-content__calculator {
    background: var(--brand-blue);
    color: var(--white);
    font-size: clamp(1rem, 2vw, 2rem);
    padding-block: 48px;
    text-align: center;

    h2 {
        font-size: clamp(2rem, 4.2vw, 4rem);
        margin-block-start: 0;
    }
}

.travel-calculator {
    margin-block-start: 2rem;
}

.travel-calculator__form {
    align-content: center;
    color: var(--black);
    gap: 5px;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: left;

    @media (min-width: 800px) {
        display: grid;
    }

    > * {
        background: var(--gray-1);
    }

    input,
    textarea,
    select {
        border: 0;
        border-radius: 5px;
        margin-block: 5px;
        padding: 0.5rem 1rem;
    }
}

.travel-calculator__label {
    align-items: center;
    display: flex;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.5rem;

    @media (min-width: 800px) {
        font-size: unset;
        padding-inline: 1rem;
    }

    &.travel-calculator__label--header {
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        justify-content: center;
        margin-bottom: -5px;
        color: var(--brand-blue);

        input,
        select {
            flex: 1;
        }
    }

    &.travel-calculator__label--blank {
        background: transparent;
    }

    span {
        margin-inline-end: 5px;
    }
}

.travel-calculator__roa,
.travel-calculator__other {
    align-items: center;
    display: flex;
    gap: 0.25rem;
    padding-inline: 0.5rem;

    &::before {
        font-weight: 700;
        min-width: 80px;

        @media (min-width: 800px) {
            display: none;
        }
    }

    input,
    select {
        flex: 1;
        width: 100%;
    }
}

.travel-calculator__roa {
    &::before {
        content: "ROA";
    }
}

.travel-calculator__other {
    &::before {
        content: "Other";
    }
}

.travel-calculator--results {
    background: var(--brand-yellow);
    color: var(--black);

    + .travel-calculator--results {
        @media (min-width: 800px) {
            margin-inline-start: -5px;
        }
    }
}

.travel-calculator__label--header-roa {
    display: none;

    @media (min-width: 800px) {
        display: flex;
    }
}

.travel-calculator__form-footer {
    margin-block-start: 1rem;

    @media (min-width: 800px) {
        text-align: right;
    }
}