:root {
    /* deep navy */
    --primary-color: 11 45 77;
    /* evergreen */
    --secondary-color: 15 107 78;
    /* paddle yellow */
    --accent-color: 255 210 63;
    /* white */
    --accent2-color: 255 255 255;
    /* black */
    --accent3-color: 0 0 0;
    --body-font: Arial, Helvetica, sans-serif;
    --heading-font: "Trebuchet MS", Trebuchet, Arial, sans-serif;
    --primary: #d7bdf9;
    --primary-dark: #b08ae6;
    --text: #333;
    --gray: #555;
    --light: #f9f7fd;
}

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

body {
    font-family: var(--body-font);
    color: var(--primary-color);
    max-width: 1440px;
    margin: 0 auto;
    background: #f8f5fc;
    line-height: 1.6;
}

header,
main,
footer {
    max-width: 1440px;
    margin: 0 auto;
}

.nav-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    margin-bottom: 8px;
}

.nav-bar nav {
    grid-column: 2/6;
    grid-row: 1;
    display: flex;
    justify-content: space-evenly;
    align-content: center;
}

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

p,
section,
article,
address {
    padding: 8px;
    margin: 0px;

}

.socialmedia a {
    text-decoration: none;
}

.hero {
    position: relative;
    overflow: visible;
    min-height: 700px;
}

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

.hero h1 {
    position: absolute;
    left: 5%;
    width: 90%;
    top: 55%;
    transform: translateY(-100%);
    padding: 12px;
    margin: 0;
    background-color: rgb(var(--accent-color) / 0.85);
    text-align: center;
}

.hero article {
    position: absolute;
    left: 5%;
    width: 90%;
    top: 55%;
    padding: 16px;
    margin: 0;
    background-color: rgb(var(--accent2-color) / 0.85);
}

.hero article img {
    float: right;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 20px;
}

.socialmedia img {
    max-width: 40px;
    height: auto;
}

nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style-type: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px 0;
    list-style: none;
}

header nav a {
    flex: auto;
    width: 100%;
    display: block;
    text-decoration: none;
    font-weight: 700;
    color: var(--accent3-color);
    font-size: 1.2rem;
    justify-content: space-around;
    margin-right: 2rem;
    padding: 2px 2rem;
}

.logo {
    max-width: 400px;
    height: auto;
    margin: -48px -60px -100px -60px;
    grid-column: 1/2;
    grid-row: 1/6;

}

p {
    line-height: 1.5rem;
}

.history {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    margin-top: 80px;
    margin-bottom: 80px;
    gap: 16px;
}

.history img {
    max-width: 200px;
    height: auto;
}

.history h2 {
    flex: 0 0 100%;
    text-align: center;
}

.history p.left {
    max-width: 500px;
    min-width: 300px;
}

.history p.right {
    max-width: 500px;
    min-width: 300px;
}

footer {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: 1fr;
    max-width: 1440px;
    align-items: center;
    padding: 24px 0px 24px 24px;
    background: var(--primary-dark);
    color: rgb(var(--accent2-color));
    text-align: center;
    position: relative;
    background-repeat: no-repeat;
    background-position: right center;
    /* or left center */
    background-size: contain;
    /* keeps it clear and not stretched */
    /* background-color: rgb(var(--secondary-color));
    color: rgb(var(--accent2-color));
    background: var(--primary-dark);
    text-align: center; */
}

footer p {
    grid-column: 1/3;
    grid-row: 1/2;
    text-align: left;
    color: rgb(var(--accent2-color));
}

footer nav {
    grid-column: 3/4;
    grid-row: 1/2;
}

.adventure {
    max-width: 1440px;
    background-color: rgb(var(--primary-color));
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    color: rgb(var(--accent2-color));

}

figure img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.adventure h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
    color: rgb(var(--accent2-color));
}

.adventure figure {
    color: rgb(var(--accent2-color));
    text-align: center;
}

.info {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: 2fr 3fr;
    margin-bottom: 2rem;
}

.info h1 {
    grid-column: 1/4;
    grid-row: 1/2;
    background-color: rgb(var(--accent-color));
    align-content: center;
    text-align: center;
}

.info address {
    grid-column: 2/3;
    grid-row: 2/3;
    text-align: center;
    font-size: 1.2rem;
    line-height: 140%;
}

.mapform {
    max-width: 1440px;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0rem;
    align-items: stretch;
}

.mapform .map {
    display: flex;
}

.mapform .map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 450px;
}

