@font-face {
  font-family: californian;
  src: url(../assets/fonts/californian-fb.ttf);
}

:root {
  --background: rgb(43, 43, 43);
  --background-transparent: rgba(43, 43, 43, 0.72);
  --white: rgb(249, 246, 240);
  --brown: rgb(196, 174, 120);
}

* {
  box-sizing: border-box;
  font-family: californian;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--white);
}

.banner {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--background);
}

.banner .bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.navbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  max-width: 100%;
  margin: auto;
  padding: 5px;
}

.logo {
  width: clamp(1rem, 100px, 20rem);
}

.navbar ul {
  display: flex;
  gap: clamp(0.25rem, 1vw, 1rem);
  margin: 0;
  padding: 0;
}

.navbar li {
  position: relative;
  list-style: none;
  font-size: clamp(0.5rem, 1vw, 1.5rem);
}

.navbar a,
footer a {
  color: var(--white);
  text-decoration: none;
}

.navbar li::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  content: "";
  transition: width 0.3s ease;
}

.navbar li:hover::after {
  width: 100%;
}

.container {
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 7vw, 6rem) 1rem 2rem;
  text-align: center;
}

.heading {
  width: min(100%, 900px);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(3rem, 7vw, 6rem);
}

.contact-intro,
.response-note {
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--background-transparent);
  border: 1px solid rgba(249, 246, 240, 0.7);
  border-radius: 4px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field-wide,
#mysubmit {
  grid-column: 1 / -1;
}

label {
  color: var(--white);
  font-size: 1.1rem;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  color: var(--white);
  background: rgba(249, 246, 240, 0.12);
  border: 1px solid rgba(249, 246, 240, 0.7);
  border-radius: 2px;
  font-size: 1.1rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--brown);
  border-color: var(--brown);
}

::placeholder {
  color: rgba(249, 246, 240, 0.75);
  font-style: italic;
}

#mysubmit {
  justify-self: center;
  min-width: 150px;
  padding: 0.8rem 1.5rem;
  color: var(--background);
  background: var(--brown);
  border: 2px solid var(--brown);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s ease, color 0.3s ease;
}

#mysubmit:hover {
  color: var(--white);
  background: transparent;
}

footer {
  padding: 3rem 1rem;
  color: var(--white);
  text-align: center;
  font-style: italic;
}

@media (max-width: 700px) {
  .navbar ul {
    gap: 0.25rem;
  }

  .navbar li {
    font-size: clamp(0.45rem, 2.3vw, 1rem);
  }

  form {
    grid-template-columns: 1fr;
  }

  .form-field-wide,
  #mysubmit {
    grid-column: auto;
  }
}
