/* --
  -- VARIABLES
-------------------------------------------------------- */
:root {

    /* Brand Colors */
    --color-brand-primary: #003366;
    --color-brand-secondary: #5cabf3;
    --color-brand-cta: #e4ce53;
    
    /* Background Colors */
    --color-background-dark: #09172f;
    --color-background-darkest: #061020;
    --color-background-light: #fcfcfc;
    --color-background-grey: #f0f0f0;
    
    /* Copy Colors */
    --color-copy-dark: #2E3440;
    --color-copy-medium: #4C566A; 
    --color-copy-links: #05529f;

    /* Accessibility */
    --a11y-focus-color: #5cabf3;
    --a11y-error-color: #92150c;

    /* Borders */
    --border-radius: 0.25rem;

    /* Font Stack */
    --font-stack-sans: 'Roboto', -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial, sans-serif;

    /* Sizing */
    --max-content-width: 80vw;
    --max-paragraph-width: 65ch;
}


/* --
  -- DEFAULTS
-------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    font-size: 100%;
}
body {
    background-color: var(--color-background-dark);
    color: var(--color-copy-dark);
    font-family: var(--font-stack-sans);
    font-size: 1rem;
    margin: 0;
    padding: 0;
    text-rendering: optimizeSpeed;
}
@media (min-width:560px)  { 
    body {
        background-image: url(../images/bg_body.png);
        background-position: top right;
        background-repeat: no-repeat;
        background-size: 56%;
    }
}
a,
a:not([class]) {
    color: var(--color-copy-links);
    text-decoration-skip-ink: auto;
}
input,
button {
    font: inherit;
}
img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
}
p {
    max-width: var(--max-paragraph-width);
}
ul {
    margin: 1rem auto 2rem;
}
ul li {
    margin: 1rem auto;
}


/* --
  -- ACCESSIBILITY
-------------------------------------------------------- */
:focus {
    outline: 2px solid var(--a11y-focus-color);
    outline-offset: 4px;
}
main:focus {
    outline: none;
}
#skip-nav a {
    background: #fff;
    padding: 1rem;
    position: absolute;
    top: -64px;
    left: 0px;
    transition: top 0.5s ease-out;
    z-index: 1000;
}
#skip-nav a:focus {
    top: 0px;
    outline-color: transparent;
}
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* --
  -- STRUCTURE
-------------------------------------------------------- */
.content {
    margin: 0 auto;
    max-width: var(--max-content-width);
}
body > header,
body > main,
body > footer {
    margin: 0 auto;
    padding: 1rem 0;
}
body > header {
    background: none;
}
body > header .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body > footer {
    color: #fff;
}
.grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    width: 100%;
}
.grid > div {
    padding: 2rem 0;
}

/* --
  -- COMPONENTS
-------------------------------------------------------- */
/* Logo */
.logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
}
.logo .word {
    font-weight: 500;
    margin: 0 1rem;
}
.logo small {
    color: var(--color-brand-secondary);
    display: block;
    font-size: 0.88rem;
}
.logo a {
    display: flex;
 align-items: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
}


/* Main Nav */
body > header .content nav {
    color: #fff;
    padding: 1rem;
    position: absolute;
    top: 3rem;
    right: 0;
    width: 0px;
    z-index: 900;
}
body > header .content nav button {
    background-color: transparent;
    border: none;
    border-radius: var(--border-radius);
    color: #fff;
    cursor: pointer;
    margin: 1rem 0;
    position: relative;
}
body > header .content nav button::after {
    display: inline-block;
    content: "\203A";
    color: #fff;
    margin-left: 0.125em;
    transform: rotate(90deg);
    width: 16px;
    height: 16px;
}
body > header .content nav button#toggle {
    background: var(--color-background-darkest);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-brand-secondary);
    position: relative;
    padding: 0.5rem;
    margin-left: -88px;
}
body > header .content nav ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}
body > header .content nav ul li {
    margin: 0 0.5rem;
    padding: 0;
}
body > header .content nav ul li ul {
    display: none;
}
body > header .content nav button.expanded + ul {
    display: block;
} 
body > header .content nav ul li ul li a {
    color: #fff;
    display: block;
    margin: 0.5rem;
    text-decoration: none;
}
body > header .content nav.expanded {
    background: var(--color-background-darkest);
    box-shadow: -2rem -2rem 1rem rgba(0,0,0,0.24);
    width:320px;
    border: solid var(--color-brand-primary);
    border-width: 0 0 1px 1px;
}
body > header .content nav.expanded > ul {
    display: block;
}
body > header .content nav.expanded button#toggle {
    margin-left: 0;
}
@media(min-width:768px) {
    body > header .content nav {
	margin: 0;
        padding: 0;
        position: relative;
        top: 0;	
        width: auto;
    }
    body > header .content nav button#toggle {
        display: none;
    }
    body > header .content nav ul {
        display: grid;
        grid-auto-flow: column;
    }
    body > header .content nav ul li ul {
        display: none;
        background-color: var(--color-background-darkest);
        border-radius: var(--border-radius);
        border: 1px solid var(--color-brand-primary);
        box-shadow: 0 0.25em 0.25em rgba(0,0,0,0.24);
        padding: 1rem 0.25rem;
        position: absolute;
        transform: rotateX(-90deg);
        transform-origin: top center;
        opacity: 0.01;
    }
    body > header .content nav button.expanded + ul {
        opacity: 1;
        transform: rotateX(0);
        visibility: visible; 
        display: block;
    }
}

