[hidden]{display:none !important}

/* Species switch (hero). Copies the approved mockup's .seg pill. */
.species-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  /* The nav floats over the hero; clear its logo (bottom at about 100px). */
  margin: 40px 0 0;
  padding: 4px;
  border-radius: 40px;
  background: rgba(0, 0, 0, .25);
}

.species-switch button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 16px;
  border: 0;
  border-radius: 40px;
  background: transparent;
  color: #fff;
  font: 600 13px Montserrat, Arial, sans-serif;
  cursor: pointer;
}

.species-switch button img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.species-switch button[aria-pressed="true"] {
  background: #fff;
  color: #343838;
}

.species-switch button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Accent recolor. Swine has no rules here, so the Webflow CSS stays in charge. */
html[data-species="sheep"] { --sp-accent: #FE9600; }
html[data-species="goat"] { --sp-accent: #6BFE00; }

html[data-species="sheep"] .section.center,
html[data-species="goat"] .section.center {
  background-color: var(--sp-accent);
  background-image: linear-gradient(10deg, #343838, var(--sp-accent));
}

/* :not(.contact) keeps the transparent "Get in Touch" outline button and
   :not(:hover) keeps the Webflow white hover state. */
html[data-species="sheep"] .button:not(.contact):not(:hover),
html[data-species="goat"] .button:not(.contact):not(:hover) {
  background-color: var(--sp-accent);
}

html[data-species="sheep"] .nav.navbgcolor,
html[data-species="goat"] .nav.navbgcolor {
  background-color: var(--sp-accent);
}

/* White on #6BFE00 cannot be read, so Goat buttons use dark text and icons. */
html[data-species="goat"] .button:not(.contact):not(:hover) {
  color: #1d2a12;
}

html[data-species="goat"] .button .image-6 {
  filter: invert(.85);
}

/* Phone frame for the Sheep and Goat screenshots (mockup's .ph). The rotation
   uses the individual `rotate` property so it composes with the Webflow IX2
   inline `transform` on the hero image instead of fighting it. */
img.sp-framed {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 300px;
  height: auto;
  margin: auto;
  border: 8px solid #1b1d1e;
  border-radius: 30px;
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .5);
}

img.hero-image.sp-framed {
  rotate: 14deg;
}

/* Narrow screens: a rotated 300px frame sticks out past a phone-width viewport,
   so drop the tilt and keep the frame (border included) inside the screen. */
@media (max-width: 767px) {
  img.hero-image.sp-framed {
    rotate: none;
    width: 100%;
    max-width: min(300px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
}

/* Sheep and Goat drop the Reporting tile, so center the 2 tiles left in that row.
   Sheep and Goat are named explicitly: the default Swine page has no data-species. */
html[data-species="sheep"] .feature-wrap.icons,
html[data-species="goat"] .feature-wrap.icons {
  justify-content: center;
}

/* "Only in GESDATE" band (mockup's .built, .bl and .egg). Hidden on Swine. */
.sp-only-band {
  padding: 60px 6%;
  background: #f5f7fa;
  font-family: Montserrat, Arial, sans-serif;
  /* Centers the Webflow .title, which is inline-block, and the h2. */
  text-align: center;
}

.sp-band-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
  max-width: 1100px;
  margin: 26px auto 0;
  text-align: left;
}

.sp-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
}

.sp-items h4 {
  margin: 0 0 5px;
  font-size: 14.5px;
  color: #1a1b1f;
}

.sp-items p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  font-weight: 300;
  color: #6b6b6b;
}

.sp-icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  stroke: var(--sp-accent);
}

/* #6BFE00 is too light on the #f5f7fa band, so Goat draws its band icons in the
   Goat app icon's own green. The card header keeps the accent. */
html[data-species="goat"] .sp-icon {
  stroke: #00b503;
}

.sp-tag {
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  padding: 3px 6px;
  border-radius: 2px;
  background: var(--sp-accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
}

.sp-egg {
  justify-self: center;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px -18px rgba(52, 56, 56, .35);
  font-size: 12.5px;
  color: #1a1b1f;
}

.sp-egg-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--sp-accent);
  color: #fff;
  font-weight: 700;
}

html[data-species="goat"] .sp-egg-hd {
  color: #1d2a12;
}

.sp-egg-hd small {
  font-weight: 500;
  opacity: .9;
}

.sp-egg-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 16px;
  border-bottom: 1px solid #e4ebf3;
}

.sp-egg-row span:first-child {
  color: #6b6b6b;
}

.sp-egg-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 6px;
  border-bottom: 1px solid #e4ebf3;
  text-align: center;
}

.sp-egg-nums b {
  display: block;
  font-size: 22px;
  color: #1a1b1f;
}

.sp-egg-nums span {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.sp-egg-list {
  padding: 8px 16px 12px;
}

.sp-egg-list div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.sp-egg-r {
  font-weight: 700;
  color: #1a1b1f;
}

.sp-egg-sample {
  padding: 0 0 10px;
  font-size: 10.5px;
  text-align: center;
  color: #6b6b6b;
}

/* Download band: the species photo under a dark overlay, in place of the Webflow
   channel art. Webflow sets 2 positions and sizes, so set both here. */
html[data-species="sheep"] .section.wide.purple {
  background-image: linear-gradient(rgba(30,32,32,.55),rgba(30,32,32,.55)), url('../images/species/sheep-download-bg.jpg');
  background-position: 50%, 50%;
  background-size: cover;
}

html[data-species="goat"] .section.wide.purple {
  background-image: linear-gradient(rgba(30,32,32,.55),rgba(30,32,32,.55)), url('../images/species/goat-download-bg.jpg');
  background-position: 50%, 50%;
  background-size: cover;
}

@media (max-width: 767px) {
  .sp-band-grid,
  .sp-items {
    grid-template-columns: 1fr;
  }
}
