*,
::before,
::after {
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

body {
  margin: 0;
  line-height: inherit;
}

h1,
h2 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

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

input,
textarea {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

@font-face {
  font-family: title;
  src: url("/titleFont.woff2");
  font-display: swap;
}

:root {
  --red: #b45331;
  --dark-red: #933515;
  --yellow: #eaa749;
  --dark-yellow: #bf871f;
  --brown: #b47a31;
}

.screen {
  min-height: 100vh;
}

.page {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  background: #fff;
}

.hero-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
}

.hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 1rem 0.5rem;
  color: #fff;
  background: transparent;
}

.logo {
  max-width: 80px;
  cursor: pointer;
}

.desktop-nav {
  display: none;
  gap: 1rem;
}

.nav-link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.75rem;
}

.nav-link span,
.mobile-nav-link span {
  display: block;
  width: 100%;
  height: 0.125rem;
  max-width: 0;
  background: #fff;
  transition: max-width 500ms;
}

.nav-link:hover span,
.mobile-nav-link:hover span {
  max-width: 100%;
}

.mobile-menu {
  display: block;
}

.mobile-menu summary {
  position: relative;
  z-index: 20;
  display: block;
  width: 1.5rem;
  color: transparent;
  list-style: none;
  transform: translate(-50%, -50%);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.hamburger-line {
  position: absolute;
  display: block;
  width: 1.75rem;
  height: 0.125rem;
  background: #fff;
}

.hamburger-line:first-of-type {
  transform: translateY(-0.375rem);
}

.hamburger-line:last-of-type {
  transform: translateY(0.375rem);
}

.mobile-nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 6rem 0.5rem 1rem;
  color: #000;
  background: #d6d3d1;
}

.mobile-nav-logo {
  position: absolute;
  top: 1rem;
  left: 0.5rem;
  max-width: 80px;
}

.mobile-nav-link {
  font-family: title, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.hero {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 33% 2rem 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-title {
  font-family: title, sans-serif;
  font-size: 3.75rem;
  line-height: 1;
  color: #fff;
  text-align: center;
  text-shadow:
    0 0 #000,
    0 2px #000,
    0 0 #000,
    0 3px #000;
}

.hero-subtitle {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: #fff;
  text-align: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1rem;
  row-gap: 0.5rem;
}

.button {
  display: flex;
  justify-content: center;
  padding: 0 0.75rem 0.5rem;
  border: 1px solid var(--dark-yellow);
  border-radius: 0.5rem;
  color: #fff;
  background: var(--red);
  font-family: title, sans-serif;
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: 0.05em;
  text-shadow:
    0 0 #000,
    0 1px #000,
    0 0 #000,
    0 1px #000;
}

.button:hover {
  border-color: var(--yellow);
  background: var(--dark-red);
}

.section {
  position: relative;
  z-index: 10;
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 5rem 2rem 2rem;
  border-top: 2px solid rgb(234 167 73 / 20%);
  border-bottom: 2px solid rgb(234 167 73 / 20%);
  background: #fff;
}

.contact-section {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.section-title {
  font-family: title, sans-serif;
  font-size: 3.75rem;
  line-height: 1;
}

.section-copy {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: center;
}

.services-grid {
  display: grid;
  width: 100%;
  max-width: 90rem;
  flex: 1 1 0%;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  place-items: center;
  gap: 2rem;
}

.service-card {
  display: flex;
  height: 100%;
  max-width: 700px;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 2px solid var(--yellow);
  border-radius: 0.75rem;
  background: rgb(180 122 49 / 50%);
  box-shadow: 0 0 0 2px var(--red);
}

.card-title {
  font-family: title, sans-serif;
  font-size: 1.875rem;
  line-height: 2.25rem;
  text-align: center;
  text-decoration: underline;
}

.card-copy {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: center;
}

.rounded-image {
  border-radius: 0.75rem;
}

.weather-link {
  color: #1e40af;
  font-family: title, sans-serif;
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.weather-link:hover {
  text-decoration: underline;
}

.location-grid {
  display: grid;
  width: 100%;
  max-width: 90rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  place-items: center;
  row-gap: 1rem;
}

.location-image {
  width: 100%;
  border-radius: 0.75rem;
}

.gallery-grid {
  display: grid;
  width: 100%;
  max-width: 90rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #e5e7eb;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-content: center;
  padding: 1rem;
  background: rgb(0 0 0 / 90%);
}

.gallery-lightbox:target {
  display: grid;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gallery-lightbox img {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
}

.gallery-close {
  display: grid;
  grid-area: 1 / 1;
  justify-self: end;
  align-self: start;
  position: relative;
  z-index: 3;
  top: -40px;
  right: -40px;
  font-size: 0;
}

.gallery-close::after {
  content: "X";
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.5rem;
  color: #000;
  background: #fff;
  font-size: 0.875rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.contact-feedback {
  display: none;
  width: 100%;
  max-width: 80rem;
  padding: 0.75rem 1rem;
  border: 1px solid;
  border-radius: 0.5rem;
}

.contact-feedback:target {
  display: block;
}

.contact-success {
  border-color: #15803d;
  color: #14532d;
  background: #f0fdf4;
}

.contact-invalid {
  border-color: var(--dark-yellow);
  color: #000;
  background: rgb(234 167 73 / 30%);
}

.contact-error {
  border-color: var(--red);
  color: var(--dark-red);
  background: rgb(180 83 49 / 10%);
}

.contact-form {
  width: 100%;
  max-width: 80rem;
}

.honeypot {
  display: none;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem 1.5rem;
}

.form-field {
  width: 50%;
  padding: 0 0.75rem;
}

.form-field-full {
  width: 100%;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.required {
  color: var(--red);
}

.form-input {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  appearance: none;
  border: 1px solid #9ca3af;
  border-radius: 0.5rem;
  background: rgb(234 167 73 / 30%);
  line-height: 1.25;
}

.form-input:focus {
  border-color: #6b7280;
  background: rgb(234 167 73 / 50%);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.message-input {
  height: 12rem;
  resize: none;
  white-space: pre;
}

.submit-button {
  width: 9rem;
  text-align: center;
  cursor: pointer;
}

@media (min-width: 640px) {
  .site-header {
    padding-right: 10%;
    padding-left: 10%;
  }

  .logo,
  .mobile-nav-logo {
    max-width: 100px;
  }

  .mobile-nav-logo {
    top: 10%;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }

  .section-copy {
    max-width: 500px;
  }

  .submit-row {
    display: flex;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .logo {
    max-width: 124px;
  }

  .desktop-nav {
    gap: 4rem;
  }

  .hero {
    max-height: 75%;
    justify-content: center;
    padding-top: 0;
  }

  .hero-title,
  .section-title {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .contact-section {
    padding-bottom: 9rem;
  }

  .section-copy,
  .card-copy {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .location-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2rem;
  }

  .location-image:first-child {
    grid-column: span 3 / span 3;
  }

  .location-image:last-child {
    grid-column: span 4 / span 4;
  }
}

@media (min-width: 1280px) {
  .site-header {
    padding-right: 15%;
    padding-left: 15%;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1536px) {
  .site-header {
    padding-right: 20%;
    padding-left: 20%;
  }
}
