/* www.supplychainsciences.com - the look of the 2023 Turbify site, as plain CSS (no scripts on the site). */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Abel";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/abel-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #282828;      /* headings, footer band */
  --text: #4a4a4a;     /* body copy */
  --band: #f4f4f4;     /* grey section */
  --accent: #51ba92;   /* contact buttons */
  --accent-ink: #3e9a77;
  --head-font: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  --body-font: "Abel", "Arial Narrow", Arial, sans-serif;
  --wrap: 1100px;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 17px/1.75 var(--body-font);
}

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--head-font);
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .01em;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: .95rem; }

/* the short line under a section heading */
.rule::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 1.4rem 0 0;
  background: currentColor;
}
.center .rule::after, .rule.center::after { margin-left: auto; margin-right: auto; }

ul, ol { padding-left: 1.25rem; }
li { margin: .2rem 0; }

.center { text-align: center; }
.center ul, .center ol { display: inline-block; text-align: left; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: -999px; top: 0; padding: .5rem 1rem;
  background: var(--ink); color: #fff; z-index: 10;
}
.skip:focus { left: 0; }

/* header */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.site-header .inner {
  max-width: 1300px; margin: 0 auto; padding: .9rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand img { width: 300px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.site-nav li { margin: 0; }
.site-nav a {
  font: 400 .8rem/1 var(--head-font);
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding: .4rem 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* hero: photo, dark veil, white heading */

.hero {
  position: relative; isolation: isolate;
  min-height: min(44rem, 80vh); padding: 4rem 1.25rem;
  display: grid; place-items: center;
  color: #fff;
}
.hero > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .45); }
.hero h1 { color: #fff; font-weight: 300; font-size: 2.4rem; max-width: 22ch; margin: 0 auto; }
.hero .copy { max-width: 46rem; }
.hero .copy h1 { font-size: 1.3rem; font-weight: 400; max-width: none; }
.hero .copy ul { color: #fff; font-size: 1.05rem; }
.hero--short { min-height: 24rem; }

/* plain sections */

.section { padding: 5rem 1.25rem; }
.section > .wrap { max-width: var(--wrap); margin: 0 auto; }
.narrow { max-width: 44rem; margin: 0 auto; }
.band { background: var(--band); }
.dark { background: var(--ink); color: #ddd; }
.dark h1, .dark h2, .dark h3 { color: #fff; }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }

/* photo + text, half and half */

.split { display: grid; grid-template-columns: 1fr 1fr; }
/* contain: size + aspect-ratio: auto = the photo takes the row's height instead of setting it (the width/height
   attributes would make a portrait photo's row very tall) */
.split > img {
  width: 100%; height: 100%; min-height: 28rem; object-fit: cover;
  contain: size; aspect-ratio: auto;
}
.split .text { padding: 4rem 3rem; display: grid; align-content: center; }
.split .text > div { max-width: 30rem; margin: 0 auto; }
.split--flip > img { order: 2; }

/* client results: contained photo + text */

.cases { max-width: var(--wrap); margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding: .5rem 0; }
.case > img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }

/* contact band + footer line */

.contact { background: var(--ink); color: #fff; text-align: center; padding: 4rem 1.25rem 3rem; }
.contact h2 { color: #fff; margin-bottom: .8rem; }
.contact .people {
  margin: 0 0 2rem; font: 400 .85rem/1.6 var(--head-font);
  text-transform: uppercase; letter-spacing: .03em;
}
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.button {
  display: inline-block; padding: .7rem 1.1rem;
  background: var(--accent); color: #fff; text-decoration: none;
  font: 500 .78rem/1.2 var(--head-font); letter-spacing: .06em; text-transform: uppercase;
}
.button:hover, .button:focus-visible { background: var(--accent-ink); }

.site-footer {
  background: var(--ink); color: #aaa; border-top: 1px solid #3a3a3a;
  text-align: center; font-size: .9rem; padding: 1rem 1.25rem 1.4rem;
}
.site-footer a { color: #ccc; }
.site-footer .sep { margin: 0 .5rem; color: #666; }

/* 404 */

.notfound { min-height: 50vh; display: grid; place-items: center; }

/* tablets and phones */

@media (max-width: 900px) {
  .cols3 { grid-template-columns: 1fr; gap: 2.5rem; }
  .split, .case { grid-template-columns: 1fr; }
  .split > img { min-height: 16rem; max-height: 22rem; }
  .split--flip > img { order: 0; }
  .split .text { padding: 3rem 1.25rem; }
  .case { gap: 1.25rem; padding: 1.5rem 0; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header .inner { flex-direction: column; padding: .8rem 1rem; gap: .6rem; }
  .brand img { width: 240px; }
  .site-nav ul { gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
  .hero { min-height: 24rem; }
  h1 { font-size: 1.45rem; }
  .hero h1 { font-size: 1.7rem; }
  .section { padding: 3.5rem 1.25rem; }
}
