/* ExpoJack company profile frontend */

/* Keep the WordPress template from squeezing the company profile. */
.single-exj_company .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.single-exj_company .wp-block-post-content,
.single-exj_company .entry-content {
  max-width: 1400px !important;
}

.single-exj_company .wp-block-post-title,
.single-exj_company .entry-title {
  display: none !important;
}

.single-exj_company .wp-block-post-content > .exj-company-profile {
  margin-block-start: 0 !important;
}

.exj-company-profile,
.exj-company-profile * {
  box-sizing: border-box;
}

.exj-company-profile {
  --exj-bg: #f6f8fb;
  --exj-card: #ffffff;
  --exj-ink: #172033;
  --exj-heading: #0f172a;
  --exj-muted: #667085;
  --exj-line: #dbe3ee;
  --exj-soft-line: #edf2f7;
  --exj-accent: #0f766e;
  --exj-accent-soft: #e6fffb;
  --exj-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);

  width: min(1400px, 100%);
  max-width: 1400px;
  margin: 0 auto 56px;
  padding: 0 16px;
  color: var(--exj-ink);
  font-size: 16px;
  line-height: 1.55;
}

.exj-company-profile :where(h1, h2, h3, p, dl, dd) {
  margin-top: 0;
}

.exj-company-profile a {
  color: var(--exj-accent);
  text-decoration: none;
}

.exj-company-profile a:hover {
  text-decoration: underline;
}

/* Hero */
.exj-company-hero {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--exj-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, .14), transparent 34%),
    linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: var(--exj-shadow);
}

