/* ============================================================
   Chris Johnson Mountain Guiding — styles.css
   Color palette:
     --white:      #ffffff  (page background)
     --off-white:  #f8f9fa  (subtle off-white)
     --gray-light: #f1f3f5  (alternate section background)
     --gray-mid:   #dee2e6  (borders)
     --gray:       #868e96  (muted text, footer)
     --gray-dark:  #495057  (secondary text)
     --black:      #212529  (headings, primary text)
     --navy-dark:  #0f1e32  (dark sections, contact bg)
     --navy:       #1d3461  (primary brand, accents, buttons)
     --navy-mid:   #2d4d8e  (hover states)
   ============================================================ */

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

:root {
  --white:      #ffffff;
  --off-white:  #f8f9fa;
  --gray-light: #f1f3f5;
  --gray-mid:   #dee2e6;
  --gray:       #868e96;
  --gray-dark:  #495057;
  --black:      #212529;
  --navy-dark:  #0f1e32;
  --navy:       #1d3461;
  --navy-mid:   #2d4d8e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

/* ── Nav ─────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  transition: background 0.3s, border-color 0.3s;
}

nav.scrolled {
  background: var(--white);
  border-bottom-color: var(--gray-mid);
}

/* Push hero down so it starts below the fixed nav */
#hero {
  padding-top: calc(48px + 52px);
  padding-bottom: 48px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--black);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
}

nav.scrolled .nav-logo-text {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

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

nav.scrolled .nav-links a {
  color: var(--navy);
}

nav.scrolled .nav-links a:hover {
  color: var(--black);
}

/* mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.2s;
}

nav.scrolled .nav-toggle span {
  background: var(--black);
}

@media (max-width: 600px) {
  .nav-logo-text {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-mid);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

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

  .nav-links li a {
    display: block;
    padding: 12px 24px;
  }

  .nav-links a {
    color: var(--navy);
  }
}

/* ── Hero ────────────────────────────────────────────────── */

#hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding: 48px 0;
}

/* Blurred full-bleed background — shows natural image colors on the sides */
#hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.75);
  z-index: 0;
}


/* Sharp image, centered and capped — no cropping on wide viewports */
.hero-sharp {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 10, 5, 0.05) 0%,
    rgba(20, 10, 5, 0.28) 55%,
    rgba(20, 10, 5, 0.58) 100%
  );
  z-index: 2;
}

/* Constrains hero text to the same width as the photo */
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.hero-eyebrow {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.hero-name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}

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

.btn-primary:hover {
  background: var(--navy-mid);
}

/* ── Shared section styles ───────────────────────────────── */

section {
  padding: 64px 40px;
}

.section-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--navy);
  margin-bottom: 20px;
}

.section-inner {
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  section {
    padding: 48px 24px;
  }
}

/* ── About ───────────────────────────────────────────────── */

#about {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
}

.about-body {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.about-logo {
  height: 150px;
  width: auto;
  flex-shrink: 0;
}

.about-bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--black);
  margin-bottom: 16px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 2px;
}

.chip-dark {
  background: var(--navy);
  color: var(--white);
}

.chip-light {
  background: var(--gray-light);
  color: var(--black);
}

@media (max-width: 600px) {
  .about-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .chips {
    justify-content: center;
  }
}

/* ── Guiding ─────────────────────────────────────────────── */

#guiding {
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-mid);
}

.guiding-heading {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--black);
  margin-bottom: 12px;
}

.guiding-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: 24px;
  max-width: 580px;
}

.capability-cards {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.capability-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--black);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .capability-cards {
    flex-wrap: wrap;
  }
}

/* ── Where I Guide ───────────────────────────────────────── */

#areas {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.area-card {
  background: var(--gray-light);
  border-radius: 4px;
  padding: 14px 16px;
}

.area-name {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--black);
  margin-bottom: 3px;
}

.area-desc {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  color: var(--gray-dark);
}

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

/* ── Contact ─────────────────────────────────────────────── */

#contact {
  background: var(--navy-dark);
  text-align: center;
}

#contact .section-label {
  color: var(--white);
  font-size: 1.6rem;
  letter-spacing: 2px;
  text-transform: none;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  margin-bottom: 28px;
}

.contact-cta {
  margin-bottom: 20px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
}

.contact-links a {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.contact-links a:hover {
  color: var(--white);
}

.copyright {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  color: var(--gray);
}

/* ── Page Footer ─────────────────────────────────────────── */

.page-footer {
  background: var(--navy-dark);
  text-align: center;
  padding: 32px 24px;
}

.footer-spi-logo {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
  opacity: 0.85;
}

.page-footer .contact-links {
  margin-bottom: 18px;
}

/* ── Courses Section (main page) ─────────────────────────── */

#courses {
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-mid);
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-type {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  font-weight: 700;
}

.course-card-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--black);
  line-height: 1.3;
}

.course-card-blurb {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  color: var(--gray-dark);
  line-height: 1.55;
  flex: 1;
}

.course-card-meta {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.77rem;
  color: var(--gray);
  display: flex;
  gap: 14px;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-mid);
}

.course-price {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 6px 14px;
  font-size: 10px;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

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

/* ── Course Detail Pages ─────────────────────────────────── */

.course-page-header {
  background: var(--navy-dark);
  padding: 80px 40px 48px;
  margin-top: 52px;
}

.back-link {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--white);
}

.course-type-badge {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 14px;
}

.course-page-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: bold;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 28px;
}

.course-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.course-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
}

.stat-value {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.course-section {
  padding: 48px 40px;
  border-bottom: 1px solid var(--gray-mid);
}

.course-section-white {
  background: var(--white);
}

.course-section-alt {
  background: var(--gray-light);
}

.course-section-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--navy);
  margin-bottom: 20px;
}

.course-body-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--black);
  margin-bottom: 16px;
}

.course-body-text p:last-child {
  margin-bottom: 0;
}

/* Itinerary */

.itinerary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.itinerary-day {
  padding: 16px 18px;
  background: var(--white);
  border-radius: 4px;
  border-left: 3px solid var(--navy);
}

.day-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
}

.day-content {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--gray-dark);
}

/* Gear list */

.gear-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.gear-group-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.gear-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gear-list li {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: var(--black);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}

.gear-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gray);
}

.gear-note {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--gray-dark);
  margin-bottom: 24px;
}

/* Pricing */

.pricing-tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 4px;
}

.pricing-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: var(--gray-dark);
}

.pricing-amount {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
}

.pricing-note {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 8px;
}

@media (max-width: 600px) {
  .course-page-header {
    padding: 72px 24px 40px;
  }

  .course-stats {
    gap: 20px;
  }

  .course-section {
    padding: 40px 24px;
  }

  .gear-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
