/* Public organization profile (/businesses/{slug}) */

.biz-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgb(40 100 180 / 0.06), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 10%, rgb(20 80 60 / 0.05), transparent 50%),
    var(--fpa-app-bg, #f4f5f7);
  color: var(--fpa-app-text, #1a1d21);
}

.biz-main {
  flex: 1;
  width: 100%;
}

.biz-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding: 48px 20px;
}

.biz-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgb(0 0 0 / 0.08);
  border-top-color: #1a1d21;
  border-radius: 50%;
  animation: biz-spin 0.7s linear infinite;
}

@keyframes biz-spin {
  to {
    transform: rotate(360deg);
  }
}

.biz-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

.biz-empty h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.biz-empty p {
  margin: 0 0 12px;
  color: var(--fpa-app-text-muted, #5c6570);
  line-height: 1.55;
}

.biz-empty a {
  color: inherit;
  font-weight: 600;
}

.biz-hero {
  padding: 48px 24px 32px;
  border-bottom: 1px solid rgb(0 0 0 / 0.06);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.7), transparent);
}

.biz-hero__inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.biz-logo {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: #fff center / cover no-repeat;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.06);
  border: 1px solid rgb(0 0 0 / 0.06);
}

.biz-logo:not(.has-image) {
  background-image: none;
  background-color: #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #5c6570;
}

.biz-kicker {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fpa-app-text-muted, #5c6570);
}

.biz-hero__copy h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.biz-location {
  margin: 0;
  font-size: 1rem;
  color: var(--fpa-app-text-muted, #5c6570);
}

.biz-body {
  padding: 32px 24px 64px;
}

.biz-body__inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.biz-main-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

@media (min-width: 768px) {
  .biz-body__inner {
    grid-template-columns: 1fr 240px;
    align-items: start;
  }
}

.biz-about h2 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 650;
}

.biz-description {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.biz-description:empty::before {
  content: "No description yet.";
  color: var(--fpa-app-text-muted, #5c6570);
}

.biz-description--empty {
  color: var(--fpa-app-text-muted, #5c6570);
}

.biz-team h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 650;
}

.biz-team-lead {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--fpa-app-text-muted, #5c6570);
}

.biz-team-empty {
  margin: 0;
  color: var(--fpa-app-text-muted, #5c6570);
  font-size: 0.9375rem;
}

.biz-team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.biz-team-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgb(0 0 0 / 0.08);
  background: rgb(255 255 255 / 0.75);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.biz-team-card:hover {
  border-color: rgb(0 0 0 / 0.16);
  background: #fff;
}

.biz-team-card--static {
  cursor: default;
}

.biz-team-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.biz-team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.biz-team-initials {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #5c6570;
}

.biz-team-copy {
  flex: 1;
  min-width: 0;
}

.biz-team-name {
  font-weight: 650;
  font-size: 0.9875rem;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.biz-team-role {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fpa-app-text-muted, #5c6570);
  border: 1px solid rgb(0 0 0 / 0.1);
  border-radius: 4px;
  padding: 1px 6px;
}

.biz-team-title {
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--fpa-app-text-muted, #5c6570);
}

.biz-team-cta {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fpa-app-text-muted, #5c6570);
}

a.biz-team-card:hover .biz-team-cta {
  color: inherit;
}

.biz-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.biz-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  background: #1a1d21;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  text-align: center;
}

.biz-cta:hover {
  background: #2a2f36;
}

.biz-aside-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: inherit;
}

.biz-local-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgb(0 0 0 / 0.08);
  font-size: 0.875rem;
}

.biz-local-nav a {
  color: inherit;
  font-weight: 500;
}

.biz-footer {
  padding: 24px;
  border-top: 1px solid rgb(0 0 0 / 0.06);
  background: rgb(255 255 255 / 0.5);
}

.biz-footer__inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--fpa-app-text-muted, #5c6570);
}

.biz-footer__inner p {
  margin: 0;
}

.biz-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.biz-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.biz-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .biz-hero__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .biz-logo {
    width: 80px;
    height: 80px;
  }
}
