/* ===========================
   Horse Profile Page (TJ)
   Keeps styles scoped so main.css stays untouched
   =========================== */

.horse-hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.horse-hero {
  position: relative;
}

.horse-hero__media {
  position: absolute;
  inset: 0;

}
.horse-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.horse-hero__media img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  object-position: center 69% !important;
}

.horse-hero__copy{
  position: relative;
  z-index: 2;
  flex-direction: column;
  left: -75px;
}

.horse-hero__title{
font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.horse-hero__kicker{
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .9rem;
  margin-bottom: 20px;
}

.horse-hero__badges{
padding-bottom: 15px;
}

.horse-hero__ctas{
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.horse-hero__badges .badge{
  white-space: nowrap;
}
.horse-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: radial-gradient(
    ellipse 880px 450px at bottom left,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.68) 40%,
    rgba(0, 0, 0, 0.24) 70%,
    rgba(0, 0, 0, 0) 100%
  );
}
/* Force hero image to full-bleed on large screens */
.horse-hero__media,
.horse-hero__media img {
  max-width: none !important;
  width: 100%;
}
.horse-hero__media {
  justify-self: stretch;
  align-self: stretch;
}
.quickFact {
  float: right;
}
.horse-facts {
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.fact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.fact-card__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6f6f6f;
  margin-bottom: 8px;
}

.fact-card__value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f1f1f;
}

.fact-card__sub {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6a6a6a;
  line-height: 1.35;
}
.echoOpening {
  font-style: italic;
  font-size: large;
  color: #1f1f1f;
}
.horse-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.horse-overview-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-top: 98px;
}

.horse-overview-text {
  min-width: 0;
}
.horse-overview-text > .horse-section {
  margin-block: 0;
  padding-block: 0;
}

/* Keep a little breathing room between the two sections */
.horse-overview-text > .horse-section + .horse-section {
  margin-top: 0px;
}

@media (max-width: 760px) {
  .horse-overview-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .horse-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .horse-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .horse-facts {
    grid-template-columns: 1fr;
  }

  .fact-card {
    min-height: auto;
  }
}
.echoHead img{
  object-position: center 55% !important;
}
.echoPym img {
  object-position: center 30% !important;
}
.horse-section {
  margin: 40px auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: start;
}

.panel {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.card {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.video-wrap {
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.photo {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  display: block;
}

.photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 980px) {
  .horse-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .horse-hero__media img { height: 62vh; }
}

@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo img { height: 240px; }
}
.pedigree {
  list-style: none;
  padding-left: 0;
}

.pedigree-line {
  margin: 0.2rem 0;
}

.pedigree-line.main {
  font-weight: 600;
}

.pedigree-line.grandparent {
  margin-left: 1.25rem;
  font-size: 0.95em;
  opacity: 0.85;
}
.pedigree-line.grandparent {
  list-style: none;
}
.pedigree-line.grandparent::marker {
  content: "";
}
/* FORCE the hero image to truly cover the full hero area */
.horse-hero{
  position: relative;
  overflow: hidden;
}

.horse-hero__media{
  position: absolute;
  inset: 0;
}

.horse-hero__media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none; /* defeats global img max-width rules */
}
.horse-hero h1 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.horse-hero p {
  color: rgba(255, 255, 255, 0.92);
}
.videoWatch {
  background: #a686dd; /* muted, rich purple */
  color: #fff;
}

.btn-secondary:hover {
  background: #d566f7;
}
.tjerkcta {
      background: #a686dd;
}
.ctacontact{
  margin-left: 10px;
}

/* CTA center layout */

.cta-center{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* Script font for this title */

.script-text{
  font-family: "Great Vibes", cursive; /* or whatever script font you use */
  font-size:2.2rem;
  margin-bottom:25px;
}

/* Button layout */

.actions{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}
.endingText{
  font-size: 42px;
}

@media (max-width: 768px) {
  .horse-hero {
    min-height: 72vh;
    align-items: end;
  }

  .horse-hero__media img {
    height: 72vh;
    object-position: center center !important;
  }

  .horse-hero__copy {
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    margin-left: 0;
    max-width: 100%;
    padding: 0 1rem 1.25rem;
  }

  .horse-hero__copy .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .horse-hero__kicker {
    font-size: 0.82rem;
    margin-bottom: 8px;
  }

  .horse-hero__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.06;
    margin-bottom: 12px;
  }

  .horse-hero__badges {
    justify-content: center;
    max-width: 100%;
    gap: 8px;
    margin-bottom: 16px;
  }

  .horse-hero__badges .badge {
    font-size: 0.88rem;
  }

  .horse-hero__ctas {
    justify-content: center;
    width: 100%;
    gap: 10px;
  }

  .horse-hero__ctas .btn {
    width: 100%;
    max-width: 280px;
  }
}
@media (max-width: 768px) {

  .horse-hero__title{
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.08;
  }

  .horse-hero__kicker{
    font-size: .72rem;
    letter-spacing: .08em;
  }

  .horse-hero__badges{
    gap: 6px;
    margin-bottom: 12px;
  }

  .horse-hero__badges .badge{
    font-size: .72rem;
    padding: 5px 10px;
  }

  .horse-hero__ctas{
    gap: 8px;
  }

  .horse-hero__ctas .btn{
    font-size: .85rem;
    padding: 8px 14px;
    max-width: 220px;
  }

}

@media (max-width: 430px){

  .horse-hero__title{
    font-size: clamp(1.4rem, 6vw, 1.9rem);
  }

}