/* Basic reset */
* {
  box-sizing: border-box;
}

:root {
	--clr-dark: #0A6900;
	--clr-light: #0D8700;
	--clr-body: #F8FCF8;
	--gry-dark: #888888;
	--gry-light: #ebebeb;
}

body {
  margin: 0;
  color: #1f2937;
  background: var(--clr-body);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

a {
  font-weight: bold;
  color: var(--clr-dark);
}

a:hover {
  color: var(--clr-light);
}

/* Flexbox is useful for a row of items */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 5%;
  background: var(--clr-dark);
}

.logo,
.site-header a {
  color: white;
  text-decoration: none;
}

.logo {
  font-size: 1.45rem;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu li {
  position: relative;
}

.main-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: white;
  text-decoration: none;
  border-radius: 0.35rem;
}

.main-menu a:hover,
.main-menu a:focus-visible {
  background: var(--clr-light);
}

/* Hide dropdown menus by default */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  display: none;
  min-width: 220px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--clr-dark);
  border-radius: 0.35rem;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 35%);
}

/* Display menus on hover or keyboard focus */
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  display: block;
}

/* Make dropdown links fill the menu width */
.dropdown a {
  padding: 0.65rem 1rem;
  white-space: nowrap;
}

/* Stack the main navigation on smaller screens */
@media (max-width: 700px) {
  .main-menu {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }

  .dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
  }
}

/* CSS Grid is useful for page-level layout */
.page-two-col {
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(320px, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem;
}

.page-one-col {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem;
}

.content {
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

.sidebar {
  height: auto;
  margin: auto;
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}

.eyebrow {
  margin-bottom: 0.25rem;
  color: #2563eb;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

h1,
h2 {
  color: var(--clr-dark);
  line-height: 1.2;
}

.sidebox {
  float: left;
  margin: 0 3rem 0 0;
  padding: 0;
  background: #eee;
}

.sideimage {
  margin: 3rem;
  padding: 0;
  width: 25%;
  min-width: 128px;
  height: auto;
  background: #eee;
}

.site-footer .sidebox {
  width: 400px;
  height: 300px;
}

.site-footer {
  min-height: 400px;
  padding: 2rem 5%;
  line-height: 1;
  color: white;
  background-color: var(--clr-dark);
}

.site-footer a, .site-footer h2 {
  color: white;
  font-weight: bold;
}

.site-footer a:hover {
  color: #dbffdf;
  font-weight: bold;
}

/* Responsive layout */
@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-two-col {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }
}

form h2 {
  color: var(--clr-dark);
  line-height: 0.7;
  font-weight: bold;
  font-size: 1.4rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.form-group {
  margin-bottom: 0.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.form-group label::after {
	content: " *";
	color: red;
}

textarea {
	resize: none;
}

button {
  padding: 8px 18px 8px 18px;
  background-color: white;
  font-size: 0.8rem;
  text-transform: uppercase;
  border: 1px solid #555;
}

button:hover {
  background-color: var(--clr-light);
}

.footnote {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: normal;
}