/* Shared design for all EMD sites. Palette from Central Otago: schist, tussock, river, sunset. */
:root {
  --ink: #17231f;
  --muted: #5b6a63;
  --bg: #f7f4ee;
  --card: #ffffff;
  --line: #e6e0d4;
  --river: #0f5c5a;
  --river-deep: #0a3f3e;
  --tussock: #d9a441;
  --sunset: #c8551e;
  --radius: 1.1rem;
  --shadow: 0 1px 2px rgb(23 35 31 / 6%), 0 8px 28px rgb(23 35 31 / 8%);
  --wrap: 72rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 1.0625rem/1.65 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--river); text-underline-offset: 0.18em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4.5rem 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 650; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; font-weight: 650; margin-bottom: 0.35rem; }
p { margin: 0 0 1rem; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sunset); margin-bottom: 0.75rem;
}
.section-intro { max-width: 42rem; color: var(--muted); font-size: 1.1rem; margin-bottom: 2.25rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(247 244 238 / 88%); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.5rem;
  border-radius: 999px; font-weight: 650; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sunset); color: #fff; box-shadow: 0 6px 18px rgb(200 85 30 / 30%); }
.btn-primary:hover { background: #b34a17; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid currentColor; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Hero */
.hero { padding: 3.5rem 0 4.5rem; background: radial-gradient(60rem 30rem at 85% 10%, rgb(217 164 65 / 22%), transparent 60%); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin-top: 1.25rem; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; left: -0.75rem; bottom: -1rem; background: var(--card); border-radius: var(--radius);
  padding: 0.8rem 1.1rem; box-shadow: var(--shadow); font-size: 0.9rem; line-height: 1.35;
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--river); }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }

/* Fact cards */
.facts-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
@media (min-width: 52rem) { .facts-grid { grid-template-columns: repeat(3, 1fr); } }
.fact { background: var(--card); border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
.fact .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.fact .value { font-weight: 600; margin-top: 0.3rem; }

/* Ride cards */
.rides { background: var(--river-deep); color: #eef4f2; }
.rides h2 { color: #fff; }
.rides .section-intro { color: #b9cfca; }
.rides .eyebrow { color: var(--tussock); }
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.ride {
  display: flex; flex-direction: column; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius); padding: 1.5rem; color: inherit; text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.ride:hover { transform: translateY(-4px); background: rgb(255 255 255 / 10%); border-color: var(--tussock); }
.ride h3 { color: #fff; }
.ride p { color: #c9dbd7; font-size: 0.98rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0.9rem; }
.tag { font-size: 0.78rem; font-weight: 650; padding: 0.22rem 0.65rem; border-radius: 999px; background: rgb(255 255 255 / 12%); color: #fff; }
.tag-easy { background: #2f8f5b; }
.tag-mid { background: #b7791f; }
.tag-only { background: var(--sunset); }
.ride .more { font-weight: 650; color: var(--tussock); }
.ride .more::after { content: " →"; }

/* Split callout */
.callout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52rem) { .callout { grid-template-columns: 1fr 1fr; } }
.tip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.tip-list li { background: var(--card); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); border-left: 4px solid var(--tussock); }
.tip-list strong { display: block; }

/* Steps */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: step; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--river); color: #fff; font-weight: 700; margin-bottom: 0.9rem;
}

/* Tinted band */
.band { background: linear-gradient(135deg, #efe4cc, #f7f4ee); }

/* FAQ */
.faq { max-width: 48rem; }
details { background: var(--card); border-radius: var(--radius); margin: 0 0 0.75rem; box-shadow: var(--shadow); overflow: hidden; }
summary { list-style: none; cursor: pointer; padding: 1.1rem 1.35rem; font-weight: 650; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--sunset); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.35rem 1.1rem; margin: 0; color: var(--muted); }

/* Final CTA */
.cta-band { background: var(--ink); color: #e9efec; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 36rem; margin: 0 auto; color: #b8c4bf; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-ghost { color: #fff; }

/* Footer */
.site-footer { padding: 2rem 0 2.5rem; font-size: 0.92rem; color: var(--muted); }
.site-footer a { color: inherit; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