.mapform .map,
.mapform form {
    min-width: 300px;
    flex: 1 1 calc(50% - 2rem);
}

.mapform input,
.mapform textarea {
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 400;
    padding: .5rem;
    width: 100%;
    margin: .25rem 0 1rem 0;
    border-radius: 4px;
    border: 2px rgb(var(--secondary-color)) solid;
    background-color: rgb(var(--accent2-color) / 0.85);
}

form {
    background-color: rgb(var(--secondary-color));
    color: rgb(var(--accent2-color));
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

form h2 {
    font-size: x-large;
    padding: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
    background-color: rgb(var(--secondary-color));
    color: rgb(var(--accent2-color));

}

label[for="name"],
label[for="email"],
label[for="message"],
.mapform legend {
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgb(var(--accent2-color));
}

.centerface {
    object-position: center 5%;
}

fieldset div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: .5rem;
}

input[type="radio"] {
    width: auto;
    margin: .25rem;
}

fieldset {
    margin-bottom: 1rem;
    border: none;
}

.newsletter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: .5rem 0;
}

input[type="checkbox"] {
    width: auto;
}

button,
input[type="button"],
input[type="submit"] {
    appearance: none;
    background: none;
    box-shadow: none;
    display: block;
    font-size: 1rem;
    padding: 8px 24px;
    margin: 24px auto 16px;
    background-color: rgb(var(--accent2-color));
    color: rgb(var(--primary-color));
    border: 1px rgb(var(--primary-color)) solid;
    border-radius: 4px;
}

button:hover {
    background-color: rgb(var(--accent-color));
    color: rgb(var(--primary-color));
    border: 1px rgb(var(--primary-color)) solid;
    border-radius: 4px;
    font-weight: 700;
    background: #9a6ed9;
    transform: translateY(-1px);
}

label[for="subscribe"],
label[for="reservation"],
label[for="general"],
label[for="website"] {
    color: rgb(var(--accent2-color));
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: rgb(var(--primary-color));
    width: 16px;
    height: 16px;
}

::placeholder {
    color: rgb(var(--accent3-color) / .85);
    font-style: italic;
}

/* Header / Nav */
header {
    background: var(--primary);
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--primary-dark);
}

/* Main Content */
.container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.left-column h1 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 2.4rem;
}

.company-info {
    margin-bottom: 2rem;
    color: var(--gray);
}

.company-info p {
    margin: 0.6rem 0;
}

label {
    display: block;
    margin: 1.4rem 0 0.5rem;
    font-weight: 500;
    color: var(--gray);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.radio-group {
    margin: 1.4rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.radio-group label {
    margin: 0;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.checkbox {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

button {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1.5rem;
}

/* Map placeholder */
.map-placeholder {
    background: #e0e0e0;
    height: 320px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #777;
    font-size: 1.1rem;
    margin-top: 1.8rem;
    position: relative;
}

.map-pin {
    font-size: 3.5rem;
    position: absolute;
}

/* Team section */
.team-section {
    background: var(--primary);
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0;
}

.team-section h2 {
    margin-bottom: 2.5rem;
    color: var(--primary-dark);
}

.team-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.employee-card {
    background: white;
    border-radius: 12px;
    padding: 1.8rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.employee-img {
    width: 110px;
    height: 110px;
    background: #e0d4f5;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    display: grid;
    place-items: center;
    font-size: 2.8rem;
}

.social-icons {
    margin: 1.5rem 0 2rem;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icons a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.social-icons a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 850px) {
    .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    nav ul {
        gap: 1.5rem;
    }
}

/* ===== Shared CTA ===== */
.cta {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: rgb(var(--secondary-color));
  color: rgb(var(--accent2-color));
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
}

/* ===== Home ===== */
.newsletter-home {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1.5rem;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.newsletter-form button {
  grid-column: 1 / -1;
}

.home-grid {
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.home-card {
  background: rgb(var(--accent2-color));
  border-radius: 16px;
  padding: 1rem;
}

.home-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ===== Trips ===== */
.trips {
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.trip-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.trip-card {
  background: rgb(var(--accent2-color));
  border-radius: 16px;
  padding: 1rem;
}

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

.trip-table table {
  width: 100%;
  border-collapse: collapse;
}

.trip-table th,
.trip-table td {
  border: 1px solid #222;
  padding: 0.75rem;
  text-align: left;
}

@media (max-width: 900px) {
  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .trip-cards {
    grid-template-columns: 1fr;
  }
}