:root {
  --color-bg: #f8f9fa;
  --color-primary: #1b4332;
  --color-primary-soft: #40916c;
  --color-accent: #d4a373;
  --color-text: #2b2d42;
  --color-text-muted: #6c757d;
  --color-surface: #ffffff;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:hover,
a:focus-visible {
  color: var(--color-primary-soft);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  scroll-margin-top: 90px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand-wordmark {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
}

nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
}

nav[hidden] {
  display: none;
}

.stay-connected {
  background-color: var(--color-surface);
  text-align: center;
}

.stay-connected-content {
  max-width: 720px;
  margin: 0 auto;
}

.stay-connected h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--color-primary);
  margin: 1rem 0 1.25rem;
}

.stay-connected p {
  color: var(--color-text-muted);
  margin: 0 auto 2rem;
  max-width: 660px;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.subscribe-form input {
  flex: 1 1 280px;
  min-width: 220px;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(43, 45, 66, 0.15);
  font-size: 1rem;
}

.subscribe-form input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: #163b28;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(27, 67, 50, 0.55), rgba(27, 67, 50, 0.85)),
    url('../images/mountains-banner.jpg') no-repeat center center/cover;
  color: #ffffff;
  text-align: center;
  padding: 6rem 0 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 14, 0.08);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  z-index: 1;
}

.brand-logo {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 25%;
  padding: 0.5rem;
  margin-bottom: 0rem;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.03);
}

.hero p {
  font-size: 1.15rem;
  font-weight: 300;
  margin: 0.5rem auto 2rem;
  max-width: 680px;
  opacity: 0.95;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: #bd8a5f;
  transform: translateY(-2px);
}

.section-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: inline-block;
  font-weight: 700;
}

.manifesto,
.journal-preview,
footer {
  padding: 6rem 0;
}

.manifesto {
  background-color: var(--color-surface);
  text-align: center;
}

.manifesto-content {
  max-width: 700px;
  margin: 0 auto;
}

.manifesto h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.manifesto p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.manifesto p.highlight {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
}

.journal-preview,
.upcoming-trip {
  background-color: #f5f7f8;
  padding: 4rem 0;
}


.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.preview-image {
  width: 100%;
  min-height: 360px;
  border-radius: 1rem;
  object-fit: cover;
  background-color: #f5f7f8;
  cursor: zoom-in;
  /* The line below adds a white box behind the image to create a subtle layered effect, enhancing the sense of depth and calmness in the design. It has been commented out for now. */
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
  
}

/* Larger frame specifically for the upcoming trip banner */
.upcoming-trip .preview-image {
  min-height: 300px;
  max-height: 360px;
  object-position: center center;
}

.image-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 15, 24, 0.8);
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-in-out;
}

.image-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.image-modal__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: min(900px, 100%);
  border-radius: 1rem;
  overflow: hidden;
  background: #0f172a;
}

.image-modal__image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 90vh;
  object-fit: contain;
  background: #0f172a;
}

.image-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 999px;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.image-modal__close:hover,
.image-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.preview-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.preview-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

footer {
  background-color: var(--color-primary);
  color: #ffffff;
  text-align: center;
}

.footer-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.75rem;
}

footer p {
  opacity: 0.7;
  font-size: 0.95rem;
  margin-top: 2rem;
}

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

.social-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .upcoming-trip .preview-image {
    min-height: 200px;
    max-height: 300px;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 7rem;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(43, 45, 66, 0.15);
    background: #ffffff;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
    background: rgba(248, 249, 250, 0.98);
    border-radius: 1rem;
  }

  nav.open {
    display: flex;
  }

  .brand-logo {
    position: static;
    margin: 0 auto 2rem;
  }

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