/* Call to Action Button */
button.cta {
    background: var(--color-brand-cta);
    color: var(--color-copy-dark);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0);
    cursor: pointer;
    font-weight: 600;
    margin: 2rem 0;
    padding: 1rem 2rem;
}
button.enterprise {
    background: var(--color-brand-cta);
    color: var(--color-copy-dark);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0);
    cursor: pointer;
    font-weight: 600;
    margin: 2rem 0;
    padding: 1rem 2rem;
}
button.collect {
    background: var(--color-brand-cta);
    color: var(--color-copy-dark);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0);
    cursor: pointer;
    font-weight: 600;
    margin: 2rem 0;
    padding: 1rem 2rem;
}
button.universal {
    background: var(--color-brand-cta);
    color: var(--color-copy-dark);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0);
    cursor: pointer;
    font-weight: 600;
    margin: 2rem 0;
    padding: 1rem 2rem;
}



/* Hero */
article header .content {
    color: #fff;
}

/* Forms */
form {
    background: var(--color-background-grey);
    border-radius: var(--border-radius);
    max-width: 48rem;
}
form fieldset {
    border: none;
    padding: 2rem;
}
form label {
    display: block;
    margin: 1rem auto;
}
form label input,
form label textarea {
    border: 1px solid var(--color-copy-medium);
    border-radius: var(--border-radius);
    display: block;
    padding: 0.5rem;
    width: 100%;
}
form label input.invalid,
form label textarea.invalid {
    border: 4px solid var(--a11y-error-color);
}
form button {
    border: 1px solid rgba(0,0,0,0);
    background: var(--color-brand-primary);
    border-radius: var(--border-radius);
    color: #fff;
    font-weight: 500;
    margin: 2rem 0;
    padding: 1rem 2rem;
}
.product {
    margin: 1rem auto 4rem;
}
.product header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0;
}
.product header img {
    flex: 0 1 auto;
    margin: 0 1rem 0 0;
}
.product header h2 {
    margin: 0;
    flex: 0 1 auto;
    text-align: left;
}
form.product {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 1rem 0;
    padding: 1rem;
    max-width: 40rem;
}
form.product label {
    font-weight: 500;
    margin: 1rem 0;
    text-align: left;
}
form.product button {
    margin: 1rem 0;
}
@media(min-width: 768px) {
    form.product {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    form.product label {
        flex: 0 1 60%;
    }
}

/* Breadcrumbs */
#breadcrumbs {
    color: var(--color-brand-secondary);
    margin: 1rem 0;
}
#breadcrumbs a {
    color: var(--color-brand-secondary);
}
#breadcrumbs a.current {
    color: #fff;
    font-weight: 500;
}

/* Testimonials */
.home #testimonial {
    background: var(--color-background-darkest);
    color: var(--color-brand-secondary);
    border-bottom: 0.25rem solid var(--color-brand-secondary);
    margin-top: 2rem;
    padding: 4rem 0 8rem 0;
}
.home #testimonial figure {
    margin: 0 auto;
    max-width: var(--max-paragraph-width);
}
.home #testimonial figcaption {
    font-size: 0.8rem;
    padding: 1rem 0;
}
.home #testimonial blockquote {
    margin: 0 auto;
    padding: 0;
}
#testimonial h2 {
    color: #fff;
}
#testimonial strong {
    color: var(--color-background-grey);
}
#testimonials figure {
    background: var(--color-background-grey);
    border-radius: var(--border-radius);
    margin: 0 0 2rem;
    padding: 1rem;
}
#testimonials figure blockquote {
    margin: 0;
    padding: 1rem 0;
}
#testimonials figure figcaption {
    font-size: 0.8rem;
}

