/* veloxee.com - one stylesheet for index.html and 404.html. No external requests. */

/* Fonts (self-hosted, latin subset, SIL Open Font License) */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/lato-700.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/lato-900.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/nunito-700.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/raleway-var.woff2") format("woff2");
}

:root {
  --ink: #1f2c40;        /* hero headline */
  --navy: #233d63;       /* section lead */
  --text: #565656;       /* card text */
  --muted: #666;         /* paragraphs */
  --blue: #2575fc;
  --blue-dark: #0c5adb;
  --violet: #6a11cb;
  --band: #f7f9fb;       /* values background */
  --rule: #d7d7d7;
  --footer: #6f42c1;
  --footer-bar: #8b53ea;
  --sans: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --heading: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --accent-font: "Nunito", var(--heading);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  min-height: 780px;
  padding: 60px 0;
  background: #fff url("img/hero.png") no-repeat right top / contain;
}

.hero-text {
  max-width: 540px;
}

.logo {
  display: block;
  width: 260px;
  margin: 0 0 56px;
}

.hero h1 {
  margin: 5px 0 20px;
  color: var(--ink);
  font: 900 64px/74px var(--heading);
  text-shadow: 0 10px 7px rgba(0, 0, 0, 0.1);
}

.hero p {
  margin: 0;
  color: var(--muted);
  font: 400 20px/30px var(--heading);
}

/* Section headings */
.section-head {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 15px;
  font: 700 32px/1.4 var(--accent-font);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  flex: none;
  width: 40px;
  height: 3px;
  background: var(--rule);
}

.eyebrow span {
  color: var(--blue);
  background: linear-gradient(125deg, var(--blue) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 545px;
  margin: 0 auto 30px;
  color: var(--navy);
  font: 700 32px/46px var(--heading);
}

/* Three dots and a bar, as on the old site */
.divider {
  position: relative;
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto;
  left: 13px;
  border-radius: 2px;
  background: var(--blue);
}

.divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: -27px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-dark);
  box-shadow: 9px 0 0 var(--blue-dark), 18px 0 0 var(--blue-dark);
}

.divider-wide {
  width: 100px;
}

/* What we do */
.intro {
  padding: 0;
}

.values {
  background: var(--band);
  padding: 100px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: grid;
  grid-template-columns: 45px 1fr;
  align-content: start;
  column-gap: 20px;
  padding: 35px 25px 35px 20px;
  border: 1px solid transparent;
  background: #fff;
  transition: border-color 0.3s;
}

.card:hover {
  border-color: var(--blue);
}

.card .icon {
  grid-row: span 2;
  width: 45px;
  height: 40px;
  background-color: #000;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: background-color 0.3s;
}

.card h3 {
  color: #000;
  font: 500 18px/1.2 var(--sans);
  letter-spacing: inherit;
  transition: color 0.3s;
}

.card:hover h3 {
  color: var(--blue);
}

.card:hover .icon {
  background-color: var(--blue);
}

.card p {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.8;
}

.icon-api { --icon: url("icons/api.svg"); }
.icon-stopwatch { --icon: url("icons/stopwatch.svg"); }
.icon-handshake { --icon: url("icons/handshake.svg"); }
.icon-pencil { --icon: url("icons/pencil.svg"); }
.icon-docsearch { --icon: url("icons/docsearch.svg"); }
.icon-star { --icon: url("icons/star.svg"); }

/* Mission */
.mission {
  padding: 30px 0 90px;
  text-align: center;
}

.mission h2,
.notfound h1 {
  margin: 0 0 20px;
  color: #000;
  font: 700 32px/1.2 var(--heading);
  letter-spacing: inherit;
}

.mission .divider {
  margin-bottom: 14px;
}

.mission p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

/* Footer: contact details and about */
.site-footer {
  color: #fff;
}

.footer-main {
  padding: 35px 0 60px;
  background: var(--footer);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footer-cols > div:first-child {
  padding-right: 45px;
}

.site-footer h2 {
  margin: 10px 0 18px;
  font: 400 28px/1.2 var(--heading);
  letter-spacing: inherit;
}

.site-footer address {
  font: normal 700 20px/1.8 var(--heading);
}

.site-footer address p {
  margin: 0 0 15px;
}

.site-footer address a {
  text-decoration: none;
}

.site-footer address a:hover,
.site-footer address a:focus-visible {
  text-decoration: underline;
}

.about {
  margin: 0;
  font: 400 16px/1.6 var(--heading);
}

.footer-bar {
  padding: 10px 0;
  background: var(--footer-bar);
}

.footer-bar p {
  margin: 0;
  font-weight: 500;
  line-height: 1.8;
}

/* 404 page */
.notfound {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 80px 0;
  text-align: center;
}

.notfound .logo {
  margin: 0 auto 48px;
}

.notfound .divider {
  margin-bottom: 24px;
}

.notfound p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

.notfound a {
  color: var(--blue-dark);
  font-weight: 600;
}

.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    min-height: 550px;
  }

  .hero h1 {
    margin-bottom: 15px;
    font-size: 40px;
    line-height: 50px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-text {
    max-width: 50%;
  }

  .logo {
    width: 220px;
    margin-bottom: 40px;
  }
}

/* Phone: the illustration sits above the text instead of behind it */
@media (max-width: 767px) {
  .hero {
    display: block;
    min-height: 0;
    padding: calc(52.6vw - 30px) 0 40px;
  }

  .hero-text {
    max-width: none;
  }

  .logo {
    width: 200px;
    margin-bottom: 32px;
  }

  .hero h1 {
    margin-top: 10px;
    font-size: 32px;
    line-height: 37px;
  }

  .intro {
    padding-top: 20px;
  }

  .eyebrow,
  .lead {
    font-size: 28px;
    line-height: 36px;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: 24px;
  }

  .values {
    padding: 60px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card p,
  .mission p {
    font-size: 18px;
  }

  .mission {
    padding-bottom: 60px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-cols > div:first-child {
    padding-right: 0;
  }

  .footer-bar {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card h3,
  .card .icon {
    transition: none;
  }
}
