/* ===== Working Equitation Canada — concept stylesheet ===== */

:root {
  --ink: #102236;
  --ink-soft: #1b3450;
  --cream: #f7f3ec;
  --cream-deep: #ede4d2;
  --paper: #fbf8f2;
  --accent: #b85c38;
  --accent-soft: #c9744a;
  --accent-tint: #f0ddcf;
  --text: #1f2a37;
  --muted: #5d6571;
  --border: #ddd2bd;
  --radius: 10px;
  --radius-sm: 6px;
  --nav-h: 70px;
  --banner-h: 42px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4em;
}
h1 { font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; }

p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* eyebrow labels */
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9em;
}
.eyebrow-accent { color: var(--accent); }
.eyebrow-light { color: var(--accent-soft); }

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 42px;
  z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.05;
}
.wordmark:hover { text-decoration: none; }
.wordmark-mark { width: 34px; height: 34px; flex: none; color: var(--accent); }
.wordmark-text em { font-style: italic; font-weight: 500; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links > a {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 8px 0;
}
.nav-links > a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: var(--cream) !important;
  padding: 10px 18px !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background-color 180ms ease;
}
.nav-cta:hover { background: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
  min-height: 44px;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-filled {
  background: var(--accent);
  color: var(--cream);
}
.btn-filled:hover { background: var(--ink); color: var(--cream); }
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-outline-light {
  border-color: rgba(247, 243, 236, 0.55);
  color: var(--cream);
}
.btn-outline-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ===== HERO ===== */
.hero {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 110px);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-text .eyebrow { color: var(--accent-soft); margin-bottom: 1.1em; }
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}
.hero-tag {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(247, 243, 236, 0.82);
  max-width: 36ch;
  margin-bottom: 1.8em;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-ctas .btn-outline { border-color: rgba(247, 243, 236, 0.45); color: var(--cream); }
.hero-ctas .btn-outline:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}
.arena-emblem {
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* ===== TRUST LINE ===== */
.trust-line {
  background: var(--cream-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  text-align: center;
}
.trust-line p {
  margin: 0;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--text);
  font-weight: 500;
}

/* ===== ABOUT ===== */
.about {
  padding: clamp(64px, 10vw, 110px) 0;
  background: var(--paper);
}
.about h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.8em;
}
.about p { color: var(--text); font-size: 1.08rem; }

/* section head */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 70px);
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.4em;
}

/* ===== TRIALS ===== */
.trials {
  padding: clamp(64px, 10vw, 110px) 0;
  background: var(--cream);
}
.trial-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 5vw, 60px) 0;
  border-bottom: 1px solid var(--border);
}
.trial-row:first-of-type { border-top: 1px solid var(--border); }
.trial-row.reverse .trial-text { order: 2; }
.trial-row.reverse .trial-fig { order: 1; }
.trial-text { max-width: 42ch; }
.trial-number {
  display: block;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5em;
  letter-spacing: 0.05em;
}
.trial-text h3 { margin-bottom: 0.4em; }
.trial-text p { color: var(--text); margin-bottom: 0; }
.trial-fig {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.trial-fig svg { width: 100%; max-width: 240px; height: auto; }

/* ===== TEAM / PROOF ===== */
.team {
  padding: clamp(64px, 10vw, 110px) 0;
  background: var(--paper);
}
.team-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: stretch;
}
.team-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.5em; }
.team-text p { max-width: 50ch; margin-bottom: 1.6em; font-size: 1.05rem; }

.sponsors {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
}
.sponsors .eyebrow { color: var(--accent-soft); }
.sponsor-list {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sponsor-list li {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--cream);
  padding: 6px 0;
  border-bottom: 1px solid rgba(247, 243, 236, 0.14);
}
.sponsor-list li:last-child { border-bottom: none; }
.sponsor-note { font-size: 0.92rem; color: rgba(247, 243, 236, 0.78); margin: 0; }
.sponsor-note a { color: var(--accent-soft); }

/* ===== MISSION ===== */
.mission {
  padding: clamp(64px, 10vw, 110px) 0;
  background: var(--cream);
}
.mission h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 0.8em;
}
.mission p { font-size: 1.08rem; color: var(--text); }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(64px, 9vw, 100px) 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.cta-text .eyebrow { color: var(--accent-soft); }
.cta-text h2 {
  color: var(--cream);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 0.5em;
}
.cta-text p {
  color: rgba(247, 243, 236, 0.82);
  max-width: 52ch;
  margin-bottom: 0;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.cta-actions .btn { text-align: center; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: rgba(247, 243, 236, 0.78);
  padding-top: clamp(48px, 7vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 48px;
}
.wordmark-light { color: var(--cream); }
.wordmark-light .wordmark-text em { color: var(--accent-soft); }
.wordmark-light .wordmark-mark { color: var(--accent-soft); }
.footer-tag {
  margin: 16px 0 18px;
  font-size: 0.95rem;
  color: rgba(247, 243, 236, 0.7);
  max-width: 38ch;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.footer-social svg { width: 20px; height: 20px; }

.footer-col h4 {
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(247, 243, 236, 0.72);
  margin-bottom: 12px;
}
.footer-col a {
  display: inline-block;
  color: rgba(247, 243, 236, 0.85);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--accent-soft); text-decoration: none; }

.footer-base {
  border-top: 1px solid rgba(247, 243, 236, 0.14);
  padding: 20px 0;
}
.footer-base-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-base p { margin: 0; font-size: 0.85rem; color: rgba(247, 243, 236, 0.6); }

/* ===== SCROLL REVEAL (state applied via JS) ===== */
.reveal-init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* anchor offsets */
section[id], footer[id] { scroll-margin-top: calc(var(--nav-h) + var(--banner-h) + 12px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { order: -1; margin-bottom: 8px; }
  .arena-emblem { max-width: 280px; }
  .team-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .cta-actions .btn { flex: 1 1 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 280ms ease;
  }
  .nav-links.open { max-height: 460px; }
  .nav-links > a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links > a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 10px; text-align: center; padding: 14px 18px !important; }

  .trial-row,
  .trial-row.reverse {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 36px 0;
  }
  .trial-row.reverse .trial-text,
  .trial-row.reverse .trial-fig { order: initial; }
  .trial-fig { order: -1; min-height: 160px; padding: 20px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-base-inner { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .cta-actions { flex-direction: column; }
  .trust-line p { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-init { transition: none; opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}