/*
 * Alf Theme — Home Page: Technology Showcase
 * Figma nodes: 667:7203 (desktop) · 668:8581 (mobile)
 *
 * Dark section: heading, a row of 4 tabs (icon + label only), then a
 * shared content panel (eyebrow, body, CTA, image) that swaps per the
 * active tab — see assets/js/tech-showcase.js.
 */

/* ═══════════════════════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════════════════════ */
.tech-showcase {
  background-color: var(--color-dark);
  padding: var(--section-pad-desktop) var(--section-pad-x);
}

.tech-showcase__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap-desktop);
}

/* ── Header ────────────────────────────────────────────────────────── */
.tech-showcase__header {
  width: 100%;
}

.tech-showcase__heading {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  color: var(--color-bg);
  margin: 0;
  line-height: normal;
}

/* ═══════════════════════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════════════════════ */
.tech-showcase__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.tech-showcase__tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border: none;
  border-bottom: 2px solid var(--color-primary);
  border-radius: 4px;
  background-color: var(--color-bg);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tech-showcase__tab.is-active {
  background-color: var(--color-primary);
  border-bottom-color: var(--color-bg);
}

.tech-showcase__tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.tech-showcase__tab-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.tech-showcase__tab-icon-svg--active {
  display: none;
}

.tech-showcase__tab.is-active .tech-showcase__tab-icon-svg--active {
  display: block;
}

.tech-showcase__tab.is-active .tech-showcase__tab-icon-svg--inactive {
  display: none;
}

.tech-showcase__tab-label {
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  color: var(--color-dark);
  white-space: nowrap;
  line-height: normal;
}

.tech-showcase__tab.is-active .tech-showcase__tab-label {
  color: var(--color-bg);
}

/* ═══════════════════════════════════════════════════════════════════
   CONTENT PANEL
   ═══════════════════════════════════════════════════════════════════ */
.tech-showcase__content {
  width: 100%;
  background-color: var(--color-darker);
}

.tech-showcase__panel {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.tech-showcase__panel-text {
  flex: 1 0 0;
  min-width: 292px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 40px 16px;
}

.tech-showcase__eyebrow {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-bg);
  text-transform: uppercase;
  margin: 0;
  line-height: normal;
}

.tech-showcase__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-showcase__body p {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-regular);
  color: var(--color-bg);
  margin: 0;
  line-height: normal;
}

.tech-showcase__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  max-width: 343px;
  background-color: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-regular);
  line-height: normal;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.tech-showcase__cta:hover {
  background-color: #fff;
  transform: translateY(-2px);
}

.tech-showcase__cta svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tech-showcase__panel-image {
  flex: 1 0 0;
  min-width: 292px;
  height: 368px;
}

.tech-showcase__panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet ≤1024px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tech-showcase {
    padding: var(--section-pad-tab-landscape) 60px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile ≤768px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .tech-showcase {
    padding: var(--spacing-between-sections-mobile) 16px;
  }

  .tech-showcase__heading {
    font-size: var(--font-size-h2-mobile);
    text-align: center;
  }

  .tech-showcase__tabs {
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }

  .tech-showcase__tabs::-webkit-scrollbar {
    display: none;
  }

  .tech-showcase__tab {
    flex: 0 0 140px;
    justify-content: center;
    scroll-snap-align: start;
  }

  .tech-showcase__panel {
    flex-direction: column;
  }

  .tech-showcase__panel-text {
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .tech-showcase__panel-image {
    min-width: 100%;
    width: 100%;
  }
}
