/* ============================================
   ANIMIX — Homepage (exact mockup match)
   ============================================ */

body[data-page="home"] {
  --home-header-hero-gap: 28px;
  --home-hero-content-offset: 32px;
}

/* Homepage header — sticky white band above hero image */
body[data-page="home"] #site-header {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

body[data-page="home"] #site-header .header {
  background: var(--white);
  padding-bottom: var(--home-header-hero-gap);
}

body[data-page="home"] .header {
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .logo {
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .logo__img {
  height: 54px;
  max-width: 180px;
}

@media (min-width: 1100px) {
  body[data-page="home"] #site-header .btn--header {
    background: var(--gradient-red);
    color: var(--white);
    border-color: transparent;
    font-weight: 800;
    box-shadow: var(--shadow-brand-red);
  }

  body[data-page="home"] #site-header .btn--header:hover {
    background: linear-gradient(135deg, var(--brand-red-dark) 0%, var(--brand-red) 100%);
    box-shadow: 0 10px 28px rgba(226, 31, 38, 0.38);
  }
}

@media (min-width: 1240px) {
  body[data-page="home"] .logo__img {
    height: 56px;
  }
}

@media (max-width: 1099px) {
  body[data-page="home"] #site-header .header {
    padding-bottom: 0;
    background: var(--white);
  }

  .hero--home {
    min-height: 560px;
    background: var(--white);
    overflow: hidden;
  }

  .hero--home .hero__bg {
    min-height: 100%;
  }

  body[data-page="home"] .hero__layout {
    padding-top: 28px;
    padding-bottom: 32px;
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: auto;
  }

  .hero--home .hero__main {
    min-height: auto;
    padding-top: 0;
  }

  .hero--home .hero__sidebar {
    max-width: none;
    margin-top: 0;
  }

  .hero--home .hero__title {
    font-size: clamp(2rem, 7vw, 3.55rem);
    line-height: 1.02;
    white-space: normal;
  }

  .hero--home .hero__subtitle {
    color: var(--gray-700);
    text-shadow: none;
    max-width: 100%;
  }

  .hero--home .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero--home .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero--home .hero__sidebar {
    max-width: none;
    width: 100%;
  }

  .hero--home .btn--hero-outline {
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-blue-dark);
    border: 2px solid var(--brand-blue-dark);
    text-shadow: none;
    box-shadow: 0 2px 12px rgba(36, 53, 113, 0.1);
  }

  .hero--home .stats-bar {
    max-width: 100%;
  }
}

/* Hero — full-width background, content in standard container */
.hero--home {
  position: relative;
  width: 100%;
  min-height: 620px;
  margin-top: 0;
  background: var(--white);
  overflow: hidden;
}

.hero--home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero--home .hero__image {
  object-position: center center;
}

.hero--home .hero__overlay {
  background: linear-gradient(
    96deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(244, 247, 252, 0.9) 22%,
    rgba(235, 240, 250, 0.45) 42%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0) 100%
  );
}

.hero--home .hero__layout {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 48px;
  padding-top: var(--home-hero-content-offset);
  padding-bottom: 32px;
  min-height: 620px;
  align-items: stretch;
}

@media (max-width: 1280px) and (min-width: 1100px) {
  .hero--home .hero__layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 32px;
  }

  .hero--home .hero__sidebar {
    max-width: 220px;
  }
}

@media (min-width: 1101px) {
  .hero--home .hero__title-brand {
    letter-spacing: -0.03em;
  }
}

.hero--home .hero__text {
  max-width: 640px;
}

.hero--home .hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12em;
  max-width: 100%;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #1e231f;
  white-space: normal;
}

.hero--home .hero__title-pre {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #3d4a42;
  line-height: 1.2;
}

.hero--home .hero__title-brand {
  display: block;
  line-height: 0.95;
}

