/* WolfeReiter site styles, recreating the Weebly "Powering Progress" theme */

@font-face { font-family: 'Raleway'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/raleway-400.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/raleway-700.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/open-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/open-sans-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/open-sans-700.woff2') format('woff2'); }

:root {
  --page: #292929;
  --panel: #232324;
  --rule: #373737;
  --nav-active: #3f3f3f;
  --text: #777777;
  --text-light: #d5d5d5;
  --heading: #ffffff;
  --accent: #e9a476;
  --button: #ff9a22;
  --button-hover: #ffa73e;
  --button-dark: #393939;
  --button-dark-hover: #424242;
  --banner-text: #2a2a2a;
  --strong: #ffffff;
  --link-hover: #ffffff;
  --nav-text: #ffffff;
  --button-text: #ffffff;
  --logo-tile: #ffffff;
  --input-text: #333333;
  --input-bg: #ffffff;
  --content-width: 960px;
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

h1, h2, h3 { font-family: 'Open Sans', sans-serif; font-weight: 400; color: var(--heading); margin: 0 0 7px; line-height: normal; }
h2 { font-size: 1.7em; }
h3 { font-size: 24px; }

/* Header and navigation */

.site-header {
  background: var(--panel);
  text-align: center;
  padding: 52px 16px 40px;
}
.site-header .logo img { display: block; margin: 31px auto 25px; width: 250px; }

.site-header nav { overflow: hidden; font-family: 'Raleway', sans-serif; font-size: 13px; line-height: normal; text-transform: uppercase; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: inline-block; position: relative; max-width: 100%; }
.site-header ul::before, .site-header ul::after {
  content: ''; position: absolute; top: 50%; width: 200px; height: 1px; background: var(--rule);
}
.site-header ul::before { right: calc(100% + 29px); }
.site-header ul::after { left: calc(100% + 29px); }
.site-header li { display: inline-block; }
.site-header nav a { display: inline-block; padding: 10px 14px; color: var(--nav-text); text-decoration: none; }
.site-header li:hover, .site-header li.active { background: var(--nav-active); }
.site-header li:hover a, .site-header li.active a { color: var(--nav-text); }

/* Banner */

.banner {
  background-color: var(--panel);
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.banner.landing { min-height: 460px; }
.banner.short { height: 300px; }
.banner-text { width: 600px; max-width: 100%; padding: 2em 1.6em; font-family: 'Raleway', sans-serif; color: var(--banner-text); }
.banner h1 { font-family: 'Raleway', sans-serif; font-size: 48px; line-height: normal; color: var(--banner-text); margin: 0; }
.banner p { font-size: 24px; line-height: 1.5; margin: 31px 0 0; }
.banner .button { margin-top: 45px; text-transform: uppercase; font-size: 15px; }

/* Content */

main {
  background: var(--panel);
  padding: 2em max(1.6em, calc((100% - var(--content-width)) / 2 + 1.6em)) 4em;
}
.banner + main { padding-top: 4em; }
main hr { border: 0; height: 1px; background: var(--rule); margin: 40px 0; }

.button {
  display: inline-block;
  padding: 8px 20px;
  background: var(--button);
  color: var(--button-text);
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.button:hover { background: var(--button-hover); color: var(--button-text); }
.button.dark { background: var(--button-dark); }
.button.dark:hover { background: var(--button-dark-hover); }

/* Home: lead feature and three cards */

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.feature img { display: block; margin: 10px auto; }
.feature strong, .cards strong { color: var(--strong); font-size: 18px; }
.feature p, .cards p { color: var(--text-light); }
.feature .button { margin-top: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; text-align: center; }
.cards img { display: block; margin: 10px auto 0; }
.cards p:first-child { margin-bottom: 5px; }
.cards .button { margin-top: 1em; }

/* Solutions: image and text rows that alternate sides */

.solution {
  display: grid;
  grid-template-columns: 357px 328px;
  gap: 24px;
  align-items: start;
  max-width: 718px;
  margin: 0 auto 70px;
}
.solution:last-child { margin-bottom: 0; }
.solution img { display: block; border: 1px solid var(--rule); padding: 5px; background: var(--panel); }
.solution > p { margin: 0; }
.solution h2 { color: var(--accent); font-size: 24px; margin: 0 0 7px; }
.solution div p { color: var(--text-light); font-size: 18px; line-height: 27px; }
.solution.flip { grid-template-columns: 334px 354px; gap: 30px; }
.solution.flip > p { order: 2; }
.solution.flip > div { order: 1; text-align: right; }

/* Clients */

main > h2:first-child, .lead { color: var(--accent); }
main > h2:first-child + p { color: var(--text-light); font-size: 18px; line-height: 27px; margin-bottom: 37px; }
.logos { display: grid; grid-template-columns: repeat(5, 142px); justify-content: space-between; row-gap: 40px; padding: 0 20px; }
.logos a, .logos span { display: block; }
.logos img { display: block; width: 142px; height: 142px; padding: 14px; object-fit: contain; background: var(--logo-tile); }

/* Impact: image beside a summary */

.story { display: grid; grid-template-columns: 440px 1fr; gap: 31px; align-items: start; margin-bottom: 48px; }
.story:last-child { margin-bottom: 0; }
.story > p { margin: 0; }
.story img { display: block; width: 100%; }
.story h2 { margin-bottom: 8px; }

/* Case studies */

.case-meta { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.case-meta a { color: var(--accent); text-decoration: none; }
.case-meta ~ h2 { font-size: 1.7em; margin-bottom: 18px; }
.case-meta ~ p, .case-meta ~ blockquote { color: var(--text-light); font-size: 16px; line-height: 1.6; max-width: 760px; }
main blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 5px solid var(--rule); font-style: italic; }
main blockquote p:last-child { font-style: normal; color: var(--text); font-size: 14px; }
.credit { font-size: 12px; color: var(--text); }
.case-list { display: grid; grid-template-columns: 280px 1fr; gap: 24px 30px; align-items: start; }
.case-list p { margin: 0; color: var(--text-light); }
.case-list img { display: block; width: 280px; height: 170px; object-fit: cover; }
.case-list strong a { color: var(--strong); text-decoration: none; font-size: 18px; }
.case-list strong a:hover { color: var(--accent); }

/* Contact */

.lead { font-size: 32px; margin-bottom: 51px; }
.contact { display: grid; grid-template-columns: 507px 1fr; gap: 40px; }
.contact h3 { margin-bottom: 7px; }
.contact > div:first-child h3 { font-size: 1.7em; }
.contact a { text-decoration: none; }
.contact p { font-size: 15px; }
.contact form { max-width: 370px; }
.contact label { display: block; font-size: 15px; line-height: normal; margin-top: 5px; }
.contact .name-row { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 11fr); gap: 20px; }
.contact small { display: block; font-size: 11px; line-height: 20px; }
.contact label span, .required-note span { color: #d63d3d; }
.required-note { font-family: 'Raleway', sans-serif; font-style: italic; font-size: 15px; line-height: normal; margin: 0; }
.contact input, .contact textarea {
  display: block; width: 100%; margin: 8px 0; padding: 8px; min-height: 35px;
  font: inherit; font-size: 13px; line-height: 17px; color: var(--input-text); background: var(--input-bg); border: 1px solid var(--rule); border-radius: 0;
}
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--button); }
.contact textarea { height: 100px; resize: vertical; }
.contact .cf-turnstile { margin-top: 12px; min-height: 65px; }
.contact .button { margin-top: 14px; margin-bottom: 15px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */

.site-footer { background: var(--page); font-size: 16px; }
.footer-content {
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start;
  max-width: var(--content-width); margin: 0 auto; padding: 56px 22px;
}
.footer-content address { font-style: normal; }
.footer-content p { margin: 0; }
.footer-content .phone { text-align: center; font-size: 24px; color: var(--strong); }
.footer-content .phone a { text-decoration: none; }
.footer-content .copyright { text-align: right; }

/* Phones and small tablets */

@media (max-width: 767px) {
  .site-header { padding: 24px 16px 20px; }
  .site-header .logo img { width: 170px; margin: 0 auto 16px; }
  .site-header ul::before, .site-header ul::after { display: none; }
  .site-header nav a { padding: 8px 10px; }
  .banner.landing { min-height: 300px; }
  .banner.short { height: 120px; }
  .banner h1 { font-size: 2em; }
  .banner p { font-size: 18px; }
  main { padding: 2em 16px; }
  .feature, .cards, .solution, .solution.flip, .story, .contact { grid-template-columns: 1fr; gap: 16px; }
  .case-list { grid-template-columns: 1fr; }
  .case-list img { width: 100%; height: auto; }
  .contact .name-row { grid-template-columns: 1fr 1fr; }
  .solution.flip > p, .solution.flip > div { order: 0; text-align: left; }
  .logos { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; padding: 0; }
  .logos img { width: 100%; height: auto; aspect-ratio: 1; }
  .lead { font-size: 24px; }
  .footer-content { grid-template-columns: 1fr; gap: 16px; padding: 2em 16px; }
  .footer-content .phone, .footer-content .copyright { text-align: left; }
}

/* 404 page: white WR logo on black */

body.not-found { background: #000000; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.not-found main { background: none; padding: 2em 16px; text-align: center; }
.not-found img { display: block; width: 250px; margin: 0 auto 32px; }
.not-found h1 { font-family: 'Raleway', sans-serif; font-size: 48px; margin: 0 0 8px; }
.not-found p { color: var(--text-light); }
