:root {
  --olive: #70815c;
  --navy: #3b4e57;
  --secondary: #2d3d44;
  --dark: #1c1c1c;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--white);
}

/* Sticky Header */
.logo-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(112, 129, 92, 0.85);
  backdrop-filter: blur(5px);
}

.logo {
  height: 60px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: bold;
  position: relative;
  z-index: 1010;
  text-shadow: none;
  transition: opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 0.8;
}

.about-page .logo-nav {
  background-color: rgba(112, 129, 92, 0.85);
}

/* Hero Header */
.hero-header {
  position: relative;
  height: 100vh;
  background: url("Images/mountaintrail.jpg") no-repeat center center/cover;
  color: var(--white);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 90%;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Featured Section */
.featured-hikes,
.hikes-page {
  padding: 5rem 2rem;
  background-color: var(--white);
  color: var(--navy);
  text-align: center;
}

.featured-hikes h1,
.hikes-page h1 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.featured-hikes h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 3rem;
}

.intro-text {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--navy);
}

.hike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hike-card {
  background-color: var(--olive);
  color: var(--white);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hike-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.hike-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.hike-card h3 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

.hike-card p {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.hike-card p strong {
  color: var(--white);
  font-weight: 700;
}

/* Footer */
footer {
  background-color: var(--olive);
  padding: 1rem 0;
  text-align: center;
}

.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links svg {
  width: 32px;
  height: 32px;
  fill: white;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.social-links svg:hover {
  transform: scale(1.1);
  fill: var(--navy);
}

/* Registration Page */
.contact-section {
  display: flex;
  justify-content: center;
  padding: 4rem 1rem;
}

.form-container {
  background-color: var(--olive);
  color: var(--white);
  padding: 2rem;
  border-radius: 1.2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 6px 16px rgba(59, 78, 87, 0.15);
}

.form-container h2 {
  color: var(--secondary);
  padding: 5px 0 10px 0;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  margin-top: 1rem;
  color: var(--white);
}

input,
textarea,
select {
  background-color: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.7rem;
  font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

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

button {
  margin-top: 1.5rem;
  width: 50%;
  background-color: var(--secondary);
  color: var(--white);
  padding: 0.75rem;
  border: none;
  border-radius: 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button-wrapper {
  display: flex;
  justify-content: center;
}

button:hover {
  background-color: var(--navy);
  transform: translateY(-2px);
}

/* About page  */
.about-split {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  margin-top: 0;
}

.about-image {
  flex: 1 1 50%;
  background-color: #e6efe6;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  flex: 1 1 50%;
  padding: 4rem 3rem;
  background-color: #f7f7f5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--navy);
}

.about-text h1 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--navy);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .logo-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    background-color: var(--navy);
    padding: 1rem;
    border-radius: 8px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

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

  .about-split {
    flex-direction: column;
  }

  .about-image,
  .about-text {
    flex: 1 1 100%;
  }

  .about-text {
    padding: 2rem;
  }

  button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hike-card img {
    height: 140px;
  }
}
