/* Variables */
:root {
    --primary-petrol-green: #003b47;
    --neutrals-white: #fff;
    --primary-green: #00885d;
    --neutrals-grey-100: #f4f8f9;
    --neutrals-grey-200: #d8e0e2;
    --primary-purple: #7f2b8c;
    --primary-burgundy: #9e004c;
    --neutrals-grey-300: #6c7b7f;
    --primary-orange: #de650d;
    --primary-yellow: #f2a000;
    --secondary-light-yellow: #ffedc8;
    --secondary-light-purple: #e2bfe7;
    --secondary-light-green: #c8eae0;
    --secondary-light-burgundy: #e7bfd2;
    --secondary-light-orange: #fae6d8;
    --secondary-light-dark-petrol-green: #1f5560;
    --system-error: #bd0000;
    --secondary-dark-yellow: #c78500;
    --secondary-dark-yellow-2: #a77000;
    --secondary-dark-burgundy: #690033;
    --secondary-dark-green: #006243;
    --secondary-dark-purple: #560962;
    --secondary-dark-orange: #ac4800;
    --secondary-dark-petrol-green: #002b34;
  }

/* Components */
button, .button {
    font-size: 1.125em;
    font-weight: bold;
    line-height: 1.56;
    text-align: center;
    color: var(--neutrals-white);
    background-color: var(--primary-petrol-green);
    border: solid 2px var(--primary-petrol-green);
    box-shadow: 0 .5em 1.25em 0 rgba(0, 59, 71, 0.32);
    border-radius: 12px;
    padding: 1em 2.25em;
    cursor: pointer;
}
button.primary, .button.primary {
    background-color: var(--primary-green);
    border: solid 2px var(--primary-green);
}




/* Layout */
#site-container {
    max-width:1440px;
    margin:0 auto;
    background:#f4f8f9;
}

header {
    display: grid;
    grid-template-columns:min-content auto;
    padding:1rem;
    background-color: #ffffff;
    color:#003b47;
}
header nav {
    text-align: right;
}
header nav ul {
    list-style: none;
}
header nav li {
    display: inline-block;
    padding:0 1em;
}

header nav a {
    color: #003b47;
    text-decoration: none;
}
header nav a:hover {
    text-decoration: underline;
}

header .logo img {
    max-width:200px;
    height:48px;
}

@media screen and (min-width: 1000px) {
    #site-container header {
        padding:1rem 2rem;
    }
}

.constrained {
    max-width: 600px;
    margin:0 auto;
}

/* Typography */
body {
    font:16px/1.56 BeVietnamPro, sans-serif;
    margin:0;
    padding:0;
    color:#003b47;
}

h1, h2, h3 {
    margin-top:2em;
}

main p,
code.block,
main .tip{
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}
main hr {
    margin-top: 2em;
}
main a {
    text-decoration: none;
}

main p a {
    text-decoration: underline;
}

/* Forms */

form .field>label {
    display: block;
    font-size:1.125em;
    margin-bottom: .5em;
}

form .field .help {
    display: block;
    font-size:0.875em;
    margin-top:.5em;
    color: var(--neutrals-grey-300);
}

form .field.error input,
form .field.error textarea{
    border-color: var(--system-error);
}

form .field .error {
    display: block;
    font-size:0.875em;
    margin-top:.5em;
    color:var(--system-error);
}
form .field .error:before {
    content:'!';
    background-color: var(--system-error);
    color:white;
    border-radius:50%;
    width:1.3em;
    height:1.3em;
    font-size:.9em;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    vertical-align:auto;
    margin-right:.5em;
}

form .field input,
form .field textarea {
    padding:1em;
    border-radius: 12px;
    border: solid 2px var(--neutrals-grey-300);
    min-width: 20.5em;
}

form .field textarea {
    width:100%;
}

form .field+.field {
    margin-top:1.5em;
}

form .controls {
    margin-top:1.5em;
}


#site-container main {
    padding:16px;
}

/* Site footer */
#site-container footer {
    background-color:#003b47;
    color:#ffffff;
    padding:1em;
}

/* Size changes */
@media screen and (min-width: 600px) {
    #site-container footer {
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }
}
@media screen and (min-width: 1000px) {
    #site-container main {
        padding:2em;
    }
    #site-container footer {
        border-top-left-radius: 60px;
        border-top-right-radius: 60px;
        padding:2em;
    }
}

main li+li {
    margin-top:.5em;
}

/* Page specifics */
body.home #site-container{
    background-color: #ffffff;
    background:
        url('/img/shapes/01.svg') no-repeat top -290px left -35px,
        url('/img/shapes/03.svg') no-repeat top -250px right -300px
    ;
}
body.home header {
    background:transparent;
    color:#fff;
}
body.home header a {
    color:#fff;
}


