/* =========================================================
   HBA Directory — Frontend Styles
   ========================================================= */

:root {
  --hba-primary:    #1E3322;
  --hba-accent:     #4A7235;
  --hba-gold:       #B08E1A;
  --hba-light:      #F0EFEA;
  --hba-border:     #D8D4CB;
  --hba-text:       #2C2C2C;
  --hba-muted:      #6B7A8D;
  --hba-success-bg: #E8F5E9;
  --hba-success-fg: #2E7D32;
  --hba-error-bg:   #FDECEA;
  --hba-error-fg:   #C62828;
  --hba-radius:     8px;
  --hba-shadow:     0 2px 12px rgba(0,0,0,.10);
}

/* ── Utility ─────────────────────────────────────────────── */
.hba-notice {
  padding: 12px 16px;
  border-radius: var(--hba-radius);
  background: var(--hba-light);
  margin-bottom: 20px;
  font-size: .95rem;
}
.hba-notice--success { background: var(--hba-success-bg); color: var(--hba-success-fg); }
.hba-notice--error   { background: var(--hba-error-bg);   color: var(--hba-error-fg);   }

.hba-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--hba-primary);
  color: #fff;
}
.hba-badge--associate { background: #1a3a5c; }
.hba-badge--builder   { background: #2d6a4f; }
.hba-badge--affiliate { background: var(--hba-accent); }
.hba-badge--small     { font-size: .7rem; padding: 2px 7px; }

/* ── Buttons ─────────────────────────────────────────────── */
.hba-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--hba-radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
  text-decoration: none;
}
.hba-btn--primary {
  background: var(--hba-accent);
  color: #fff;
  border-color: var(--hba-accent);
}
.hba-btn--primary:hover {
  background: #b07d20;
  border-color: #b07d20;
  color: #fff;
}
.hba-btn--secondary {
  background: transparent;
  color: var(--hba-primary);
  border-color: var(--hba-primary);
}
.hba-btn--secondary:hover {
  background: var(--hba-primary);
  color: #fff;
}
.hba-btn--lg { padding: 14px 32px; font-size: 1.05rem; }

/* ── Forms ───────────────────────────────────────────────── */
.hba-form { max-width: 700px; }
.hba-form__field { margin-bottom: 20px; }
.hba-form__field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--hba-text);
  font-size: .92rem;
}
.hba-form__field label small {
  font-weight: 400;
  color: var(--hba-muted);
}
.hba-form__field input[type="text"],
.hba-form__field input[type="email"],
.hba-form__field input[type="password"],
.hba-form__field input[type="url"],
.hba-form__field input[type="tel"],
.hba-form__field textarea,
.hba-form__field select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--hba-border);
  border-radius: var(--hba-radius);
  font-size: .95rem;
  color: var(--hba-text);
  background: #fff;
  transition: border-color .15s;
  box-sizing: border-box;
}
.hba-form__field input:focus,
.hba-form__field textarea:focus {
  outline: none;
  border-color: var(--hba-primary);
}
.hba-form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hba-form__row--split .hba-form__field--wide {
  grid-column: 1 / -1;
}
.hba-form__footer {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.hba-form__note { font-size: .85rem; color: var(--hba-muted); margin: 0; }
.hba-form__selected-plan {
  padding: 10px 14px;
  background: var(--hba-light);
  border-radius: var(--hba-radius);
  margin-bottom: 24px;
  font-size: .93rem;
}
.hba-form__selected-plan a { color: var(--hba-accent); }

/* ── Membership Cards (Signup) ───────────────────────────── */
.hba-signup-wrap { max-width: 820px; margin: 0 auto; }
.hba-signup__title { margin-bottom: 28px; color: var(--hba-primary); }

.hba-membership-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.hba-membership-card {
  border: 2px solid var(--hba-border);
  border-radius: var(--hba-radius);
  padding: 28px 24px;
  transition: border-color .18s, box-shadow .18s;
}
.hba-membership-card:hover,
.hba-membership-card.is-selected {
  border-color: var(--hba-accent);
  box-shadow: var(--hba-shadow);
}
.hba-membership-card__header { margin-bottom: 16px; }
.hba-membership-card__header h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: var(--hba-primary);
}
.hba-membership-card__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hba-accent);
  line-height: 1;
}
.hba-membership-card__price span { font-size: .9rem; font-weight: 400; color: var(--hba-muted); }
.hba-membership-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.hba-membership-card__features li {
  padding: 5px 0;
  font-size: .92rem;
  color: var(--hba-text);
}
.hba-membership-card__features li::before {
  content: "✓ ";
  color: var(--hba-accent);
  font-weight: 700;
}

