/* Derived from old-react-site SCSS: variables, typography, global, Contact, Form, Footer, Socials */

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  background: #f4f4f4;
  min-width: 30rem;
}

body {
  margin: 0;
  line-height: 1.5;
  font-size: 1.6rem;
  font-family: "Raleway", Helvetica, sans-serif;
}

a {
  color: #555;
  font-weight: 500;
  text-decoration: none;
}

a:link,
a:visited {
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  color: #406478;
}

button,
a,
.clickable-element {
  -webkit-user-select: none;
  user-select: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
  text-transform: uppercase;
  text-align: center;
}

h1 {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #555;
  margin-bottom: 0;
}

h1::after {
  content: "";
  display: block;
  background-color: #cccccc;
  height: 1px;
  margin: 1.25rem auto 1.5rem;
  width: 8rem;
}

h2,
h3 {
  font-size: 1.25rem;
  color: #555;
  font-weight: 400;
  letter-spacing: 0.15rem;
  line-height: 1.75;
}

h3 {
  text-transform: none;
  font-weight: 500;
}

p {
  letter-spacing: 0.05em;
  margin: 0 0 2em 0;
  font-size: 1.35rem;
  line-height: 1.8;
  color: #555;
}

.site-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.75rem;
  overflow-x: hidden;
}

@media screen and (min-width: 981px) {
  .site-root {
    justify-content: center;
    align-items: center;
  }
}

.page {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: flex-start;
  width: 100%;
}

.page .hero,
.page .left {
  height: 100vw;
  max-height: 65vh;
  background-size: cover;
  background-position: center center;
}

.page .header,
.page .right {
  background: #ffffff;
  padding: 2rem;
}

@media screen and (min-width: 981px) {
  .page {
    display: flex;
    flex-direction: row;
    text-align: center;
    min-height: 80vh;
    max-width: calc(981px + 15rem);
  }

  .page .hero,
  .page .header {
    min-height: 78rem;
    height: 100%;
    width: 100%;
  }

  .page .header {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .Contact .header {
    justify-content: flex-start;
  }
}

.hero,
.header {
  transform: translateX(0);
  transition: transform 1s ease-in-out;
}

.splitLoadAnimation {
  opacity: 0;
}

.splitLoadAnimation .hero,
.splitLoadAnimation .left {
  transform: translateX(4rem);
}

.splitLoadAnimation .header,
.splitLoadAnimation .right {
  opacity: 0;
  transform: translateX(-4rem);
}

.loaded {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.loaded .hero,
.loaded .header,
.loaded .left,
.loaded .right {
  transform: translateX(0);
  transition: transform 1s ease-in-out;
}

.Contact .hero {
  background-image: url("../images/portraits/david-irwin-8.webp");
}

.Contact .header {
  text-align: left;
  font-size: 1.3rem;
  line-height: 1.8;
}

.Contact .header h1 {
  font-size: 1.8rem;
  color: #555;
  margin-top: 3rem;
}

@media screen and (min-width: 737px) {
  .Contact .header {
    justify-content: flex-start;
    padding: 3rem;
  }
}

.Contact h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.Contact button.submit-btn,
.Contact a.button {
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: auto;
}

.Contact button[type="submit"] svg {
  margin-left: 1rem;
  margin-right: 0;
}

.Contact button svg,
.Contact a.button svg {
  font-size: 1.5rem;
  color: lightgray;
  margin-right: 1rem;
  margin-left: 0;
}

.button {
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.5s ease-in;
  min-width: 15rem;
  height: 4.25em;
  appearance: none;
  padding: 0 2em;
  position: relative;
  background-color: transparent;
  border-radius: 8px;
  border: 0;
  box-shadow: inset 0 0 0 1px #cccccc;
  color: #555;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  line-height: 3.5em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.button:hover,
.button:focus,
.button:active {
  box-shadow: inset 0 0 0 1px #406478;
  color: #406478;
  font-weight: bold;
}

.Form {
  max-width: 45rem;
}

@media screen and (min-width: 981px) {
  .Form {
    max-width: none;
  }
}

.Form p {
  margin-bottom: 1.5rem;
}

.Form p span {
  font-weight: bold;
}

.Form button.submit-btn,
.Form a.button {
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: auto;
  margin-left: auto;
}

.Form svg.submit-arrow {
  font-size: 1.5rem;
  font-weight: 400;
  color: lightgray;
  margin-left: 1rem;
  margin-right: 0;
}

@media screen and (min-width: 737px) {
  .Form h2 {
    font-size: 1.5rem;
  }
}

.Form label {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: flex-start;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.Form label input,
.Form label textarea {
  background: rgba(144, 144, 144, 0.075);
  border-radius: 8px;
  border: solid 1px #cccccc;
  color: inherit;
  display: block;
  outline: 0;
  padding: 1rem;
  width: 100%;
}

.Form label input {
  height: 4.25rem;
}

.submit-btn.is-loading {
  animation: spinY 1.25s ease-in-out infinite;
}

@keyframes spinY {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(720deg);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn ease-in 1s forwards;
}

@keyframes fadeIn {
  100% {
    opacity: 1;
  }
}

.Footer {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.15rem;
  line-height: 1.75;
  color: #555;
  min-height: 10vh;
  padding: 3rem 2rem;
  max-width: 45rem;
  margin: 0 auto;
}

.Footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.Footer ul li {
  font-size: 1.5rem;
}

.Footer ul li:last-of-type div:last-of-type::before {
  display: none;
}

.Socials {
  display: flex;
  flex-direction: row;
  text-align: center;
  justify-content: center;
}

.Socials a {
  display: inline-block;
  width: 2em;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  font-size: 1.5em;
  color: #555;
}

.Socials a:hover,
.Socials a:active,
.Socials a:focus {
  color: #406478;
}

.Socials a:visited {
  color: #555;
}
