/* ============================================================
   Igor Bujas — Mountain Guide
   main.css — shared styles across all pages
   ============================================================ */

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

:root {
  --stone: #e8e3dc;
  --ink: #1a1814;
  --dust: #9e9487;
  --snow: #f5f2ee;
  --peak: #3d3830;
  --accent: #c8b89a;
}

html, body {
  background: var(--ink);
  color: var(--stone);
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
}

/* Elevation lines texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 59px,
    rgba(232,227,220,0.03) 60px
  );
  pointer-events: none;
  z-index: 0;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem clamp(2rem, 6vw, 5rem);
  background: linear-gradient(180deg, rgba(26,24,20,0.95) 0%, rgba(26,24,20,0) 100%);
}

.nav-logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dust);
  text-decoration: none;
}

.nav-logo span {
  display: block;
  color: var(--stone);
}

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

.nav-links a {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.52rem;
  font-weight: 200;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dust);
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--stone); }
.nav-links a.active { color: var(--stone); }

.nav-links .nav-cta {
  border: 1px solid rgba(158,148,135,0.3);
  padding: 0.5rem 1rem;
}

/* ── PAGE HERO (hikes, about) ── */
.page-hero {
  position: relative;
  height: 52vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(2rem, 6vw, 5rem) 3.5rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,24,20,0.3) 0%, rgba(26,24,20,0.85) 100%),
    linear-gradient(135deg, #2a2620 0%, #1a1814 50%, #0f0e0c 100%);
}

.page-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.page-hero-mountain {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 60%;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-eyebrow {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.55rem;
  font-weight: 200;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  color: var(--snow);
}

.page-hero h1 em {
  font-style: italic;
  color: var(--dust);
}

/* ── SECTION LABELS ── */
.section-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.48rem;
  font-weight: 200;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: 1.5rem;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem clamp(2rem, 6vw, 5rem);
  border-top: 1px solid rgba(158,148,135,0.12);
}

.footer-note {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.5rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dust);
  opacity: 0.5;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.yt-link, .ig-link {
  display: flex;
  align-items: center;
  color: var(--dust);
  opacity: 0.4;
  transition: opacity 0.3s, color 0.3s;
  text-decoration: none;
}

.yt-link svg, .ig-link svg { width: 16px; height: 16px; }
.yt-link:hover { opacity: 1; color: #ff4444; }
.ig-link:hover { opacity: 1; color: #e1306c; }

/* ── UTILITY ── */
.mt10 { margin-top: 10px; }
.mt20 { margin-top: 20px; }
.mt30 { margin-top: 30px; }

/* ── ANIMATIONS ── */
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--dust);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--stone); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--stone); }

/* Mobile overlay menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,24,20,0.98);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--dust);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-mobile a:hover,
.nav-mobile a.active { color: var(--snow); }

.nav-mobile .mobile-cta {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.6rem;
  font-weight: 200;
  font-style: normal;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--stone);
  padding: 0.9rem 2rem;
  margin-top: 1rem;
}

.nav-mobile .mobile-cta:hover { background: var(--snow); color: var(--ink); }

.photo-info { color: var(--dust); text-align: right; margin-top: 10px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
  footer { flex-direction: column; align-items: flex-start; }
}
