:root {
  --ink: #14211f;
  --muted: #5d6965;
  --paper: #fbfaf6;
  --mist: #e7eee9;
  --sea: #126c72;
  --sea-dark: #0d4d53;
  --coral: #d45e42;
  --gold: #c89542;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(18, 33, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.site-header {
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 4%;
background: rgba(10, 25, 24, 0.50);
color: var(--white);
}

.site-logo {
  max-height: 100px; /* Adjust this value to make the logo bigger or smaller */
  width: auto;
  display: block;
}

.main-nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

{
  display: grid;
  width: 60px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
}

.main-nav {
  gap: clamp(14px, 3vw, 34px);
  font-size: 1.25rem;
}

.main-nav a {
  opacity: 0.88;
}

.main-nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  height: auto; /* Flexible height based on content */
  display: grid;
  align-items: start; /* Starts vertically at the top */
  padding: 80px clamp(20px, 6vw, 86px) 92px;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  background: linear-gradient(
      90deg,
      rgba(7, 18, 18, 0.82) 0%,
      rgba(7, 18, 18, 0.28) 56%,
      rgba(7, 18, 18, 0.5) 100%
    ),
    url('../images/namibia_skeleton_coast_1.jpg?auto=format&fit=crop&w=1800&q=80');
  background-position: center;
  background-size: cover;  
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  z-index: -1;
  background: linear-gradient(transparent, var(--paper));
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.experience-copy h2,
.planner-copy h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
}

.hero-content > p:not(.eyebrow) {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 80px);
  top: 50%;
  width: min(420px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(10, 25, 24, 0.64);
  backdrop-filter: blur(14px);
}

.hero-panel strong {
  display: block;
  margin: 10px 10px;
  font-size: 1.18rem;
}

select,
input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid #d7ddd8;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

/** Formatting destination section **/

.section {
  width: calc(100% - 20px);
  margin: 0 auto 96px;
  padding: 20px;
}

.section-heading { 
  display: flex; 
  justify-content: center; 
  margin-bottom: 28px; 
}

.section-heading h2,
.experience-copy h2,
.planner-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.destination-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(18, 33, 31, 0.1);
}

.destination-card img {
  height: 270px;
  object-fit: cover;
}

.destination-card div {
  padding: 22px;
}

.destination-card h3 {
  margin: 8px 0 10px;
  font-size: 1.36rem;
}

.destination-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.58;
   text-align: justify;
}

/* Style the destination container card summary toggle button */

.destination-card .toggle-btn {
  display: block; /* Hides the default browser arrow in some browsers */
  list-style: none; /* Hides the default browser arrow in others */
  color: #0066cc;
  font-weight: bold;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 10px;
  outline: none;
}

/* Hide the default WebKit triangle marker */
.destination-card .toggle-btn::-webkit-details-marker {
  display: none;
}

/* Add a custom plus/minus visual anchor instead of the default arrow */
.destination-card .toggle-btn::after {
  content: " +";
}

/* Change the button visual when the container is open */
.destination-card[open] .toggle-btn::after {
  content: " −";
}

/* Optional: Add a subtle fade-in effect when the content appears */
.destination-card[open] .card-content {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* The destination container card summary toggle button style ends */

.destination-card strong {
  color: var(--sea-dark);
}

.site-footer {
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 86px);
  color: var(--white);
  background: var(--ink);
}

.site-footer p,
.site-footer address {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 840px;
    padding-bottom: 250px;
  }

  .hero-panel {
    left: 20px;
    right: auto;
  }

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }
}

  .hero {
    min-height: 820px;
    padding: 110px 20px 210px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-panel {
    bottom: 46px;
  }

  .section-heading {
    display: block;
  }

  .site-footer {
    display: grid;
  }
