/* =========================================================================
   Steppe Riders — design tokens (minimal / light)
   ========================================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-dim: #6e6e73;
  --line: #d2d2d7;
  --accent: #a8562b;
  --accent-bright: #8f4823;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1200px;
  --gap: 1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-dim); font-weight: 400; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--gap); margin-bottom: 2.5rem;
}
.section-head__link { color: var(--accent); font-weight: 600; white-space: nowrap; }
.section-head__link:hover { color: var(--accent-bright); }

/* Buttons */
.btn {
  display: inline-block; padding: 0.9rem 2rem; font-family: var(--font);
  font-weight: 600; font-size: 0.95rem; border-radius: 999px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--accent); color: #ffffff; }
.btn--primary:hover { background: var(--accent-bright); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink-dim); }

/* Header & nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.9rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav__cta {
  background: var(--accent); color: #ffffff !important;
  padding: 0.55rem 1.25rem; border-radius: 999px; font-weight: 600;
}
.nav__cta:hover { background: var(--accent-bright); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); }

/* Hero — now with a real background photo + dark scrim for legible white text */
.hero {
  position: relative; min-height: 80vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden; text-align: center;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__placeholder {
  position: relative;
  width: 100%; height: 100%;
  background-color: #2b2319;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.60) 100%);
}
.hero__content {
  position: relative; z-index: 1; max-width: 720px; margin: 0 auto;
  padding: 6rem 1.5rem; animation: hero-rise 0.9s ease both;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__headline { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; margin-bottom: 0.5em; color: #ffffff; }
.hero__sub { max-width: 42ch; margin: 0 auto; color: rgba(255,255,255,0.88); font-size: 1.15rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero .btn--ghost { color: #ffffff; border-color: rgba(255,255,255,0.6); }
.hero .btn--ghost:hover { border-color: #ffffff; }

/* Statement band */
.statement { max-width: 760px; margin: 0 auto; padding: 5rem 1.5rem; text-align: center; }
.statement__text { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 500; color: var(--ink); line-height: 1.5; letter-spacing: -0.01em; }

/* Tours preview / listing grids */
.tours-preview { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.tour-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.tour-card {
  background: var(--bg); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tour-card:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.08), 0 16px 32px rgba(0,0,0,0.06); }
.tour-card__media {
  aspect-ratio: 4 / 3;
  background-color: #e4e4e8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tour-card__body { padding: 1.5rem; }
.tour-card__meta { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 0.75rem; }
.tour-card__link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.tour-card__link:hover { color: var(--accent-bright); }

/* Why ride */
.why { background: var(--bg-alt); padding: 5rem 1.5rem; }
.why h2 { max-width: var(--max-width); margin: 0 auto 2.5rem; text-align: center; }
.why-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
.why-item { text-align: left; }
.why-item h3 { margin-bottom: 0.4em; }

/* Mongolia visual — real photo + dark scrim for the caption */
.mongolia-visual { position: relative; display: grid; min-height: 55vh; }
.mongolia-visual__placeholder {
  grid-area: 1 / 1;
  position: relative;
  background-color: #2b2319;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.mongolia-visual__placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 100%);
}
.mongolia-visual__caption {
  grid-area: 1 / 1; align-self: center; text-align: center;
  max-width: var(--max-width); margin: 0 auto; width: 100%; padding: 3rem 1.5rem;
  position: relative; z-index: 1;
}
.mongolia-visual__caption h2 { max-width: 20ch; margin-left: auto; margin-right: auto; color: #ffffff; }
.mongolia-visual__caption p { max-width: 44ch; margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.85); }

/* Photography */
.photography { max-width: var(--max-width); margin: 0 auto; padding: 5rem 1.5rem; text-align: center; }
.photography__intro { max-width: 50ch; margin: 0 auto; }
.photography-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; margin-top: 2.5rem; text-align: left; }
.photography-item {
  aspect-ratio: 1;
  border-radius: 14px;
  background-color: #e4e4e8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* CTA block */
.cta-block { text-align: center; max-width: 700px; margin: 0 auto; padding: 5rem 1.5rem 6rem; }
.cta-block p { max-width: 50ch; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.5rem 2rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem;
}
.site-footer__name { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; }
.site-footer__tag { margin: 0; }
.site-footer__links, .site-footer__social { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.site-footer__links a:hover, .site-footer__social a:hover { color: var(--accent); }
.site-footer__base {
  max-width: var(--max-width); margin: 0 auto; padding: 1rem 1.5rem 2rem;
  border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-dim);
}

/* Responsive */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.5rem 1.5rem;
    gap: 0;
    font-size: 1.05rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-of-type { border-bottom: none; }
  .nav__cta {
    margin-top: 1rem;
    text-align: center;
  }
  .nav-toggle { display: flex; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* =========================================================================
   Page hero — shorter banner used at the top of interior pages
   ========================================================================= */

.page-hero {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-color: #2b2319;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.page-hero__content h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 0.4em;
}

.page-hero__content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 0 auto;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.gallery-item__media {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background-color: #e4e4e8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 0.6rem;
}
.gallery-item__label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin: 0;
}

/* Founding riders promo banner */
.promo-banner {
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}
.promo-banner h2 { margin-bottom: 0.6rem; }
.promo-banner p { max-width: 60ch; margin: 0 auto 1.5rem; }

/* =========================================================================
   Real <img> support for photos (alt-text / SEO upgrade)
   These rules let <img> tags fill the same boxes the background-image
   divs used to — added additively so nothing above needs to change.
   ========================================================================= */

.hero__placeholder img,
.page-hero__bg img,
.mongolia-visual__placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tour-card__media,
.photography-item,
.gallery-item__media {
  overflow: hidden;
  position: relative;
}

.tour-card__media img,
.photography-item img,
.gallery-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand__logo {
  height: 28px;
  width: auto;
  display: block;
}