
.homy-services,
.homy-services * {
  box-sizing: border-box;
}

.homy-services {
  --homy-orange: #ff641e;
  --homy-navy: #10274b;
  --homy-text: #667085;
  --homy-soft: #fffaf6;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 78px;
  font-family: "Poppins", sans-serif;
}

.homy-services__head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 42px;
}

.homy-services__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.homy-services__eyebrow span {
  width: 44px;
  height: 2px;
  background: var(--homy-orange);
  border-radius: 999px;
}

.homy-services__eyebrow strong {
  color: var(--homy-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.homy-services__head h2 {
  color: var(--homy-navy);
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0;
}

.homy-services__head p {
  max-width: 780px;
  margin: 18px auto 0;
  color: var(--homy-text);
  font-size: 16px;
  line-height: 1.75;
}

.homy-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  align-items: stretch;
}

.homy-card {
  background: #fff;
  border: 1px solid rgba(16,39,75,.07);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(16,39,75,.08);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease;
}

.homy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 46px rgba(16,39,75,.13);
}

.homy-card__image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #f5f5f5;
}

.homy-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}

.homy-card:hover .homy-card__image img {
  transform: scale(1.03);
}

.homy-card__circle {
  position: absolute;
  display: block;
  border-radius: 999px;
  pointer-events: none;
}

.homy-card__circle--1 {
  width: 145px;
  height: 145px;
  right: -48px;
  top: -44px;
  background: rgba(255,100,30,.68);
}

.homy-card__circle--2 {
  width: 105px;
  height: 105px;
  left: -34px;
  bottom: -42px;
  background: rgba(255,154,84,.48);
}

.homy-card__body {
  padding: 24px 25px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.homy-card__label {
  color: var(--homy-orange);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .035em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.homy-card h3 {
  color: var(--homy-navy);
  font-family: "Playfair Display", serif;
  font-size: 25px;
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 14px;
}

.homy-card p {
  color: var(--homy-text);
  font-size: 14.5px;
  line-height: 1.67;
  margin: 0 0 22px;
}

.homy-card__button {
  margin-top: auto;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff742f, #ff5a12);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 9px 20px rgba(255,100,30,.19);
  transition: transform .2s ease, box-shadow .2s ease;
}

.homy-card__button:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(255,100,30,.27);
}

.homy-card__button span:last-child {
  font-size: 23px;
  line-height: 1;
  font-weight: 400;
}

@media (max-width: 980px) {
  .homy-services {
    width: min(760px, calc(100% - 32px));
    padding: 58px 0 62px;
  }

  .homy-services__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .homy-card {
    display: grid;
    grid-template-columns: 42% 58%;
  }

  .homy-card__image {
    height: 100%;
    min-height: 280px;
  }
}


@media (max-width: 700px) {
  .homy-services {
    width: 100%;
    padding: 44px 0 48px;
    overflow: hidden;
  }

  .homy-services__head {
    width: calc(100% - 32px);
    margin: 0 auto 28px;
  }

  .homy-services__eyebrow {
    gap: 9px;
    margin-bottom: 14px;
  }

  .homy-services__eyebrow span {
    width: 28px;
  }

  .homy-services__eyebrow strong {
    font-size: 10px;
    letter-spacing: .18em;
  }

  .homy-services__head h2 {
    font-size: 32px;
  }

  .homy-services__head p {
    font-size: 14px;
    line-height: 1.65;
    margin-top: 14px;
  }

  /* CARROUSEL MOBILE */
  .homy-services__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 18px 24px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .homy-services__grid::-webkit-scrollbar {
    display: none;
  }

  .homy-card {
    display: flex;
    flex: 0 0 84%;
    min-width: 84%;
    max-width: 84%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    border-radius: 16px;
  }

  .homy-card:first-child {
    margin-left: 0;
  }

  .homy-card:last-child {
    margin-right: 8px;
  }

  .homy-card__image {
    height: 190px;
    min-height: 0;
  }

  .homy-card__body {
    padding: 21px 20px 22px;
  }

  .homy-card h3 {
    font-size: 23px;
  }

  .homy-card p {
    font-size: 14px;
  }

  .homy-card__button {
    min-height: 50px;
    font-size: 12.5px;
  }
}
