/* ════════════════════════════════════════
   DESIGN TOKENS (canonical)
════════════════════════════════════════ */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

.surface-hero::after {
  --surface-hero-watermark: "Balades";
}

/* Search overlay */
.search-overlay {
  position: absolute;
  top: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 2.5rem 0 1rem;
  background: var(--surface-primary-background);
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
  pointer-events: none;
}

.search-overlay.open {
  width: min(680px, calc(100vw - 220px));
  opacity: 1;
  pointer-events: auto;
}

.search-overlay-inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.6rem;
}

.search-overlay input {
  flex: 1;
  background: rgba(245, 240, 232, 0.1);
  border: 1px solid rgba(201, 150, 12, 0.3);
  padding: 0.45rem 0.8rem;
  color: var(--background-color);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1rem;
  outline: none;
}

.search-overlay input::placeholder {
  color: rgba(245, 240, 232, 0.4);
}

.search-overlay input:focus {
  border-color: var(--secondary-color);
}

.search-overlay-close {
  background: none;
  border: none;
  color: var(--surface-primary-foreground-muted);
  cursor: pointer;
  padding: 0.3rem;
  font-size: 1.2rem;
  line-height: 1;
}

/* ════════════════════════════════════════
   BREADCRUMB
════════════════════════════════════════ */
.breadcrumb {
  margin-top: var(--header-h);
  padding: 0.7rem 2.5rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-color-muted);
  background: var(--background-color-muted);
  border-bottom: 1px solid var(--surface-primary-foreground-muted);
}

.breadcrumb a {
  color: var(--text-color-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 0.4rem;
  opacity: 0.7;
}

.breadcrumb-current {
  color: var(--text-color);
  font-weight: 500;
}

/* ════════════════════════════════════════
   JUMP LINKS (sticky filter bar)
════════════════════════════════════════ */
.jump-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  background: var(--background-color-muted);
  border-bottom: 1px solid var(--surface-primary-foreground-muted);
  padding: 0 max(4rem, calc(50% - 600px));
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.jump-link {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-color-muted);
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.jump-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 2px;
  background: var(--primary-color-hover);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.jump-link:hover {
  color: var(--text-color);
}

.jump-link.active {
  color: var(--primary-color-hover);
  font-weight: 600;
}

.jump-link.active::after {
  transform: scaleX(1);
}

.jump-bar-count {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-muted);
  white-space: nowrap;
  padding-left: 1rem;
  border-left: 1px solid var(--surface-primary-foreground-muted);
}

/* ════════════════════════════════════════
   SECTION STRUCTURE
════════════════════════════════════════ */
.section {
  padding: 3.5rem 4rem 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2rem;
}

.section-eyebrow {
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--surface-primary-background);
  line-height: 1.25;
}

.section-subtitle {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.08rem;
  color: #3a3228;
  line-height: 1.6;
  margin-top: 0.5rem;
  max-width: 640px;
}

.section-rule {
  width: 60px;
  height: 2px;
  background: var(--secondary-color);
  margin-top: 0.8rem;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--surface-primary-foreground-muted);
  margin: 0;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════
   FEATURED WALKS — large hero cards
════════════════════════════════════════ */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.featured-card {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--background-color);
  transition: transform 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
}

.featured-card-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: sepia(15%) contrast(1.05);
  transition: transform 0.4s ease;
}

.featured-card:hover .featured-card-img {
  transform: scale(1.03);
}

.featured-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top,
      var(--overlay-card-strong) 0%,
      var(--overlay-card-mid)    50%,
      var(--overlay-card-faint)  100%);
}

.featured-card-body {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.featured-card-badge {
  display: inline-block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(201, 150, 12, 0.5);
  color: var(--secondary-color-strong);
  margin-bottom: 0.8rem;
}

.featured-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.featured-card-hook {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.82);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.featured-card-stats {
  display: flex;
  gap: 1.2rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.75);
  letter-spacing: 0.04em;
}

.featured-card-stats span::before {
  display: inline;
  margin-right: 0.3rem;
  opacity: 0.5;
}

/* Span full width for the first featured card */
.featured-card.major {
  grid-column: 1 / -1;
  min-height: 380px;
}

.featured-card.major .featured-card-title {
  font-size: 2rem;
}

.featured-card.major .featured-card-hook {
  font-size: 1.05rem;
  max-width: 560px;
}

/* ════════════════════════════════════════
   CLUSTER SECTION — geographic groups
════════════════════════════════════════ */
.cluster-label {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #302a22;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--surface-primary-foreground-muted);
}

.walk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

/* Standard walk card */
.walk-card {
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.walk-card:hover {
  transform: translateY(-2px);
}

.walk-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  filter: sepia(12%) contrast(1.05);
  border-radius: 2px 2px 0 0;
  position: relative;
  overflow: hidden;
}

