/* Path-driven layout · group walks · single global stylesheet */

:root {
  --color-soil: #d7c4b1;
  --color-horizon: #b9c9d6;
  --color-guide: #2d4739;
  --color-guide-soft: rgba(45, 71, 57, 0.88);
  --color-surface: #f6f2ec;
  --color-glass: rgba(255, 255, 255, 0.55);
  --color-primary: #2d4739;
  --color-secondary: #f6f2ec;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --space-xs: 0.35rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.75rem;
  --space-xl: 2.75rem;
  --space-xxl: 4rem;
  --radius-sm: 0.35rem;
  --radius-md: 0.65rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 0.5rem 1.5rem rgba(45, 71, 57, 0.12);
  --shadow-glass: 0 0.25rem 1rem rgba(45, 71, 57, 0.08);
  --transition-fast: 0.25s ease;
  --transition-slow: 0.55s ease;
  --line-path: 2px solid rgba(45, 71, 57, 0.35);
  --max-read: 72rem;
  --photo-hero-h: clamp(9.5rem, 28vw, 15.5rem);
  --photo-tile-max-w: 24rem;
  --photo-tile-max-h: 13.5rem;
  --photo-tile-radius: var(--radius-lg);
  --photo-grid-gap: var(--space-md);
  --contact-column-gap: 150px;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-guide);
  background: var(--color-surface);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-guide);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: #1f3329;
}

a:focus-visible {
  outline: 2px solid var(--color-horizon);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

p {
  margin: 0 0 var(--space-md);
}

ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.2rem;
}

/* Decorative path thread (visual rhythm) */
.trekline-path-thread {
  position: fixed;
  top: 0;
  left: 6%;
  width: 0;
  height: 100%;
  border-left: var(--line-path);
  border-radius: 0;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 1024px) {
  .trekline-path-thread {
    left: 8%;
  }
}

.trekline-skip-link {
  position: absolute;
  left: -999rem;
  top: 0;
  background: var(--color-guide);
  color: var(--color-surface);
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
}

.trekline-skip-link:focus {
  left: var(--space-md);
}

/* Header — non-sticky, creative split */
.trekline-header-shell {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: linear-gradient(165deg, var(--color-glass), transparent 60%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 71, 57, 0.08);
}

.trekline-header-grid {
  width: min(100%, var(--max-read));
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
}

.trekline-brand-anchor {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-guide);
  text-decoration: none;
}

.trekline-brand-anchor:hover {
  text-decoration: none;
  opacity: 0.85;
}

.trekline-nav-desktop {
  display: none;
  flex: 1 1 auto;
}

.trekline-nav-desktop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: flex-end;
}

.trekline-nav-desktop-list a {
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.trekline-nav-desktop-list a:hover,
.trekline-nav-desktop-list a:focus-visible {
  border-bottom-color: rgba(45, 71, 57, 0.35);
}

/* Burger always last in header; hidden from 1024px up */
.trekline-burger-trigger {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(45, 71, 57, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.trekline-burger-trigger:hover {
  background: rgba(255, 255, 255, 0.85);
}

.trekline-burger-bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0 auto;
  background: var(--color-guide);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.trekline-burger-trigger[aria-expanded="true"] .trekline-burger-bar:nth-child(1) {
  transform: translateY(0.5rem) rotate(45deg);
}

.trekline-burger-trigger[aria-expanded="true"] .trekline-burger-bar:nth-child(2) {
  opacity: 0;
}

.trekline-burger-trigger[aria-expanded="true"] .trekline-burger-bar:nth-child(3) {
  transform: translateY(-0.5rem) rotate(-45deg);
}

@media (min-width: 1024px) {
  .trekline-burger-trigger {
    display: none;
  }

  .trekline-nav-desktop {
    display: block;
  }
}

/* Mobile / tablet overlay nav (separate from header bar visually) */
.trekline-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(246, 242, 236, 0.92);
  backdrop-filter: blur(12px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.trekline-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.trekline-nav-overlay-inner {
  width: min(90%, 24rem);
}

.trekline-nav-overlay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  text-align: center;
}

.trekline-nav-overlay-list a {
  font-family: var(--font-display);
  font-size: 1.65rem;
  text-decoration: none;
}

.trekline-nav-overlay-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-guide);
}

/* Main */
.trekline-main-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow-x: hidden;
}

