:root {
  --trek-forest: #14372c;
  --trek-forest-soft: #245b49;
  --trek-gold: #c7a25d;
  --trek-ink: #1d2923;
  --trek-muted: #5c6d63;
  --trek-paper: #f7f1e6;
  --trek-cream: #fffaf0;
  --trek-line: rgba(20, 55, 44, 0.12);
  --trek-shadow: 0 22px 54px rgba(14, 36, 28, 0.12);
}

html {
  scroll-behavior: smooth;
}

body.page-mountain-primates {
  margin: 0;
  background:
    linear-gradient(180deg, #efe7d9 0%, var(--trek-paper) 42%, #f8f4eb 100%);
  color: var(--trek-ink);
  font-family: var(--font-primary, "Lato", Arial, sans-serif);
  overflow-x: clip;
}

body.page-mountain-primates img {
  display: block;
  max-width: 100%;
}

.trek-hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  padding: 120px 24px 86px;
  color: var(--luxury-cream, #fffaf0);
  background:
    linear-gradient(90deg, rgba(7, 21, 17, 0.78), rgba(7, 21, 17, 0.2) 58%, rgba(7, 21, 17, 0.44)),
    linear-gradient(180deg, rgba(7, 21, 17, 0.12), rgba(7, 21, 17, 0.58)),
    url("../images/Margherita-peak-5109.jpg") center / cover no-repeat;
}

.trek-hero__content {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.trek-kicker,
.section-kicker,
.day-label {
  color: var(--trek-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.trek-hero h1 {
  max-width: 900px;
  margin: 14px 0 18px;
  color: var(--luxury-cream, #fffaf0);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.7rem, 7vw, 5.9rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
}

.trek-lead {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.7;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.trek-page {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto 72px;
}

.trek-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -46px auto 66px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: var(--trek-shadow);
}

.trek-summary div {
  min-height: 118px;
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 242, 231, 0.9));
}

.trek-summary span {
  display: block;
  margin-bottom: 10px;
  color: var(--trek-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trek-summary strong {
  display: block;
  color: var(--trek-forest);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
}

.route-table-card h2,
.day-by-day h2,
.trek-details-grid h2 {
  margin: 0;
  color: var(--trek-forest);
  font-family: var(--font-display, Georgia, serif);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

.route-table-card {
  margin: 0 0 70px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--trek-line);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 18px 42px rgba(14, 36, 28, 0.08);
}

.route-table-card h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.itinerary {
  width: 100%;
  border-collapse: collapse;
  color: var(--trek-muted);
}

.itinerary th,
.itinerary td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--trek-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.58;
}

.itinerary th {
  color: var(--trek-forest);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.itinerary td:first-child {
  width: 86px;
  color: var(--trek-forest);
  font-weight: 800;
}

.day-by-day {
  margin-top: 28px;
}

.day-by-day > h2 {
  margin: 10px 0 32px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.trek-day {
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1fr);
  gap: clamp(22px, 3.8vw, 42px);
  align-items: start;
  margin: 0 0 46px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--trek-line);
}

.trek-day:nth-of-type(even) {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.58fr);
}

.trek-day:nth-of-type(even) figure {
  grid-column: 2;
}

.trek-day:nth-of-type(even) .trek-day__copy {
  grid-column: 1;
  grid-row: 1;
}

.trek-day figure {
  margin: 0;
  max-width: 320px;
  justify-self: center;
}

.trek-day img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--trek-shadow);
}

.trek-day--summit img {
  aspect-ratio: 16 / 11;
}

.trek-day__copy {
  min-width: 0;
}

.trek-day h3 {
  max-width: 620px;
  margin: 10px 0 14px;
  color: var(--trek-forest);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.trek-day p,
.trek-details-grid p {
  margin: 0;
  color: var(--trek-muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.trek-day ul,
.trek-details-grid ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.trek-day li,
.trek-details-grid li {
  position: relative;
  padding-left: 22px;
  color: var(--trek-muted);
  line-height: 1.62;
}

.trek-day li::before,
.trek-details-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--trek-gold);
}

.trek-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 54px 0;
}

.trek-details-grid article,
.trek-inquiry .inquiry-launch-panel {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--trek-line);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 16px 36px rgba(14, 36, 28, 0.08);
}

.trek-details-grid h2 {
  margin-bottom: 14px;
  font-size: 1.55rem;
}

.trek-inquiry {
  margin: 52px auto 0;
}

.trek-inquiry .inquiry-launch-panel {
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .trek-hero {
    min-height: 64vh;
    padding: 100px 18px 70px;
  }

  .trek-page {
    width: min(100% - 24px, 680px);
  }

  .trek-summary,
  .trek-day,
  .trek-day:nth-of-type(even),
  .trek-details-grid {
    grid-template-columns: 1fr;
  }

  .trek-summary {
    margin-top: -34px;
  }

  .trek-day:nth-of-type(even) figure,
  .trek-day:nth-of-type(even) .trek-day__copy {
    grid-column: auto;
    grid-row: auto;
  }

  .trek-day {
    gap: 22px;
    margin-bottom: 38px;
    padding-bottom: 38px;
  }

  .trek-day figure {
    max-width: min(100%, 360px);
  }
}

@media (max-width: 640px) {
  .trek-hero {
    min-height: 58vh;
    padding: 92px 16px 48px;
    background-position: center;
  }

  .trek-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.55rem);
  }

  .trek-summary {
    grid-template-columns: 1fr 1fr;
    border-radius: 18px;
  }

  .trek-summary div {
    min-height: 96px;
    padding: 18px 16px;
  }

  .route-table-card {
    overflow-x: auto;
    padding: 18px;
  }

  .itinerary {
    min-width: 660px;
  }

  .trek-day img {
    border-radius: 14px;
  }

  .trek-day h3 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .trek-day p,
  .trek-details-grid p {
    font-size: 0.98rem;
    line-height: 1.72;
  }
}