.exj-logo-box {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid var(--exj-line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.exj-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.exj-logo-box span {
  color: var(--exj-accent);
  font-size: 28px;
  font-weight: 850;
}

.exj-kicker {
  margin: 0 0 5px;
  color: var(--exj-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.exj-hero-info h1 {
  margin: 0;
  color: var(--exj-heading);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.06;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.exj-location {
  margin: 8px 0 0;
  color: var(--exj-muted);
  font-weight: 650;
}

.exj-chip-row,
.exj-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.exj-chip,
.exj-card-tags span,
.exj-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--exj-line);
  border-radius: 999px;
  background: #fff;
  color: var(--exj-muted);
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.exj-hero-buttons {
  display: grid;
  gap: 9px;
}

.exj-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--exj-line);
  border-radius: 13px;
  background: #fff;
  color: var(--exj-ink) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 800;
}

.exj-btn-primary {
  border-color: var(--exj-accent);
  background: var(--exj-accent);
  color: #fff !important;
}

/* Stats */
.exj-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.exj-stats div {
  padding: 13px;
  border: 1px solid var(--exj-line);
  border-radius: 17px;
  background: #fff;
  text-align: center;
}

.exj-stats strong {
  display: block;
  color: var(--exj-heading);
  font-size: 22px;
  line-height: 1;
  font-weight: 850;
}

.exj-stats span {
  display: block;
  margin-top: 5px;
  color: var(--exj-muted);
  font-size: 12px;
  font-weight: 750;
}

/* Navigation */
.exj-profile-nav {
  position: sticky;
  top: 42px;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  margin: 16px 0;
  border: 1px solid var(--exj-line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  scrollbar-width: thin;
}

.exj-profile-nav a {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--exj-muted);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none !important;
}

.exj-profile-nav a:hover {
  background: var(--exj-accent-soft);
  color: var(--exj-accent);
}

/* Sections */
.exj-section-card {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--exj-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.exj-section-title {
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--exj-soft-line);
}

.exj-section-title h2 {
  margin: 0;
  color: var(--exj-heading);
  font-size: 24px;
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.exj-section-title p {
  margin: 6px 0 0;
  color: var(--exj-muted);
  font-size: 14px;
}

/* Overview */
.exj-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.exj-about {
  padding: 16px;
  border: 1px solid var(--exj-soft-line);
  border-radius: 18px;
  background: #f8fafc;
}

.exj-about h3 {
  margin: 0 0 8px;
  color: var(--exj-heading);
  font-size: 18px;
  font-weight: 850;
}

.exj-about p {
  margin-bottom: 0;
  color: #344054;
}

.exj-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.exj-details div {
  padding: 12px;
  border: 1px solid var(--exj-soft-line);
  border-radius: 15px;
  background: #fff;
}

.exj-details dt {
  color: var(--exj-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.exj-details dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

/* Products */
.exj-product-grid {
  display: grid;
  gap: 15px;
}

.exj-product-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--exj-line);
  border-radius: 20px;
  background: #fff;
}

.exj-product-image {
  min-height: 170px;
  background: linear-gradient(135deg, #eef4f8, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exj-product-image img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
}

.exj-product-image span {
  color: var(--exj-muted);
  font-weight: 850;
}

.exj-product-body {
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.exj-product-body h3 {
  margin: 0;
  color: var(--exj-heading);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 850;
}

.exj-product-body p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

.exj-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--exj-soft-line);
}

.exj-card-footer small {
  color: var(--exj-muted);
  font-size: 12px;
  font-weight: 750;
}

.exj-card-footer a {
  font-weight: 850;
}

/* People */
.exj-contact-grid,
.exj-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.exj-contact-card,
.exj-event-card {
  padding: 16px;
  border: 1px solid var(--exj-line);
  border-radius: 19px;
  background: #fff;
}

.exj-contact-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
}

.exj-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--exj-accent-soft);
  color: var(--exj-accent);
  border: 1px solid rgba(15, 118, 110, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
}

.exj-contact-card h3,
.exj-event-card h3 {
  margin: 0;
  color: var(--exj-heading);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 850;
}

.exj-muted,
.exj-event-card p {
  margin: 5px 0 0;
  color: var(--exj-muted);
  font-size: 14px;
}

.exj-contact-links {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.exj-pill {
  margin-top: 10px;
  background: #f8fafc;
}

.exj-event-card p {
  margin-bottom: 0;
}

.exj-empty {
  margin: 0;
  color: var(--exj-muted);
  border: 1px dashed var(--exj-line);
  border-radius: 15px;
  padding: 15px;
  background: #f8fafc;
}

.exj-archive-filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.exj-archive-filters input,
.exj-archive-filters select,
.exj-archive-filters button {
  min-height: 40px;
  border: 1px solid var(--exj-line);
  border-radius: 10px;
  padding: 8px 10px;
}
.exj-company-grid,
.exj-marketplace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.exj-marketplace-grid .exj-product-card--mini {
  grid-template-columns: 1fr;
  border-radius: 16px;
  overflow: hidden;
}

.exj-marketplace-grid .exj-product-card--mini .exj-product-image {
  min-height: 170px;
  max-height: 170px;
  background: linear-gradient(135deg, #eef4f8, #f8fafc);
}

.exj-marketplace-grid .exj-product-card--mini .exj-product-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.exj-marketplace-grid .exj-product-card--mini .exj-product-body {
  padding: 12px;
  gap: 6px;
}

.exj-marketplace-grid .exj-product-card--mini .exj-product-body h3 {
  font-size: 16px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exj-marketplace-grid .exj-product-card--mini .exj-product-body p {
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exj-marketplace-grid .exj-product-card--mini .exj-card-footer {
  padding-top: 8px;
}

.exj-marketplace-grid .exj-product-card--mini .exj-card-footer small,
.exj-marketplace-grid .exj-product-card--mini .exj-card-footer a {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.exj-company-card {
  border: 1px solid var(--exj-line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}
.exj-company-card h3 { margin: 0 0 8px; }
.exj-company-card p { margin: 0 0 8px; }
.exj-pager { margin-top: 14px; }
.exj-pager a { margin-right: 6px; }
.exj-pager a.current { font-weight: 800; text-decoration: underline; }

/* Mobile */
@media (max-width: 820px) {
  .exj-company-hero {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .exj-hero-buttons {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .exj-overview-layout,
  .exj-product-card {
    grid-template-columns: 1fr;
  }

  .exj-product-image,
  .exj-product-image img {
    min-height: 220px;
  }
  .exj-company-grid,
  .exj-marketplace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .exj-archive-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .exj-company-profile {
    padding: 0 12px;
  }

  .exj-company-hero,
  .exj-section-card {
    padding: 16px;
    border-radius: 19px;
  }

  .exj-company-hero,
  .exj-hero-buttons,
  .exj-stats,
  .exj-contact-grid,
  .exj-event-grid {
    grid-template-columns: 1fr;
  }

  .exj-logo-box {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }

  .exj-hero-info h1 {
    font-size: 31px;
  }

  .exj-profile-nav {
    top: 0;
  }

  .exj-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .exj-company-grid,
  .exj-marketplace-grid,
  .exj-archive-filters {
    grid-template-columns: 1fr;
  }
}
