/* ================================
   Base / Reset
================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: sans-serif;
  color: #000;
}

main {
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
address {
  margin: 0;
  padding: 0;
}

/* ================================
   Typography
================================ */

h1 {
  font-size: 1.85rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.2;
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

.primary {
  color: #0e492d;
}

.secondary {
  color: rgb(90, 97, 46);
}

header {
  display: flex;
  height: 4rem;
  position: fixed;
  top: 0;
  background-color: #fff;
  left: 0;
  right: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.header-desktop {
  display: none;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.header-desktop .logo {
  height: 3rem;
  margin-left: 2rem;
  margin-right: 2rem;
}

.header-desktop nav {
  width: auto;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-desktop nav a {
  text-align: center;
  padding-top: 50px;
  padding-bottom: 50px;
  min-width: 150px;
  text-decoration: none;
  font-weight: bold;
  color: #000;
  border-left: 1px solid #dedede;
}

.header-desktop nav a:hover {
  text-decoration: underline;
}

.header-desktop a.active {
  background-color: rgb(90, 97, 46);
  color: #fff;
  border: none;
}

.header-desktop a.active:hover {
  text-decoration: none;
}

.header-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.header-mobile .logo {
  height: 3rem;
}

.header-mobile .hamburger {
  position: absolute;
  right: 2rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);

  display: flex;
  justify-content: flex-end;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-modal .modal-content {
  width: 300px;
  height: 100%;
  background: white;

  transform: translateX(100%);
  transition: transform 0.35s ease;
}

/* active state */
.nav-modal.open {
  opacity: 1;
  pointer-events: auto;
}

#navModal.open .modal-content {
  transform: translateX(0);
}

.nav-modal nav {
  display: flex;
  flex-direction: column;
  margin-top: 4rem;
  gap:2rem;
}

.nav-modal nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  width:100%;
  text-align: center;
}

.close-button{
    border:none;
    background-color: #fff;
    font-size: 2rem;
    position:absolute;
    top:2rem;
    right:2rem;
}

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

.split-layout {
  display: block;
  padding-top: 4rem;
}

.left,
.right {
  width: 100%;
  display: block;
}

.left img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
}

.right {
  padding: 1rem;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
  border-left: 1px solid #dedede;
}

.primary-button,
.secondary-button,
.submit-button {
  text-decoration: none;
  font-weight: bold;
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: center;
  font-size: 1rem;
}

.primary-button:hover,
.secondary-button:hover,
.submit-button:hover {
  cursor: pointer;
  opacity: 0.9;
}

.primary-button {
  background-color: #0e492d;
  color: #fff;
}

.secondary-button {
  border: 2px solid #0e492d;
  color: #0e492d;
}

.submit-button {
  border: none;
  background-color: #0e492d;
  color: #fff;
  margin-top: 1rem;
}

.button-row {
  display: flex;
  flex-direction: row;
}

label {
  font-family: sans-serif;
  text-align: left;
  width: 100%;
  font-size: 1rem;
  font-weight: bold;
}

label:has(+ input:required)::after,
label:has(+ textarea:required)::after,
label:has(+ select:required)::after {
  content: " *";
  color: red;
}

fieldset {
  border: 2px solid #0e492d;
  padding: 2rem;
}

fieldset legend {
  font-size: 1rem;
  color: #0e492d;
}

form {
  background-color: #fff;
}

form input,
form select,
form textarea {
  width: 100%;
  border: 1px solid #444;
  padding: 0.6rem;
  border-radius: 0.5rem;
  font-family: sans-serif;
  background-color: #e6f2ee;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

form .field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.divider {
  border: none;
  background-image: linear-gradient(90deg, #0e492d, #0e492d);
  height: 4px;
}

footer{
  background-color: rgb(90, 97, 46);
  color: #fff;
  width:100%;
  display: block;
  padding:1rem;
}
footer address {
  display: block;
  margin-bottom:1rem;
}

/* ================================
   Tablet (768px+)
================================ */

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

  h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  p {
    font-size: 1.15rem;
    line-height: 1.6;
  }

  .primary-button,
  .secondary-button,
  .submit-button,
  label,
  legend {
    font-size: 1.15rem;
  }
}

/* ================================
   Desktop (1024px+)
================================ */

@media (min-width: 1024px) {
  header{
    height: 4rem;
  }

  .header-desktop {
    display: flex;
  }
  .header-mobile {
    display: none;
  }

  .split-layout {
    flex-direction: row;
    display: flex;
    height: 100vh;
  }
  .left,
  .right {
    width: 50%;
  }

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

  .right {
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
    border-left: 1px solid #dedede;
  }

  .primary-button, .secondary-button {
    width:250px;
  }

  footer{
    display: flex;
    justify-content: space-between;
  }
  footer address{
    margin-bottom: 0;
  }
}
