/* ==========================================================================
   salt&pepper safari — home page
   Loaded only on index.php, after brand.css. Uses the brand tokens
   (moss, bone, clay, Bodoni Moda + Karla) and adds a wider, calmer layout:
   one big photograph, plain sentence-case labels, and a destination index
   whose large photo follows the row you point at.
   ========================================================================== */

.hm-hero, .hm-intro, .hm-trips, .hm-places, .hm-share, .hm-voices, .hm-plan, .hm-journal {
  --hm-gap: clamp(1.5rem, 4vw, 4rem);
  --hm-pad: clamp(4.5rem, 9vw, 8.5rem);
}
.hm-hero .section-container, .hm-intro .section-container, .hm-trips .section-container,
.hm-places .section-container, .hm-voices .section-container, .hm-plan .section-container,
.hm-journal .section-container { max-width: 1320px; padding-inline: clamp(20px, 4vw, 48px); }

.hm-hero h1, .hm-hero h2, .hm-intro h2, .hm-trips h2, .hm-places h2, .hm-share h2,
.hm-voices h2, .hm-plan h2, .hm-plan h3, .hm-journal h2, .hm-journal h3 { margin: 0; }

/* ------------------------------------------------------------------ buttons */
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  font: 600 15px/1 var(--body); text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.hm-btn--light { background: var(--bone); color: var(--moss-deep); }
.hm-btn--light:hover { background: #fff; color: var(--moss-deep); }
.hm-btn--line { border-color: rgba(244,241,232,.7); color: var(--bone); }
.hm-btn--line:hover { background: rgba(244,241,232,.12); color: #fff; }
.hm-btn--moss { background: var(--moss); color: var(--bone); }
.hm-btn--moss:hover { background: var(--moss-deep); color: #fff; }

.hm-link {
  display: inline-block; font-weight: 600; color: var(--moss);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em;
}
.hm-link:hover { color: var(--moss-deep); text-decoration-thickness: 2px; }

.hm-btn:focus-visible, .hm-link:focus-visible, .hm-tab:focus-visible, .hm-arrow:focus-visible,
.hm-way:focus-visible, .hm-index__row:focus-visible, .hm-post:focus-visible, .hm-team:focus-visible,
.hm-rail:focus-visible {
  outline: 2px solid var(--clay); outline-offset: 3px;
}

/* --------------------------------------------------------------------- hero */
.hm-hero {
  position: relative; isolation: isolate;
  min-height: 100svh; min-height: max(640px, 100svh);
  display: grid; grid-template-rows: 1fr auto;
  padding-top: var(--header-h);
  color: var(--bone); background: var(--moss-deep);
}
.hm-hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
}
.hm-hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,18,16,.25) 0%, rgba(20,18,16,0) 30%),
    linear-gradient(0deg, rgba(30,42,6,.92) 0%, rgba(30,42,6,.55) 32%, rgba(30,42,6,0) 62%);
}
.hm-hero__body { align-self: end; padding-top: clamp(3rem, 8vh, 6rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); width: 100%; }
.hm-hero__kicker { margin: 0 0 1.1rem; font-size: 15px; font-weight: 500; color: rgba(244,241,232,.85); }
.hm-hero__title {
  font-family: var(--display); font-weight: 400; color: var(--bone);
  font-size: clamp(2.9rem, 6.6vw, 6.4rem); line-height: .98; letter-spacing: -.025em;
  max-width: 15ch; text-wrap: balance;
}
.hm-hero__sub {
  margin: 1.6rem 0 0; max-width: 44ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; color: rgba(244,241,232,.9);
}
.hm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.hm-hero__ways { border-top: 1px solid rgba(244,241,232,.22); background: rgba(20,18,16,.28); backdrop-filter: blur(6px); }
.hm-ways { display: grid; grid-template-columns: repeat(4, 1fr); }
.hm-way {
  display: grid; gap: 3px; padding: 1.25rem 1.25rem 1.35rem;
  color: var(--bone); text-decoration: none;
  border-left: 1px solid rgba(244,241,232,.18);
  transition: background-color .2s;
}
.hm-way:first-child { border-left: 0; padding-left: 0; }
.hm-way:hover { background: rgba(244,241,232,.08); color: #fff; }
.hm-way__name { font-family: var(--display); font-size: 1.45rem; line-height: 1.1; }
.hm-way__note { font-size: 14px; color: rgba(244,241,232,.72); }

/* ------------------------------------------------------------------ welcome */
.hm-intro { padding-block: var(--hm-pad); background: var(--bone); }
.hm-intro__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--hm-gap); align-items: center;
}
.hm-statement {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.12; letter-spacing: -.015em;
  max-width: 20ch; text-wrap: balance;
}
.hm-intro__text > p { margin: 1.8rem 0 0; max-width: 58ch; font-size: 1.08rem; color: var(--ink-soft); }
.hm-intro__photo { margin: 0; }
.hm-intro__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }

