/* Main site additions. Base tokens, fonts, buttons, header, legal styles come from /course/styles.css. */

/* ---------- navigation ---------- */
.mainnav .wrap { gap: 20px; }
.nav-links { display: none; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--forest); padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav-links a:not(.btn):hover { border-color: var(--bordeaux); }
.nav-links a[aria-current="page"] { color: var(--bordeaux); border-color: var(--bordeaux); }
.burger { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--forest); cursor: pointer; position: relative; flex: none; transition: background .2s; }
.burger:hover { background: var(--forest-dark); }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }
.menu-panel {
  position: fixed; inset: 0; z-index: 25; background: var(--cream); padding: 110px 28px 40px;
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.menu-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.menu-panel a:not(.btn) { font: 500 2.1rem/1.2 var(--serif); color: var(--forest); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu-panel a[aria-current="page"] { color: var(--bordeaux); }
.menu-panel .btn { margin-top: 26px; align-self: stretch; }
.menu-panel .menu-foot { margin-top: auto; padding-top: 28px; font-size: .9rem; color: var(--muted); }
body.menu-open { overflow: hidden; }
.mainnav { z-index: 40; }
.menu-open .mainnav { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- hero (full screen) ---------- */
.hero-full { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; color: var(--cream); margin-top: -82px; overflow: hidden; background: var(--forest); }
.hero-full__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 60%; transform-origin: 50% 70%; animation: kenburns 14s var(--ease) both; filter: saturate(1.08) brightness(1.06); }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #1f3d2a 0, #1f3d2a 86px, rgba(31, 61, 42, .84) 124px, rgba(31, 61, 42, .5) 34%, rgba(31, 61, 42, .12) 52%, rgba(31, 61, 42, 0) 68%, rgba(31, 61, 42, .3) 100%); }
.hero-full .wrap { position: relative; z-index: 2; width: 100%; padding-top: 122px; padding-bottom: 40px; }
.hero-full h1 { color: var(--cream); font-size: clamp(1.9rem, 6.2vw, 3.5rem); max-width: 19em; margin-bottom: 14px; text-shadow: 0 2px 26px rgba(0, 0, 0, .35); }
.hero-full .tag { font-size: 1.05rem; max-width: 30em; opacity: .96; margin-bottom: 22px; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.hero-full .cta { display: flex; flex-direction: column; gap: 12px; }
.btn--outline-light { background: transparent; color: var(--cream); border-color: rgba(249, 245, 238, .75); }
.btn--outline-light:hover { background: var(--cream); color: var(--forest); }
.hero-in2 { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@media (min-width: 900px) {
  .hero-full { margin-top: -96px; }
  .hero-full__img { object-position: 50% 62%; }
  .hero-full .wrap { padding-top: 150px; }
  .hero-full .cta { flex-direction: row; }
}
@media (max-width: 899px) { .hero-full .cta .btn { width: 100%; } }

/* ---------- two paths ---------- */
.paths { display: grid; gap: 22px; margin-top: 34px; }
.path { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.path:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.path__img { aspect-ratio: 3 / 2; overflow: hidden; }
.path__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.path:hover .path__img img { transform: scale(1.05); }
.path__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.path__body h3 { margin-bottom: 8px; }
.path__body p { color: var(--muted); }
.path__body .more { margin-top: auto; font-weight: 700; color: var(--bordeaux); display: inline-flex; align-items: center; gap: 8px; }
.path__body .more svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.path:hover .more svg { transform: translateX(4px); }
.badge-new { display: inline-block; align-self: flex-start; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; background: var(--bordeaux); color: var(--cream); padding: 3px 10px; border-radius: 99px; margin-bottom: 12px; }

/* ---------- features ---------- */
.features { display: grid; gap: 22px; margin-top: 34px; }
.feature { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; }
.feature__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.feature__icon svg { width: 30px; height: 30px; stroke: var(--bordeaux); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature b { font: 500 1.35rem var(--serif); color: var(--forest); display: block; line-height: 1.2; }

/* ---------- riders ---------- */
.riders { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.rider { margin: 0; }
.rider .frame { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.rider img { width: 100%; height: 100%; object-fit: cover; }
.rider figcaption { margin-top: 12px; line-height: 1.3; }
.rider figcaption b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--forest); }
.rider figcaption span { font-size: .86rem; color: var(--muted); }

/* ---------- calls to action ---------- */
.band { background: var(--forest); color: var(--cream); text-align: center; padding: 64px 0; }
.band h2 { color: var(--cream); max-width: 18em; margin: 0 auto 14px; }
.band p { max-width: 34em; margin: 0 auto 26px; opacity: .92; }
.band .cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 380px; margin: 0 auto; }

/* ---------- page heads ---------- */
.page-head { padding: 34px 0 10px; }
.page-head h1 { margin-bottom: 14px; }
.page-head .lead { max-width: 36em; }

/* ---------- steps ---------- */
.steps2 { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid #d3c9b9; }
.steps2 li { display: grid; grid-template-columns: 46px 1fr; gap: 6px; padding: 22px 0; border-bottom: 1px solid #d3c9b9; }
.steps2 .n { font-family: var(--serif); font-size: 2.2rem; color: var(--bordeaux); line-height: 1; }
.steps2 h3 { margin-bottom: 4px; }
.steps2 p { margin: 0; color: var(--muted); }

/* ---------- options ---------- */
.options { display: grid; gap: 22px; margin-top: 32px; }
.option { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; display: flex; flex-direction: column; }
.option--main { border: 2px solid var(--bordeaux); }
.option h3 { margin-bottom: 4px; }
.option .price { font: 500 2.9rem/1 var(--serif); color: var(--forest); margin: 14px 0 4px; }
.option .price small { font: 400 1rem var(--sans); color: var(--muted); }
.option .sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.option .dash-list { flex: 1; margin-bottom: 22px; }
.promises { display: grid; gap: 12px; margin-top: 26px; }
.promise { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.promise svg { width: 24px; height: 24px; stroke: var(--forest); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

/* ---------- tour dates ---------- */
.dates { display: grid; gap: 12px; margin-top: 26px; }
.date { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.date b { font: 600 1.25rem var(--serif); color: var(--forest); display: block; line-height: 1.2; }
.date .when { color: var(--muted); font-size: .92rem; }
.date .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.chip2 { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #d9e6d6; color: var(--forest-dark); }
.chip2--full { background: #eadfd0; color: var(--muted); }
.chip2--sample { background: #fff3b0; color: #4a3b00; }
.dates__empty { background: var(--white); border: 1px dashed #cfc5b4; border-radius: 12px; padding: 22px; color: var(--muted); }
.dates__note { font-size: .88rem; color: var(--muted); margin-top: 12px; }

/* ---------- contact / forms ---------- */
.contact-list { display: grid; gap: 14px; margin-top: 28px; }
.contact-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.contact-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-item .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.contact-item svg { width: 24px; height: 24px; stroke: var(--bordeaux); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-item span { display: block; font-size: .82rem; color: var(--muted); }
.contact-item b { font-size: 1.05rem; word-break: break-word; }

/* ---------- about ---------- */
.about2 { display: grid; gap: 36px; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; border-left: 2px solid var(--bordeaux); }
.timeline li { position: relative; padding: 0 0 26px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--cream); border: 2px solid var(--bordeaux); }
.timeline b { font: 600 1.3rem var(--serif); color: var(--forest); display: block; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--ink); }
.pull { font: 500 clamp(1.5rem, 5vw, 2rem)/1.3 var(--serif); color: var(--forest); border-left: 3px solid var(--bordeaux); padding: 4px 0 4px 20px; margin: 28px 0; }

/* ---------- footer ---------- */
.foot { background: var(--forest); color: var(--cream); padding: 56px 0 30px; }
.foot .wrap { display: grid; gap: 28px; }
.foot img { height: 70px; width: auto; filter: brightness(0) invert(1); }
.foot a { color: var(--cream); text-decoration: none; opacity: .92; }
.foot a:hover { text-decoration: underline; }
.foot nav { display: grid; gap: 8px; }
.foot h4 { font: 700 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin: 0 0 10px; }
.foot .small { color: rgba(249, 245, 238, .7); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .menu-panel { display: none; }
  .hero-full { margin-top: -96px; }
  .hero-full .cta { flex-direction: row; }
  .paths { grid-template-columns: 1fr 1fr; gap: 28px; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .feature { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 12px; }
  .riders { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .options { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about2 { grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
  .contact-list { grid-template-columns: 1fr 1fr; }
  .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr; }
  .band .cta { flex-direction: row; max-width: none; justify-content: center; }
  .band .cta .btn { width: auto; }
}
@media (max-width: 899px) { .hero-full .cta .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-full__img, .hero-in2 { animation: none; } .menu-panel { transition: none; } }

/* header over the full-bleed hero: light text until the page is scrolled */
.has-hero .mainnav:not(.is-stuck) .brand img { filter: brightness(0) invert(1); }
.has-hero .mainnav:not(.is-stuck) .nav-links a:not(.btn) { color: var(--cream); }
.has-hero .mainnav:not(.is-stuck) .nav-links a[aria-current="page"] { border-color: var(--cream); color: var(--cream); }
.has-hero .mainnav:not(.is-stuck) .burger { background: rgba(249, 245, 238, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.has-hero.menu-open .mainnav .brand img { filter: none; }
.has-hero.menu-open .mainnav .burger { background: var(--forest); }

/* childhood photo inside the timeline */
.timeline li::after { content: ""; display: block; clear: both; }
.tl-photo { float: right; width: 104px; height: auto; border-radius: 8px; margin: 2px 0 8px 16px; box-shadow: var(--shadow); }
.tl-photo--bw { filter: grayscale(1) contrast(1.05); }
@media (min-width: 900px) { .tl-photo { width: 132px; margin-left: 22px; } }

/* Starting Tour page head: text left, photo right (stacked on phones) */
.tour-head { display: grid; gap: 34px; align-items: center; }
.tour-photo { max-width: 400px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .tour-head { grid-template-columns: 1.15fr .85fr; gap: 64px; } .tour-photo { max-width: 420px; margin: 0 0 0 auto; } }

/* hero framing: desktop keeps the whole picture full screen; phones show the photo in the lower part so nobody is cut off */
@media (min-width: 900px) { .hero-full__img { object-position: 50% 44%; } }
@media (max-width: 899px) {
  .hero-full__img {
    top: auto; bottom: 0; height: 68%; object-position: 32% 50%; transform-origin: 40% 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
  }
  .hero-full::after { background: linear-gradient(180deg, rgba(20, 42, 29, .25) 0%, rgba(20, 42, 29, 0) 20%, rgba(20, 42, 29, 0) 78%, rgba(20, 42, 29, .3) 100%); }
}

/* laptop and desktop: compact text block (two lines) so it always stays above the people in the photo */
@media (min-width: 900px) {
  .hero-full .wrap { padding-top: 112px; }
  .hero-full h1 { font-size: clamp(2.1rem, 3.3vw, 3.3rem); max-width: 26em; margin-bottom: 12px; }
  .hero-full .tag { max-width: 46em; margin-bottom: 20px; }
}

/* flags */
.flag { display: inline-block; width: 22px; height: 15px; border-radius: 2px; vertical-align: -2px; margin-right: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); object-fit: cover; }
.riders .flag { margin-right: 7px; }
@media (max-width: 899px) { .rider:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; } }
@media (min-width: 900px) { .riders { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
.rider figcaption img.flag, .date b img.flag { width: 22px; height: 15px; }
.rider figcaption span { display: flex; align-items: center; flex-wrap: nowrap; }

/* ---------- hero v2: natural photo, soft beige fade instead of the green band ---------- */
.hero-full { background: #f9f5ee; color: var(--forest); }
.hero-full__img { filter: none; }
.hero-full::after { background: linear-gradient(180deg, #f9f5ee 0, #f9f5ee 82px, rgba(249, 245, 238, .95) 150px, rgba(249, 245, 238, .82) 26%, rgba(249, 245, 238, .5) 40%, rgba(249, 245, 238, .16) 54%, rgba(249, 245, 238, 0) 64%); }
.hero-full h1 { color: var(--forest); text-shadow: none; }
.hero-full .tag { color: #3a3631; text-shadow: none; opacity: 1; }
.hero-full .btn--outline-light { background: rgba(249, 245, 238, .92); color: var(--forest); border-color: var(--forest); }
.hero-full .btn--outline-light:hover { background: var(--forest); color: var(--cream); }
/* phones: the headline and the line below sit on the pale sky of the photo; the buttons sit on the trees */
@media (max-width: 899px) {
  .hero-full::after { display: none; }
  .hero-full__img { height: 76%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 17%); mask-image: linear-gradient(to bottom, transparent 0, #000 17%); }
  .hero-full .tag { color: #2f2b27; text-shadow: none; margin-top: 22px; }
}
/* smaller phones (about 360 x 740 and below): slightly smaller text and a lower photo, so the lines stay on the sky and out of the trees */
@media (max-width: 899px) and (max-height: 780px), (max-width: 380px) {
  .hero-full .wrap { padding-top: 98px; }
  .hero-full h1 { font-size: 1.72rem; line-height: 1.16; margin-bottom: 10px; }
  .hero-full .tag { font-size: .95rem; line-height: 1.45; margin-top: 8px; margin-bottom: 18px; }
  .hero-full__img { height: 70%; }
}
@media (max-width: 899px) and (max-height: 640px) { .hero-full__img { height: 64%; } .hero-full .cta { gap: 9px; } }
/* shown only if an email button did not open an email app */
.mail-help { display: block; flex-basis: 100%; margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); color: var(--ink, #2a2522); font-size: .92rem; line-height: 1.5; }
.mail-help b { word-break: break-all; }
.mail-help button { margin-left: 4px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--forest); background: transparent; color: var(--forest); font: inherit; font-weight: 700; cursor: pointer; }
.mail-help button:hover { background: var(--forest); color: var(--cream); }

/* ---------- home hero: the photo, with the text resting on its lower part ---------- */
.hero-c { position: relative; display: flex; align-items: flex-end; min-height: calc(100svh - 96px); background: #2b2824; color: var(--cream); overflow: hidden; }
.hero-c__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.hero-c::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 21, 18, 0) 34%, rgba(24, 21, 18, .6) 66%, rgba(24, 21, 18, .86) 100%); }
.hero-c .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 44px; }
.hero-c h1 { color: var(--cream); font-size: clamp(1.9rem, 5.4vw, 3rem); line-height: 1.1; max-width: 17em; margin-bottom: 12px; text-shadow: 0 2px 24px rgba(0, 0, 0, .4); }
.hero-c .tag { max-width: 32em; margin-bottom: 22px; opacity: .96; text-shadow: 0 1px 14px rgba(0, 0, 0, .4); }
.hero-c .cta { display: flex; flex-direction: column; gap: 12px; }
.hero-c .btn--ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(249, 245, 238, .8); }
.hero-c .btn--ghost:hover { background: var(--cream); color: var(--forest); }
.hero-intro { display: none; }
@media (min-width: 900px) { .hero-c .cta { flex-direction: row; } }
/* phone: no zoom (the horse and the rider stay in the frame), a smaller title, and the explanation moves just below the photo */
@media (max-width: 899px) {
  .hero-c { display: block; min-height: 0; height: 560px; }
  .hero-c__img { bottom: auto; height: 350px; object-position: 40% 0%; }
  .hero-c::after { bottom: auto; height: 350px; background: linear-gradient(180deg, rgba(43, 40, 36, 0) 52%, #2b2824 100%); }
  .hero-c .wrap { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 28px; }
  .hero-c h1 { font-size: 1.55rem; line-height: 1.15; margin-bottom: 18px; }
  .hero-c .tag { display: none; }
  .hero-c .cta .btn { width: 100%; min-height: 48px; font-size: .95rem; }
  .hero-intro { display: block; background: var(--cream); padding: 30px 0 8px; text-align: center; }
  .hero-intro p { margin: 0 auto; max-width: 28em; font-size: 1.08rem; color: var(--muted); }
}
