/* ── Staff Widget — Figma "Modernize Team Page" ── */

/* Full-bleed breakout — escapes .content-block max-width */
.staff-banner,
.staff-body {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

/* Banner */
.staff-banner {
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #000) 100%);
  padding: 48px 24px 40px;
  text-align: center;
}

.staff-banner-inner {
  max-width: 768px;
  margin: 0 auto;
}

.staff-banner-icon {
  width: 48px;
  height: 48px;
  vertical-align: middle;
  margin-right: 12px;
}

.staff-banner-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.staff-banner-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
}

/* Body wrapper */
.staff-body {
  background: linear-gradient(115deg, #f9fafb 0%, color-mix(in srgb, var(--accent) 8%, #fff) 50%, #f9fafb 100%);
  padding: 48px 0 64px;
}

/* Section headers */
.staff-section {
  max-width: 1080px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.staff-section-header {
  margin-bottom: 32px;
}

.staff-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 12px;
  line-height: 1.3;
}

.staff-section-accent {
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
}

/* Card grid */
.staff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Card */
.staff-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  overflow: hidden;
}

/* Photo area */
.staff-card-photo {
  position: relative;
  height: 260px;
  background: #f3f4f6;
  overflow: hidden;
  margin: 12px 12px 0;
  border-radius: 10px;
}

.staff-card-photo.staffcircle {
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 24px auto 0;
  width: 200px;
}

.staff-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.staff-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #000) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-card-initials {
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2px;
  user-select: none;
}

.staff-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 50%);
  pointer-events: none;
}

.staff-card-photo.staffcircle .staff-card-overlay,
.staff-card-photo.staffcircle .staff-card-identity {
  display: none;
}

.staff-card-identity {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.staff-card-name {
  color: #fff;
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.staff-card-role {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin: 4px 0 0;
  line-height: 1.5;
}

/* Card content */
.staff-card-content {
  padding: 20px 24px 24px;
}

.staff-card-tenure {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a5565;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.staff-card-tenure svg {
  flex-shrink: 0;
  color: #4a5565;
}

/* Bio */
.staff-card-bio {
  color: #364153;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.staff-card-bio .phone {
  font-weight: 600;
  margin-bottom: 8px;
}

.staff-card-bio .bio {
  margin-top: 8px;
}

.staff-card-bio p {
  margin: 0 0 8px;
}

.staff-card-bio p:last-child {
  margin-bottom: 0;
}

/* Contact button */
.staff-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.staff-contact-btn:hover { opacity: 0.85; }

.staff-contact-btn svg { color: #fff; }

/* ── Modal ── */
.staff-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.staff-modal-backdrop.active {
  display: flex;
}

.staff-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.staff-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.staff-modal-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

.staff-modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.staff-modal-close:hover { color: var(--foreground); }

.staff-modal-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 24px;
}

.staff-modal-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.staff-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 16px;
  text-transform: uppercase;
}

.staff-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff-modal-form input,
.staff-modal-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--foreground);
  background: #fff;
  box-sizing: border-box;
}

.staff-modal-form input:focus,
.staff-modal-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.staff-modal-form textarea {
  resize: vertical;
  min-height: 100px;
}

.staff-modal-submit {
  align-self: flex-end;
  padding: 12px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.15s;
}

.staff-modal-submit:hover { opacity: 0.85; }
.staff-modal-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Responsive ── */

@media (min-width: 640px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) {
  .staff-modal-body {
    flex-direction: row;
  }

  .staff-modal-img {
    width: 260px;
    flex-shrink: 0;
    max-height: none;
  }

  .staff-modal-right {
    flex: 1;
    min-width: 0;
  }

  .staff-banner {
    padding: 64px 32px 56px;
  }

  .staff-banner-title {
    font-size: 3rem;
  }

  .staff-banner-subtitle {
    font-size: 1.25rem;
  }

  .staff-card-photo {
    height: 280px;
  }

  .staff-section-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1025px) {
  .staff-body {
    padding: 64px 0 80px;
  }

  .staff-section {
    padding: 0 32px;
  }
}