/* ── Directory Grid ──────────────────────────────────────── */
.hba-directory-wrap { width: 100%; }
.hba-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.hba-company-card {
  border: 1.5px solid var(--hba-border);
  border-radius: var(--hba-radius);
  overflow: hidden;
  transition: box-shadow .18s, transform .15s;
  background: #fff;
}
.hba-company-card:hover {
  box-shadow: var(--hba-shadow);
  transform: translateY(-2px);
}
.hba-company-card__inner {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.hba-company-card__logo {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--hba-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hba-company-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hba-company-card__logo-placeholder {
  font-size: 3rem;
  font-weight: 700;
  color: var(--hba-muted);
  text-transform: uppercase;
}
.hba-company-card__body { padding: 16px; flex: 1; }
.hba-company-card__name {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--hba-primary);
}
.hba-company-card__services {
  font-size: .85rem;
  color: var(--hba-muted);
  margin: 8px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hba-company-card__contact {
  margin-top: 10px;
  font-size: .83rem;
  color: var(--hba-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Directory Pagination ────────────────────────────────── */
.hba-directory-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
}
.hba-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1.5px solid var(--hba-border);
  text-decoration: none;
  font-size: .9rem;
  color: var(--hba-text);
  transition: background .15s;
}
.hba-page-btn:hover,
.hba-page-btn--active {
  background: var(--hba-primary);
  color: #fff;
  border-color: var(--hba-primary);
}

/* ── Company Single ──────────────────────────────────────── */
.hba-company-single { max-width: 860px; margin: 0 auto; }
.hba-company-single__header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1.5px solid var(--hba-border);
}
.hba-company-single__logo {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  border-radius: var(--hba-radius);
  overflow: hidden;
  border: 1.5px solid var(--hba-border);
}
.hba-company-single__logo img { width: 100%; height: 100%; object-fit: cover; }
.hba-company-single__name { margin: 0 0 10px; color: var(--hba-primary); }
.hba-company-single__contact-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.hba-company-single__contact-list li { margin: 5px 0; font-size: .93rem; }
.hba-company-single__contact-list a { color: var(--hba-primary); text-decoration: underline; }

.hba-service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hba-service-tag {
  padding: 3px 10px;
  background: var(--hba-light);
  border: 1px solid var(--hba-border);
  border-radius: 20px;
  font-size: .82rem;
  color: var(--hba-text);
}

.hba-company-single__about { margin-bottom: 36px; }
.hba-company-single__about h2,
.hba-company-single__gallery h2,
.hba-company-single__affiliates h2 {
  font-size: 1.2rem;
  color: var(--hba-primary);
  margin-bottom: 14px;
}

/* ── Gallery Grid ────────────────────────────────────────── */
.hba-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.hba-gallery-link img,
.hba-gallery-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.hba-gallery-thumb {
  position: relative;
}
.hba-remove-gallery-item {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(198,40,40,.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

/* ── Logo Picker ─────────────────────────────────────────── */
.hba-logo-picker { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hba-logo-picker #hba-logo-preview { width: 80px; height: 80px; }
.hba-logo-picker .hba-logo-img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }

/* ── File upload label button ────────────────────────────── */
.hba-upload-label { cursor: pointer; }
.hba-upload-label input[type="file"] { display: none; }
.hba-upload-status { font-size: .85rem; color: var(--hba-muted); align-self: center; }

/* ── Gallery upload row ──────────────────────────────────── */
.hba-gallery-upload-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }

/* ── Textarea ────────────────────────────────────────────── */
.hba-form__textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--hba-border);
  border-radius: var(--hba-radius);
  font-size: .95rem;
  color: var(--hba-text);
  background: #fff;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color .15s;
}
.hba-form__textarea:focus {
  outline: none;
  border-color: var(--hba-primary);
}

