:root {
  --primary-color: #055a05; /* forest green */
  --secondary-color: #f4a261; /* warm sand */
  --accent1-color: #264653; /* dark slate blue */
  --accent2-color: #e9c46a; /* light golden yellow */
  --heading-font: "Times New Roman", Georgia, serif;
  --body-font: Arial, Helvetica, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  color: var(--accent1-color);
}

header,
main,
footer {
  width: 840px;
  margin: 0 auto;
}

header {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  background-color: var(--primary-color);
  color: var(--accent2-color);
  padding: 8px 16px;
}

header img {
  width: 100px;
}

header nav {
  margin: 0;
  padding: 0;
}

h1, h2 {
  font-family: var(--heading-font);
  color: var(--primary-color);
}

nav, p, section, article {
  margin: 16px;
  padding: 8px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 16px;
}

nav a {
  color: var(--accent2-color);
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: var(--secondary-color);
}

.socialmedia {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.socialmedia a {
  text-decoration: none;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--accent1-color);
  color: #fff;
  padding: 16px;
}

.hero {
  position: relative;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.hero h1 {
  position: absolute;
  top: 20px;
  width: 100%;
  padding: 16px;
  text-align: center;
  opacity: 0.7;
  background-color: var(--accent1-color);
  color: #fff;
}

.hero article {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: rgb(255 255 255 / 0.85);
  border-radius: 6px;
}

.hero article img {
  float: right;
  width: 125px;
  margin: 0 0 8px 12px;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.4);
}

.history {
  text-align: center;
}

.history h2 {
  margin-bottom: 16px;
}

.history img {
  width: 220px;
  height: auto;
  float: left;
  margin: 0 16px 8px 0;
}

.history p {
  text-align: left;
}

.adventures {
  text-align: center;
}

.gallery {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 16px;
}

.gallery figure {
  flex: 1;
  margin: 0;
  text-align: center;
}

.gallery img {
  width: 100%;
  height: auto;
}

.gallery figcaption {
  margin-top: 4px;
  font-size: 0.85rem;
}

main h1 {
  text-align: center;
}

.contact-info,
.employees,
.contact-form {
  text-align: center;
}

.contact-info iframe {
  border: 0;
  margin-top: 8px;
}

.employee-gallery {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 16px;
}

.employee-gallery figure {
  flex: 1;
  margin: 0;
  text-align: center;
}

.employee-gallery img {
  width: 100%;
  max-width: 120px;
  height: auto;
  border-radius: 50%;
}

.employee-gallery figcaption {
  margin-top: 4px;
  font-size: 0.85rem;
}

.contact-form form {
  display: grid;
  gap: 12px;
  max-width: 500px;
  margin: 16px auto;
  text-align: left;
}

.contact-form fieldset {
  border: 1px solid var(--accent1-color);
  border-radius: 4px;
  padding: 8px 16px;
}

.contact-form legend {
  color: var(--primary-color);
  font-weight: bold;
  padding: 0 4px;
}

.contact-form label {
  display: block;
}

.form-item {
  display: grid;
  align-items: center;
  gap: 4px;
}

.column1 {
  grid-template-columns: 3fr 1fr;
  align-items: center;
}

.column2 {
  grid-template-columns: 1fr 2fr;
  align-items: center;
}

.contact-form input,
.contact-form textarea {
  padding: 8px;
  font-size: 1rem;
  font-family: var(--body-font);
  border: 1px solid var(--accent1-color);
  border-radius: 4px;
}

.contact-form input[type="checkbox"],
.contact-form input[type="radio"] {
  width: auto;
  margin-right: 6px;
}

.contact-form button {
  justify-self: start;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: var(--accent1-color);
}

.cta {
  text-align: center;
  background-color: var(--accent2-color);
  padding: 24px 16px;
  border-radius: 6px;
}

.cta h2 {
  margin-bottom: 8px;
}

.cta-button {
  display: inline-block;
  margin-top: 12px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.cta-button:hover {
  background-color: var(--accent1-color);
}

.offerings {
  text-align: center;
}

.offerings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  margin: 16px;
  text-align: left;
}

.offerings-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.offerings-grid h3 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

.newsletter {
  text-align: center;
  background-color: var(--secondary-color);
  padding: 24px 16px;
  border-radius: 6px;
}

.newsletter form {
  display: grid;
  gap: 12px;
  max-width: 400px;
  margin: 16px auto;
  text-align: left;
}

.newsletter input {
  padding: 8px;
  font-size: 1rem;
  font-family: var(--body-font);
  border: 1px solid var(--accent1-color);
  border-radius: 4px;
}

.newsletter button {
  justify-self: start;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
}

.newsletter button:hover {
  background-color: var(--accent1-color);
}

.trips-intro {
  text-align: center;
}

.trip-list {
  margin: 16px;
}

.trip {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.trip img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.trip:nth-child(even) {
  grid-template-columns: 1fr 280px;
}

.trip:nth-child(even) img {
  order: 2;
}

.trip-details h2 {
  margin-bottom: 8px;
}

.trip-table {
  text-align: center;
}

.trip-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  text-align: left;
}

.trip-table th,
.trip-table td {
  border: 1px solid var(--accent1-color);
  padding: 8px 12px;
}

.trip-table thead {
  background-color: var(--primary-color);
  color: #fff;
}
