/* ============================================================
   silageplan-overrides.css
   Custom tweaks layered on top of the 1:1 Webflow stylesheet.
   Loaded AFTER webflow.css so equal/greater specificity wins.
   (webflow.css is regenerated by _port.py; this file is not.)
   ============================================================ */

/* ---- "What is the true cost of poor quality Silage?" : metric cards ----
   Layout: three metric cards on top, original chart full-width below. */
.section.cost .cost-midle.is-cards {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 48px;
}

.cost-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.cost-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cost-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 120, 55, 0.55);
}

.cost-card__tag {
  font-family: Archivo, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #f47837;
}

.cost-card__value {
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fffefc;
}

.cost-card__label {
  font-family: Archivo, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 24ch;
}

/* The "solution" card — inverted to orange so the tiny SilagePlan cost
   visually pops against the two loss figures. */
.cost-card--solution {
  background: #f47837;
  border-color: #f47837;
  box-shadow: 0 18px 40px -18px rgba(244, 120, 55, 0.6);
}
.cost-card--solution:hover {
  border-color: #ffffff;
  transform: translateY(-4px);
}
.cost-card--solution .cost-card__tag { color: #2a1a0a; }
.cost-card--solution .cost-card__value { color: #16140f; }
.cost-card--solution .cost-card__label { color: rgba(22, 20, 15, 0.82); }

/* Chart now spans full width beneath the cards. */
.section.cost .cost-midle.is-cards .chart-right {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section.cost .cost-midle.is-cards .chart-right > img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 767px) {
  .cost-cards { grid-template-columns: 1fr; }
  .section.cost .cost-midle.is-cards { gap: 32px; }
}

/* Navbar demo CTA (added: homepage nav had no conversion path). */
.nav-menu .nav-demo-cta {
  background: #f47837;
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  margin-left: 12px;
  font-weight: 600;
  text-transform: none;
}
.nav-menu .nav-demo-cta:hover { background: #d96628; color: #fff; }
@media screen and (max-width: 991px) {
  .nav-menu .nav-demo-cta {
    margin-left: 0;
    margin-top: 16px;
    display: inline-block;
    text-align: center;
  }
}

/* Video CTA slide inside the customer-quotes slider. */
.testimonials-slider-card.video-testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.video-testimonial-thumb {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #16140f;
}
.video-testimonial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Shorts hqdefault is pillarboxed; zoom to the central vertical strip. */
  transform: scale(1.95);
  transform-origin: 50% 32%;
}
.video-testimonial-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(244, 120, 55, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  padding-left: 5px;
}
.video-testimonial-card:hover .video-testimonial-play { background: #d96628; }
.video-testimonial-copy { margin-bottom: 12px; }
