/* ==========================================================================
   Barking Zebra Treks: theme layer on top of the shared styles.css
   Palette: Basalt #0B0F12 · Slate #12181C · Steel #6B7D86 · Summit Lime #B6F05C · Snow #EDF1EF · Mist #E4E9E8
   Type: Archivo (expanded display) · Montserrat (text) · Cormorant italic (accents)
   ========================================================================== */
:root {
  --forest: #12181c;
  --forest-2: #1a2227;
  --night: #0b0f12;
  --earth: #5f727c;
  --earth-2: #8798a1;
  --sand: #b6f05c;
  --ivory: #edf1ef;
  --bone: #e4e9e8;
  --charcoal: #161b1f;
  --lime: #b6f05c;
  --ember: #f08a45;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
body { background: var(--bone); }
::selection { background: var(--lime); color: var(--night); }
:focus-visible { outline-color: var(--earth); }
.frame { background: var(--forest-2); }

/* ---------- Typography: expanded grotesk with a serif italic accent ---------- */
.font-display, .display-xl, .display-lg, .display-md, .display-sm, .lede, .menu-link, .footer-mega {
  font-family: var(--display); font-stretch: 112%;
}
.display-xl { font-weight: 300; font-size: clamp(2.9rem, 7.6vw, 8.2rem); line-height: .95; letter-spacing: -0.045em; }
.display-lg { font-weight: 300; font-size: clamp(2.4rem, 5.2vw, 5.4rem); line-height: 1; letter-spacing: -0.04em; }
.display-md { font-weight: 300; font-size: clamp(2rem, 3.7vw, 3.6rem); line-height: 1.06; letter-spacing: -0.035em; }
.display-sm { font-weight: 400; font-size: clamp(1.45rem, 2.1vw, 2.1rem); line-height: 1.15; letter-spacing: -0.025em; }
.display-xl em, .display-lg em, .display-md em, .display-sm em, .footer-mega em {
  font-family: "Cormorant Garamond", Georgia, serif; font-stretch: normal; font-style: italic; font-weight: 300;
  letter-spacing: -0.01em; font-size: 1.08em; color: var(--earth);
}
.on-dark .display-xl em, .on-dark .display-lg em, .on-dark .display-md em, .on-dark .display-sm em, .hero .display-xl em, .footer-mega em { color: var(--lime); }
.lede { font-weight: 300; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.5; letter-spacing: -0.01em; }
.font-display.italic { font-family: "Cormorant Garamond", Georgia, serif; font-stretch: normal; }
.numeral { font-family: var(--display); font-style: normal; font-weight: 400; font-stretch: 112%; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.eyebrow::before { width: 1.6rem; height: 2px; background: var(--lime); opacity: 1; }
.on-dark .eyebrow, .hero .eyebrow { color: var(--ivory); }
.quote { font-size: clamp(1.25rem, 2vw, 1.8rem); }
.menu-link { font-weight: 300; letter-spacing: -0.035em; font-size: clamp(2rem, 4.8vw, 4.2rem); }
.footer-mega { font-weight: 300; letter-spacing: -0.05em; font-size: clamp(2.6rem, 9vw, 9.5rem); }

.card-lux h3, .input, .article-body h2 { font-family: var(--display); font-stretch: 108%; letter-spacing: -0.02em; }
.card-lux h3 { font-weight: 400; font-size: clamp(1.35rem, 1.8vw, 1.7rem); }
.input { font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 6px; font-weight: 600; letter-spacing: .2em; }
.btn--primary { background: var(--night); color: var(--ivory); }
.btn--primary::before { background: var(--forest-2); }
.btn--primary:hover { color: var(--lime); }
.btn--light { background: var(--lime); color: var(--night); }
.btn--light::before { background: var(--ivory); }
.btn--glass { border-color: rgba(237,241,239,.3); background: rgba(237,241,239,.07); }
.btn--glass::before { background: rgba(237,241,239,.14); }
.link-line::after { background: var(--lime) !important; }
.chip, .choice span { border-radius: 6px !important; }
.choice input:checked + span { background: var(--night) !important; color: var(--lime) !important; border-color: var(--night) !important; }

/* ---------- Header + logo lockup ---------- */
.site-header::before { background: color-mix(in srgb, var(--night) 82%, transparent); border-bottom-color: rgba(237,241,239,.06); }
.site-header.is-solid { color: var(--ivory); }
.site-header.is-solid .header-cta { background: var(--lime); color: var(--night); border-color: var(--lime); }
.scroll-progress { background: var(--lime); }
.nav-link::after { width: 14px; height: 2px; border-radius: 0; background: var(--lime); }
.nav-link--ext { display: inline-flex; align-items: center; opacity: .8; }
.tlogo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ivory); }
.tlogo__mark { width: 52px; height: auto; flex: none; }
.tlogo__type { display: flex; flex-direction: column; line-height: 1; font-family: "Montserrat", sans-serif; font-weight: 800; text-transform: uppercase; }
.tlogo__bz { font-size: 10.5px; letter-spacing: .2em; }
.tlogo__k { font-size: 12.5px; letter-spacing: .045em; color: var(--lime); margin-top: 4px; }
.tlogo--lg .tlogo__mark { width: 92px; }
.tlogo--lg .tlogo__bz { font-size: 15px; }
.tlogo--lg .tlogo__k { font-size: 18px; margin-top: 6px; }
@media (min-width: 768px) { .tlogo__mark { width: 64px; } .tlogo__bz { font-size: 12px; } .tlogo__k { font-size: 14.5px; } }
@media (max-width: 479px) { .tlogo__mark { width: 42px; } .tlogo__bz { font-size: 9px; } .tlogo__k { font-size: 10.5px; } }

