/*
  MDC Website v2.0 — Team & Logo Refinement
  File: assets/css/22-team-logo.css
  Purpose: Brand logo integration, editable team cards, profile modal, and visible social/profile controls.
*/

.brand-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  background: var(--color-navy-950);
}
.footer-brand .brand-logo-img { background: transparent; box-shadow: none; }

.team-editor-note {
  display: grid;
  gap: .75rem;
  padding: 1.25rem;
  margin-top: 1.25rem;
  border: 1px dashed rgba(22,134,95,.55);
  border-radius: var(--radius-lg);
  background: rgba(22,134,95,.07);
}
.team-editor-note code {
  background: rgba(8,44,74,.08);
  padding: .1rem .35rem;
  border-radius: .35rem;
  color: var(--color-navy-900);
}

.team-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.team-search {
  width: min(100%, 420px);
  min-height: 48px;
  border: 2px solid rgba(8,44,74,.18);
  border-radius: 999px;
  padding: .85rem 1.1rem;
  background: #fff;
  color: var(--color-charcoal);
}
.team-search:focus {
  outline: 4px solid rgba(213,166,66,.24);
  border-color: var(--color-gold-500);
}
.team-filter-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.team-filter {
  border: 1px solid rgba(8,44,74,.14);
  background: #fff;
  color: var(--color-navy-900);
  border-radius: 999px;
  padding: .55rem .85rem;
  font-weight: 800;
  cursor: pointer;
}
.team-filter.is-active, .team-filter:hover { background: var(--color-navy-900); color: #fff; }

.people-grid.enhanced {
  align-items: stretch;
}
.profile-card.team-member-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .9rem;
  min-height: 100%;
  border: 1px solid rgba(8,44,74,.13);
}
.profile-photo-wrap {
  aspect-ratio: 16/12;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - .35rem);
  background: var(--color-gray-50);
  border: 1px solid rgba(8,44,74,.09);
}
.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .35s ease;
}
.team-member-card:hover .profile-photo { transform: scale(1.055); }
.team-member-card .role { color: var(--color-emerald-700); font-weight: 800; }
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .25rem;
}
.profile-actions a,
.profile-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: .55rem .8rem;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}
.profile-actions button {
  border: 1px solid var(--color-navy-900);
  background: var(--color-navy-900);
  color: #fff;
  cursor: pointer;
}
.profile-actions a {
  border: 1px solid rgba(8,44,74,.15);
  color: var(--color-navy-900);
  background: #fff;
}
.profile-actions a:hover { border-color: var(--color-emerald-600); color: var(--color-emerald-700); }

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.profile-modal.is-open { display: block; }
.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,18,31,.72);
  backdrop-filter: blur(6px);
}
.profile-modal-panel {
  position: relative;
  width: min(100% - 2rem, 920px);
  max-height: min(90vh, 860px);
  overflow: auto;
  margin: 5vh auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.35);
}
.profile-modal-close {
  position: sticky;
  top: .75rem;
  float: right;
  margin: .75rem .75rem 0 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(8,44,74,.12);
  border-radius: 999px;
  background: #fff;
  color: var(--color-navy-900);
  font-weight: 900;
  cursor: pointer;
  z-index: 2;
}
.profile-modal-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
}
.profile-modal-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(8,44,74,.11);
  background: var(--color-gray-50);
}
.profile-modal-meta { display: grid; gap: .75rem; align-content: start; }
.profile-modal-meta h2 { margin-bottom: .1rem; }
.profile-modal-role { color: var(--color-emerald-700); font-weight: 900; }
.profile-modal-bio { font-size: 1.02rem; }
.profile-socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.profile-socials a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .55rem .85rem;
  font-weight: 900;
  background: rgba(22,134,95,.1);
  color: var(--color-emerald-700);
  border: 1px solid rgba(22,134,95,.18);
}
body.modal-open { overflow: hidden; }

.logo-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}
.logo-preview-card {
  padding: 1.25rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.logo-preview-card img { max-width: 100%; height: auto; }

@media (max-width: 760px) {
  .profile-modal-body { grid-template-columns: 1fr; }
  .profile-modal-photo { max-width: 320px; }
  .logo-preview-grid { grid-template-columns: 1fr; }
}

/* MDC official website logo v3.0 */
.brand-logo-full {
  display: block;
  width: clamp(190px, 18vw, 285px);
  height: auto;
  max-height: 72px;
  object-fit: contain;
}
.site-header .brand { gap: 0; }
.footer-brand .brand-logo-full, .footer-logo {
  width: clamp(190px, 20vw, 300px);
  max-height: 78px;
}
@media (max-width: 760px) {
  .brand-logo-full { width: 185px; max-height: 58px; }
  .header-inner { gap: 1rem; }
}
@media (max-width: 420px) {
  .brand-logo-full { width: 160px; }
}

/* v1.3.1 logo consistency fix */
.footer-brand .footer-logo, .site-footer .footer-logo {
  background: #ffffff;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}
.site-footer .brand-logo-full {
  image-rendering: auto;
}
