/**
 * Tjenester hub — service picker (text buttons) + panel. Cache bust via filemtime in functions.php.
 */

/* Extra clearance below header (no theme page-header band on this template) */
.induscity-svc-hub-wrap {
  position: relative;
  z-index: 2;
  padding-top: 0;
  scroll-margin-top: 120px;
}

.page-template-template-fullwidth-php .induscity-svc-hub-wrap {
  margin-top: 110px;
  padding-top: 0.35rem;
}

@media (max-width: 991px) {
  .page-template-template-fullwidth-php .induscity-svc-hub-wrap {
    margin-top: 90px;
  }
}

.admin-bar .page-template-template-fullwidth-php .induscity-svc-hub-wrap {
  margin-top: 142px;
}

.induscity-tjenester-hub-page .site-content {
  padding-top: 100px;
}

@media (max-width: 991px) {
  .induscity-tjenester-hub-page .site-content {
    padding-top: 88px;
  }
}

.admin-bar.induscity-tjenester-hub-page .site-content {
  padding-top: 132px;
}

.induscity-svc-hub {
  position: relative;
  z-index: 2;
  color: #252525;
}

.induscity-svc-hub-header {
  display: none;
}

.induscity-svc-hub-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #252525;
}

/* —— Card grid (reference: title pill + photo) —— */
.induscity-svc-pick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: -0.65rem 0 3rem;
  padding: 0;
}

@media (max-width: 991px) {
  .induscity-svc-pick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 575px) {
  .induscity-svc-pick-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Plain control: color + radius live on the label; no card chrome */
.induscity-svc-hub a.induscity-svc-pick-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  text-decoration: none !important;
  font-size: 16px;
  line-height: 1.35;
  color: #252525;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.induscity-svc-hub a.induscity-svc-pick-card:hover,
.induscity-svc-hub a.induscity-svc-pick-card:focus {
  text-decoration: none !important;
  outline: none;
  box-shadow: none;
}

.induscity-svc-hub a.induscity-svc-pick-card:focus-visible {
  outline: none;
}

.induscity-svc-hub a.induscity-svc-pick-card:focus-visible .induscity-svc-pick-card__title {
  outline: 2px solid #ff3a3a;
  outline-offset: 2px;
}

.induscity-svc-hub a.induscity-svc-pick-card.is-active {
  border: none;
  box-shadow: none;
}

/* High specificity so theme .content-area a never hides labels */
.induscity-svc-hub a.induscity-svc-pick-card .induscity-svc-pick-card__title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 14px;
  margin: 0;
  font-size: 16px !important;
  font-weight: 400;
  line-height: 1.35 !important;
  text-align: center;
  text-indent: 0 !important;
  text-transform: none;
  color: #252525 !important;
  background: #f0f0f0;
  border: none;
  border-radius: 6px;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  -webkit-text-fill-color: #252525;
  position: relative;
  z-index: 1;
}

.induscity-svc-hub a.induscity-svc-pick-card.is-active .induscity-svc-pick-card__title {
  background: #ff3a3a;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.induscity-svc-hub a.induscity-svc-pick-card:not(.is-active):hover .induscity-svc-pick-card__title {
  background: #e8e8e8;
}

.induscity-svc-hub a.induscity-svc-pick-card .induscity-svc-pick-card__label {
  display: block;
  width: 100%;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-indent: 0 !important;
  color: inherit !important;
  -webkit-text-fill-color: inherit;
  overflow: visible !important;
  white-space: normal;
}

.induscity-svc-panel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.75rem;
}

.induscity-svc-panel-inner {
  padding-top: 0.5rem;
  margin-top: 0;
}

.induscity-auto-portfolio-wrap {
  margin-top: 1.75rem;
}

.induscity-auto-portfolio-title {
  margin: 0 0 1rem;
  padding: 0;
  text-align: left;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #252525;
}

/* Duplicate nav row at top of service body (hub only) */
.induscity-svc-hub .induscity-svc-panel-inner > .vc_row:first-child,
.induscity-svc-hub .induscity-svc-panel-inner > .vc_row-fluid:first-child,
.induscity-svc-hub .induscity-svc-panel-inner > .wpb-content-wrapper > .vc_row:first-child,
.induscity-svc-hub .induscity-svc-panel-inner > .wp-block-columns:first-child,
.induscity-svc-hub .induscity-svc-panel-inner > .elementor-section:first-child {
  display: none !important;
}