.walk-card-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top,
      var(--overlay-card-soft) 0%,
      transparent 100%);
}

.walk-card-arr {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface-primary-background);
  color: var(--background-color);
  padding: 0.2rem 0.5rem;
  border-radius: 1px;
}

.walk-card-part {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--overlay-card-badge);
  color: rgba(245, 240, 232, 0.9);
  padding: 0.2rem 0.5rem;
  border-radius: 1px;
}

.walk-card-body {
  padding: 0.7rem 0.1rem 0.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.walk-card-title {
  font-family: "Playfair Display", serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--surface-primary-background);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.walk-card:hover .walk-card-title {
  color: var(--primary-color);
}

.walk-card-hook {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.85rem;
  font-style: italic;
  color: #352e26;
  line-height: 1.45;
  flex: 1;
}

.walk-card-meta {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-muted);
  letter-spacing: 0.04em;
}

/* Philippe attribution badge */
.walk-card-author {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-color-muted);
  margin-top: 0.3rem;
}

.walk-card-author em {
  font-style: normal;
  color: var(--secondary-color);
}

/* ════════════════════════════════════════
   PHILIPPE TRIBUTE BAND
════════════════════════════════════════ */
.tribute-band {
  background: var(--surface-primary-background);
  border-top: 2px solid var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.tribute-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  color: var(--secondary-color);
}

.tribute-text {
  flex: 1;
}

.tribute-text h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  color: var(--background-color);
  margin-bottom: 0.3rem;
}

.tribute-text p {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.92rem;
  color: rgba(245, 240, 232, 0.82);
  line-height: 1.6;
}

/* ════════════════════════════════════════
   AI GENERATOR CTA
════════════════════════════════════════ */
.generator-cta {
  background: linear-gradient(135deg,
      var(--surface-primary-background) 0%,
      var(--surface-primary-background-alt) 100%);
  border: 1px solid rgba(201, 150, 12, 0.2);
  padding: 3rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}

.generator-cta::before {
  content: "❖";
  position: absolute;
  top: -20px;
  right: 40px;
  font-size: 12rem;
  color: rgba(201, 150, 12, 0.04);
  pointer-events: none;
}

.generator-cta-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(201, 150, 12, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.generator-cta-body {
  flex: 1;
  position: relative;
  z-index: 2;
}

.generator-cta-badge {
  display: inline-block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--surface-primary-background);
  background: var(--secondary-color);
  padding: 0.22rem 0.7rem;
  margin-bottom: 0.8rem;
}

.generator-cta-title {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
  font-style: italic;
  color: var(--background-color);
  margin-bottom: 0.4rem;
}

.generator-cta-desc {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.82);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 1rem;
}

.generator-cta-input {
  display: flex;
  gap: 0;
  max-width: 480px;
}

.generator-cta-input input {
  flex: 1;
  background: rgba(245, 240, 232, 0.1);
  border: 1px solid rgba(201, 150, 12, 0.3);
  border-right: none;
  padding: 0.65rem 1rem;
  color: var(--background-color);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.95rem;
  outline: none;
}

.generator-cta-input input::placeholder {
  color: rgba(245, 240, 232, 0.35);
  font-style: italic;
}

.generator-cta-input input:focus {
  border-color: var(--secondary-color);
}

.generator-cta-input button {
  background: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  color: var(--surface-primary-background);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.generator-cta-input button:hover {
  background: var(--secondary-color-strong);
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 860px) {
  .jump-bar {
    padding: 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .jump-link {
    padding: 0.65rem 0.8rem;
    font-size: 0.72rem;
  }

  .section {
    padding: 2.5rem 1.5rem 2rem;
  }

  .breadcrumb {
    padding: 0.5rem 1.5rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    min-height: 260px;
  }

  .featured-card.major {
    min-height: 280px;
  }

  .featured-card.major .featured-card-title {
    font-size: 1.5rem;
  }

  .walk-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .tribute-band {
    padding: 2rem 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .generator-cta {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
  }

  .generator-cta-input {
    max-width: 100%;
    flex-direction: column;
  }

  .generator-cta-input button {
    padding: 0.65rem;
  }

}

@media (max-width: 480px) {
  .section {
    padding: 2rem 1.25rem 1.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .breadcrumb {
    padding: 0.5rem 1.25rem;
    font-size: 0.72rem;
  }

  .walk-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .walk-card-title {
    font-size: 0.88rem;
  }

  .walk-card-hook {
    font-size: 0.82rem;
  }

  .featured-card {
    min-height: 220px;
  }

  .featured-card-body {
    padding: 1.2rem;
  }

  .featured-card-title {
    font-size: 1.15rem;
  }
}
