/* Naseeds homepage sections */

.ns-sol {
  padding: 72px 0 48px;
  background: var(--nf-cream, #fffaf3);
}

.ns-sol__title,
.ns-why__title,
.ns-support__title,
.nf-cap-prod--home .nf-cap-prod__title {
  margin: 0;
  font-family: var(--nf-display, "NAF Passion Sans Wide", Georgia, serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ns-sol__title {
  color: #760f26;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.3;
}

.ns-sol__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}

.ns-sol__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  min-height: 48px;
  padding: 6px 18px 6px 8px;
  background: #fff5e4;
  color: #760f26;
  font-family: var(--nf-display, "NAF Passion Sans", Georgia, serif);
  font-size: 16px;
  line-height: 1.3;
}

.ns-sol__tab:not(:has(.ns-sol__tab-icon)) {
  padding-left: 18px;
}

.ns-sol__tab-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: none;
}

.ns-sol__tab.is-active {
  background: #760f26;
  color: #fffaf3;
}

.ns-sol__tab.is-active .ns-sol__tab-icon {
  filter: brightness(0) invert(1);
}

.ns-sol__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}

.ns-sol__desc {
  margin: 0;
  max-width: 820px;
  color: #2b1311;
  font-size: 16px;
  line-height: 24px;
}

.ns-sol__navs {
  display: flex;
  gap: 8px;
  flex: none;
}

.ns-sol__row {
  display: block;
}

.ns-sol__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 4);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.ns-sol__track::-webkit-scrollbar {
  display: none;
}

.ns-sol__card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.ns-sol__media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 16px;
  border-radius: 16px;
  background: #fff5e4;
  overflow: hidden;
}

.ns-sol__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ns-sol__name {
  font-family: var(--nf-display, "NAF Passion Sans", Georgia, serif);
  font-size: 16px;
  line-height: 1.3;
  color: #760f26;
}

.ns-sol__nav,
.ns-sol__empty {
  color: #760f26;
}

.ns-sol__nav {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff5e4;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ns-sol__empty {
  margin: 0;
  font-size: 16px;
}

.ns-why {
  background: #760f26;
  padding: 64px 0;
}

.ns-why__title {
  color: #fff5e4;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.3;
  margin-bottom: 40px;
}

.ns-why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
}

.ns-why__item--lead {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ns-why__item--lead .ns-why__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}

.ns-why__item--lead .ns-why__copy {
  position: relative;
  z-index: 1;
}

.ns-why__item--side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ns-why__item--side .ns-why__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.ns-why__item--side .ns-why__art {
  width: 92px;
  height: 92px;
  object-fit: contain;
  flex: none;
}

.ns-why__value {
  margin: 0;
  color: #f6c82f;
  font-family: var(--nf-display, "NAF Passion Sans", Georgia, serif);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
}

.ns-why__label {
  margin: 4px 0 0;
  color: #fffaf3;
  font-size: 14px;
  line-height: 1.35;
}

.nf-cap-prod--home {
  padding-top: 72px;
}

.nf-cap-prod--home .nf-cap-prod__title {
  color: #760f26;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.3;
}

.ns-support {
  background: #760f26;
  padding: 72px 0;
  color: #fff5e4;
}

.ns-support__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 48px;
  align-items: start;
}

.ns-support__title {
  color: #fff5e4;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.3;
}

.ns-support__sub {
  margin: 16px 0 28px;
  max-width: 640px;
  color: #e4dbcc;
  font-size: 18px;
  line-height: 28px;
}

.ns-support__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ns-support__row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.ns-support__icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #fff5e4;
  color: #760f26;
  display: grid;
  place-items: center;
  flex: none;
}

.ns-support__icon svg {
  width: 28px;
  height: 28px;
}

.ns-support__label {
  font-family: var(--nf-display, "NAF Passion Sans", Georgia, serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
}

.ns-support__hotline {
  margin-top: 32px;
}

.ns-support__hotline p {
  margin: 0 0 10px;
  color: #e4dbcc;
  font-size: 16px;
}

.ns-support__phone {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff5e4;
  color: #760f26;
  text-decoration: none;
  padding: 10px 18px;
  font-weight: 600;
}

.ns-support__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ns-support__qr-card {
  width: 264px;
  height: 263px;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-decoration: none;
}

.ns-support__qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ns-support__qr-fallback {
  font-family: var(--nf-display, Georgia, serif);
  font-size: 28px;
  color: #760f26;
}

.ns-support__caption {
  margin: 0;
  text-align: center;
  color: #e4dbcc;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 1023px) {
  .ns-why__grid,
  .ns-support__grid {
    grid-template-columns: 1fr;
  }

  .ns-support__qr-card {
    width: min(264px, 100%);
  }
}

@media (max-width: 767px) {
  .ns-sol,
  .ns-why,
  .ns-support,
  .nf-cap-prod--home {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .ns-why__grid {
    grid-template-columns: 1fr;
  }

  .ns-sol__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .ns-sol__track {
    grid-auto-columns: 78%;
  }
}
