/* ==================== Reset ==================== */
:root {
  --swy-white: #fff;
  --swy-text: #243447;
  --swy-heading: #123b5d;
  --swy-primary: #f28c28;
  --swy-copy: #536779;
  --swy-muted: #617384;
  --swy-light-copy: #dceaf4;
  --swy-border: #dfe6ec;
  --swy-grid-border: #e0e7ec;
  --swy-soft: #f5f7fa;
  --swy-links-bg: #f6f8fa;
  --swy-links-border: #e5e9ee;
  --swy-space-sm: 8px;
  --swy-space-md: 12px;
  --swy-space-lg: 18px;
  --swy-space-xl: 20px;
  --swy-space-2xl: 22px;
  --swy-space-3xl: 30px;
  --swy-radius-sm: 5px;
  --swy-radius-md: 8px;
  --swy-radius-lg: 9px;
}

.swy-home,
.swy-home *,
.swy-home *::before,
.swy-home *::after {
  box-sizing: border-box;
}

/* ==================== Base / Shared ==================== */
.swy-home {
  color: var(--swy-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  background: var(--swy-white);
}

.swy-home img {
  display: block;
  max-width: 100%;
}

.swy-home a {
  text-decoration: none;
}

.swy-label {
  margin: 0 0 7px;
  color: var(--swy-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.swy-title {
  margin: 0;
  color: var(--swy-heading);
  font-size: 36px;
  line-height: 1.25;
}

.swy-desc {
  max-width: 700px;
  margin: 11px 0 0;
  color: var(--swy-copy);
}

.swy-more {
  flex: none;
  color: var(--swy-heading);
  font-size: 14px;
  font-weight: 700;
}

.swy-more:hover {
  color: var(--swy-primary);
}

/* ==================== Layout ==================== */
.swy-wrap {
  width: 1180px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.swy-section {
  padding: 70px 0;
}

.swy-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--swy-space-3xl);
  margin-bottom: var(--swy-space-3xl);
}

.swy-cat-grid,
.swy-product-grid,
.swy-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.swy-resource-grid {
  gap: var(--swy-space-lg);
}

.swy-product-grid,
.swy-news-grid {
  gap: var(--swy-space-xl);
}

.swy-cat-grid,
.swy-solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--swy-space-2xl);
}

.swy-project-grid,
.swy-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.swy-project-grid {
  gap: var(--swy-space-2xl);
}

/* ==================== Components ==================== */
.swy-hero {
  display: flex;
  align-items: center;
  min-height: 620px;
  color: var(--swy-white);
  background: linear-gradient(90deg, rgba(7, 31, 51, .98), rgba(10, 47, 77, .83) 44%, rgba(10, 47, 77, .12)), url("/statics/images/swy-home/hero-livestock-equipment.webp") center / cover no-repeat;
}

.swy-hero-con {
  max-width: 700px;
  padding: 80px 0;
}

.swy-tag {
  display: inline-block;
  margin-bottom: var(--swy-space-lg);
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 30px;
  color: #ffd2a0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.swy-hero h1 {
  margin: 0 0 var(--swy-space-lg);
  font-size: 54px;
  line-height: 1.1;
}

.swy-hero p {
  margin: 0 0 28px;
  color: var(--swy-light-copy);
  font-size: 18px;
}

.swy-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--swy-space-md);
}

.swy-btn {
  display: inline-block;
  padding: 13px var(--swy-space-2xl);
  border-radius: var(--swy-radius-sm);
  font-weight: 700;
}

.swy-btn-orange {
  color: var(--swy-white);
  background: var(--swy-primary);
}

.swy-btn-line {
  border: 1px solid rgba(255, 255, 255, .55);
  color: var(--swy-white);
  background: rgba(255, 255, 255, .06);
}

.swy-facts {
  position: relative;
  z-index: 2;
  margin-top: -35px;
}

.swy-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: var(--swy-radius-md);
  background: var(--swy-white);
  box-shadow: 0 10px 35px rgba(25, 53, 77, .15);
}

.swy-fact {
  padding: 25px var(--swy-space-xl);
  border-right: 1px solid var(--swy-grid-border);
  text-align: center;
}

.swy-fact:last-child {
  border: 0;
}

.swy-fact strong {
  display: block;
  color: var(--swy-heading);
  font-size: 24px;
}

.swy-fact span {
  color: var(--swy-muted);
  font-size: 14px;
}

.swy-cat img,
.swy-solution img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swy-cat::after,
.swy-solution::after {
  position: absolute;
  inset: 0;
  content: "";
}