.hero--home .hero__title strong {
  font-weight: 800;
  background: linear-gradient(120deg, var(--brand-blue-dark) 0%, var(--brand-blue) 42%, var(--brand-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero--home .hero__title strong.hero__title--accent,
.hero--home .hero__title--accent {
  background: linear-gradient(120deg, var(--brand-blue-dark) 0%, var(--brand-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero--home .hero__subtitle {
  color: rgba(30, 44, 35, 0.9);
  text-shadow: none;
  font-size: 0.98rem;
  max-width: 520px;
  margin-top: 18px;
  line-height: 1.5;
}

.hero--home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero--home .hero__actions .btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero--home .hero__actions .btn--primary {
  box-shadow: var(--shadow-brand-blue);
}

.hero--home .btn--hero-outline {
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-blue-dark);
  border: 2px solid var(--brand-blue);
  text-shadow: none;
  box-shadow: 0 2px 12px rgba(30, 50, 104, 0.1);
}

.hero--home .btn--hero-outline:hover {
  background: var(--gradient-blue);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-brand-blue);
}

/* Sidebar */
.hero--home .hero__sidebar {
  background: var(--gradient-blue-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 18px 14px;
  width: 100%;
  max-width: 248px;
  margin-top: 0;
  align-self: start;
  box-shadow: var(--shadow-brand-blue);
}

.hero--home .hero__sidebar-title {
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-red);
}

.hero--home .hero__sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero--home .hero__sidebar-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero--home .hero__sidebar-list li:last-child {
  border-bottom: none;
}

.hero--home .hero__sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 2px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 0;
  transition: all 0.2s ease;
}

.hero--home .hero__sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-red-bright);
}

.hero--home .hero__sidebar-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  flex-shrink: 0;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero--home .hero__sidebar-link:hover .hero__sidebar-icon {
  transform: translateY(-1px) scale(1.04);
  color: var(--white);
  opacity: 1;
}

.hero--home .hero__sidebar-icon-img,
.hero--home .hero__sidebar-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: brightness(0) saturate(100%) invert(100%);
}

.hero--home .hero__sidebar-icon-img {
  object-fit: contain;
  padding: 0;
}

.hero--home .hero__sidebar-icon--poultry,
.hero--home .hero__sidebar-icon--cattle,
.hero--home .hero__sidebar-icon--swine,
.hero--home .hero__sidebar-icon--ruminant,
.hero--home .hero__sidebar-icon--aquaculture,
.hero--home .hero__sidebar-icon--companion {
  background: none;
}

/* Stats bar — floats at bottom of hero */
.hero--home .hero__main {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  justify-content: flex-start;
  gap: 22px;
  padding-top: 0;
}

.hero--home .stats-bar {
  max-width: 860px;
  width: 100%;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.hero--home .stats-bar__inner {
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: none;
  overflow: visible;
}

.hero--home .stat {
  position: relative;
  gap: 16px;
  padding: 22px 20px;
  border-right: none;
}

.hero--home .stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #e0e0e0;
}

.hero--home .stat:last-child {
  border-right: none;
}

.hero--home .stat__icon {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue-light);
  border: 2px solid rgba(61, 91, 169, 0.22);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--brand-blue);
  box-shadow: 0 4px 16px rgba(30, 50, 104, 0.1);
}

.hero--home .stat:nth-child(even) .stat__icon {
  background: var(--brand-red-soft);
  border-color: rgba(226, 31, 38, 0.22);
  color: var(--brand-red);
  box-shadow: 0 4px 16px rgba(226, 31, 38, 0.1);
}

.hero--home .stat__icon svg,
.hero--home .stat__icon img {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: contain;
}

.hero--home .stat__icon img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(47%) saturate(1234%) hue-rotate(198deg) brightness(93%) contrast(89%);
}

.hero--home .stat:nth-child(even) .stat__icon img {
  filter: brightness(0) saturate(100%) invert(17%) sepia(95%) saturate(7482%) hue-rotate(353deg) brightness(95%) contrast(88%);
}

.hero--home .stat__icon--solid svg {
  fill: currentColor;
  stroke: none;
}

.hero--home .stat__icon--solid svg circle,
.hero--home .stat__icon--solid svg path {
  fill: currentColor;
}

.hero--home .stat__icon--outline svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero--home .stat__icon--outline svg .icon-fill {
  fill: currentColor;
  stroke: none;
}

.hero--home .stat__number,
.hero--home .stat__suffix {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}

.hero--home .stat__suffix {
  font-size: 1.3rem;
}

.hero--home .stat__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-top: 4px;
  line-height: 1.25;
}

/* Services — overlap hero slightly */
.hero--home + .services {
  padding: 72px 0 64px;
  margin-top: -24px;
  background: var(--gradient-surface);
  position: relative;
  z-index: 3;
  overflow: visible;
}

body[data-page="home"] .services .container {
  overflow: visible;
}

body[data-page="home"] .services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 2fr;
  gap: 20px;
  align-items: stretch;
  overflow: visible;
}