/* ---------- Light & glow ---------- */
.orb--sun   { background: radial-gradient(circle, rgba(240,138,69,.6), rgba(240,138,69,0) 70%); }
.orb--sand  { background: radial-gradient(circle, rgba(190,214,220,.9), rgba(190,214,220,0) 70%); }
.orb--earth { background: radial-gradient(circle, rgba(80,104,118,.7), rgba(80,104,118,0) 70%); }
.orb--leaf  { background: radial-gradient(circle, rgba(182,240,92,.3), rgba(182,240,92,0) 70%); }
.hero__veil { background:
  linear-gradient(180deg, rgba(11,15,18,.6) 0%, rgba(11,15,18,.05) 32%, rgba(11,15,18,.18) 58%, rgba(11,15,18,.86) 100%),
  radial-gradient(120% 80% at 15% 100%, rgba(11,15,18,.72), transparent 60%),
  linear-gradient(rgba(11,15,18,.18), rgba(11,15,18,.18)); }
.card-overlay { background: linear-gradient(180deg, transparent 38%, rgba(11,15,18,.86)); }
.glass { background: rgba(11,15,18,.32); border-color: rgba(237,241,239,.16); }
.glass-light { background: rgba(240,244,243,.78); }
.bg-noise-dark { background: radial-gradient(120% 90% at 80% 0%, #1c262d 0%, var(--night) 55%); }
.preloader { background: var(--night); }

/* Topographic contour lines (replace the safari site's organic shapes) */
.topo { position: absolute; inset: 0; pointer-events: none; background-repeat: no-repeat; background-size: cover; background-position: center; }
.topo--light { background-image: url("../img/topo-dark-lines.svg"); opacity: .07; }
.topo--dark, .topo--footer { background-image: url("../img/topo-light-lines.svg"); opacity: .06; }
.topo--hero { background-image: url("../img/topo-light-lines.svg"); opacity: .08; mix-blend-mode: screen; z-index: 1; -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000); mask-image: linear-gradient(180deg, transparent 30%, #000); }

/* Peak-shaped frame: a quiet summit silhouette on image tops */
.frame--peak { border-radius: 4px; clip-path: polygon(0 3.5%, 50% 0, 100% 3.5%, 100% 100%, 0 100%); }
.dest-card .frame--peak { clip-path: polygon(0 4.5%, 50% 0, 100% 4.5%, 100% 100%, 0 100%); }
.frame--soft { border-radius: 8px; }
.card-lux .frame { border-radius: 4px; }
.route-tag { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .7rem; border-radius: 4px; background: var(--lime); color: var(--night); font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- Altitude meter ---------- */
.alt-meter { position: fixed; right: clamp(.9rem, 1.6vw, 2rem); top: 50%; transform: translateY(-50%); z-index: 30; display: none; flex-direction: column; align-items: center; gap: .8rem; color: var(--ivory); mix-blend-mode: difference; pointer-events: none; opacity: 0; transition: opacity .6s; }
.alt-meter.is-visible { opacity: 1; }
@media (min-width: 1280px) { .alt-meter { display: flex; } }
.alt-meter__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; opacity: .7; }
.alt-meter__track { position: relative; width: 2px; height: 22vh; background: rgba(255,255,255,.25); }
.alt-meter__track i { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; background: #fff; transform-origin: bottom; transform: scaleY(var(--alt, 0)); }
.alt-meter__val { font-family: var(--display); font-stretch: 112%; font-size: 11px; letter-spacing: .04em; white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); }
.alt-meter__val b { font-weight: 500; font-variant-numeric: tabular-nums; }
body.menu-open .alt-meter { opacity: 0; }

/* ---------- Home: stats ---------- */
.stat { padding: 2.4rem 1.5rem 0 0; }
.stat + .stat { padding-left: 0; }
@media (min-width: 1024px) { .stat { padding: 2.8rem 2rem 0 0; border-right: 1px solid rgba(22,27,31,.1); } .stat + .stat { padding-left: 2rem; } .stat:last-child { border-right: 0; } }
.stat__n { display: flex; align-items: baseline; gap: .2rem; font-family: var(--display); font-stretch: 118%; font-weight: 200; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--forest); }
.stat__n small { font-size: .35em; font-weight: 500; letter-spacing: 0; color: var(--earth); }
.stat p { margin-top: .9rem; font-size: 13.5px; line-height: 1.6; color: rgba(22,27,31,.66); max-width: 15rem; }

/* ---------- Routes ---------- */
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.compare th { text-align: left; font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--earth); padding: 0 1rem 1rem 0; border-bottom: 1px solid rgba(22,27,31,.2); }
.compare td { padding: 1.35rem 1rem 1.35rem 0; border-bottom: 1px solid rgba(22,27,31,.1); color: rgba(22,27,31,.75); vertical-align: middle; }
.compare td:first-child a { font-family: var(--display); font-stretch: 112%; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--forest); }
.compare td.num { font-family: var(--display); font-stretch: 112%; font-size: 1.15rem; color: var(--forest); }
.compare__go { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; border: 1px solid rgba(22,27,31,.18); transition: background .4s, color .4s; }
.compare__go svg { width: 16px; }
.compare tr:hover .compare__go { background: var(--night); color: var(--lime); border-color: var(--night); }
.route-days { display: inline-flex; align-items: baseline; gap: .5rem; font-family: var(--display); font-stretch: 125%; font-weight: 200; font-size: clamp(4rem, 7vw, 6.5rem); line-height: .85; letter-spacing: -0.05em; color: var(--forest); }
.route-days small { font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--earth); }

