/* ============================================================
   Pangolin Journeys — Home page template styles (pj-home)
   Extracted verbatim from the static index.html <style> block.
   Shared chrome (reset, tokens, utility, buttons, site header,
   footer, scroll reveal) already lives in pangolin-journeys.css,
   which this sheet depends on.
   ============================================================ */

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(-100deg, transparent 38%, rgba(0,0,0,0.52) 68%),
    url('../img/Frame-1000004340.webp') bottom center / cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 9vh, 9rem) clamp(1.5rem, 4vw, 5rem);
  max-width: min(560px, 100%);
}

.hero__kicker {
  color: var(--gold);
  margin-bottom: 1.375rem;
}

.hero h1 {
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3.75rem, 5.75vw, 7.5rem);
  line-height: 0.93;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-style: italic;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  opacity: 0.82;
  max-width: 42ch;
  margin-bottom: 2.25rem;
}

/* ============================
   Philosophy
   ============================ */
.philosophy {
  background: var(--cream);
  padding: clamp(5rem, 10vh, 9rem) 0 clamp(6rem, 11vh, 10rem);
  position: relative;
}

.philosophy__inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.philosophy__text { padding-right: clamp(0px, 2vw, 3rem); }

.philosophy__text .kicker { margin-bottom: 1.125rem; }

.philosophy__text h2 {
  font-weight: 700;
  font-size: clamp(1.875rem, 2.75vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--green);
  text-wrap: balance;
  margin-bottom: 1.5rem;
}

.philosophy__text p {
  font-size: clamp(1.0625rem, 1.2vw, 1.25rem);
  line-height: 1.72;
  color: #323430;
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

.philosophy__image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .philosophy__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .philosophy__image { order: -1; }
  .philosophy__image img { aspect-ratio: 16/9; }
  .philosophy__text { padding-right: 0; }
}

/* ============================
   Ways to Travel
   ============================ */
.ways {
  background: var(--white);
  padding: clamp(5rem, 10vh, 9rem) 0 clamp(5.5rem, 10vh, 9rem);
}

.ways__header {
  margin-bottom: clamp(2rem, 4vh, 3.5rem);
}
.ways__header .kicker { margin-bottom: 0.875rem; }
.ways__header h2 {
  font-weight: 700;
  font-size: clamp(2rem, 3.25vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--green);
  margin-bottom: 0.625rem;
}
.ways__header p {
  font-style: italic;
  font-size: clamp(1.0625rem, 1.2vw, 1.2rem);
  color: #555751;
}

.ways__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.625rem;
}

.way-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  display: block;
  cursor: pointer;
}
.way-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 640ms var(--ease-out-quart);
}
.way-card:hover img { transform: scale(1.07); }
.way-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1,54,49,0.82) 0%, rgba(1,54,49,0.18) 45%, transparent 70%);
}
.way-card__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 1rem 0.625rem 1.125rem;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

@media (max-width: 1100px) { .ways__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .ways__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================
   Destinations
   ============================ */
.destinations {
  background: var(--cream);
  padding: clamp(5rem, 10vh, 9rem) 0;
  overflow: hidden;
}

.destinations__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vh, 3rem);
}

.destinations__top-left .kicker { margin-bottom: 0.875rem; }
.destinations__top-left h2 {
  font-weight: 700;
  font-size: clamp(2rem, 3.25vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--green);
  margin-bottom: 0.625rem;
}
.destinations__top-left p {
  font-style: italic;
  font-size: clamp(1.0625rem, 1.2vw, 1.2rem);
  color: #555751;
}

