:root {
  --background: url(/images/background.jpg) center repeat #08090e;
  --font-family: 'Song Myung', serif;
  --font-size: 1.15rem;
  --color-brown: #972016;
  --color-white: #efe8dd;
  --transition-speed: 0.3s;
  font-size: var(--font-size);
  font-family: var(--font-family);
  line-height: 1.8;
  color: var(--color-white);
  background: var(--background);
}

body {
  margin: 0;
}

:root a {
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
}

img {
  max-width: 100%;
}

main {
  max-width: 100%;
  width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1200px) {
  main {
    width: 1000px;
  }
}
@media (max-width: 1000px) {
  main {
    width: 600px;
  }
}
@media (max-width: 600px) {
  main {
    width: 400px;
  }
}
@media (max-width: 400px) {
  main {
    width: 100%;
  }
}

.row {
  margin-bottom: 5rem;
}

[class^='tiles'] {
  display: grid;
  grid-gap: 2rem;
}

[class^='tiles'] img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 10rem;
}

img.tall {
  height: 15rem;
}

.copy {
  width: 85%;
  margin: 0 auto;
}

.center {
  text-align: center;
}

.justify {
  text-align: justify;
}

.tiles-1x1 {
  grid-template-columns: repeat(4, 1fr);
}

.tiles-3x2 {
  grid-template-columns: repeat(2, 1fr);
}

.tiles-3x1 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
  .tiles-1x1 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiles-3x2 {
    grid-template-columns: repeat(1, 1fr);
  }
}

.btn-group {
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-gap: 1rem;
  width: 25rem;
}

@media (max-width: 600px) {
  .btn-group {
    width: 100%;
  }
}

.btn {
  text-align: center;
  border: 2px solid #ab352b;
  background: var(--color-brown);
  color: var(--color-white);
  display: inline-block;
  padding: 0.75rem 2rem;
  transition: border ease-in-out var(--transition-speed);
  cursor: pointer;
}
.btn.btn-small {
  padding: 0.3rem 1rem;
}
.btn.btn-outline {
  background: none;
  border-color: var(--color-brown);
}

.btn.btn-outline:hover {
  border-color: red;
}

.menu a {
  position: relative;
  overflow: hidden;
}

.menu a:hover img {
  opacity: 0.25;
  transform: scale(1.025);
}

.menu h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.menu img {
  transform: scale(1);
  transition: transform ease-in-out var(--transition-speed),
    opacity ease-in-out var(--transition-speed);
  opacity: 0.5;
}

p {
  opacity: 0.8;
  margin-bottom: 2rem;
}

h1,
h2,
h3 {
  text-align: center;
}

h2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0 0 3rem 0;
}

h2:before,
h2:after {
  content: '';
  display: block;
  flex: 1;
  background: var(--color-brown);
  height: 2px;
}

h2:before {
  margin-right: 5rem;
}

h2:after {
  margin-left: 5rem;
}

hr {
  display: block;
  width: 45%;
  height: 0;
  border: none;
  border-bottom: 2px solid var(--color-brown);
}

header img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 600px) {
  header img {
    height: unset;
  }
}

footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 4rem 0 2rem 0;
}

footer img {
  width: 20rem;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1rem 0 2rem 0;
}

@media (max-width: 1000px) {
  nav {
    flex-direction: column;
  }

  nav span a {
    padding: 0;
  }

  main nav span {
    display: block;
  }
}
nav img {
  width: 15rem;
}

nav span {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  text-align: right;
  overflow-x: auto;
}

nav a {
  padding: 1rem 2rem;
  display: block;
  text-align: center;
  border-bottom: 2px solid transparent;
}

nav a.active {
  border-bottom-color: var(--color-brown);
}

input,
textarea {
  width: 100%;
}

form {
  max-width: 40rem;
  margin: 0 auto;
  position: relative;
}

form.loading > * {
  opacity: 0.5;
  pointer-events: none;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
form.loading:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: '';
  display: block;
  width: 2rem;
  height: 2rem;
  animation: spin 1s infinite;
  border: 2px solid var(--color-white);
  border-radius: 2rem;
  border-bottom-color: transparent;
}

form.success > *,
form.error > * {
  display: none !important;
}
form.success:before,
form.error:before {
  text-align: center;
  max-width: 30rem;
  margin: 0 auto;
  display: block;
  padding: 1rem;
  font-size: var(--font-size);
}
form.success:before {
  content: 'Thank you for your correspondence. We will be in touch with you soon.';
  color: var(--color-brown);
  background: var(--color-white);
}
form.error:before {
  content: 'An error occurred. Please try again or email us directly: teena@theoldforge.co.nz';
  color: var(--color-white);
  background: var(--color-brown);
}
form input,
form textarea,
form button {
  border: 2px solid white;
  padding: 0.5rem;
  background: white;
  color: #0e1118;
  display: block;
  box-sizing: border-box;
  font-family: var(--font-family);
  font-size: var(--font-size);
  margin: 0 auto 1rem;
}

form label {
  display: block;
  margin-bottom: 0.25rem;
}

form sup {
  color: var(--color-white);
  opacity: 0.5;
  vertical-align: middle;
  float: right;
  padding-right: 1rem;
}

form input[type='submit'] {
  cursor: pointer;
  width: unset;
  display: block;
  margin: 2rem auto 0 auto;
  color: var(--color-white);
}


form .checkboxes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap:1.25rem;
  padding: .25rem 0 1rem 0;
}

form .checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap:.5rem;
  position: relative;
  cursor: pointer;
}

form .checkbox::before {
  display: block;
  width:1rem;
  height: 1rem;
  border: 1px solid var(--color-brown);
  background: var(--color-white);
  content: '';
}
form .checkbox.toggled::before {
  background: var(--color-white);
  color:black;
  content: '✓';
  line-height: 1.2;
}

form button {
  cursor: pointer;
}
.modal-background .btn-close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  width: 2rem;
  height: 2rem;
  background: url(/Assets/Images/close.png) center no-repeat transparent;
  border: none;
}
.modal-background {
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(70, 68, 68, 0.96);
  display: none;
}

.modal-background.visible {
  display: block;
}

.modal-dialog {
  padding: 0 2rem;
  max-width: 30rem;
  width: 100vw;
  position: fixed;
  left: 50%;
  top: 50%;
  background: var(--background);
  transform: translate(-50%, -50%);

  max-height: 100%;
  overflow-y: auto;
}
.modal-dialog h2 {
  margin-top: 2rem;
}
.modal-dialog form {
  padding-bottom: 2rem;
}

iframe {
  width: 100%;
  height: 25rem;
  border: none;
}

.hours {
  margin: 0 auto;
  padding: 0;
  margin-top: 3rem;
  max-width: 35rem;
  font-size: 1.2rem;
  list-style: none;
}
.hours li {
  border-top: 1px solid #ffffff2b;
  padding: 1rem 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.hours li:last-child {
  border-bottom: 1px solid #ffffff2b;
}

.hours small {
  display: block;
}
.hours li span:last-child {
  text-align: right;
}