.elev-wrap { padding: 1.25rem 1rem .5rem; border-radius: 8px; background: var(--night); color: var(--lime); }
.elev { width: 100%; height: auto; overflow: visible; }
.elev__grid line { stroke: rgba(237,241,239,.08); stroke-width: 1; }
.elev__grid text { fill: rgba(237,241,239,.4); font-size: 15px; font-family: "Montserrat", sans-serif; }
.elev__area { opacity: 0; transition: opacity 1.4s var(--ease-out) .8s; }
.elev__line { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.65,0,.35,1) .2s; }
.elev__dots circle { fill: var(--night); stroke: var(--ivory); stroke-width: 2; opacity: 0; transition: opacity .5s calc(.4s + var(--i) * 140ms); }
.elev__dots circle.peak { fill: var(--lime); stroke: var(--lime); }
.elev__peak { fill: var(--ivory); font-size: 15px; font-weight: 600; letter-spacing: .14em; font-family: "Montserrat", sans-serif; opacity: 0; transition: opacity .8s 2s; }
.is-in .elev__line { stroke-dashoffset: 0; }
.is-in .elev__area, .is-in .elev__dots circle, .is-in .elev__peak { opacity: 1; }

.day { border-top: 1px solid rgba(22,27,31,.12); }
.day:last-of-type { border-bottom: 1px solid rgba(22,27,31,.12); }
.day summary { list-style: none; display: grid; grid-template-columns: 2.6rem 1fr auto 1.4rem; align-items: center; gap: 1rem; padding: 1.25rem 0; cursor: pointer; }
.day summary::-webkit-details-marker { display: none; }
.day__n { font-size: 1rem; color: var(--earth); }
.day__t { font-family: var(--display); font-stretch: 108%; font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -0.02em; line-height: 1.25; color: var(--forest); }
.day__m { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--earth); white-space: nowrap; }
.day__plus { position: relative; width: 14px; height: 14px; }
.day__plus::before, .day__plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.day__plus::after { transform: rotate(90deg); }
.day[open] .day__plus::after { transform: rotate(0); }
.day[open] summary .day__t { color: var(--night); }
.day__body { padding: 0 0 1.6rem 3.6rem; font-size: 14.5px; line-height: 1.8; color: rgba(22,27,31,.75); }
.day__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-bottom: .6rem; color: var(--earth); font-size: 9.5px; }
@media (max-width: 639px) { .day summary { grid-template-columns: 2rem 1fr 1.2rem; } .day__m { display: none; } .day__body { padding-left: 3rem; } }