/* Carousel */
#carousel {
    height: 200px;
    position: relative;
    margin: -80px auto 2rem auto;
}
#carousel #pane {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    height: 200px;
    width: 60vw;
    max-width: 100rem;
    scroll-behavior: smooth;
}
#carousel .slide {
    background: var(--color-brand-primary);
    border-radius: var(--border-radius);
    color: #fff;
    height: 200px;
    min-width: 320px;
    margin-right: 3rem;
}
#carousel .slide strong {
    color: var(--color-brand-secondary);
    font-size: 1.125rem;
    margin: 0;
}
#carousel .slide a {
    display: block;
    color: #fff;
}
#carousel #controls {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    width: 90vw;
    max-width: 60rem;
    margin: 1rem auto;
}
#carousel #controls button {
    background: var(--color-background-dark);
    border: none;
    border-radius: var(--border-radius);
    color: #fff;
    padding: 0.25rem 0.5rem;
}

/* Resellers */
#us-reseller {
    background: var(--color-background-grey);
    border-radius:var(--border-radius);
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
}
#resellers {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    width: 100%;
}
#resellers figure {
    background: var(--color-background-grey);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}
#resellers figure strong {
    margin: 1rem auto;
}
#us-reseller img,
#resellers figure img {
    border: 0.5rem solid #fff;
    border-radius: var(--border-radius);
}

/* HR */
hr {
    background: var(--color-brand-secondary);
    border: none;
    height: 1px;
    margin: 4rem auto;
}
hr::before {
    display: block;
    content: ' ';
    background: var(--color-brand-primary);
    height: 4px;
    width: 32px;
    position: absolute;
    margin-top: -1px;
    left: 50%;
}

/* Main Content */
#main {
    background: #fcfcfc;
}
#main .content {
    padding: 2rem 0;
}
.home #main {
    margin-top: -150px;
    padding: 100px 0 160px;
}

.page #main .content .grid {
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .page #main .content .grid {
      display: grid;
      grid-template-columns: 3fr 1fr;
    }
}

/* Video */
.video {
    background: var(--color-background-grey);
    border-radius: var(--border-radius);
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
}
.video iframe {
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 560px;
}

/* Blog */
.excerpt {
    margin: 4rem 0;
}

/* Sidebar */
aside .post {
    margin-bottom: 3rem;
}

/* Footer Nav */
footer .navigation {
    display: flex;
    flex-wrap: wrap;
}
footer .navigation > div {
    flex: 1 1 20%;
    min-width: 240px;
    padding: 1rem;
}
footer .navigation h3 {
    color: var(--color-brand-secondary);
    font-weight: 400;
}
footer .navigation a {
    color: #fff;
    display: block;
    margin: 0.25rem 0;
    text-decoration: none;
} 

/* Connect Footer */
#connect {
    border-top: 1px solid var(--color-brand-secondary);
    color: var(--color-brand-secondary);
    display: flex;
    justify-content: center;
    margin: 4rem auto;
    padding: 2rem 0;
    text-align: center;
}
#connect > * {
    flex-basis: 50%;
}
#connect .grid {
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(2rem, 5rem));
}


/* Copyright Footer */
#copyright {
    background: var(--color-background-darkest);
    color: var(--color-brand-secondary);
    text-align: center;
    margin: 0;
    padding: 2rem 0;
    max-width: 100vw;
    width: 100%;
}
#copyright .content {
    display: flex;
    align-items: center;
    text-align: left;
}
#copyright .content svg {
    margin: 0 1rem 0 0;
}
#copyright .content small {
    display: block;
}


/* --
  -- TYPOGRAPHY
-------------------------------------------------------- */
h1,h2,h3,h4 {
    font-family: var(--font-stack-sans);
    font-size: clamp(
        var(--fluid-type-minimum, 1rem),
        calc(1rem + var(--fluid-type-preferred, 3vw)),
        var(--fluid-type-maximum, 1.5rem)
    );
}
h1, h2, h3, h4 {
    font-weight: 500;
    flex: 0 1 100%;
}
h1 {
    --fluid-type-minimum: 2rem;
    --fluid-type-maximum: 2.5rem;
    --fluid-type-preferred: 2vw;
    line-height: 1.1;
    max-width: 32ch;
}
h2 {
    --fluid-type-minimum: 1.5rem;
    --fluid-type-maximum: 2rem;
    --fluid-type-preferred: 1.5vw;
    max-width: 48ch;
    color: var(--color-brand-primary);
}
h3 {
    --fluid-type-minimum: 1.125rem;
    --fluid-type-maximum: 1.25rem;
    --fluid-type-preferred: 1.125vw;
    max-width: 56ch;
}
figure {
margin: 2rem auto;
}
figure img {
margin: 0;
}
/* Top Bar */
#topbar {
    background: var(--color-background-darkest);
    padding: 1rem 0;
    text-align: right;
}
#topbar a {
    color: #8dcdfc;
    display: inline-block;
    font-size: 0.75rem;
    margin: 0 0.5rem;
    text-decoration: none;
}
#topbar a svg {
    margin: 0 0.5rem;
    height: 16px;
    width: 16px;
}

