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

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

body {
  margin: 0;
  background: #000;
  color: #ababab;
  font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 56px;
  background-color: #222;
  background-image:
    linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .25)),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.logo {
  display: inline-block;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: 62px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}

/* ---------- Contact ---------- */
.contact {
  max-width: 773px;
  margin: 0 auto;
  padding: 56px 24px 64px;
  text-align: center;
}

.contact h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.25;
  color: #969696;
}

.contact hr {
  width: 50px;
  margin: 24px auto 40px;
  border: 0;
  border-bottom: 2px solid #3a3a3a;
}

.contact h3 {
  margin: 0 0 23px;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  color: #e2e2e2;
}

.contact-form { text-align: left; }

.field {
  position: relative;
  margin-bottom: 24px;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  margin: 0;
  font: inherit;
  font-size: 16px;
  color: #e2e2e2;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 4px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input {
  height: 52px;
  padding: 23px 16px 7px;
}

.field textarea {
  min-height: 202px;
  padding: 16px;
  resize: vertical;
}

.field textarea::placeholder { color: #ababab; opacity: 1; }

.field input:focus,
.field textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}

.field label {
  position: absolute;
  left: 16px;
  top: 15px;
  font-size: 16px;
  line-height: 20px;
  color: #ababab;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .15s ease, top .15s ease;
}

/* floating label once the field has focus or a value */
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 6px;
  transform: scale(.75);
}

.field.has-error input,
.field.has-error textarea { border-color: #e66; }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.optin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 24px;
  color: #919191;
  cursor: pointer;
  text-align: left;
}

.optin input {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 18px;
  height: 18px;
  margin: 0;
  background: transparent;
  border: 1px solid #919191;
  border-radius: 3px;
  cursor: pointer;
}

.optin input:checked { border-color: #fff; }

.optin input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.optin input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.actions { text-align: center; }

.contact-form button {
  min-width: 102px;
  height: 56px;
  padding: 8px 32px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity .15s ease;
}

.contact-form button:hover { opacity: .85; }
.contact-form button:disabled { opacity: .6; cursor: default; }

.form-status {
  min-height: 24px;
  margin: 20px 0 0;
  text-align: center;
  color: #e2e2e2;
}

.form-status.is-error { color: #ff8a8a; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 24px 56px; }

.container {
  max-width: 1112px;
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: #969696;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .hero {
    min-height: 420px;
    background-image:
      linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .25)),
      url("../img/hero-mobile.jpg");
  }
  .hero h1 { font-size: 40px; }
  .contact { padding-top: 48px; }
  .contact h2 { font-size: 34px; }
  .site-footer p { text-align: center; }
}
