/* ==========================================================================
   Studio Hikari Services — seção "Nossos serviços"
   Blindado contra o cascade do Salient/Nectar (.light / .dark) via .shs escopo
   ========================================================================== */

.shs {
  --shs-accent: #e8503a;
  --shs-gutter: 0px;

  --shs-bg: transparent;
  --shs-fg: #f4f4f4;
  --shs-muted: #a9a9a9;
  --shs-eyebrow: #9a9a9a;
  --shs-border: rgba(255, 255, 255, 0.12);
  --shs-border-strong: rgba(255, 255, 255, 0.16);
  --shs-tag-border: rgba(255, 255, 255, 0.22);
  --shs-tag-fg: #eaeaea;
  --shs-hover: rgba(255, 255, 255, 0.028);

  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-left: var(--shs-gutter);
  padding-right: var(--shs-gutter);
  background: var(--shs-bg);
  color: var(--shs-fg);
  font-family: inherit;
}

.shs.shs--light {
  --shs-fg: #16171a;
  --shs-muted: #565a61;
  --shs-eyebrow: #6c7076;
  --shs-border: rgba(0, 0, 0, 0.12);
  --shs-border-strong: rgba(0, 0, 0, 0.16);
  --shs-tag-border: rgba(0, 0, 0, 0.2);
  --shs-tag-fg: #26282c;
  --shs-hover: rgba(0, 0, 0, 0.025);
}

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

.shs .shs__inner {
  width: 100%;
  max-width: var(--shs-max-width, none);
  margin: 0 auto;
}

/* ---- Cabeçalho -------------------------------------------------------- */
.shs .shs__header {
  margin: 0 0 34px;
}

.shs .shs__eyebrow {
  margin: 0 0 18px;
  padding: 0;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--shs-eyebrow);
}

.shs .shs__title {
  margin: 0;
  padding: 0;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--shs-fg);
}

/* ---- Lista ------------------------------------------------------------ */
.shs .shs__list {
  border: 1px solid var(--shs-border-strong);
  border-radius: var(--shs-radius, 0);
  overflow: hidden;
}

.shs .shs__item {
  display: grid;
  grid-template-columns: 120px minmax(190px, 1fr) minmax(240px, 1.5fr) minmax(260px, 1.35fr);
  grid-template-areas: "media name desc apps";
  column-gap: 40px;
  align-items: start;
  padding: var(--shs-row-pad, 40px) 40px;
  transition: background-color 0.25s ease;
}

.shs .shs__item + .shs__item {
  border-top: 1px solid var(--shs-border);
}

.shs .shs__item:hover {
  background: var(--shs-hover);
}

/* ---- Mídia / ícone ---------------------------------------------------- */
.shs .shs__media {
  grid-area: media;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 1px;
}

.shs .shs__media .shs__icon {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72px;
  height: auto;
  object-fit: contain;
}

/* ---- Nome ------------------------------------------------------------- */
.shs .shs__name {
  grid-area: name;
  margin: 0;
  padding: 0;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--shs-fg);
}

/* ---- Descrição -------------------------------------------------------- */
.shs .shs__desc {
  grid-area: desc;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--shs-muted);
  max-width: 42ch;
}

/* ---- Bloco de aplicações --------------------------------------------- */
.shs .shs__apps {
  grid-area: apps;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.shs .shs__apps-label {
  margin: 0 0 14px;
  padding: 0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--shs-eyebrow);
}

.shs .shs__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shs .shs__tag {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 10px;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--shs-tag-fg);
  background: var(--shs-tag-bg, transparent);
  border: 1px solid var(--shs-tag-border);
  border-radius: 999px;
  white-space: nowrap;
}

/* Modo solid: fundo preenchido; borda acompanha o fundo (injetados via PHP). */
.shs.shs--tags-solid .shs__tag {
  font-weight: 500;
}

/* ---- Link "Saiba mais" ----------------------------------------------- */
.shs .shs__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--shs-accent);
  text-decoration: none;
  box-shadow: none;
  border: 0;
  background: none;
  transition: opacity 0.2s ease, gap 0.2s ease;
}

.shs .shs__more:hover,
.shs .shs__more:focus {
  color: var(--shs-accent);
  text-decoration: none;
  gap: 11px;
  opacity: 0.85;
}

.shs .shs__more:focus-visible {
  outline: 2px solid var(--shs-accent);
  outline-offset: 4px;
}

.shs .shs__more-arrow {
  flex: 0 0 auto;
  color: var(--shs-accent);
}

/* ---- Reveal opcional (JS adiciona is-inview) ------------------------- */
.shs .shs__item.shs-reveal {
  opacity: 0;
  transform: translateY(14px);
}

.shs .shs__item.shs-reveal.is-inview {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ==========================================================================
   Responsivo
   Base: gutter 0 por padrão (o bloco herda o recuo do container/tema).
   O param `gutter` aplica um recuo lateral uniforme quando definido.
   Cap de conteúdo via max-width (default 1840px).
   ========================================================================== */

/* ---- ≤1440px: mantém 4 colunas; afina gap, título e colunas ----------- */
@media (max-width: 1440px) {
  .shs .shs__item {
    grid-template-columns: 110px minmax(168px, 1fr) minmax(210px, 1.45fr) minmax(238px, 1.3fr);
    column-gap: 32px;
  }

  .shs .shs__title {
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  }
}

/* ---- Tablet (≤1080px): empilha mídia+nome / descrição / aplicações ---- */
@media (max-width: 1080px) {
  .shs .shs__item {
    grid-template-columns: 76px 1fr;
    grid-template-areas:
      "media name"
      "desc  desc"
      "apps  apps";
    column-gap: 24px;
    row-gap: 22px;
    padding: 34px 32px;
  }

  .shs .shs__media {
    align-items: center;
  }

  .shs .shs__media .shs__icon {
    max-height: 56px;
  }

  .shs .shs__name {
    align-self: center;
  }

  .shs .shs__desc {
    max-width: 68ch;
  }
}

/* ---- Mobile (≤600px): tipografia e paddings compactos --------------- */
@media (max-width: 600px) {
  .shs .shs__header {
    margin-bottom: 26px;
  }

  .shs .shs__title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .shs .shs__item {
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    row-gap: 18px;
    padding: 26px 22px;
  }

  .shs .shs__media .shs__icon {
    max-height: 46px;
  }

  .shs .shs__desc {
    font-size: 0.95rem;
  }
}

/* Respeita preferência de menos movimento */
@media (prefers-reduced-motion: reduce) {
  .shs .shs__item.shs-reveal,
  .shs .shs__item.shs-reveal.is-inview {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