.swy-product,
.swy-project {
  overflow: hidden;
  border: 1px solid var(--swy-border);
  border-radius: var(--swy-radius-md);
  background: var(--swy-white);
}

.swy-product-img {
  height: 255px;
  background: var(--swy-white);
}

.swy-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.swy-product-text {
  padding: var(--swy-space-sm);
}

.swy-product h3 {
  min-height: 48px;
  margin: 0 0 10px;
  color: var(--swy-heading);
  font-size: 17px;
  line-height: 1.4;
}

.swy-product span,
.swy-news small {
  color: var(--swy-primary);
}

.swy-product span {
  font-size: 13px;
  font-weight: 700;
}

.swy-cat,
.swy-solution {
  position: relative;
  height: auto;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--swy-radius-lg);
  background: var(--swy-heading);
}

.swy-cat::after,
.swy-solution::after {
  background: linear-gradient(180deg, rgba(7, 31, 51, .05), rgba(7, 31, 51, .95));
}

.swy-cat-text,
.swy-solution-text {
  position: absolute;
  right: 25px;
  bottom: 24px;
  left: 25px;
  z-index: 2;
  color: var(--swy-white);
}

.swy-cat h3,
.swy-solution h3 {
  margin: 0 0 7px;
  font-size: 24px;
}

.swy-cat p,
.swy-solution p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--swy-light-copy);
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swy-factory {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  overflow: hidden;
  border-radius: 10px;
  background: var(--swy-heading);
}

.swy-factory-text {
  padding: 46px;
  color: var(--swy-white);
}

.swy-factory-text .swy-title {
  color: var(--swy-white);
}

.swy-factory-text p,
.swy-partner p {
  color: var(--swy-light-copy);
}

.swy-factory-img {
  min-height: 410px;
  background: url("/statics/images/swy-home/manufacturing-workshop.webp") center / cover no-repeat;
}

.swy-workshops {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.swy-workshops a {
  padding: 5px 10px;
  border: 1px solid var(--swy-border);
  border-radius: var(--swy-radius-sm);
  color: var(--swy-heading);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  background: var(--swy-white);
}

.swy-workshops a:hover {
  border-color: var(--swy-primary);
  color: var(--swy-primary);
}

.swy-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.swy-step {
  padding: 28px 24px;
  border: 1px solid var(--swy-border);
  border-right: 0;
  background: var(--swy-white);
}

.swy-step:last-child {
  border-right: 1px solid var(--swy-border);
}

.swy-step b {
  display: block;
  margin-bottom: 14px;
  color: var(--swy-primary);
  font-size: 27px;
}

.swy-step h3 {
  margin: 0 0 6px;
  color: var(--swy-heading);
  font-size: 16px;
}

.swy-step p,
.swy-project p,
.swy-resource p {
  margin: 0;
  color: var(--swy-muted);
  font-size: 13px;
}

.swy-project img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.swy-project-text {
  padding: var(--swy-space-xl);
}

.swy-project h3 {
  margin: 0 0 var(--swy-space-sm);
  color: var(--swy-heading);
  font-size: 19px;
  line-height: 1.4;
}

.swy-project p {
  font-size: 14px;
}

.swy-partner {
  padding: 72px 0;
  color: var(--swy-white);
  background: linear-gradient(90deg, rgba(7, 31, 51, .98), rgba(7, 31, 51, .82) 48%, rgba(7, 31, 51, .12)), url("/statics/images/swy-home/global-partnership.webp") center / cover no-repeat;
}

.swy-partner-con {
  max-width: 650px;
}

.swy-partner .swy-title {
  color: var(--swy-white);
}

.swy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--swy-space-sm);
  margin: var(--swy-space-2xl) 0;
}

.swy-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  font-size: 13px;
}

.swy-resource {
  padding: 27px;
  border: 1px solid var(--swy-border);
  border-radius: var(--swy-radius-md);
  color: var(--swy-heading);
  background: var(--swy-white);
}

.swy-resource b {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: var(--swy-space-lg);
  border-radius: var(--swy-radius-sm);
  color: var(--swy-white);
  font-size: 20px;
  line-height: 44px;
  text-align: center;
  background: var(--swy-primary);
}

.swy-resource h3 {
  margin: 0 0 7px;
  font-size: 20px;
}

.swy-resource:hover {
  border-color: var(--swy-primary);
}