/* Full-width banner shell (100vw) — photo first, compact tile */
.trekline-banner-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--color-horizon);
}

.trekline-banner-visual {
  order: 1;
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: var(--space-md) var(--space-md) var(--space-sm);
  overflow: hidden;
}

.trekline-banner-visual img {
  width: min(92%, 40rem);
  height: var(--photo-hero-h);
  max-height: var(--photo-hero-h);
  object-fit: cover;
  object-position: center;
  border-radius: var(--photo-tile-radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(45, 71, 57, 0.08);
}

.trekline-banner-copy {
  order: 2;
  position: relative;
  z-index: 2;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  max-width: var(--max-read);
  margin: 0 auto;
  width: 100%;
}

.trekline-banner-copy-inner {
  max-width: 38rem;
  margin: 0 auto;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.trekline-banner-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  opacity: 0.85;
}

/* Asymmetrical section grid */
.trekline-section {
  padding: var(--space-xxl) var(--space-md);
}

.trekline-section-muted {
  background: linear-gradient(180deg, var(--color-horizon), transparent);
}

.trekline-section-soil {
  background: linear-gradient(135deg, var(--color-soil), transparent 55%);
}

.trekline-inner {
  width: min(100%, var(--max-read));
  margin: 0 auto;
}

.trekline-split-copy {
  min-width: 0;
  width: 100%;
  max-width: 36rem;
}

.trekline-split-grid {
  display: grid;
  gap: var(--photo-grid-gap) var(--space-xl);
  align-items: start;
  justify-items: center;
}

@media (min-width: 48rem) {
  .trekline-split-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--photo-tile-max-w));
    justify-items: stretch;
    align-items: center;
  }

  .trekline-split-grid .trekline-split-media {
    justify-self: end;
  }

  .trekline-split-grid .trekline-split-copy {
    justify-self: start;
  }

  .trekline-split-grid.is-reversed .trekline-split-copy {
    order: 2;
    justify-self: end;
  }

  .trekline-split-grid.is-reversed .trekline-split-media {
    order: 1;
    justify-self: start;
  }
}

.trekline-split-media {
  width: 100%;
  max-width: var(--photo-tile-max-w);
  max-height: var(--photo-tile-max-h);
  aspect-ratio: 4 / 3;
  border-radius: var(--photo-tile-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(45, 71, 57, 0.08);
  background: var(--color-soil);
}

.trekline-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.trekline-poetic-block {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.trekline-poetic-block p {
  margin-bottom: var(--space-lg);
}

/* Postal log cards */
.trekline-log-board {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .trekline-log-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .trekline-log-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
  }
}

.trekline-log-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid rgba(45, 71, 57, 0.1);
  box-shadow: var(--shadow-glass);
  display: grid;
  gap: var(--space-md);
}

.trekline-log-card .trekline-split-media {
  max-width: 100%;
  max-height: 11.5rem;
  aspect-ratio: 16 / 10;
  margin-inline: 0;
}

.trekline-log-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.trekline-log-meta {
  font-size: 0.85rem;
  opacity: 0.9;
}

.trekline-log-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.trekline-tag-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999rem;
  background: var(--color-soil);
  border: 1px solid rgba(45, 71, 57, 0.12);
}

/* Social pulse indicator */
.trekline-pulse-wrap {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.trekline-pulse-icon {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--color-guide);
  flex-shrink: 0;
}

.trekline-pulse-icon.is-slow {
  animation: treklinePulseSlow 2.4s ease-in-out infinite;
}

.trekline-pulse-icon.is-fast {
  animation: treklinePulseFast 0.65s ease-in-out infinite;
}

@keyframes treklinePulseSlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes treklinePulseFast {
  0%,
  100% {
    transform: scale(1) translateX(0);
    opacity: 0.7;
  }
  25% {
    transform: scale(1.15) translateX(-1px);
    opacity: 1;
  }
  50% {
    transform: scale(0.95) translateX(1px);
    opacity: 0.85;
  }
  75% {
    transform: scale(1.1) translateX(-1px);
    opacity: 1;
  }
}