.hm-team {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 2.4rem;
  padding: 10px 22px 10px 10px; border: 1px solid var(--rule); border-radius: 999px;
  color: var(--ink); text-decoration: none; background: #fff;
  transition: border-color .2s;
}
.hm-team:hover { border-color: var(--moss); color: var(--ink); }
.hm-team__faces { display: flex; flex-shrink: 0; }
.hm-team__faces img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; margin-left: -12px;
}
.hm-team__faces img:first-child { margin-left: 0; }
.hm-team__text { display: grid; min-width: 0; line-height: 1.3; font-size: 15px; }
.hm-team__text span { color: var(--moss); font-weight: 600; }

/* -------------------------------------------------------------- itineraries */
.hm-trips { padding-block: var(--hm-pad); background: var(--bone-warm); }
.hm-trips__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--hm-gap); align-items: end; margin-bottom: 2.2rem;
}
.hm-trips__head h2, .hm-places h2, .hm-journal h2, .hm-plan h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.4rem); line-height: 1.05; letter-spacing: -.015em;
}
.hm-trips__head p { margin: 0; max-width: 46ch; color: var(--ink-soft); justify-self: end; }

.hm-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--rule);
}
.hm-tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  padding: 12px 4px; margin-right: 22px; margin-bottom: -1px;
  font: 600 16px/1.2 var(--body); color: var(--ink-faint);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.hm-tab:hover { color: var(--ink); }
.hm-tab[aria-selected="true"] { color: var(--moss-deep); border-bottom-color: var(--clay); }

.hm-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 23%, 300px);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: none;
}
.hm-rail::-webkit-scrollbar { display: none; }
.hm-rail > * { scroll-snap-align: start; }
.hm-rail .sp-tour-card:hover { transform: none; }
.hm-rail__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.6rem; }
.hm-rail__nav { display: flex; gap: 8px; }
.hm-arrow {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--ink-faint); color: var(--ink);
  transition: background-color .2s, color .2s;
}
.hm-arrow:hover { background: var(--ink); color: var(--bone); }
.hm-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ------------------------------------------------------------- destinations */
.hm-places { padding-block: var(--hm-pad); background: var(--bone); }
.hm-places__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.hm-dgrid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px);
}
.hm-dcard {
  position: relative; display: block; overflow: hidden; border-radius: 6px;
  aspect-ratio: 4 / 5; background: var(--moss-deep); color: var(--bone); text-decoration: none;
}
.hm-dcard img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.hm-dcard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,18,16,.78) 0%, rgba(20,18,16,.25) 38%, rgba(20,18,16,0) 60%);
}
.hm-dcard__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px 18px 18px; display: grid; gap: 2px; }
.hm-dcard__name { font-family: var(--display); font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.12; }
.hm-dcard__region { font-size: 13.5px; color: rgba(244,241,232,.8); }
.hm-dcard:hover img { transform: scale(1.04); }
.hm-dcard:hover, .hm-dcard:focus-visible { color: #fff; }
.hm-dcard:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ---------------------------------------------------------------- community */
.hm-share {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--moss-deep); color: var(--bone);
}
.hm-share__photo { position: relative; min-height: 420px; }
.hm-share__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-share__text { padding: clamp(3.5rem, 7vw, 7rem) clamp(1.5rem, 6vw, 6rem); max-width: 720px; }
.hm-share h2 {
  color: var(--bone); font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -.02em;
}
.hm-share__lede { margin: 1.5rem 0 0; font-size: 1.15rem; line-height: 1.6; color: rgba(244,241,232,.9); max-width: 52ch; }
.hm-share__facts { list-style: none; margin: 2.2rem 0 2.4rem; padding: 0; display: grid; gap: 1rem; }
.hm-share__facts li {
  padding-left: 1.1rem; border-left: 2px solid var(--clay);
  color: rgba(244,241,232,.82); line-height: 1.55; max-width: 56ch;
}
.hm-share__facts strong { color: var(--bone); font-weight: 700; }