.carousel-arrows {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.carousel-arrow {
  width: 46px; height: 46px;
  border: 1.5px solid var(--green);
  display: grid;
  place-items: center;
  color: var(--green);
  transition: background 200ms, color 200ms, transform 140ms var(--ease-out-quart);
}
.carousel-arrow:hover { background: var(--green); color: var(--gold); }
.carousel-arrow:active { transform: scale(0.92); }

.destinations__scroll {
  display: flex;
  gap: clamp(0.75rem, 1.25vw, 1rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Bleed past container, align with content start */
  padding-left: max(1.5rem, calc((100vw - 1280px) / 2 + clamp(1.5rem, 4vw, 5rem)));
  padding-right: clamp(1.5rem, 4vw, 5rem);
  padding-bottom: 0.25rem;
}
.destinations__scroll::-webkit-scrollbar { display: none; }

.dest-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: clamp(200px, 20vw, 280px);
  cursor: pointer;
}
.dest-card__img-wrap { overflow: hidden; margin-bottom: 0.75rem; }
.dest-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 640ms var(--ease-out-quart);
}
.dest-card:hover img { transform: scale(1.05); }
.dest-card__name {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--green);
  transition: color 200ms;
}
.dest-card:hover .dest-card__name { color: var(--olive); }

/* ============================
   Journeys
   ============================ */
.journeys {
  background: var(--white);
  padding: clamp(5rem, 10vh, 9rem) 0;
  overflow: hidden;
}

.journeys__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vh, 3rem);
}
.journeys__top-left .kicker { margin-bottom: 0.875rem; }
.journeys__top-left h2 {
  font-weight: 700;
  font-size: clamp(2rem, 3.25vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--green);
}

.journeys__scroll {
  display: flex;
  gap: clamp(1rem, 1.5vw, 1.25rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-left: max(1.5rem, calc((100vw - 1280px) / 2 + clamp(1.5rem, 4vw, 5rem)));
  padding-right: clamp(1.5rem, 4vw, 5rem);
  padding-bottom: 0.25rem;
}
.journeys__scroll::-webkit-scrollbar { display: none; }

.journey-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: clamp(270px, 26vw, 360px);
  border: 1px solid rgba(1,54,49,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 340ms var(--ease-out-quart),
              transform 340ms var(--ease-out-quart);
}
.journey-card:hover {
  box-shadow: 0 6px 28px rgba(1,54,49,0.12);
  transform: translateY(-2px);
}
.journey-card__img-wrap { overflow: hidden; }
.journey-card__img-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 640ms var(--ease-out-quart);
}
.journey-card:hover .journey-card__img-wrap img { transform: scale(1.05); }

.journey-card__body { padding: 1.125rem 1.25rem 1.5rem; }

.journey-card__loc {
  font-family: 'DM Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.journey-card__loc::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--olive);
  flex-shrink: 0;
}

.journey-card__title {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--green);
  margin-bottom: 1rem;
}

.journey-card__meta {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(1,54,49,0.09);
}
.journey-card__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.225rem;
}
.journey-card__meta-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
}
.journey-card__meta-value {
  font-family: 'DM Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

/* Explore CTA */
.journeys__cta {
  text-align: center;
  margin-top: clamp(2.5rem, 5vh, 4rem);
}

/* ============================
   Resources
   ============================ */
.resources {
  background: var(--green);
  padding: clamp(5rem, 10vh, 8rem) 0;
  text-align: center;
  color: #fff;
}
.resources .kicker { color: var(--gold); margin-bottom: 1rem; justify-content: center; }
.resources h2 {
  font-weight: 700;
  font-size: clamp(2rem, 3.25vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: #fff;
  margin-bottom: 0.875rem;
}
.resources p {
  font-style: italic;
  font-size: clamp(1.0625rem, 1.2vw, 1.2rem);
  color: rgba(255,255,255,0.68);
  margin-bottom: 2.5rem;
}

/* ============================
   Scroll Reveal (home extras)
   pangolin-journeys.css owns the shared .reveal rules; the home
   carousels add arrow buttons whose reduced-motion rule lives here.
   ============================ */
@media (prefers-reduced-motion: reduce) {
  .carousel-arrow:active { transform: none; }
}