/* ── Dashboard ───────────────────────────────────────────── */
.hba-dashboard__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hba-dashboard__header h2 { margin: 0; }
.hba-dashboard__section {
  border: 1.5px solid var(--hba-border);
  border-radius: var(--hba-radius);
  padding: 28px;
  margin-bottom: 28px;
}
.hba-dashboard__section h3 { margin: 0 0 6px; color: var(--hba-primary); }
.hba-section__desc { color: var(--hba-muted); font-size: .9rem; margin: 0 0 20px; }

/* ── Affiliates ──────────────────────────────────────────── */
.hba-affiliates-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.hba-affiliates-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hba-border);
  font-size: .92rem;
}
.hba-affiliates-list__email { color: var(--hba-muted); font-size: .85rem; }

.hba-affiliates-grid {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hba-affiliates-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  text-align: center;
  color: var(--hba-text);
}
.hba-affiliates-grid__item img { border-radius: 50%; }

/* ── Danger button ───────────────────────────────────────── */
.hba-btn--danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}
.hba-btn--danger:hover { background: #fca5a5; color: #7f1d1d; }
.hba-btn--sm { padding: 5px 12px; font-size: .82rem; }

/* ── Info / warning notices ──────────────────────────────── */
.hba-notice--info    { background: #dbeafe; color: #1e40af; }
.hba-notice--warning { background: #fef3c7; color: #92400e; }

/* ── Badge extras ────────────────────────────────────────── */
.hba-badge--free { background: #d1fae5; color: #065f46; }

/* ── Dashboard header ────────────────────────────────────── */
.hba-dashboard__header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hba-dashboard__header-company { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--hba-muted); }
.hba-dashboard__header-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 4px; }

/* ── Team slots ──────────────────────────────────────────── */
.hba-team-slot {
  border: 1px solid var(--hba-border);
  border-radius: var(--hba-radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.hba-team-slot__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.hba-team-slot__header h4 { margin: 0; font-size: 1rem; }
.hba-team-slot__header small { color: var(--hba-muted); font-size: .82rem; margin-left: auto; }

.hba-team-members { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.hba-team-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hba-border);
}
.hba-team-member:last-child { border-bottom: none; }
.hba-team-member__info { display: flex; align-items: center; gap: 12px; }
.hba-team-member__info img { border-radius: 50%; }
.hba-team-member__info > div { display: flex; flex-direction: column; gap: 2px; }
.hba-team-member__info strong { font-size: .92rem; }
.hba-team-member__info .hba-muted { font-size: .8rem; }
.hba-team-member__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Status badges (frontend) ────────────────────────────── */
.hba-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.hba-status-badge--active  { background: #d1fae5; color: #065f46; }
.hba-status-badge--pending { background: #fef3c7; color: #92400e; }

/* ── Inline forms ────────────────────────────────────────── */
.hba-form--inline { background: var(--hba-light); border-radius: var(--hba-radius); padding: 16px; }

/* ── Payment history ─────────────────────────────────────── */
.hba-dashboard__section--history > h3 { display: flex; align-items: center; gap: 12px; }
.hba-ph-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hba-ph-table th { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--hba-border); font-size: .8rem; color: var(--hba-muted); text-transform: uppercase; }
.hba-ph-table td { padding: 10px 10px; border-bottom: 1px solid var(--hba-border); vertical-align: middle; }
.hba-ph-date { white-space: nowrap; }
.hba-ph-date small { display: block; color: var(--hba-muted); font-size: .78rem; }
.hba-ph-status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.hba-ph-status--success { background: #d1fae5; color: #065f46; }
.hba-ph-status--info    { background: #dbeafe; color: #1e40af; }
.hba-ph-status--warning { background: #fef3c7; color: #92400e; }
.hba-ph-status--error   { background: #fee2e2; color: #991b1b; }

/* ── Subscription section ────────────────────────────────── */
.hba-dashboard__section--danger { border-left: 3px solid #fca5a5; }
.hba-subscription-info { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.hba-subscription-info > div { display: flex; flex-direction: column; gap: 4px; }
.hba-subscription-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hba-subscr-id { font-size: .78rem; }
.hba-subscr-id code { font-size: .78rem; background: #f1f5f9; padding: 1px 5px; border-radius: 3px; }

/* ── Muted text ──────────────────────────────────────────── */
.hba-muted { color: var(--hba-muted); font-size: .85rem; }

/* ── Team header (title + Add Member button) ─────────────── */
.hba-team-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.hba-team-header h3 { margin: 0 0 4px; }

/* ── Member List ─────────────────────────────────────────── */
.hba-member-list { margin-bottom: 20px; }

.hba-member-list__empty {
  text-align: center;
  padding: 32px 20px;
  background: var(--hba-light);
  border-radius: var(--hba-radius);
  border: 1.5px dashed var(--hba-border);
}
.hba-member-list__empty-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.hba-member-list__empty p { margin: 0 0 4px; color: var(--hba-text); }

/* ── Members Table ───────────────────────────────────────── */
.hba-members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.hba-members-table th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid var(--hba-border);
  font-size: .8rem;
  color: var(--hba-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hba-members-table td {
  padding: 12px;
  border-bottom: 1px solid var(--hba-border);
  vertical-align: middle;
}
.hba-members-table tbody tr:last-child td { border-bottom: none; }
.hba-members-table__member {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hba-members-table__member img { border-radius: 50%; flex-shrink: 0; }
.hba-members-table__member > div { display: flex; flex-direction: column; gap: 1px; }
.hba-members-table__member strong { font-size: .92rem; }
.hba-members-table__member .hba-muted { display: block; }
.hba-subscr-id-cell { font-size: .77rem; background: #f1f5f9; padding: 2px 6px; border-radius: 3px; }

/* ── Status badge extras ─────────────────────────────────── */
.hba-status-badge--removed   { background: #fee2e2; color: #991b1b; }
.hba-status-badge--suspended { background: #fef3c7; color: #92400e; }
.hba-status-badge--cancelled { background: #f1f5f9; color: #64748b; }

/* ── Role tags ───────────────────────────────────────────── */
.hba-role-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.hba-role-tag--builder   { background: #d1fae5; color: #065f46; }
.hba-role-tag--affiliate { background: #ede9fe; color: #5b21b6; }

/* ── Add Member forms panel ──────────────────────────────── */
.hba-add-member-forms {
  border: 1.5px solid var(--hba-border);
  border-radius: var(--hba-radius);
  padding: 20px;
  background: var(--hba-light);
  margin-top: 8px;
}

/* ── Form tabs ───────────────────────────────────────────── */
.hba-add-forms-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--hba-border);
}
.hba-tab-btn {
  padding: 8px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--hba-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s, border-color .15s;
}
.hba-tab-btn.is-active {
  color: var(--hba-primary);
  border-bottom-color: var(--hba-accent);
}
.hba-tab-panel { display: none; }
.hba-tab-panel.is-active { display: block; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .hba-membership-cards,
  .hba-form__row--split { grid-template-columns: 1fr; }
  .hba-company-single__header { flex-direction: column; }
  .hba-company-single__logo { width: 100%; height: auto; flex: none; }
  .hba-team-member { flex-wrap: wrap; }
  .hba-ph-table th:nth-child(4),
  .hba-ph-table td:nth-child(4) { display: none; }
  .hba-members-table th:nth-child(4),
  .hba-members-table td:nth-child(4) { display: none; }
}

/* ── Directory layout (sidebar + grid) ───────────────────── */
.hba-dir-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.hba-dir-sidebar {
  position: sticky;
  top: 24px;
}
.hba-dir-sidebar__heading {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hba-primary);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hba-dir-sidebar__viewall {
  font-size: .8rem;
  color: var(--hba-accent);
  text-transform: none;
  letter-spacing: 0;
}
.hba-dir-cats { list-style: none; padding: 0; margin: 0; }
.hba-dir-cats__item { border-bottom: 1px solid var(--hba-border); }
.hba-dir-cats__item a {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px;
  font-size: .88rem;
  color: var(--hba-text);
  text-decoration: none;
  transition: color .15s;
}
.hba-dir-cats__item a:hover,
.hba-dir-cats__item.is-active a {
  color: var(--hba-accent);
  font-weight: 600;
}
.hba-dir-cats__item a span { color: var(--hba-muted); font-size: .8rem; }
.hba-dir-filter-notice {
  font-size: .88rem;
  color: var(--hba-muted);
  margin-bottom: 16px;
}
.hba-dir-filter-notice a { color: var(--hba-accent); margin-left: 6px; }

/* ── Company card (PSD design) ───────────────────────────── */
.hba-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.hba-company-card {
  background: #fff;
  border-radius: var(--hba-radius);
  box-shadow: var(--hba-shadow);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  border: 1px solid var(--hba-border);
}
.hba-company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.13);
}
.hba-company-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.hba-company-card__circle-wrap {
  padding: 24px 24px 12px;
  display: flex;
  justify-content: center;
}
.hba-company-card__circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--hba-border);
  overflow: hidden;
  background: var(--hba-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hba-company-card__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hba-company-card__initial {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--hba-primary);
  text-transform: uppercase;
}
.hba-company-card__body {
  padding: 0 16px 12px;
  text-align: center;
  flex: 1;
}
.hba-company-card__name {
  margin: 0 0 6px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--hba-primary);
  line-height: 1.3;
}
.hba-company-card__services {
  font-size: .78rem;
  color: var(--hba-muted);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hba-company-card__phone {
  font-size: .8rem;
  color: var(--hba-muted);
  margin: 0;
}
.hba-company-card__cta {
  margin-top: auto;
}
.hba-company-card__btn {
  display: block;
  background: var(--hba-primary);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .15s;
}
.hba-company-card:hover .hba-company-card__btn {
  background: var(--hba-accent);
}

/* ── Company Single: Hero ─────────────────────────────────── */
.hba-cs-hero {
  width: 100%;
  min-height: 280px;
  background: var(--hba-primary) center/cover no-repeat;
  position: relative;
}
.hba-cs-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.hba-cs-hero__name {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* ── Company Single: Info panel ───────────────────────────── */
.hba-cs-info {
  background: #fff;
  border-bottom: 1px solid var(--hba-border);
  padding: 28px 0;
}
.hba-cs-info__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.hba-cs-info__logo {
  flex: 0 0 130px;
  width: 130px;
  height: 130px;
  border: 2px solid var(--hba-border);
  border-radius: var(--hba-radius);
  overflow: hidden;
  background: var(--hba-light);
}
.hba-cs-info__logo img { width: 100%; height: 100%; object-fit: contain; }
.hba-cs-info__details { flex: 1; min-width: 220px; }
.hba-cs-info__name { margin: 0 0 8px; font-size: 1.5rem; color: var(--hba-primary); }
.hba-cs-info__phone { margin: 0 0 4px; font-size: 1rem; }
.hba-cs-info__phone a { color: var(--hba-primary); text-decoration: none; font-weight: 600; }
.hba-cs-info__website { margin: 0 0 10px; font-size: .9rem; }
.hba-cs-info__website a { color: var(--hba-accent); }
.hba-cs-info__badge {
  display: inline-block;
  background: var(--hba-gold);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── Company Single: Sections ─────────────────────────────── */
.hba-cs-section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.hba-cs-about {
  padding: 40px 0;
  background: #fff;
}
.hba-cs-about h2,
.hba-cs-gallery h2,
.hba-cs-related h2 {
  color: var(--hba-primary);
  margin: 0 0 20px;
  font-size: 1.3rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hba-accent);
  display: inline-block;
}
.hba-cs-about__content { line-height: 1.7; color: var(--hba-text); }

/* ── Company Single: Gallery ──────────────────────────────── */
.hba-cs-gallery {
  padding: 40px 0;
  background: var(--hba-light);
}
.hba-cs-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.hba-cs-gallery__item { display: block; overflow: hidden; border-radius: 6px; }
.hba-cs-gallery__item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.hba-cs-gallery__item:hover img { transform: scale(1.04); }

/* ── Company Single: Related ──────────────────────────────── */
.hba-cs-related {
  padding: 40px 0;
  background: #fff;
}
.hba-cs-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hba-cs-related__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 16px;
  border: 1px solid var(--hba-border);
  border-radius: var(--hba-radius);
  transition: box-shadow .15s;
}
.hba-cs-related__card:hover { box-shadow: var(--hba-shadow); }
.hba-cs-related__circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--hba-border);
  background: var(--hba-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hba-cs-related__circle img { width: 100%; height: 100%; object-fit: cover; }
.hba-cs-related__circle span { font-size: 1.6rem; font-weight: 700; color: var(--hba-primary); }
.hba-cs-related__name {
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  color: var(--hba-primary);
}

@media (max-width: 768px) {
  .hba-dir-layout { grid-template-columns: 1fr; }
  .hba-dir-sidebar { position: static; }
  .hba-cs-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hba-cs-related__grid { grid-template-columns: 1fr 1fr; }
  .hba-directory-grid { grid-template-columns: 1fr 1fr; }
}
