/* ===========================================================================
   EQUESTRIAN LANDING PAGE (equestrian.html)
   Built from the "V3 — refined (desktop)" mockup. The mockup only covered
   desktop, so every stacking rule below is ours. Written mobile-first: the
   base styles are the phone layout and each breakpoint adds columns back.
   Colours/spacing come from the site tokens, not the mockup's literals, so
   this page stays in step with the rest of the site.
   =========================================================================== */

/* --- Hero (extends .process-hero) --- */
.eq-hero { min-height: 68vh; }
.eq-hero .hero-bg { object-position: 62% 55%; }
.eq-hero-content { max-width: 60ch; }
.eq-hero h1 { max-width: 19ch; }
.eq-hero-sub {
  margin: 0.6rem 0 0;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  font-weight: 300;
  line-height: 1.3;
  color: #fff;
}
.eq-hero .lede { margin-top: 1.1rem; }
@media (max-width: 600px) { .eq-hero { min-height: 60vh; } }

/* --- Two-column text/photo split --- */
.eq-split { display: grid; gap: 2rem; align-items: center; }
.eq-split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.eq-deck {
  margin: 0.5rem 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--black);
}
.eq-quote {
  margin: 1.5rem 0 0;
  /* Keep the global blockquote's crimson bar but give the text more room
     off it than the 1.25rem default. */
  padding: 0.15rem 0 0.15rem 1.75rem;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--black);
}
.eq-actions-inline {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.9rem 1.25rem; margin-top: 1.75rem;
}
.eq-call { font-weight: 500; }
@media (min-width: 860px) {
  .eq-split { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* --- "Every space, planned" cards --- */
.eq-space-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.eq-space { background: var(--paper); border: 1px solid var(--line); }
.eq-space img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.eq-space-body { padding: 1.3rem; }
.eq-space h3 {
  margin: 0; font-family: var(--font-body); font-weight: 600;
  font-size: 1rem; line-height: 1.35;
  letter-spacing: normal; text-transform: none;
}
.eq-space p { margin: 0.5rem 0 0; font-size: 0.95rem; }
@media (min-width: 560px) { .eq-space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .eq-space-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 5 cards: at the widest size give them one row rather than 3 + 2 orphans.
   Five columns inside the standard 1160px wrap leaves only ~208px per card,
   which crowds the copy, so this one row is allowed to run a little wider
   than --max. It is the only section on the site that does. */
@media (min-width: 1180px) {
  .eq-space-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .eq-spaces .wrap { max-width: 1320px; }
}

/* --- Crimson CTA strips --- */
.eq-strip { background: var(--red); color: #fff; padding: 2.25rem 0; }
.eq-strip-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.25rem;
}
.eq-strip p {
  margin: 0; max-width: 46ch;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 500; line-height: 1.3;
}
/* Inverted button for use on the crimson blocks. */
.eq-btn-invert { background: #fff; border-color: #fff; color: var(--red); font-weight: 600; }
.eq-btn-invert:hover { background: var(--stone); border-color: var(--stone); color: var(--red-dark); }

/* --- Five decisions --- */
.eq-steps-head { display: grid; gap: 1rem; margin-bottom: 2rem; }
.eq-steps-head p:not(.eyebrow) { margin: 0; }
@media (min-width: 900px) {
  .eq-steps-head { grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end; }
}
.eq-steps-banner {
  width: 100%;
  height: clamp(160px, 26vw, 340px);
  object-fit: cover;
  display: block;
}
.eq-steps { margin: 0; padding: 0; list-style: none; }
.eq-steps > li {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.eq-step-num {
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 200;
  line-height: 0.9;
  color: var(--red);
}
.eq-step-body h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
}
.eq-step-body p { margin: 0.6rem 0 0; }
.eq-stat-line strong {
  font-size: 1.35rem; color: var(--red); font-weight: 600;
  display: inline-block; margin-right: 0.2rem;
}
.eq-step-ask { background: var(--warm); padding: 1.35rem; }
.eq-ask-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red-dark);
}
.eq-step-ask ul { margin: 0; padding-left: 1.2rem; font-size: 0.95rem; }
.eq-step-ask li + li { margin-top: 0.4rem; }
@media (min-width: 760px) {
  /* number beside the text, question box still full width underneath */
  .eq-steps > li { grid-template-columns: 110px 1fr; column-gap: 2rem; }
  .eq-step-ask { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  /* full three-track row, as the mockup shows it */
  .eq-steps > li { grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 3rem; }
  .eq-step-ask { grid-column: auto; }
}

/* --- Build-guide block --- */
.eq-guide { display: grid; gap: 2rem; align-items: center; }
.eq-guide-media { display: flex; justify-content: center; }
.eq-guide-media img {
  width: 280px; max-width: 100%; height: auto;
  box-shadow: 0 20px 40px rgba(40,20,20,0.25);
}
@media (min-width: 860px) {
  .eq-guide { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 4rem; }
}
/* --- Recent projects --- */
.eq-projects { display: grid; gap: 2.5rem; }
.eq-project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.eq-project h3 {
  margin: 1.25rem 0 0;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
}
.eq-project > p { margin: 0.4rem 0 0; }
.eq-stats { display: flex; flex-wrap: wrap; gap: 0.9rem 2.25rem; margin: 1.1rem 0 0; }
.eq-stats dt { font-size: 0.8rem; color: var(--ink); }
.eq-stats dd { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--black); }
@media (min-width: 820px) { .eq-projects { grid-template-columns: 1fr 1fr; gap: 2rem; } }

/* --- Final CTA --- */
.eq-final { background: var(--red); color: #fff; padding: 4.25rem 0; }  /* matches .section rhythm */
.eq-final-inner { display: grid; gap: 2.25rem; }
.eq-final h2 { color: #fff; }
.eq-final-text > p { margin: 1rem 0 0; max-width: 46ch; font-weight: 300; color: #f6ecec; }
.eq-final .btn { margin-top: 1.75rem; }
.eq-call-label { margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.eq-final-call a {
  display: block; margin-top: 0.3rem; color: #fff; text-decoration: none;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem); font-weight: 600; line-height: 1.15;
}
.eq-final-call a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .eq-final-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; align-items: end; }
}

/* The mockup sets section headings in crimson on this page (the rest of the
   site uses near-black). Scoped to .section so the white heading on the
   crimson final-CTA block is unaffected. */
.page-equestrian .section h2 { color: var(--red); }

/* ---------------------------------------------------------------------------
   Equestrian Build Guide signup (Mailchimp)
   Was an inline <style> block on the pasted form; moved here so the markup
   stays short and the rules are cached with the rest of the page's CSS.
   Rewritten onto the site tokens — the pasted literals (#851625, #1F1B1A,
   #6B605C) were already the site's red / black / muted values.
   --------------------------------------------------------------------------- */
.eqg-form { max-width: 560px; color: var(--black); }
.eqg-row { display: flex; flex-wrap: wrap; gap: 14px; }
.eqg-field {
  flex: 1 1 220px; min-width: 0;
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px;
}
.eqg-field label { font-size: 0.9rem; font-weight: 500; }
.eqg-optional { font-weight: 400; color: var(--ink); }
.eqg-field input, .eqg-field select {
  height: 52px; padding: 0 1rem;
  font: inherit; color: var(--black); background: var(--paper);
  border: 1px solid #a99c96; border-radius: var(--radius);
  box-sizing: border-box; width: 100%;
}
.eqg-field input:focus-visible, .eqg-field select:focus-visible {
  outline: 3px solid rgba(133, 22, 37, 0.25);
  border-color: var(--red);
}
.eqg-field input[aria-invalid="true"] { border: 2px solid #a3121f; }
.eqg-error { font-size: 0.875rem; color: #a3121f; }
.eqg-error:empty { display: none; }
.eqg-submit {
  margin-top: 4px;
  background: var(--red); color: #fff;
  border: 2px solid var(--red); border-radius: var(--radius);
  padding: 1rem 1.9rem;
  font: inherit; font-weight: 600;
  cursor: pointer; min-height: 52px;
  transition: background 0.2s, border-color 0.2s;
}
.eqg-submit:hover { background: var(--red-dark); border-color: var(--red-dark); }
.eqg-submit:disabled { opacity: 0.7; cursor: progress; }
.eqg-note { margin: 0.875rem 0 0; font-size: 0.875rem; color: var(--ink); }
.eqg-form-error {
  margin-top: 0.875rem; padding: 0.75rem 0.875rem;
  border-left: 3px solid #a3121f; background: #fbeeee; font-size: 0.875rem;
}
/* Mailchimp's spam trap — must stay in the DOM but off-screen. */
.eqg-hp { position: absolute; left: -5000px; }
@media (max-width: 520px) { .eqg-submit { width: 100%; } }

/* ===========================================================================
   GUIDE THANK-YOU PAGE (equestrian-guide-thank-you.html)
   From the "Thank-you page (desktop)" mockup — desktop-only again, so the
   stacking below is ours. Reuses .eq-final / .eq-btn-invert from the
   equestrian page for the closing CTA rather than redefining them.
   =========================================================================== */

/* --- Confirmation + download --- */
.ty-hero { display: grid; gap: 2.5rem; align-items: center; }
.ty-cover { display: flex; justify-content: center; }
.ty-cover img {
  width: 300px; max-width: 100%; height: auto;
  /* the mockup tilts the cover slightly so it reads as a physical object */
  transform: rotate(-2deg);
  box-shadow: 0 24px 48px rgba(40, 20, 20, 0.28);
}
@media (prefers-reduced-motion: reduce) { .ty-cover img { transform: none; } }
/* Two columns only once there is genuinely room for both: splitting at 860px
   left the text column too narrow and pushed the lede onto a third line.
   Below this the hero stacks and the copy gets the full width. */
@media (min-width: 1000px) {
  /* Fluid cover column — a fixed 340px starved the text column at ~1024px. */
  .ty-hero {
    grid-template-columns: minmax(0, clamp(240px, 24vw, 340px)) minmax(0, 1fr);
    gap: clamp(2.5rem, 4vw, 5rem);
  }
}

.ty-badge {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 0 0.875rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2f6b3a;          /* confirmation green — only used here */
}
.ty-badge svg { flex: 0 0 auto; }
.ty-h1 { margin: 0; color: var(--red); }
.ty-lede {
  margin: 1.25rem 0 0;
  /* 56ch tipped this copy onto a third line; 62ch holds it at two (~71
     chars/line, still inside the readable range) with a little buffer.
     The grid column caps it at ~700px on desktop anyway. */
  max-width: 62ch;
  font-size: 1.1rem; color: var(--ink);
}
.ty-download { margin-top: 1.875rem; }
.ty-download-ext { font-weight: 400; opacity: 0.85; }
.ty-note { margin: 1.125rem 0 0; font-size: 0.875rem; color: var(--ink); }

/* --- "Inside the guide" stages --- */
/* The page-wide crimson-h2 rule would catch this one; the mockup has it
   near-black, so override it with enough specificity to win. */
.page-equestrian .section h2.ty-stages-h {
  color: var(--black);
}
.ty-stages-h {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 600; line-height: 1.25;
  letter-spacing: normal; text-transform: none;
}
.ty-stages {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: grid; gap: 0.875rem;
  grid-template-columns: 1fr;
}
.ty-stages li {
  background: var(--paper);
  border-top: 3px solid var(--red);
  padding: 1.375rem 1.25rem;
}
.ty-stage-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.375rem; color: var(--red);
}
.ty-stage-name {
  display: block; margin-top: 0.375rem;
  font-size: 0.95rem; font-weight: 500; line-height: 1.4;
}
@media (min-width: 560px) { .ty-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ty-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ty-stages { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------------------
   Estimate thank-you variants (estimate-thank-you.html)
   Reuses .ty-hero / .ty-badge / .ty-h1 / .ty-stages / .eq-final; only the
   differences from the guide thank-you live here.
   --------------------------------------------------------------------------- */

/* Text leads, photo sits to its right (the guide page is the other way round). */
.ty-hero--wide .ty-media img {
  width: 100%;
  height: clamp(220px, 28vw, 340px);
  object-fit: cover;
  display: block;
}
@media (min-width: 860px) {
  .ty-hero--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4.5rem; }
}

/* Three steps that carry a description, not just a label. */
.ty-stages--detailed li { padding: 1.5rem 1.375rem; }
.ty-stages--detailed .ty-stage-name { font-size: 1.05rem; font-weight: 600; }
.ty-stages--detailed p { margin: 0.5rem 0 0; font-size: 0.95rem; color: var(--ink); }
@media (min-width: 760px) { .ty-stages--detailed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ty-stages--detailed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* The crimson block carries a label above its heading on this page. */
.eq-final-text .eq-call-label { margin-bottom: 0.75rem; }
