@import url("https://fonts.googleapis.com/css?family=Didact+Gothic");

:root {
  --accent: #de3433;
  --accent-soft: #54c8e3;
  --text: #222;
  --muted: #999;
  --footer-bg: #222;
  --link: #008bc5;
  --hover: #f26525;
  --surface: #fff;
  --border: #c9c9c9;
  --shadow: #f5f5f6;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  font-family: "Didact Gothic", sans-serif;
  font-size: 16px;
  text-shadow: 0 0 1px transparent;
}

a {
  color: #88bbc8;
  text-decoration: none;
}

a:hover {
  color: var(--hover);
}

p a {
  color: var(--link);
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 10px 0;
  font-weight: normal;
  line-height: 120%;
  text-transform: uppercase;
  color: var(--text);
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 22px;
}

h2 span {
  color: var(--accent);
}

p {
  margin: 10px 0;
  line-height: 22px;
}

ul,
ol {
  margin: 0 0 20px 25px;
  padding: 0;
}

li {
  margin: 0;
  padding: 5px 0;
}

.site-width {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
}

.clear {
  clear: both;
}

#header {
  width: min(1000px, calc(100% - 32px));
  min-height: 150px;
  padding: 30px 0 0;
  margin: 0 auto;
  position: relative;
}

#header .logo {
  position: absolute;
  top: 7px;
  left: 0;
  display: block;
  width: min(100%, 1000px);
}

#header .logo img {
  display: block;
  width: 100%;
  height: auto;
}

#nav {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 5px 0 0;
}

#nav li {
  display: inline;
  padding: 0 15px;
}

#nav li a {
  display: inline-block;
  padding: 5px 0;
  font-size: 20px;
  line-height: 30px;
  text-transform: uppercase;
  color: #323334;
  text-decoration: none;
}

#nav li a.current {
  border-top: 5px solid var(--accent-soft);
}

#slideshow {
  position: relative;
  z-index: 100;
  width: 100%;
  margin: -2px 0 0;
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 486px;
}

.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-fade 12s infinite;
}

.slides img:first-child {
  opacity: 1;
}

.slides img:last-child {
  animation-delay: 6s;
}

@keyframes hero-fade {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  42% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

#slideshow .tagline {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: min(1000px, calc(100% - 32px));
  transform: translateX(-50%);
}

#slideshow .tagline h1 {
  float: right;
  margin: 220px 0 0;
  padding: 25px 50px;
  color: #fff;
  background: var(--accent);
}

#inner-wrap,
#inner-wrap2 {
  position: relative;
  z-index: 50;
  top: -3px;
  width: 100%;
  height: 175px;
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

#inner-wrap {
  background-image: url("../images/slides/slide1.jpg");
}

#inner-wrap2 {
  background-image: url("../images/slides/slide2.jpg");
}

main {
  display: block;
}

.section {
  padding-top: 50px;
}

.section-tight {
  padding-top: 40px;
}

.col_3 {
  width: 100%;
}

.lead {
  font-size: 18px;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 50px;
}

.box,
.box_last {
  display: block;
  width: 300px;
  height: 200px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
}

.box img,
.box_last img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.box img:hover,
.box_last img:hover {
  opacity: 0.8;
}

.box h3,
.box_last h3 {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  margin: 0;
  padding: 10px 0;
  text-align: center;
  color: #fff;
  background: var(--accent);
}

.laider-link {
  display: inline-block;
}

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

.page-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 50px;
  align-items: flex-start;
}

.col_22 {
  width: 500px;
  max-width: 100%;
}

.aside2 {
  width: 400px;
  max-width: 100%;
  padding-top: 40px;
}

.spacer {
  min-height: 40px;
}

form {
  margin: 30px 0 0;
}

form label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-size: 16px;
}

form label .req {
  color: red;
}

input,
textarea {
  width: 95%;
  padding: 8px;
  font-size: 14px;
  color: #545658;
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.15) inset,
    -5px -5px 0 0 var(--shadow),
    5px 5px 0 0 var(--shadow),
    5px 0 0 0 var(--shadow),
    0 5px 0 0 var(--shadow),
    5px -5px 0 0 var(--shadow),
    -5px 5px 0 0 var(--shadow);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

#submit {
  width: auto;
  height: auto;
  padding: 7px 15px !important;
  color: #fff;
  background: #222;
  border: 1px solid #666;
  border-radius: 5px;
  cursor: pointer;
  text-shadow: 0 1px 0 #000;
}

#submit:hover {
  background: #333;
}

#footer {
  margin: 50px 0 0;
  padding: 0 0 10px;
  font-size: 0.8em;
  color: var(--muted);
  background: var(--footer-bg);
}

#footer .site-width {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
}

.copy,
.designer {
  padding: 15px 0 0;
}

.designer a {
  color: var(--muted);
  text-decoration: none;
}

.designer a:hover {
  color: #fff;
}

@media (max-width: 1020px) {
  #header {
    min-height: 0;
    padding-top: 20px;
  }

  #header .logo {
    position: static;
    width: 100%;
  }

  #nav {
    position: static;
    justify-content: center;
    padding: 20px 0 0;
  }

  #nav li {
    padding: 0 10px;
  }

  .slides {
    height: 380px;
  }

  #slideshow .tagline {
    width: min(1000px, calc(100% - 32px));
  }

  #slideshow .tagline h1 {
    margin-top: 180px;
  }

  .card-row {
    gap: 24px;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 20px;
  }

  #nav {
    gap: 8px 0;
  }

  #nav li {
    padding: 0 8px;
  }

  #nav li a {
    font-size: 17px;
  }

  .slides {
    height: 300px;
  }

  #slideshow .tagline h1 {
    float: none;
    margin: 180px 0 0;
    padding: 18px 22px;
    text-align: center;
  }

  #inner-wrap,
  #inner-wrap2 {
    height: 140px;
  }

  .box,
  .box_last {
    width: 100%;
    max-width: 420px;
  }

  .page-columns {
    gap: 20px;
  }

  .aside2 {
    padding-top: 0;
  }

  input,
  textarea {
    width: 100%;
  }

  #footer .site-width {
    justify-content: center;
    text-align: center;
  }
}