body[data-page="home"] .service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 28px 24px 72px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(61, 91, 169, 0.08);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
body[data-page="home"] .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-red);
  opacity: 0;
  transition: opacity 0.3s ease;
}
body[data-page="home"] .service-card:hover::before { opacity: 1; }

body[data-page="home"] .service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(61, 91, 169, 0.16);
}

body[data-page="home"] .service-card__icon {
  background: var(--gradient-blue);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(30, 50, 104, 0.22);
}

body[data-page="home"] .service-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

body[data-page="home"] .service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

body[data-page="home"] .service-card__text {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

body[data-page="home"] .service-card__btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  left: auto;
  width: 36px;
  height: 36px;
  background: var(--gradient-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(226, 31, 38, 0.28);
}

body[data-page="home"] .service-card__btn:hover,
body[data-page="home"] .service-card:hover .service-card__btn {
  background: var(--gradient-blue);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: var(--shadow-brand-blue);
}

/* Catalogue card — 5th grid item, full graphic image */
body[data-page="home"] .catalogue-card {
  grid-column: 5;
  position: relative;
  display: flex;
  min-height: 240px;
  height: 100%;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}

body[data-page="home"] .catalogue-card:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.1));
}

body[data-page="home"] .catalogue-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

body[data-page="home"] .catalogue-card__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 1200px) {
  body[data-page="home"] .services__grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }

  body[data-page="home"] .catalogue-card {
    grid-column: 1 / -1;
    min-height: 240px;
  }
}

@media (max-width: 992px) {
  .hero--home + .services {
    margin-top: 0;
    padding: 56px 0 48px;
  }

  body[data-page="home"] .partner {
    padding: 36px clamp(16px, 4vw, 24px) 44px;
  }
}

@media (max-width: 768px) {
  body[data-page="home"] .services__grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .catalogue-card {
    grid-column: 1;
    min-height: 200px;
  }

  body[data-page="home"] .service-card {
    min-height: 200px;
    padding: 24px 20px 64px;
  }

  .hero--home .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero--home .stat {
    padding: 20px 18px;
  }

  .hero--home .stat__icon {
    width: 64px;
    height: 64px;
  }

  .hero--home .stat__icon svg,
  .hero--home .stat__icon img {
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 480px) {
  body[data-page="home"] #site-header .header {
    padding-bottom: 16px;
  }

  .hero--home .stats-bar__inner {
    grid-template-columns: 1fr;
  }

  .hero--home .stat {
    padding: 18px 16px;
  }

  .hero--home .stat__icon {
    width: 58px;
    height: 58px;
  }

  .hero--home .stat__icon svg,
  .hero--home .stat__icon img {
    width: 56px;
    height: 56px;
  }

  .hero--home + .services {
    padding: 40px 0 36px;
  }
}

/* Partner Section — full-width rounded banner */
body[data-page="home"] .partner {
  padding: 40px clamp(20px, 4vw, 48px) 48px;
  background: var(--white);
}

body[data-page="home"] .partner__banner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: var(--gradient-blue-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 28px 32px 28px 36px;
  box-shadow: var(--shadow-brand-blue);
}

body[data-page="home"] .partner__grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(300px, 1.45fr) minmax(280px, 1.15fr);
  gap: 20px 28px;
  align-items: center;
  width: 100%;
}

body[data-page="home"] .partner__left {
  max-width: 100%;
  color: var(--white);
}

