/* Machine Hero component
   - Single DOM for mobile + desktop.
   - Uses CSS Grid at SM+ to place text left (40%) and image right (60%).
   - On mobile it stacks: eyebrow, title, image(+controls), description, buttons. */

.machine-hero {
  background: #ffffff;
  color: #0b2b4a;
}

/* Inner wrapper: default mobile flow (vertical) */

.machine-hero-inner {
  display: block;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Eyebrow */

.machine-hero .eyebrow {
  color: #f27d11;
  letter-spacing: 0.06em;
}

/* Title */

.machine-hero .machine-title {
  color: #122237;
  margin-top: .25rem;
  margin-bottom: .75rem;
  line-height: 1.05;
}

/* Carousel image sizing */

.machine-hero .hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-height: 420px;
}

/* Indicators positioned below the image (default) */

.machine-hero .carousel-indicators {
  gap: 0.5rem;
  position: static;
  margin-top: 0.75rem;
}

.machine-hero .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.25);
  border: none;
}

.machine-hero .carousel-indicators .active {
  background-color: #0b64b2;
}

/* Description */

.machine-hero .machine-desc {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  max-width: 44rem;
}

/* CTA buttons */

.btn-orange {
  background: #f27d11;
  border-color: #f27d11;
  color: #fff;
}

.btn-orange:hover, .btn-orange:focus {
  background: #e06f07;
  border-color: #e06f07;
}

/* CTAs default mobile: stacked full-width */

.hero-ctas .btn {
  display: block;
}

/* SM+ layout: grid with two columns, image spans both rows */

@media (min-width: 576px) {
  .machine-hero-inner {
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
  }
}

/* Place top (eyebrow+title) in column 1 row 1 */

@media (min-width: 576px) {
  .machine-hero .hero-top {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding-right: 1rem;
  }
}

/* Place media in column 2 spanning both rows */

@media (min-width: 576px) {
  .machine-hero .hero-media {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* Place bottom (description + ctas) in column 1 row 2 */

@media (min-width: 576px) {
  .machine-hero .hero-bottom {
    grid-column: 1;
    grid-row: 2;
    padding-right: 1rem;
  }
}

/* Make hero image larger on desktop */

@media (min-width: 576px) {
  .machine-hero .hero-image {
    max-height: 560px;
  }
}

/* Desktop CTAs: inline, not full width */

@media (min-width: 576px) {
  .hero-ctas .btn {
    width: auto;
    display: inline-block;
    margin-right: 0.75rem;
  }
}

@media (min-width: 576px) {
  .hero-ctas .btn + .btn {
    margin-left: 0;
  }
}

/* Position carousel controls slightly outside the image edges for a premium look */

@media (min-width: 576px) {
  .machine-hero .carousel-control-prev, .machine-hero .carousel-control-next {
    width: 3.5rem;
    height: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.95;
  }
}

