footer span {
  grid-column: 2 / 3;
  justify-self: center;
  text-align: center;
}
/* Center history and adventures sections and titles */
.history, .adventures {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.history h2, .adventures h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* Adventures section: horizontal grid of five figures */
.adventures__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem auto;
  padding: 0 1rem;
}
.adventures__grid figure {
  background: rgba(255,255,255,0.85);
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 0.5rem 1rem;
}
.adventures__grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  background: #e3e3e3;
}
.adventures__grid figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 1rem;
  color: #222;
  opacity: 0.8;
  background: rgba(255,255,255,0.6);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}
@media (max-width: 900px) {
  .adventures__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .adventures__grid {
    grid-template-columns: 1fr;
  }
}

.header-flex {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

/* Footer Styles */
footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem 1rem 2rem;
  border-top: 2px solid rgba(0,0,0,0.08);
  background: #fff;
  font-size: 1rem;
  color: #222;
  margin-top: 2rem;
}

/*
chore(footer): single footer with social icons; a11y polish
*/
.footer__copyright {
  font-size: 1rem;
  color: #444;
}

.footer__social {
  display: flex;
  gap: 1.25rem;
}

.footer__social a {
  display: inline-block;
  width: 36px;
  height: 36px;
}

.footer__social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Gallery Grid Styles */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem auto;
  padding: 0 1rem;
}

/*
feat(gallery): four-up square card grid with captions
*/
.gallery__item {
  background: rgba(255,255,255,0.85);
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 0.5rem 1rem;
}

.gallery__item figure {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.gallery__item figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 1rem;
  color: #222;
  opacity: 0.8;
  background: rgba(255,255,255,0.6);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}

@media (max-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }
}

header .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: .75rem 1rem;
}

/*
feat(about): add container and flex header to match wireframe
*/
header nav {
  display: flex;
  align-items: center;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

header nav ul {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding-left: 0;
  align-items: center;
}

header nav ul li {
  display: flex;
  align-items: center;
}

header nav ul li a {
  color: #fff;
  background: var(--primary-color);
  padding: 0.4rem 1.1rem;
  border-radius: 1.2rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s;
  outline: none;
}

/* Active state for current page link */
header nav ul li a[aria-current="page"] {
  background: #01385a;
  color: #fff;
  border: 2px solid #024a7a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  font-weight: 700;
  z-index: 1;
}

header nav ul li a:hover,
header nav ul li a:focus {
  background: #024a7a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.hero__content h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  font-family: var(--heading-font);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  background: rgba(30,20,20,0.5);
  border-radius: .5rem;
  padding: .5rem 1rem;
}

/*
feat(hero): centered overlay, title band, and blurb with thumbnail
*/
@media (max-width: 900px) {
  .hero__blurb {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }
  .history__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1.1rem;
  }
  .gallery__grid {
    grid-template-columns: 1fr;
  }
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid #e3e3e3;
}

.socialmedia {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  grid-column: 3 / 4;
  justify-self: end;
  align-items: center;
}

.socialmedia a img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Gallery Section Grid Styles */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.gallery__grid li {
  padding: 0;
}

.gallery__grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: .5rem;
  display: block;
}

.gallery__grid figcaption {
  text-align: center;
  margin-top: .5rem;
  font-size: 1rem;
  color: var(--primary-color);
}

@media (max-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }
}

/* History Section Grid Styles */
.history__grid {
  display: grid;
  grid-template-columns: 1fr min(340px, 32%) 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

/*
feat(history): three-column grid with responsive stack
*/
.history__image img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
  .history__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .history__image img {
    margin: 0 auto;
  }
}

/* Hero Section Styles */
.hero {
  position: relative;
  width: 100%;
  height: 25rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10rem;
  background: none;
  z-index: 1;
}

.hero__content {
  position: absolute;
  inset: 0 auto 0 50%;
  transform: translateX(-50%);
  width: min(100%, 1100px);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

.hero__content h1 {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 1rem;
  font-size: 2.2rem;
  font-family: var(--heading-font);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero__blurb {
  max-width: fit-content;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: linear-gradient(to bottom, rgba(30,20,20,0.6) 0%, rgba(30,20,20,0.3) 60%, rgba(30,20,20,0.7) 100%);
  border-radius: 0.7rem;
  padding: 0.5rem 1.2rem;
}

.hero__blurb p {
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero__img {
  max-width: 10rem;
  max-height: 10rem;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}



:root{
  /* Arches palette mapped to variables */
  --primary-color:   #0367A6; /* deep canyon blue */
  --secondary-color: #BF6B04; /* desert orange */
  --accent1-color:   #732002; /* dark red-brown (great for contrast) */
  --accent2-color:   #A0BBF2; /* light sky blue */
  --accent3-color:   #F27272; /* coral highlight */
  --heading-font: 'Segoe UI', 'Arial', sans-serif;
  --body-font: 'Segoe UI', 'Arial', sans-serif;
}

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


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

header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}
header nav ul { justify-content: center; }

header, footer {
    background-color: var(--secondary-color);
    padding: .75rem 1rem;
}

header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}


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

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

.hero { 
    position: relative; 
}

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

.hero h1{
  position: absolute;
  top: 20px;
  width: 30rem;
  padding: 12px;
  text-align: center;
  opacity: 0.7;
  background-color: var(--accent1-color);
  color: #fff;
  z-index: 2;
}

.hero article{
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: clamp(520px, 60%, 640px);
  display: flow-root;
  background: #fff;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.2);
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  z-index: 3;
}

.hero article img{
  float: right;
  width: 200px;
  margin: 0 0 8px 12px;
}

footer{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

footer p{ 
    margin: 0; 
} 

.socialmedia a { 
    text-decoration: none; 
}

footer nav.socialmedia{
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  display: flex;
  gap: .75rem;
}