body[data-page="home"] .partner__left .section-tag {
  color: var(--white);
  background: rgba(226, 31, 38, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.62rem;
  margin-bottom: 8px;
}

body[data-page="home"] .partner__left .section-title {
  font-size: clamp(1.05rem, 1.6vw, 1.42rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--white);
}

body[data-page="home"] .partner__left .btn--accent {
  background: var(--gradient-red);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  box-shadow: var(--shadow-brand-red);
}

body[data-page="home"] .partner__left .btn--accent svg {
  width: 14px;
  height: 14px;
}

body[data-page="home"] .partner__left .btn--accent:hover {
  background: linear-gradient(135deg, var(--brand-red-dark) 0%, var(--brand-red-bright) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(226, 31, 38, 0.4);
}

body[data-page="home"] .partner__text {
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}

/* Horizontal benefits with vertical dividers */
body[data-page="home"] .partner__benefits {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  height: 100%;
}

body[data-page="home"] .partner__benefit {
  flex: 1;
  min-width: 0;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-page="home"] .partner__benefit:last-child {
  border-right: none;
}

body[data-page="home"] .partner__benefit-icon {
  background: transparent;
  border: none;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}

body[data-page="home"] .partner__benefit-icon img {
  width: auto;
  height: 60px;
  max-width: 68px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body[data-page="home"] .partner__benefit:hover .partner__benefit-icon img {
  transform: translateY(-2px) scale(1.05);
  opacity: 0.95;
}

body[data-page="home"] .partner__benefit-icon svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

body[data-page="home"] .partner__benefit span {
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
  display: block;
  text-align: center;
  max-width: 76px;
}

/* Partner Portal — horizontal card split */
body[data-page="home"] .partner__portal {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  min-height: 188px;
  align-self: stretch;
  justify-self: stretch;
}

body[data-page="home"] .partner__portal-card {
  flex: 1;
  min-width: 0;
  padding: 18px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

body[data-page="home"] .partner__portal-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
  color: var(--green-dark);
}

body[data-page="home"] .partner__portal-icon svg {
  width: 28px;
  height: 28px;
}

body[data-page="home"] .partner__portal-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}

body[data-page="home"] .partner__portal-card p {
  font-size: 0.65rem;
  color: var(--gray-600);
  margin-bottom: 10px;
  line-height: 1.4;
}

body[data-page="home"] .btn--portal {
  font-size: 0.68rem;
  padding: 7px 12px;
  width: auto;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body[data-page="home"] .btn--portal svg {
  width: 12px;
  height: 12px;
}

body[data-page="home"] .partner__portal-image {
  flex: 0 0 44%;
  max-width: 44%;
  min-height: 188px;
}

body[data-page="home"] .partner__portal-image img {
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 1400px) {
  body[data-page="home"] .partner {
    padding: 40px 40px 48px;
  }

  body[data-page="home"] .partner__banner {
    padding: 30px 40px 30px 44px;
  }
}

@media (max-width: 1100px) {
  body[data-page="home"] .partner {
    padding: 36px 20px 44px;
  }

  body[data-page="home"] .partner__banner {
    padding: 28px 24px;
  }

  body[data-page="home"] .partner__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body[data-page="home"] .partner__left {
    text-align: center;
  }

  body[data-page="home"] .partner__left .btn--accent {
    margin: 0 auto;
  }

  body[data-page="home"] .partner__benefits {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 16px;
  }

  body[data-page="home"] .partner__benefit {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    border-right: none;
    padding: 0 6px;
  }

  body[data-page="home"] .partner__benefit:nth-child(-n+3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 14px;
  }

  body[data-page="home"] .partner__benefit-icon svg {
    width: 34px;
    height: 34px;
  }

  body[data-page="home"] .partner__benefit-icon img {
    height: 52px;
    max-width: 60px;
  }

  body[data-page="home"] .partner__portal {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .partner {
    padding: 28px 16px 36px;
  }

  body[data-page="home"] .partner__banner {
    padding: 24px 18px;
    border-radius: 14px;
  }

  body[data-page="home"] .partner__benefit {
    flex: 0 0 50%;
    max-width: 50%;
  }

  body[data-page="home"] .partner__benefit:nth-child(-n+3) {
    border-bottom: none;
    padding-bottom: 0;
  }

  body[data-page="home"] .partner__benefit:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  body[data-page="home"] .partner__benefit-icon svg {
    width: 32px;
    height: 32px;
  }

  body[data-page="home"] .partner__benefit-icon img {
    height: 48px;
    max-width: 56px;
  }

  body[data-page="home"] .partner__portal {
    flex-direction: column;
    max-width: 100%;
  }

  body[data-page="home"] .partner__portal-image {
    flex: none;
    max-width: 100%;
    min-height: 150px;
    height: 150px;
  }

  body[data-page="home"] .partner__portal-image img {
    min-height: 150px;
  }
}

/* Brands */
body[data-page="home"] .brands {
  padding: 32px 0;
  background: var(--brand-blue-soft);
}

body[data-page="home"] .brands__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: nowrap;
}

body[data-page="home"] .brands__tagline {
  color: var(--gray-900);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

body[data-page="home"] .brands__marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

body[data-page="home"] .brands__track {
  display: flex;
  width: max-content;
  animation: brands-marquee 35s linear infinite;
}

body[data-page="home"] .brands__track:hover {
  animation-play-state: paused;
}

body[data-page="home"] .brands__slide {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 48px;
  padding-right: 48px;
}

@keyframes brands-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

body[data-page="home"] .brands__row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  flex-wrap: wrap;
  gap: 28px 40px;
}

body[data-page="home"] .brand-svg {
  filter: none;
  opacity: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .brands__track {
    animation: none;
  }
}

body[data-page="home"] .brand-svg:hover {
  transform: scale(1.06);
}

/* Chat widget — home page clearance */
body[data-page="home"] .chat-widget {
  bottom: 24px;
  right: 24px;
}

@media (max-width: 768px) {
  body[data-page="home"] .brands__layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  body[data-page="home"] .brands__marquee {
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  }

  body[data-page="home"] .brands__slide {
    gap: 36px;
    padding-right: 36px;
  }

  body[data-page="home"] .brands__row {
    justify-content: center;
    gap: 20px 28px;
  }

  body[data-page="home"] .brands__tagline {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .hero--home .hero__subtitle {
    color: var(--gray-700);
  }
}

.hero__tagline {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: 0.02em;
}

.testimonials__slider {
  width: 100%;
}

.testimonials__viewport {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.testimonials__viewport .testimonial-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-left-color 0.45s ease, background 0.45s ease;
}

.testimonials__viewport .testimonial-card.is-active {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(36, 53, 113, 0.12);
  border-left-color: var(--green-accent);
  background: var(--white, #fff);
}

/* Mobile hero: preserve the farm scene without competing with the message. */
@media (max-width: 768px) {
  .hero--home {
    min-height: auto;
    background: #eef3f8;
  }

  .hero--home .hero__image {
    object-position: 62% 30%;
    opacity: 0.76;
    filter: blur(2.5px) saturate(0.76) contrast(0.9) brightness(0.96);
    transform: scale(1.04);
  }

  .hero--home .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.84) 0%,
      rgba(250, 252, 255, 0.77) 50%,
      rgba(241, 246, 252, 0.72) 100%
    );
  }

  .hero--home .hero__layout {
    width: min(100% - 32px, 1160px);
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .hero--home .hero__main {
    gap: 24px;
    width: 100%;
  }

  .hero--home .hero__text,
  .hero--home .stats-bar,
  .hero--home .hero__sidebar {
    width: 100%;
    max-width: none;
  }

  .hero--home .hero__title,
  .hero--home .hero__subtitle {
    max-width: 100%;
  }

  .hero--home .hero__title {
    margin: 0;
    line-height: 1.12;
  }

  .hero--home .hero__actions {
    margin-top: 20px;
    gap: 10px;
  }

  .hero--home .hero__title-pre {
    color: #26364c;
  }

  .hero--home .hero__subtitle {
    color: #26364c;
    font-weight: 500;
    line-height: 1.58;
  }

  .hero--home .hero__tagline {
    color: #b41620;
  }

  .hero--home .stats-bar__inner {
    width: 100%;
  }

  .hero--home .stat {
    gap: 10px;
    min-width: 0;
    padding: 16px 12px;
  }

  .hero--home .stat__icon {
    width: 46px;
    height: 46px;
  }

  .hero--home .stat__icon svg,
  .hero--home .stat__icon img {
    width: 42px;
    height: 42px;
  }

  .hero--home .hero__sidebar {
    padding: 18px 16px;
  }

  .hero--home .hero__sidebar-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .hero--home .hero__sidebar-link {
    min-height: 52px;
    padding: 8px;
  }
}

@media (max-width: 340px) {
  .hero--home .hero__layout {
    width: min(100% - 24px, 1160px);
  }

  .hero--home .hero__sidebar-list {
    grid-template-columns: 1fr;
  }
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--gray-300, #d1d5db);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.testimonials__dot:hover {
  background: var(--green-accent);
}

.testimonials__dot.is-active {
  background: var(--green-dark);
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .testimonials__viewport .testimonial-card {
    transition: box-shadow 0.3s ease, border-left-color 0.3s ease, background 0.3s ease;
  }

  .testimonials__viewport .testimonial-card.is-active {
    transform: none;
  }
}

.testimonial-card {
  background: var(--gray-50, #f8f9fa);
  border-radius: var(--radius-lg, 16px);
  padding: 28px;
  margin: 0;
  border-left: 4px solid var(--brand-red);
  box-shadow: var(--shadow-card);
}
.testimonial-card p { font-style: italic; color: var(--gray-700); margin-bottom: 16px; }
.testimonial-card footer { display: flex; flex-direction: column; gap: 4px; }
.testimonial-card footer span { font-size: 0.85rem; color: var(--gray-600); }

.brands__slide--logos {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}
.brands__slide--logos img {
  height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .testimonials__viewport { grid-template-columns: 1fr; }
}
