/**
 * Slim header utility bar (social + contact) shown above the main menu.
 *
 * Composes existing tokens/components only — see
 * INDYDTF_DESIGN_SYSTEM_IMPLEMENTATION_RULES.md. Layout/placement classes
 * (indydtf-topbar*) are domain-owned; the icon buttons reuse the shared
 * .indy-icon-button primitive from indydtf-components.css and are only
 * retinted for a dark bar via its existing --icon-btn-* custom properties.
 */

.indydtf-topbar {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--indy-color-border);
  background: var(--indy-color-surface-soft);
  color: var(--indy-color-muted);
}

.indydtf-topbar__inner {
  display: flex;
  width: 100%;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--indy-space-4);
  min-height: 44px;
  padding-inline: var(--site-gutter-desktop);
  padding-block: var(--indy-space-1);
}

.indydtf-topbar__social,
.indydtf-topbar__contact {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--indy-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.indydtf-topbar__spacer {
  flex: 1 1 auto;
}

.indydtf-topbar__icon {
  --icon-btn-bg: var(--indy-color-surface);
  --icon-btn-color: var(--color-primary-dark);
  --icon-btn-border: var(--indy-color-border);
  --icon-btn-hover-bg: var(--color-secondary);
  --icon-btn-hover-color: var(--color-primary);
  --icon-btn-hover-border: var(--color-secondary-dark);
  --icon-btn-active-bg: var(--color-secondary-dark);
  --icon-btn-active-color: var(--color-primary-dark);
  --icon-btn-active-border: var(--color-secondary-dark);
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  box-shadow: var(--indy-shadow-sm);
}

.indydtf-topbar__icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.indydtf-topbar__icon--inactive {
  cursor: default;
  opacity: 0.74;
}

.indydtf-topbar__icon--inactive:hover {
  border-color: var(--indy-color-border);
  background: var(--indy-color-surface);
  color: var(--color-primary-dark);
  transform: none;
}

.indydtf-topbar__phone {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-inline: var(--indy-space-2);
  border-radius: var(--indy-radius-pill);
  color: var(--color-primary-dark);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}

.indydtf-topbar__phone:hover,
.indydtf-topbar__phone:focus-visible {
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .indydtf-topbar__inner {
    gap: var(--indy-space-2);
    min-height: 42px;
    padding-inline: var(--site-gutter-tablet);
  }

  .indydtf-topbar__social,
  .indydtf-topbar__contact {
    gap: var(--indy-space-1);
  }

  .indydtf-topbar__phone {
    font-size: 0.8rem;
  }
}

@media (max-width: 479px) {
  .indydtf-topbar__inner {
    min-height: 40px;
    padding-inline: var(--site-gutter-mobile);
  }

  .indydtf-topbar__phone {
    font-size: 0.74rem;
  }

  .indydtf-topbar__icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  .indydtf-topbar__icon svg {
    width: 18px;
    height: 18px;
  }
}