/* code */
pre, code.block {
    display: block;
    background:#ffffff;
    border:1px solid #003b47;
    border-radius: 24px;
    overflow-x:auto;
    white-space: pre;
}
code {
    background:#ffffff;
    border-radius: 5px;
    display: inline-block;
    padding:.25rem .5rem;
    font-size:inherit;
}
p code,
li code {
    word-break: break-all;
    overflow-wrap: break-all;
    color: var(--primary-burgundy);
    padding:0 .25em;
    font-weight: bold;
}

pre code, code.block {
    display: block;
    padding:2rem;
    font-size:90%;
}
code .highlight {
    font-weight: bold;
}
code .highlight.red {
    color:#bd0000;
}

.tip, .note{
    display: block;
    background:#ffffff;
    padding:4rem 1rem 1rem 1rem;
    border-radius: 24px;
    box-shadow: 0 4px 52px 0 #d8e0e2;
    position:relative;
}
.tip::before,
.note::before{
    content: 'Tip';
    display: block;
    position: absolute;
    top:1em;
    left:1em;
    padding: 8px 12px 8px 35px;
    font-size:90%;
    font-weight:600;
    border-radius: 8px;
    background-image:url('/img/icons/info-white.svg');
    background-repeat: no-repeat;
    background-position:8px center;
    background-size:25%;
    background-color: #c8eae0;
}
.tip *:first-child,
.note *:first-child {
    margin-top:0;
}
.note::before {
    content: 'Note';
    background-color: #fdee8e;
}

.note code.block {
    border-radius: 16px;
}

.note code.block:last-child{
    margin-bottom: 0;
}

/* image shapes */
.shape1 {
    background-image: var(--bg-image);
    background-size: contain;
    background-position: left top;
    -webkit-mask-image: url('/img/masks/mask-1a.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: top left;
}

/* home page intro block */
.home .intro {
    overflow-x:clip;
    display: grid;
    position:relative;
    margin-right: -2em;
    clear:both;
}
.home .intro h1 {
    max-width:50%;
    margin-top:2em;
    font-size: 4em;
    float:left;
    font-weight: 900;
    line-height: 1.31;
}
.home .intro p{
    max-width:50%;
}

.home .intro .shape1 {
    width:728px;
    height:728px;
    position:absolute;
    top:-45px;
    right:-140px;
    overflow: hidden;
}
.home .tout h2 {
    font-size:3em;
    font-weight: 800;
}


.cards {
    display: flex;
    margin-left:-15px;
    margin-right:-15px;
    margin-top:1.5em;
    margin-bottom: 1.5em;
}

.card {
    background-color: var(--primary-petrol-green);
    color:white;    
    border-radius:24px;
    max-width:420px;
    flex: 0 1 32%;
    margin-left:15px;
    margin-right:15px;
    display: flex;
    flex-direction:column;
}

.card .title {
    padding:.5em 28px;
    text-align: center;
}

.card .image {
    height:200px;
    margin-bottom:-24px;
    text-align: center;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    overflow: hidden;
}

.card .image img {
    max-width: 100%;
    max-height: 200px;
}

.card .content {
    background-color:white;
    color: var(--primary-petrol-green);
    border-radius:24px;
    padding:28px;
    border: solid 2px var(--neutrals-grey-200);
    flex:1 1 auto;
}

.pricing .card .content {
    text-align: center;
}

.card .title {
    margin-top:.5em;
    margin-bottom: .5em;
}

.cards.pricing {
    justify-content: center;
}

.cards.pricing .price {
    font-weight: bold;
    font-size:1.5em;
}

.video {
    max-width: 100%;
    border-radius:24px;
    padding:24px;
    background-color: var(--primary-petrol-green);
    text-align: center;
}
.video h2 {
    color:white;
    text-align: center;
    margin-top:0;
    margin-bottom: 1em;
}
.video video {
    max-width:100%;
    max-height:500px;
}

.extras {
    border-spacing: 2px;
    border-collapse: separate;    
}

.extras td, th {
    padding:.6em .8em;
    background-color: var(--neutrals-grey-100);
}

.extras th {
    background-color: var(--neutrals-grey-200);
}


.action-bar {
    margin-top:4em;
    margin-bottom: 2em;
    text-align: center;
}

@media screen and (max-width: 1200px) {
    body.home #site-container{
        background:
            url('/img/shapes/01.svg') no-repeat top -290px left -35px,
            url('/img/shapes/03.svg') no-repeat top -250px right -500px
        ;
    }
    .home .intro .shape1 {
        max-width:60%;
    }
}

@media screen and (max-width: 980px) {
    body.home #site-container{
        background: none;
    }
    body.home #site-container header {
        background:var(--primary-burgundy);
    }
    .home .intro .shape1 {
        display: none;
    }
    .home .intro h1,
    .home .intro p{
        max-width:100%;
    }

    .home .intro h1 {
        font-size:3em;
        margin-top:0;
    }
    .home .intro {
        margin-right: 0;
    }
}

@media screen and (max-width: 700px) {
    .cards {
        flex-direction: column;
        margin-left:0;
        margin-right:0;
    }
    .card {
        margin-bottom:25px;

    }
}