/* ------------------------------------------------------------------ reviews */
.hm-voices { padding-block: var(--hm-pad); background: #fff; }
.hm-voices__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--hm-gap); align-items: start; }
.hm-voices blockquote { margin: 0; }
.hm-voices figure { margin: 0; }
.hm-voices figcaption { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 15px; }
.hm-voices figcaption span { color: var(--ink-faint); }
.hm-voices__lead blockquote p {
  margin: 0; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.22; letter-spacing: -.01em;
}
.hm-voices__lead blockquote p::before { content: "\201C"; }
.hm-voices__lead blockquote p::after  { content: "\201D"; }
.hm-voices__more { display: grid; gap: 1.6rem; }
.hm-voice { padding-bottom: 1.6rem; border-bottom: 1px solid var(--rule); }
.hm-voice blockquote p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

/* ------------------------------------------------------------------- plan */
.hm-plan { padding-block: var(--hm-pad); background: var(--bone-warm); }
.hm-plan__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--hm-gap); align-items: center; }
.hm-steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.4rem; max-width: 52ch; }
.hm-steps li {
  counter-increment: step; position: relative; padding-left: 3.6rem; color: var(--ink-soft); line-height: 1.55;
}
.hm-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.15em;
  font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--clay);
}
.hm-steps strong { color: var(--ink); }
.hm-plan__card { background: var(--bone); padding: clamp(2rem, 4vw, 3rem); border-radius: 2px; }
.hm-plan__card h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.hm-plan__card > p { margin: .8rem 0 1.6rem; color: var(--ink-soft); }
.hm-plan__card .hm-plan__alt { margin: 1.1rem 0 0; font-size: 15px; }
.hm-plan__alt a { color: var(--moss); }

/* ----------------------------------------------------------------- journal */
.hm-journal { padding-block: var(--hm-pad); background: var(--bone); }
.hm-journal__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2.2rem; }
.hm-journal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 32px); }
.hm-post { color: var(--ink); text-decoration: none; display: grid; align-content: start; }
.hm-post img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; margin-bottom: 1rem; }
.hm-post__date { font-size: 14px; color: var(--ink-faint); }
.hm-post h3 { margin-top: .35rem; font-size: 1.4rem; line-height: 1.2; }
.hm-post:hover h3 { color: var(--moss); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .hm-rail { grid-auto-columns: clamp(240px, 38%, 300px); }
  .hm-share { grid-template-columns: 1fr; }
  .hm-share__photo { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) {
  .hm-ways { grid-template-columns: repeat(2, 1fr); }
  .hm-way:nth-child(3) { border-left: 0; padding-left: 0; }
  .hm-way:nth-child(n+3) { border-top: 1px solid rgba(244,241,232,.18); }
  .hm-intro__grid, .hm-trips__head, .hm-voices__grid, .hm-plan__grid { grid-template-columns: 1fr; }
  .hm-trips__head p { justify-self: start; }
  .hm-intro__photo { max-width: 460px; }
  .hm-dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-dcard { aspect-ratio: 1 / 1; }
  .hm-journal__grid { grid-template-columns: 1fr; }
  .hm-post { grid-template-columns: 120px 1fr; column-gap: 16px; }
  .hm-post img { grid-row: span 2; margin: 0; aspect-ratio: 1; }
}
@media (max-width: 560px) {
  .hm-rail { grid-auto-columns: 78%; }
  .hm-hero__actions .hm-btn { flex: 1 1 100%; }
  .hm-way { padding: 1rem .9rem 1.05rem; }
  .hm-way:nth-child(odd) { padding-left: 0; }
  .hm-way__name { font-size: 1.2rem; }
  .hm-way__note { font-size: 13px; }
  .hm-tab { margin-right: 14px; font-size: 15px; }
  .hm-team { border-radius: 14px; gap: 12px; padding-right: 16px; }
  .hm-team__faces img { width: 40px; height: 40px; margin-left: -10px; }
  .hm-hero__img { object-position: 68% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-dcard img { transition: none; }
}