/* ---------- The climb ---------- */
.ticks { display: grid; gap: .1rem; }
.ticks li { position: relative; padding: .95rem 0 .95rem 2.2rem; border-top: 1px solid rgba(22,27,31,.1); font-size: 15px; color: rgba(22,27,31,.82); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 14px; height: 8px; border-left: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: rotate(-45deg); }
.kit { background: rgba(237,241,239,.12); border: 1px solid rgba(237,241,239,.12); border-radius: 8px; overflow: hidden; }
.kit > div { background: var(--forest); padding: 1.6rem 1.5rem; display: flex; gap: 1.1rem; align-items: baseline; }
.kit .numeral { color: var(--lime); font-size: 13px; }
.kit p { font-size: 15px; color: rgba(237,241,239,.88); }
.evac { counter-reset: ev; display: grid; gap: 1.1rem; }
.evac li { counter-increment: ev; position: relative; padding-left: 3.4rem; color: rgba(237,241,239,.78); font-size: 15px; line-height: 1.75; }
.evac li::before { content: counter(ev, decimal-leading-zero); position: absolute; left: 0; top: .1rem; width: 2.3rem; height: 2.3rem; border-radius: 6px; display: grid; place-items: center; background: rgba(182,240,92,.12); color: var(--lime); font-family: var(--display); font-size: 13px; }

/* ---------- Plan ---------- */
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.months .m { position: relative; height: clamp(110px, 16vw, 190px); border-radius: 6px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: .9rem; overflow: hidden; }
.months .m span { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.m--best { background: var(--night); color: var(--lime); }
.m--good { background: #5f727c; color: var(--ivory); height: clamp(90px, 13vw, 150px) !important; align-self: end; }
.m--avoid { background: transparent; border: 1px dashed rgba(22,27,31,.3); color: rgba(22,27,31,.5); height: clamp(60px, 8vw, 90px) !important; align-self: end; }
.months { align-items: end; }
@media (max-width: 639px) { .months { gap: 3px; } .months .m span { font-size: 8.5px; letter-spacing: .08em; } }
.key { display: inline-flex; align-items: center; gap: .6rem; }
.key::before { content: ""; width: 14px; height: 14px; border-radius: 3px; }
.key--best::before { background: var(--night); }
.key--good::before { background: #5f727c; }
.key--avoid::before { border: 1px dashed rgba(22,27,31,.4); }
.zones .step-item { padding: 3.2rem 0; border-top: 1px solid rgba(237,241,239,.12); opacity: .35; transition: opacity .7s var(--ease-out); }
.zones .step-item.is-active { opacity: 1; }
@media (max-width: 1023px) { .zones .step-item { opacity: 1; } }
@media (min-width: 1024px) { .zones .step-item { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; } }
.zone__alt { font-family: var(--display); font-stretch: 112%; font-size: 13px; letter-spacing: .08em; color: var(--lime); }
.zone-alt { position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 3; padding: .55rem .9rem; border-radius: 6px; background: rgba(11,15,18,.7); backdrop-filter: blur(10px); font-family: var(--display); font-stretch: 112%; font-size: 1.05rem; color: var(--lime); }
.zone-alt .step-counter { height: 1.1em; line-height: 1.1; }
.tips { background: rgba(22,27,31,.1); border-radius: 8px; overflow: hidden; }
.tips > div { background: var(--ivory); padding: 2rem 1.7rem; }

/* ---------- Mobile tidy ---------- */
@media (max-width: 1023px) { .stat:nth-child(odd) { border-right: 1px solid rgba(22,27,31,.1); padding-right: 1rem; } .stat:nth-child(even) { padding-left: 1.2rem; } }

/* ---------- Preloader: KILIMANJARO line of the Treks logo ---------- */
.pl-kili { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 26px; fill: var(--lime); }
.pl-kili tspan { opacity: 0; animation: kiliIn .7s cubic-bezier(.22,1,.36,1) forwards; animation-delay: calc(1.95s + var(--i) * 55ms); }
@keyframes kiliIn { from { opacity: 0; fill: var(--ivory); } to { opacity: 1; fill: var(--lime); } }
.preloader__tag { color: var(--ivory) !important; opacity: .0; }

/* Menu sub-links in the Treks typeface */
.menu-sublink { font-family: var(--display); font-stretch: 108%; font-weight: 300; font-size: clamp(1rem, 1.25vw, 1.2rem); letter-spacing: -0.01em; }
.menu-sublink:hover, .menu-sublink:focus-visible, .menu-sublink[aria-current="page"] { font-style: normal; }
