/* Homepage-only refinements. Each product uses its landing page's palette. */
#services .service-card {
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
/* Stretch the existing semantic link across the card: one tab stop, native touch
   and modified-click behavior, with no duplicate links or JavaScript handler. */
#services .service-request { position: static; }
#services .service-request::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
#services .service-card:has(.service-request:focus-visible) {
  outline: 3px solid #2161ed;
  outline-offset: 5px;
  box-shadow: 0 10px 26px #17376212;
}
#services .service-request:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) {
  #services .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px #17376214;
    border-color: #afc8f4;
  }
}
#services .service-card:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px #17376218;
}
@media (prefers-reduced-motion: reduce) {
  #services .service-card { transition: none; }
  #services .service-card:hover, #services .service-card:active { transform: none; }
}
#insights .home-feature-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.home-photo-feature {
  border-radius: 16px;
  overflow: hidden;
  background: #172a3d;
}
.home-photo-link {
  display: flex;
  position: relative;
  align-items: end;
  min-height: 330px;
  padding: 30px;
  color: #fff;
  isolation: isolate;
  height: 100%;
  box-sizing: border-box;
}
.home-guide-feature .home-photo-link {
  min-height: 290px;
}
.home-photo-link > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.home-photo-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    #06132100 0%,
    #06132166 28%,
    #061321e8 72%,
    #061321fa 100%
  );
}
.home-photo-link:hover > img {
  transform: scale(1.035);
}
.home-photo-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}
.home-photo-content {
  width: 100%;
}
.home-photo-label {
  display: inline-flex;
  padding: 5px 11px;
  border: 1px solid #ffffff50;
  border-radius: 6px;
  font-size: 11px;
  color: #fff;
  background: #0e223855;
  margin-bottom: 12px;
}
#insights .home-photo-feature h3 {
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 500;
  line-height: 1.6;
  color: #fff;
  margin: 0 0 13px;
}
.home-photo-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #edf2fa;
  font-size: 11px;
}
.home-photo-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 16px;
  border-top: 1px solid #ffffff35;
  font-size: 12px;
  color: #fff;
}
.home-photo-action > span {
  font-size: 20px;
}
.home-feature-preview {
  margin: -4px 0 0;
  color: #66768d;
  font-size: 10px;
}
#insights .latest-articles {
  align-self: stretch;
}
#products .kashir {
  --product-brand: #174f3d;
  --product-cover-bg: #e7efd8;
  --product-cover-ink: #203e35;
}
#products .marketing-card {
  --product-brand: #7850b5;
  --product-cover-bg: #7850b5;
  --product-cover-ink: #fff;
}
#products .store-card {
  --product-brand: #007173;
  --product-cover-bg: #007173;
  --product-cover-ink: #fff;
}
#products .product-card .product-cover {
  background: var(--product-cover-bg);
  color: var(--product-cover-ink);
}
#products
  .product-card
  .product-cover
  :is(
    h3,
    p,
    .product-category,
    .product-name,
    .product-name h3 span,
    .product-cover-top
  ) {
  color: inherit;
}
#products .product-cover-top {
  opacity: 1;
}
#products .product-card {
  display: flex;
  flex-direction: column;
}
#products .product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}
#products .product-content > ul {
  margin-bottom: 24px;
}
#products .product-brand-button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  margin-top: auto;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid var(--product-brand);
  border-radius: 9px;
  background: var(--product-brand);
  color: #fff;
  text-align: right;
  line-height: 1.6;
  box-shadow: none;
}
#products .product-brand-button:hover {
  background: var(--product-brand);
  color: #fff;
  filter: brightness(0.9);
  transform: translateY(-2px);
}
#products .product-brand-button:focus-visible {
  outline: 3px solid var(--product-brand);
  outline-offset: 4px;
}
@media (max-width: 700px) {
  .home-photo-link {
    min-height: 320px;
    padding: 24px;
  }
  .home-guide-feature .home-photo-link {
    min-height: 300px;
  }
  #insights .home-photo-feature h3 {
    font-size: 23px;
  }
  #products .product-brand-button {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-photo-link > img {
    transition: none;
  }
  .home-photo-link:hover > img,
  #products .product-brand-button:hover {
    transform: none;
  }
}