.swy-news {
  display: grid;
  grid-template-columns: 115px 1fr;
  align-items: center;
  gap: 15px;
  padding: 14px;
  border: 1px solid var(--swy-border);
  border-radius: 7px;
  color: var(--swy-heading);
  background: var(--swy-white);
}

.swy-news img {
  width: 115px;
  height: 115px;
  object-fit: cover;
}

.swy-news h3 {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.4;
}

.swy-links-section {
  padding: 24px 0;
  border-top: 1px solid var(--swy-links-border);
  background: var(--swy-links-bg);
}

.swy-links-box {
  display: flex;
  align-items: flex-start;
  gap: var(--swy-space-2xl);
  padding: var(--swy-space-xl) 24px;
  border: 1px solid var(--swy-links-border);
  border-radius: 6px;
  background: var(--swy-white);
}

.swy-links-title {
  flex: 0 0 auto;
  margin: 2px 0 0;
  color: #263746;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.swy-links-list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: var(--swy-space-sm) var(--swy-space-2xl);
  min-width: 0;
}

.swy-links-list a {
  color: #5f6b76;
  font-size: 14px;
  line-height: 1.8;
  text-decoration: none;
  transition: color .2s ease;
}

.swy-links-list a:hover {
  color: #e56a16;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==================== Responsive Components ==================== */
@media (max-width: 1000px) {
  .swy-resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .swy-workshops {
    grid-template-columns: repeat(3, 1fr);
  }

  .swy-news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .swy-wrap {
    max-width: calc(100% - 28px);
  }

  .swy-section {
    padding: 50px 0;
  }

  .swy-head {
    display: block;
  }

  .swy-head .swy-more {
    display: inline-block;
    margin-top: 14px;
  }

  .swy-title {
    font-size: 29px;
  }

  .swy-hero {
    min-height: 550px;
    background-position: 62% center;
  }

  .swy-hero h1 {
    font-size: 38px;
  }

  .swy-btn {
    width: 100%;
    text-align: center;
  }

  .swy-facts {
    margin-top: 0;
  }

  .swy-facts-grid {
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--swy-grid-border);
    border-left: 1px solid var(--swy-grid-border);
    border-radius: 0;
    box-shadow: none;
  }

  .swy-fact,
  .swy-fact:last-child {
    border: 0;
    border-right: 1px solid var(--swy-grid-border);
    border-bottom: 1px solid var(--swy-grid-border);
  }

  .swy-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--swy-space-sm);
  }

  .swy-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--swy-space-sm);
  }

  .swy-resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .swy-solution-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--swy-space-sm);
  }

  .swy-project-grid {
    grid-template-columns: 1fr;
  }

  .swy-cat-text,
  .swy-solution-text {
    right: var(--swy-space-sm);
    bottom: var(--swy-space-sm);
    left: var(--swy-space-sm);
  }

  .swy-cat h3,
  .swy-solution h3 {
    margin: 0;
    font-size: 12px;
    line-height: 1.1;
  }

  .swy-cat p,
  .swy-solution p {
    display: none;
  }

  .swy-product-img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .swy-product-text {
    padding: var(--swy-space-md);
  }

  .swy-product h3 {
    min-height: 15px;
    font-size: 13px;
  }

  .swy-factory {
    grid-template-columns: 1fr;
  }

  .swy-factory-text {
    padding: 28px var(--swy-space-2xl) var(--swy-space-2xl);
  }

  .swy-factory-text p {
    margin-bottom: var(--swy-space-lg);
  }

  .swy-factory-img {
    min-height: 240px;
  }

  .swy-workshops,
  .swy-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .swy-process {
    gap: var(--swy-space-sm);
  }

  .swy-step,
  .swy-step:last-child {
    padding: 15px 10px;
    border: 1px solid var(--swy-border);
  }

  .swy-resource {
    padding: var(--swy-space-lg) 15px;
  }

  .swy-resource b {
    width: 38px;
    height: 38px;
    margin-bottom: var(--swy-space-md);
    font-size: 18px;
    line-height: 38px;
  }

  .swy-resource h3 {
    font-size: 17px;
  }

  .swy-resource p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .swy-partner {
    background-position: 68% center;
  }

  .swy-links-section {
    padding: 16px 0;
  }

  .swy-links-box {
    display: block;
    padding: 16px;
  }

  .swy-links-title {
    margin: 0 0 var(--swy-space-sm);
    font-size: 15px;
  }

  .swy-links-list {
    gap: 5px 16px;
  }

  .swy-links-list a {
    font-size: 13px;
  }
}

/* ==================== Utilities ==================== */
.swy-soft {
  background: var(--swy-soft);
}