/* Horizontal timeline */
.trekline-timeline {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 48rem) {
  .trekline-timeline {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.trekline-timeline-step {
  position: relative;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(45, 71, 57, 0.1);
}

.trekline-timeline-step::after {
  content: "";
  display: none;
}

@media (min-width: 48rem) {
  .trekline-timeline-step:not(:last-child)::after {
    display: block;
    position: absolute;
    top: 50%;
    right: -0.65rem;
    width: 1.3rem;
    height: 2px;
    background: rgba(45, 71, 57, 0.25);
    transform: translateY(-50%);
  }
}

.trekline-step-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

/* Products — tight photo grid */
.trekline-product-grid {
  display: grid;
  gap: var(--photo-grid-gap);
  grid-template-columns: 1fr;
}

@media (min-width: 36rem) {
  .trekline-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 56rem) {
  .trekline-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
  }
}

.trekline-product-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(45, 71, 57, 0.1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-glass);
}

.trekline-product-visual {
  aspect-ratio: 4 / 3;
  max-height: 12rem;
  background: var(--color-soil);
}

.trekline-product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trekline-product-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-sm);
}

.trekline-product-price {
  font-weight: 600;
  margin-top: auto;
}

/* Buttons */
.trekline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.trekline-btn-primary {
  background: var(--color-guide);
  color: var(--color-surface);
}

.trekline-btn-primary:hover {
  background: #24382e;
  color: var(--color-surface);
}

.trekline-btn-ghost {
  background: transparent;
  border-color: rgba(45, 71, 57, 0.25);
  color: var(--color-guide);
}

.trekline-btn-ghost:hover {
  border-color: var(--color-guide);
}

/* Contact — wide column split with fixed pixel gap on desktop */
.trekline-contact-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 56rem) {
  .trekline-contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    column-gap: var(--contact-column-gap);
    row-gap: var(--space-lg);
  }
}

.trekline-form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.trekline-field-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.trekline-field-input,
.trekline-field-textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(45, 71, 57, 0.2);
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.85);
}

.trekline-field-textarea {
  min-height: 9rem;
  resize: vertical;
}

.trekline-check-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9rem;
}

.trekline-check-row input {
  margin-top: 0.2rem;
}

.trekline-map-frame {
  width: 100%;
  min-height: 14rem;
  max-height: 18rem;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* Footer */
.trekline-footer-shell {
  margin-top: var(--space-xxl);
  padding: var(--space-xl) var(--space-md);
  background: var(--color-guide-soft);
  color: var(--color-surface);
}

.trekline-footer-inner {
  width: min(100%, var(--max-read));
  margin: 0 auto;
  display: grid;
  gap: var(--space-lg);
}

.trekline-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}

.trekline-footer-nav a {
  color: var(--color-surface);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.trekline-footer-nav a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.trekline-footer-note {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Legal / utility pages */
.trekline-legal-wrap {
  max-width: 48rem;
  margin: 0 auto;
}

.trekline-legal-wrap h2 {
  margin-top: var(--space-xl);
}

.trekline-legal-wrap h2:first-child {
  margin-top: 0;
}

.trekline-date-stamp {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: var(--space-lg);
}

/* Thank you & 404 */
.trekline-simple-card {
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-md);
  text-align: center;
}

.trekline-simple-card .trekline-btn {
  margin-top: var(--space-lg);
}

.trekline-thank-visual {
  max-width: 16rem;
  max-height: 11rem;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}

.trekline-thank-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cookie / consent popup */
.trekline-consent-pop {
  position: fixed;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 200;
  max-width: 28rem;
  margin: 0 auto;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(45, 71, 57, 0.12);
  box-shadow: var(--shadow-soft);
  display: none;
  flex-direction: column;
  gap: var(--space-md);
}

.trekline-consent-pop.is-visible {
  display: flex;
}

.trekline-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Utility */
.trekline-stack-tight {
  margin-bottom: var(--space-sm);
}

.trekline-text-muted {
  font-size: 0.95rem;
  opacity: 0.9;
}

.trekline-icon-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: 0.9rem;
  align-items: center;
}

.trekline-icon-row i {
  color: var(--color-guide);
}

@media (max-width: 47.9375rem) {
  .trekline-section {
    padding-left: max(var(--space-md), 8vw);
    padding-right: var(--space-md);
  }
}
