/* Base layout + utility styles (trimmed to what this site uses). */

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #333;
}

img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  margin-bottom: 10px;
}

h2 {
  font-size: 32px;
  line-height: 36px;
  margin-top: 20px;
}

p {
  margin-top: 0;
  margin-bottom: 10px;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 10px;
  padding-left: 40px;
}

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

button,
[type='button'],
[type='reset'] {
  border: 0;
  cursor: pointer;
  -webkit-appearance: button;
}

/* --- Layout utilities --- */

.ui-inline-block {
  max-width: 100%;
  display: inline-block;
}

.ui-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 940px;
}

@media screen and (max-width: 991px) {
  .ui-container {
    max-width: 728px;
  }
}

@media screen and (max-width: 479px) {
  .ui-container {
    max-width: none;
  }
}

/* --- Navigation --- */

.ui-nav {
  position: relative;
  z-index: 1000;
}

.ui-nav-link {
  position: relative;
  display: inline-block;
  vertical-align: top;
  text-decoration: none;
  padding: 20px;
  text-align: left;
}

.ui-nav-button {
  position: relative;
  float: right;
  padding: 18px;
  font-size: 24px;
  display: none;
  cursor: pointer;
  user-select: none;
}

.ui-icon-nav-menu::before {
  content: "\2630"; /* hamburger glyph */
  font-size: 24px;
  line-height: 1;
}

@media screen and (max-width: 991px) {
  .ui-nav-button {
    display: block;
  }
}

/* --- Forms --- */

.ui-form {
  margin: 0 0 15px;
}

.ui-input,
textarea.ui-input {
  display: block;
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  vertical-align: middle;
  background-color: #fff;
  border: 1px solid #ccc;
}

textarea.ui-input {
  height: auto;
}

.ui-input::placeholder {
  color: #999;
}

.ui-input:focus {
  border-color: #3898ec;
  outline: 0;
}

.ui-button {
  display: inline-block;
  padding: 9px 15px;
  background-color: #3898ec;
  color: #fff;
  border: 0;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ui-radio {
  display: block;
  margin-bottom: 5px;
  padding-left: 20px;
}

.ui-checkbox {
  margin-bottom: 5px;
  padding-left: 20px;
  display: block;
}

.ui-checkbox-input {
  float: left;
  margin: 4px 0 0 -20px;
  line-height: normal;
}

.ui-form-label {
  display: inline-block;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
}

.ui-form-done {
  display: none;
  padding: 20px;
  text-align: center;
  background-color: #ddd;
}

.ui-form-fail {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background-color: #ffdede;
}

/* --- Image slider --- */

.ui-slider {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.ui-slider-mask {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.ui-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 500ms ease;
}

.ui-slide.is-active {
  opacity: 1;
}

/* --- Scroll reveal (fade-in on scroll) --- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}
